資源簡介
使用STM32F103單片機(jī)仿PLC底層程序,支持梯形圖編程,stm32在IAR下開發(fā)的PLC底層程序可直接用三菱PLC軟件操作,內(nèi)容條理清晰,對PLC程序的編寫有有一定幫助。
代碼片段和文件信息
//excute?privite?Variable
unsigned?short?program_address;
unsigned?short?excute_flag;
void?exe_read_command(void)
{
user_ladder.grp?=?program[program_address]?&?0xf0;
user_ladder.order?=?program[program_address];
user_ladder.type?=?program[program_address?+?3];
user_ladder.type?=?user_ladder.type?>>?5;
user_ladder.dtype?=?program[program_address?+?3]?&?0x001f;
user_ladder.bit?=?program[program_address?+?3]?&?0x000f;
user_ladder.data?=?program[program_address?+?2];
user_ladder.data?=?user_ladder.data?<8;
user_ladder.data?|=?program[program_address?+?1];
program_address+=4;
}
unsigned?short?exe_read_bit(void)
{
unsigned?short?result;
if(memory[user_ladder.data]?&?(1<else?result?=?0x00;
return?result;
}?
unsi
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件?????321203??2017-03-03?12:01??STM32仿三菱PLC開源代碼\STM8?STM32?GD32脫機(jī)編程器介紹.pdf
?????文件???????2225??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\cortexm3_macro.h
?????文件??????10277??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\cortexm3_macro.s
?????文件??????30304??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\Exe\GC.bin
?????文件??????85281??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\Exe\GC2.hex
?????文件?????318128??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\Exe\GC2.out
?????文件??????30347??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\Exe\GC2.sim
?????文件??????29447??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\Exe\GC2.sim._1
?????文件??????24314??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\List\cortexm3_macro.lst
?????文件????1139251??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\List\GC2.log
?????文件??????34759??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\List\GC2.map
?????文件?????719752??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\List\main.lst
?????文件?????133409??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\List\stm32f10x_adc.lst
?????文件??????28264??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\List\stm32f10x_bkp.lst
?????文件??????68672??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\List\stm32f10x_dma.lst
?????文件?????106014??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\List\stm32f10x_flash.lst
?????文件??????63658??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\List\stm32f10x_gpio.lst
?????文件?????111299??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\List\stm32f10x_i2c.lst
?????文件??????17486??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\List\stm32f10x_lib.lst
?????文件??????88715??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\List\stm32f10x_nvic.lst
?????文件??????28523??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\List\stm32f10x_pwr.lst
?????文件?????112838??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\List\stm32f10x_rcc.lst
?????文件??????35894??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\List\stm32f10x_rtc.lst
?????文件??????21803??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\List\stm32f10x_systick.lst
?????文件??????99478??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\List\stm32f10x_usart.lst
?????文件??????15729??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\List\stm32f10x_vector.lst
?????文件???????2536??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\Obj\cortexm3_macro.o
?????文件???????1897??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\Obj\GC.pbd
?????文件?????389808??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\Obj\main.o
?????文件??????65212??2013-12-21?23:46??STM32仿三菱PLC開源代碼\代碼\Debug\Obj\stm32f10x_adc.o
............此處省略353個文件信息
- 上一篇:STM32用MCP2515通訊
- 下一篇:基于stm32的藍(lán)牙通信
評論
共有 條評論