192
Example: setting Relay2 on.
Table 5-22
Query
Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7~32
FAH 05H 00H 01H FFH 00H 00H
Response
Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7~32
FAH 05H 00H 01H FFH 00H 00H
5.3.14 Format of function code 02H
Function code 02H is used to read DI status in MODBUS-RTU. In PROFIBUS-DP,
the format of function code 02H is dened as follows:
Query
Table 5-23
Frame Bytes Caption
Byte1 Channels can be chosen from 1 to 8
Byte2 02H
Byte3 starting address high byte
Byte4 starting address low byte
Byte5 quantity of digital inputs high byte
Byte6 quantity of digital inputs low byte
Byte7~32 0
Response
Table 5-24
Frame Bytes Caption
Byte1 The channel of inquiry frame
Byte2 02H
Byte3 byte count
Byte4 inputs status1