1. INTRODUCTION TO MODBUS AND PRODUCT Thank you very much for purchasing our Lumiplus with MODBUS-RTU features. This manual is intended for professional installer, if you are not, please consult to your official distributor. MODBUS is an open field bus successfully used through the world to connect field devices to a main controller.
2. ELECTRICAL CONNECTIONS Image 1 Electrical Connection Note: some manufacturers assign for the RS-485 port the “A” connection as a “+”, and “B” as a “-“, while others reverses this nomenclature. The Lumiplus uses the “A” as “+”, and the “B” as “-”. Mind this aspect when connecting to the bus devices coming from different manufacturers.
4. BUS ISOLATION AND TERMINATION RESISTORS If the communication bus is accessible for the user, it shall be double insulated. As far as in general the accessibility of the bus to users will depend on each single installation, safety isolation has been implemented in the Lumiplus physical bus layer.
5. PANEL INDICATOR The Lumiplus module has a LED that is ON when the module is powered. When data is transmitted through Modbus, this LED blinks. Image 3 Lumiplus Panel Indicator 6. MODBUS FUNCTIONS 6.1. FUNCTIONS SUPPORTED Please, be careful at the possible actuations, and make sure that the function used is the correct. BIT ACCESS MODE Functions in bit access mode are implemented according to the MODBUS-RTU standard described in http://www.Modbus.org/docs/Modbus_Application_Protocol_V1_1b.pdf...
6.2. EXCEPTION RESPONSES Exception responses are implemented according to the MODBUS-RTU standard described in the chapter MODBUS exception responses: http://www.Modbus.org/docs/Modbus_Application_Protocol_V1_1b.pdf The exceptions implemented are from 1 to 3. 7. DEVICE DESCRIPTION AND CONFIGURATION 7.1. GENERAL DESCRIPTION If a request is made through Modbus and later another one with the remote control, the Modbus will indicate the color set through Modbus, it is because the unidirectionality between Modbus module and the Lumiplus modulator controlled trough remote control.
7.2. STATE MACHINE DIAGRAM When the sistem Powers ON, the state is always Start. The Start mode does not indicates a Light ON, it only idicates the alimentation of the Lumiplus, and NO request has been made after alimentation. It is possible to change the Start Predefined Color, Sequence and Speed, allso is possible to configure the Start mode with all the Lights OFF.
7.3. ADDRESS AND BAUD RATE SELECTION 7.3.1. ADDRESS SETTING The address of the Lumiplus in the bus is set through the 0x00 Holding Register. ID_Address: Address of the Lumiplus in the bus. Factory setting: 0x30. Suggested range: 0x30 - 0x3F. The factory default for the Lumiplus is (0x30).
COM_Setup: Communication setup Factory setting: 9600, 8E1 Supported values: 9600, 8E1 19200, 8E1 9600, 8N2 19200, 8N2 9600, 8N1 19200 8N1 7.4. BROADCASTING Broadcasting is not supported by the Lumiplus. 7.5. WATCHDOG The watchdog is a feature implemented in the Lumiplus aimed to check if the communications in the bus keep alive.
Example: Set watchdog triggering time to 30s: Transmit Message: 30 10 00 10 00 01 02 00 1E 7D 59 Where: 30 is the slave address. 10 is the function used. Write Multiple Registers. 00 10 is the address of the first Holding Register to be written. 00 01 is the number of Holding Registers to be written.
00 Low Byte. Is not considered, 00 is a correct value. FC 80 is the CRC. 7.5.2 Watchdog SETUP and 7.5.3 Watchdog predefined Color/Sequence should be configured in conjunction. See the example 7.5.3 Watchdog predefined Color/Sequence, defining the Color / Sequence to be executed when watchdog triggers.
8. OPERATION MODES 8.1. BASIC MODE In this section it is assumed that a successful connection has been established with the Lumiplus and therefore, address, baud settings and watchdog behavior has been already set. 8.1.1. START PREDEFINED COLOR/SEQUENCE The Start Predefined Color/Sequence, is the color or sequence in which will work the Lumiplus when it Powers ON.
8.1.2. CHECKING CURRENT STATE The state in which the Lumiplus is currently set is available through Status Input Register 0x00. This register has a different meaning for the Low byte and for the High byte. The less significant bit is used to show if an error has occurred and is set to 1 whenever an error exist. Detailed information of the error/errors detected can be requested to the Alarms Input register at 0x01.
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.
Transmitting message: 30 10 00 21 00 01 02 00 01 38 B0 Where: 30 is the slave address. 10 is the function used. Write multiple registers. 00 21 is the address of the first Holding Register to be set. 00 01 is the number of Holding Register to be set, 1 in this case.
Page 18
Example: Transmitting message 30 10 00 25 00 01 02 00 01 39 34 Where: 30 is the slave address. 10 is the function used. Write multiple registers. 00 25 is the address of the first Holding Register to be set. 00 01 is the number of Holding Register to be set, 1 in this case.
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.
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).
8.1.9. SLEEP TIME Lumiplus has a Sleep mode that can be configured. After the time configured, the Lumiplus will turn all the lights OFF. The user can choose one of the 8 sleep times configured, and there is no possible to choose a different time of these.
02 is the number of bytes of data to be read. 80 is the high byte of data read, it indicates Watchdog Error 00 is the low byte of data read, it indicates that does not have alarms in the low byte. A4 40 is the CRC.
The bit-interpretation of the Input Register 0x01 error register is shown below, the bits 0 to 14 are not used, but it can be read without limitation, while .bit15 shows the Watchdog MODBUS error. 9. BASIC MODBUS-RTU REGISTER MAP The table shown in this chapter is our exclusive and original register map with the name of the function and their address.
Page 24
Name Holding Input Coils Inputs Description Registers Registers ID_Address 0x00 This parameter is the address of the Lumiplus, by default it is set to 0x30. If the installation has more than one device connected in the bus, is necessary to change the ID_Adress of the device before connecting another one.
Page 25
Name Holding Input Coils Inputs Description Registers Registers Watchdog_time 0x10 This parameter defines the time in seconds that can elapse between the last communication and the actuation of the watchdog. If it is set to 0, the Watchdog is disabled. Range: 0 – 65535.
Page 26
Name Holding Input Coils Inputs Description Registers Registers Status 0x00 This parameter indicates in which State is the Lumiplus, and if there is any alarm. The Low byte indicates the alarm and if some light is ON. low byte Alarm .bit 0 0x00 Some alarm has been activated (if it is set to 1).
Page 27
Name Holding Input Coils Inputs Description Registers Registers Predefined color 0x25 This parameter determinates the color of the light. Once chosen, a request update color is necessary to see the color change. The colors are from 1 to 12. Predefined Sequence 0x26 This parameter determinates the sequence of the light.
10. TROUBLESHOOTING GUIDE Problem Solution a) Verify cable polarity A,B. b) Verify ground connection between Master and Slave. c) With a long bus cable, check the termination resistors according with the chapter 4 of this manual. d) Make sure than the baudrate and the bit settings are the same on Master and Slaves.
this manual. d) Configure a lower baudrate in Master and Slaves. a) Verify if the "messages error rate" of the bus is too high. b) Verify if the bus is saturated with messages, in this case the time Unexpected WatchDog errors between two messages to the same Slave could be bigger that the WatchDog time configured in the Slave.
Need help?
Do you have a question about the LumiPlus FLUIDRA CONNECT and is the answer not in the manual?
Questions and answers