Configuration Modbus -RS485 Parameters for Jazz unit – and connect to Unicloud with Modbus Slave connection type.
Use the example project I sent you and this is the explanation on every step of configuring the serial communication to RS485
Parameter |
Store into SI |
Function |
Network ID |
141 |
Range: 0-255. This is the Network ID number of the device on the network. You can either assign an ID via an MI, or directly via a constant number. Do not assign the same ID number to more than one device |
Time out |
142 |
Time out units:10 msecs; a Time out value of 100 is equal to 1 second. |
Retries |
143 |
This is the number of times a device will try to send a message. |
Maximum Time Delay |
144 |
Time units: 2.5 msec. |
Baud Rate |
145 |
Store the value into SI 145 to set the baud rate. Note that Jazz does not support the following baud rates: 110, 38400, 57600. In addition, ‘2’ Stop Bits is not supported. In Jazz controllers; use Function 310 to modify the default settings of an Add-on Port. Legal Baud rates are: 110 300 600 1200 2400 4800 9600 19200 38400 (store 384) 57600 (store 57600) |
Call MODBUS Configuration |
140 |
This must be the final parameter stored. Storing the value 600 into SI 140 configures the controller for MODBUS. Storing the value 599 into SI 140 configures the controller for MODBUS and also enables Unitronics' PC applications to access the PLC. |
After the parameters below have been stored into the appropriate SIs, initialize the COM port by storing 310 into SI 140.
SB 141 indicates whether the COM port has been successfully initialized with the new parameters successfully: 1 = success, 0 =fail.
Parameter |
Store to SI |
M91 |
Jazz: MJ20-RS |
Jazz: MJ20-PRG |
Baud Rate |
141 |
Legal Baud rates |
||
|
|
|
||
Data bits |
142 |
|
||
Parity |
143 |
|
||
Hardware Flow Control |
144 |
|
RS232:
Note that in order to implement RS485, you must write 2 to SI144 |
Always write 0 |
Time out |
145 |
Time out units:
|
||
Stop bits |
146 |
|
2 stop bits is not supported |
|
COM Init |
140 |
This must be the final parameter stored. Storing the value 310 into SI 140 initializes the COM port with the new parameters. |
Second setting
Wiring procedure:
RS485 Connector Pinout
Router parameters
Modbus commends to check connectivity first using the modbus serial master.
UniCloud
After you manage to made the connection with RS485 and read MI 10 for example, you need to connect device to Unicloud by “Modbus slave” connection type just follow the help files in Unicloud website/your organization.
Just follow the Unicloud section one by one and fill every thing like the guide tells you.
Mind that you are required to create Modbus slave serial number that will pop up like on the picture below:
Unicloud Help files for Modbus link: