Chap.12 Modbus Rtu Master
Chap.12 Modbus Rtu Master
Chap.12 Modbus Rtu Master
(1) Characteristics of RTU mode (a) It adopts hexadecimal number for communication. (b) Starting character indicates unit No. and the end of frame indicates CRC error check for identifying the frame. (c) It identifies start and end of the frame by adding idle time of 1 bit. (d) It has at least 3.5 character time of interval between frames and when passing 1.5 character time, it is regarded as independent frame. (2) Address Area (a) It is composed of 1 byte. (b) When using XGT Cnet I/F module, 0~31 can be applied for the unit No. (c) 0 is used for client local number. (d) Server includes its address to the response frame to show a clients response. (3) Data Area (a) It transmits data through hexadecimal number(Hex.) and data structure changes depending on each function code. (b) It replies with response data when receiving normal frame. (c) It replies with error code when receiving abnormal frame. (4) Error Check Area Through CRC checking method of 2 byte, it judges whether the frame is normal or not
(5) MODBUS Address Regulations The address of data starts from 0 and it is equal to the value obtained by subtracting 1 from MODBUS memory. Namely, MODBUS address 2 is the same as address 1 of data.
12-1
12.2.1 RS-232C
When connecting MODBUS communication through RS-232C mode, the wiring method is the same as general wiring method for RS232C.
12-2
12.2.2 RS-422
When connecting MODBUS communication through RS-422 mode, the wiring method is the same as general wiring method for RS-422.
12.2.3 RS-485
When connecting MODBUS communication through RS-485 mode, the wiring method is the same as general wiring method for RS-485.
12-3
(1) Connection Setting Select Online->Connection Setting. After setting connection options for user environment, click Connection. (2) Reading I/O Data Select Online->Reading I/O Data to interpret the information of module embedded in the current base.
12-4
(3) Double-click the related Cnet I/F module to execute basic setting screen and establish communication mode, communication speed, modem type, data bit, stop bit, unit No. of connection setting menu. (4) Select RTU server for operation mode. (a) If you select MODBUS RTU server for operation mode, executing MODBUS is active. (5) Setting MODBUS (a) Starting address of bit reading area : Indicates the starting address of bit reading area with 5 digits. The former 4 digits indicate word value and the remaining 1 digit means bit value. th th Ex.) In the case of M00000 : The 0 bit of 0 word of M device is set as starting address of bit reading area. (b) Starting address of bit writing area : Indicates the starting address of bit writing area with 5 digits. The former 4 digits indicate word value and the remaining 1 digit means bit value. th th Ex.) In the case of M00100: The 0 bit of 10 word of M device area is set as starting address of bit reading area. (c) Starting address of word reading area: Indicates the starting address of word reading area with 4 digits. th Ex.) In the case of M00200: The 200 word of M device area is set as starting address of word reading area. (d) Starting address of word writing area: Indicates the starting address of word writing area with 4 digits. th Ex.) In the case of M00300: The 300 word of M device area is set as starting address of word writing area. (6) Writing Parameter (a)Click Online-Writing parameter. (b)After clicking the module whose basic setting is completed at basic setting, click OK button. (c)After clicking OK button, complete Parameter Writing and reset the module individually. (7) Checking operation (a) Click Online-System Diagnosis (b) After clicking the related module, press the right mouse button for frame monitoring and status by services to check whether communication is normal or not.
12-5
(1) Setting controller Select Schneider Electric Industry for the manufacturer and for the item, select MODBUS RTU Master. (2) Connection Property Select the proper connection type for your own working environment. (3) Setting detailed connection option Select the proper transmission speed, data bit, parity, stop bit for your own working environment.
The unit No. is the opposite devices No. that is under MODBUS communication. If you have wrong unit No., time out will be displayed at the upper place of XGT Panel screen. Check the unit No. again. If there is no menu to set unit No. at PLC or PLC communication module, set the unit No. as 0 at XP-Builder. 12-6
Notice (1) Suggestions For the details on device, refer to MODBUS Protocol manual of Schneider. Use it within device area. The maximum device value may be different depending on PLC so refer to the PLC manual to be connected.
12-7