发布于 2012-09-12 11:11:52
5楼
好的。
INT模块:LD SM0.1
CALL MBUS_INIT:SBR1, 1, 2, 9600, 0, 0, 128, 32, 1000, &VB3000, M10.1, MB11
slave模块:LD SM0.0
CALL MBUS_SLAVE:SBR2, M10.2, MB12
AIW0模拟量模块(这个模块式调用的子程序,正常):LD SM0.0
CALL CHEANGE:SBR5, AIW0, 27.0, VD1846
数字量:LD I0.0
O Q0.1
AN I0.1
= Q0.1
PPI/PC电缆设置为:01000000。
modscan32中设置如下:device id=2,address=0001,length=100,type选1,2,3试过都不行。
32中connection中设置:端口选择com1,baud=9600,word=8,parity=none,stop=1,扫描时间=1000Ms
麻烦老师了。