191
5.3.13 Format of function code 05H
The message with function code (05H) in MODBUS-RTU forces a single relay
either on or o. The data value FFOOH will set the relay on and the value 0000H
will turn it o. All other values are invalid and will not aect that relay.
In PROFIBUS-DP, the format of function code 05H is dened as follows:
Query
Table 5-20
Frame Bytes Caption
Byte1 FAH
Byte2 05H
Byte3 outputs address high byte
Byte4 outputs address low byte
Byte5 outputs value high byte
Byte6 outputs value low byte
Byte7~32 0
Note: Because PROFIBUS-DP V0 exchanges information data periodically,
controlling information such as function code 05H should be used carefully.
Response
The normal response to the command request is to retransmit the message as
received after the relay status has been altered.
Table 5-21
Frame Bytes Caption
Byte1 FAH
Byte2 05H
Byte3 outputs address high byte
Byte4 outputs address low byte
Byte5 outputs value high byte
Byte6 outputs value low byte
Byte7~32 0