19
8.1.7.
CHANGING SEQUENCE
To change the Sequence of the Lumiplus through Modbus, is necessary to complete two steps.
1.
It is necessary to choose the predefined sequence.
2.
It is necessary to make a Request Update Sequence & Speed.
Choosing the predefined sequence:
The way to choose the sequence is using the Requests Holding Register 0x26.
There is 8 predefined sequences to be chosen. From 0x1 to 0x8 (from 1 to 8).
Example: changing the sequence to 8.
Transmitting message 30 10 00 26 00 01 02 00 08 F9 01
Where:
30 is the slave address.
10 is the function used. Write multiple registers.
00 26 is the address of the first Holding Register to be set.
00 01 is the number of Holding Registers to be set, 1 in this case.
02 is the number of bytes of data to be sent.
00 08 is the sequence to be send (the sequence 8).
F9 01 is the CRC.
Request Update Predefined Sequence & Speed:
A way to request an Update Predefined sequence & speed is using the bit-address mode on the
Requests Holding Register 0x21, setting to 1 the coil 0x214.
Transmitting message: 30 0F 02 14 00 01 01 01 1C 6E
Where:
30 is the slave address.
0F is the function used. Write multiple coils.
02 14 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 the request Update.
1C 6E is the CRC.
Also, is possible to make a Request Update predefined Sequence & Speed by setting the Holding
Register 0x21 to 0x10.
Содержание 57434
Страница 3: ...3 ...