欧姆龙协议宏

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

DATA:<h>+$(R(1),16)+<t>
DA TA :<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
1.Bit command word
2.Setpoint word to pump 0 ~ 1000 = (0% ~ 100.0%)
<S><bit command><pressure value><E>
Example setpoint string; [xx] is ASCII Code Value
S0003 0200E S[53] = start command for setpoints
Bin Bcd
Bit command 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 the communication confirm
Pressure value command word
0200[30323030]
0200 = 20.0 %
E[45] = end command
PLC = > 上位机
a.Current pump status(Bit) word
b.Set pressure word 0 ~ 1000 = (0% ~ 100.0%)
c.Current pressure word 0 ~ 1000 = (0% ~ 100.0%)
d.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] = start command for readbacks
Bit status word
0001[30303031]

0 bit : 1 = Pump is ON
1 bit : 0 = Cycle is OFF
2 bit : 0 = no reset
3 bit : 1 = HP rinse pressure OK to Belt drive run
0 = HP rinse pressure NG
~
R2000

13 bit : system clock 2 second to communication check
Set pressure value
0199[30313939]
0199 = Current pressure 19.9% If not same with set, error
Current pressure value
0200[30323030]
0200 = Current pressure 20.0%
R0001000001990200E
Error code
00= No error in HP system
E[45] = end command
Proposed COM settings;
Baudrate 9600
Parity non
Start 1
Databits 8
Stopbits 1
Communication period is 0.3 second。

相关文档
最新文档