Communications
5
3.3 Operation - write (06H)
This operation enables writing a value to 1 register of controller:
Command:
Address of
controller
06H Address of register Data CRC
1 byte 1 byte 2 bytes (1. byte higher) 2 bytes (1. byte higher) 2 bytes
Response if the command is performed (is identical with the command):
Address of
controller
06H Address of register Data CRC
1 byte 1 byte 2 bytes (1. byte higher) 2 bytes (1. byte higher) 2 bytes
Example: writing to register 100 (64H, set point value), controller at the address
12 (0CH)
Command: 0C 06 00 64 01 C8 C9 0E
Response: 0C 06 00 64 01 C8 C9 0E
Response, error report:
Address of
controller
Command +
80H
Error reports CRC
1 byte 1 byte 1 byte 2 bytes
Error reports:
• 01 – error of command entered, error in CRC.
• 02 – register does not exist or is intended only for reading.
• 03 – data are beyond the limits.
• 04 – writing to register failed (e.g. error of hardware, too high interference …)
Example: error of the register entered
Command: 0C 01 00 64 04 20 7F D0
Response: 0C 81 01 10 53
Example: error, the register does not exist
Command: 0C 06 00 69 04 20 5B D3
Response: 0C 86 02 52 62
Example: error, data beyond the limits
Command: 0C 06 00 64 4E 20 FD 70
Response: 0C 86 03 93 A2
3.4 Operation - back inquiry:
This operation is only intended for the detection of the controller at the relevant address.