1 / 5
文档名称:

欧姆龙协议宏.doc

格式:doc   大小:56KB   页数:5页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

欧姆龙协议宏.doc

上传人:tmm958758 2018/11/22 文件大小:56 KB

下载得到文件列表

欧姆龙协议宏.doc

文档介绍

文档介绍:DATA:<h>+$(R(1),16)+<t>
DATA :<h>+&~(W(1),8)+<t>
PLC程序
问题1:通信序列明明是00,而PLC程序中控制字2怎么是#1呢?
问题2:PLC程序中MOV &5 D250 这是用来做什么呀?
问题3:上面的发送和接收数中为什么只有帧头,data,帧毛,而没有数据长度,和接收地址呢?
问题4:<h>+$(R(1),16)+<t>, <h>+&~(W(1),8)+<t>怎么和PLC程序对应上来?
问题5:这个S0003 0200E怎么跟D260联系起来?R0001 0000 0199 0200E怎么跟D250联系起来?
上位机= > PLC
mand word
Setpoint word to pump 0 ~ 1000 = (0% ~ %)
<S><mand><pressure value><E>
Example setpoint string; [xx] is ASCII Code Value
S0003 0200E S[53] = mand for setpoints
Bin Bcd
mand word
0003[30303033]
0 bit : 1 = Switch pump ON
1 bit : 1 = Switch cycle ON
2 bit : 0 = no reset
~
13 bit : system 1 sec clock to munication confirm
Pressure mand word
0200[30323030]
0200 = %
E[45] = mand
PLC = > 上位机
Current pump status(Bit) word
Set pressure word 0 ~ 1000 = (0% ~ %)
Current pressure word 0 ~ 1000 = (0% ~ %)
Current HP status word 0 ~ 65535
<R><bit status><alarm code><set pressure value><current pressure value><E>
Example readback string; [xx] is ASCII Code Value
R0001 0000 0199 0200E
Bin Bcd Bcd Bcd
R[52] = mand for readbacks
Bit status word
0001[30303031]

0 bit : 1 = Pump is ON
1 bit : 0 = Cycle is OFF
2 b