20
8.1.8.
CHANGING SPEED
To change the Speed of the Lumiplus through Modbus, is necessary to complete two steps.
1.
It is necessary to choose the predefined speed.
2.
It is necessary to make a Request Update Sequence & Speed.
Choosing the predefined speed:
The way to choose the sequence is using the Requests Holding Register (0x27).
There is 8 predefined speed to choose. From 0x1 to 0x8 (from 1 to 8).
Example: changing the speed to 8.
Transmitting message 30 10 00 27 00 01 02 00 08 F8 D0
Where:
30 is the slave address.
10 is the function used. Write multiple registers.
00 27 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 sent.
00 08 is the speed send (speed 8).
F8 D0 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. The simplest way is 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 ...