GE GFK-0804B 用户手册

下载
页码 160
B
B-5
GFK–0804B
Appendix B Micro PLC Protocol
Read Analogs
ID 02 count addr_high addr_low
Reply:
ID 02 count addr_high addr_low data1 data2 ...
ID
– PLC ID number
count
– number of words (registers) to read
addr_high
– High byte of address of the first register to read
addr_low
– Low byte of address of the first register to read
dataN
– Data read
Read Program Memory
ID 03 count addr_high addr_low
Reply:
ID 03 count addr_high addr_low  data1 data2 ...
ID
– PLC ID number
count
– number of instruction words to read
addr_high
– High byte of address of the first instruction to read
addr_low
– Low byte of address of the first instruction to read
dataN
– Data read
Write  Discretes
ID 04 count addr_high addr_low data1 data2 ...
Reply:
ID 04 count addr_high addr_low
ID
– PLC ID number
count
– number of bits (discretes) to write
addr_high
– High byte of address of the first discrete to write
addr_low
– Low byte of address of the first discrete to write
dataN
– Data to write
Write  Analogs
ID 05 count addr_high addr_low data1 data2 ...
Reply:
ID 05 count addr_high addr_low
ID
– PLC ID number
count
– number of words (registers) to write
addr_high
– High byte of address of the first register to write
addr_low
– Low byte of address of the first register to write
dataN
– Data to write