资源简介
使用STM32F103单片机仿PLC底层程序,支持梯形图编程,stm32在IAR下开发的PLC底层程序可直接用三菱PLC软件操作,内容条理清晰,对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<< user_ladder.bit) ) result = 0xff;
else result = 0x00;
return result;
}
unsi
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 321203 2017-03-03 12:01 STM32仿三菱PLC开源代码\STM8 STM32 GD32脱机编程器介绍.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的蓝牙通信
相关资源
- VC基本图像处理源码集
- c++ 直线裁剪、画矩形等(graphics)
- SpaceClaim2016_SP0_UsersGuide
- CUDA 编程4.2(CUDA_C_Programming_Guide_4.2)
- 圆环纹理映射(c++项目)
- opencv 动物识别
- 《DirectX游戏开发终极指南》随书源码
- 人脸特征点检测,轻量级的MTCNN实现
- visual c++数字图像模式识别技术详解
- Learning OpenCV3 英文版
- VC+MFC实现真实感图形(正方体+菊花)
- cuda c编程(CUDA_C_Programming_Guide)
- OpenCV实现移动跟踪非常简单
- Qt5C++GUIProgrammingCookbook(PDF+源码)
- c++ 电子海图简单程序
- STemWin无操作系统移植-(STM32)
- 《从0到1教你写uCOS-III》pdf 图文教程(
- C++/Qt 期货数据获取
- c++ 实时获取光标处颜色(类似抓色器
- c++ 执行脚本的程序(一键安装全部卸
- 定时器 c++源码
- office 文档自动打印
- 7z sdk的C++封装
- vc6 读取 shp文件
- 单片机与PC机串口通信的类程序
- Amcap源码
- c++ 压缩文件/解压缩文件 (亲测通过
- c++ 串口通信Demo源码(方便学习调试)
- 通过图像实现Z轴定位(opencv)
- 邓俊辉数据结构(C++版)第三版
评论
共有 条评论