Modbus Rtu: HMI Setting

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

MODBUS RTU

MODBUS RTU CONTROLLER http://www.modbus.org

HMI Setting:
Parameters PLC type Com port Baud rate Recommend Modbus RTU RS485 9600 RS232/RS485 9600/19200/38400/57600/ 115200 Parity bit Data Bits Stop Bits HMI Station No. PLC Station No. Even 8 1 0 0 0-255 Even, Odd, None 7,8 1,2
Does not apply to this protocol

Option

Notes

Online Simulator Extend address mode

YES YES

PLC Setting:
Communication mode Modbus RTU protocol

Device address:
Bit/Word B B B B B W W DW W Device Type 0x 0x(0x0f) 1x 3x_Bit 4x_Bit 3x 4x 5x 6x Format ddddd ddddd ddddd ddddd(dd) ddddd(dd) ddddd ddddd ddddd ddddd Range 1-65535 1-65535 1-65535 100-6553515 100-6553515 1-65535 1-65535 1-65535 1-65535 Memo Output bit Write Multiple Coils Input bit (read only) Input Register bit (read only) Output Register bit Input Register (read only) Output Register 4x double word swap 4x single word write

NOTE: Address type 5x are mapping to Hold Reg. The communication protocol of 5x almost same as 4x except 5xmaking double word swap. If 4x have following information

Address Data in word Data

1 0x1

2 0x2

3 0x3

4 0x4

5 0x5

6 0x6

...

0x20001

0x40003

0x60005

For 5x, it become Address Data in word Data 1 0x2 2 0x1 3 0x4 4 0x3 5 0x6 6 0x5 ...

0x10002

0x30004

0x50006

Modbus RTU function code: 0x 0x01 Read coil 0x05 write single coil 1x 0x02 Read discrete input N/A for write operation 3x 0x04 Read input register N/A for write operation 4x 0x03 Read holding register 0x10 write multiple register 5x 0x03 Read holding register 0x10 write multiple register ( note: reverse word order in double word format) 3xbit is equivalent to 3x 4xbit is equivalent to 4x 6x 0x03 Read holding register 0x06 write single register ( note: use 6x device is limited to device of one word only )

Wiring diagram:
MODBUS RS232 PORT
MT8000 RS-232 9P D-SUB COM1 3 TX 2 RX 5 GND COM2 4 TX 6 RX 5 GND COM3 7 TX 8 RX 5 GND Modbus RTU Controller RS232 Port RXD TXD GND RTS CTS

MODBUS RS422/485 PORT


MT8000 COM1 RS-485 4w 1 2 3 4 5 RXRX+ TXTX+ GND Modbus RTU Controller RS422 Port TXTX+ RXRX+ GND

MT8000 RS-485 2Wire 9P D-SUB COM1 1 RX2 RX+ 5 GND COM3 6 Data9 Data+ 5 GND

Modbus RTU Controller RS485

DD+ GND

You might also like