4. Communications
4.5 Command Code
4.5.1 Command Code: 01, Read Status of Contact (Input point X is not included)
Number of Points (max) = 255 (Dec) = FF (Hex)
Example:Read contacts T20~T56 from Slave ID#1
PC→PLC “:01 01 06 14 00 25 BF CR LF”
Sent message:
Assume Number of Points in sent message is n (Dec), quotient of n/8 is M and the remainder is N.
When N = 0, Bytes Count in feedback message will be M; when N≠0, Bytes Count will be M+1.
PLC→PC “:01 01 05 CD 6B B2 0E 1B D6 CR LF”
Feedback message: