关于S7-200MODBUS 的主机程序
时间:2021-07-01 10:21:17
帮助过:6人阅读
TITLE=程序注释
Network 1 // 网络标题
// 网络注释
LD SM0.1
R M0.0, 3
Network 2
// 通讯初始化,波特率9600,无校验。s7-200通讯格式为8N1
LD SM0.0
= L60.0
LD SM0.0
= L63.7
LD L60.0
CALL SBR1, L63.7, 9600, 0, 1000, M0.0, MB1
Network 3
LD M0.0
= L60.0
LD SM0.5
A M0.0
EU
= L63.7
LD L60.0
CALL SBR2, L63.7, 1, 0, 40001, 4, &VB300, M0.3, MB2
Network 4
LD M0.3
= L60.0
LD SM0.5
A M0.3
EU
= L63.7
LD L60.0
CALL SBR2, L63.7, 2, 0, 40001, 4, &VB500, M0.3, MB2
关于S7-200MODBUS 的主机程序
标签: