DATA:
DATA :
PLC程序
问题1:通信序列明明是00,而PLC程序中控制字2怎么是#1呢?
问题2:PLC程序中MOV &5 D250 这是用来做什么呀?
问题3:上面的发送和接收数中为什么只有帧头,data,帧毛,而没有数据长度,和接收地址呢?
问题4:
问题5:这个S0003 0200E怎么跟D260联系起来?R0001 0000 0199 0200E怎么跟D250联
上位机= > PLC
1.Bit command word
2.Setpoint word to pump 0 ~ 1000 = (0% ~ 100.0%)
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
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;
Baudrate9600
Parity non
Start1
Databits8
Stopbits1
Communication period is 0.3 second