![CAI 700M Скачать руководство пользователя страница 188](http://html1.mh-extra.com/html/cai/700m/700m_operators-manual_3331460188.webp)
700M HFID
6-2-15
188
Code 05
This function code is used to write a single output to either ON or OFF in a remote device.
The requested ON/OFF state is specified by a constant in the request data field. A value of
FF 00 hex requests the output to be ON. A value of 00 00 requests it to be OFF. All other values
are illegal and will not affect the output.
The Request PDU specifies the address of the bit to be forced. Bits are addressed starting at zero.
Therefore the bit numbered 1 is addressed as 0. The requested ON/OFF state is specified by a
constant in the Bit Value field. A value of 0xFF00 requests the bit to be ON. A value of 0x0000
requests the bit to be off. All other values are illegal and will not affect the bit.
The normal response is an echo of the request, returned after the bit state has been written.
Request
Function Code
1 Byte
0x05
Output Address
2 Bytes
0x0000 to 0xFFFF
Output Value
2 Bytes
0x0000 to 0xFF00
Response
Function Code
1 Byte
0x05
Output Address
2 Bytes
0x0000 to 0xFFFF
Input Registers
2 Bytes
0x0000 to 0xFF00