16
30 is the slave address.
04 is the function used. Read input registers.
02 is the number of bytes to be read.
00 is the high byte, it indicates that is in Start Mode
02 is the low byte, it indicates some light is ON.
45 35 is the CRC.
In the example below, the time watchdog has been activated and the time without communications
has exceeded the watchdog time:
The response is 30 04 02 01 01 04 A4, that indicates Watchdog State with watchdog alarm.
Where:
30 is the slave address.
04 is the function used. Read input registers.
02 is the number of bytes to be read.
01 is the high byte, it indicates that is in Watchdog state.
01 is the low byte, it indicates that there is some alarm.
04 A4 is the CRC.
8.1.3.
ACTUATOR CHANGE REQUEST
Actuator change request can be sent to the Lumiplus through the Holding Register 0x21. However,
these requests can also be sent using a bit address mode starting on coil bit 0x210. Mind that you can
choose either register address mode or bit address mode. However, for clarification purposes and to
avoid misunderstandings, you should not mix both approaches as far as you do not have a clear idea
on what are you doing.
8.1.4.
REQUEST ON
To turn ON the lights of Lumiplus through MODBUS, the simplest way is setting to 1 the coil 0x210.
Example, bit address mode:
Transmitting message: 30 0F 02 10 00 01 01 01 ED AE
Where:
30 is the slave address.
0F is the function used. Write multiple coils.
02 10 is the address of the first coil to be set.
00 01 is the number of coils to be set, 1 in this case.
01 is the number of bytes of data to be sent.
01 is to set the request, and then turn ON the lights.
ED AE is the CRC.
Example, byte mode, Holding Register:
Содержание 57434
Страница 3: ...3 ...