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

FX3U PLC

MODBUS COMMUNICATION SETTINGS

Modbus setting Addresses


D8120 -Communication format setting

D8121- Communication Slave station number setting

D8129 –Slave response Time out setting in ms (0-32767)

Modbus internal coils


M8121- Send wait flag. When send is completed, M8121 is automatically reset.

M8122 - Send request flag. When send is completed, M8122 is automatically reset.

M8123 - Receive completion flag. When the data is received, M8123 is turned
ON, transfer the Receive data to another save destination, then reset
M8123.When M8123 is reset, the Programmable controller is set to the
receive wait status again

www.adbautomation.in Mobile: +91-8015868596


Communication format setting in D8120

Description
Bit No. Name 0(Bit = OFF) 1(Bit = ON)
B0 Data length 7 bit 8 bit
b2 b1
B1 (0,0):None
B2 Parity (0,1):Odd
(1,1):Even

B3 Stop bit 1 bit 2 bit


B4 b7 b6 b5 b4 b7 b6 b5 b4
B5 Baud {0,0,1,1}:300 {0,1,1,1}:4800
B6 Rate (bps) {0,1,0,0}:600 {1,0,0,0}:9600
B7 {0,1,0,1}:1200 {1,0,0,1}:19200
B8 Header None Yes(D8124)
B9 Terminator None Yes(D8125)
B10 Do not use
B11

b15 b14 b13 b12


{0, 0, 0, 0}:MITSUBISHI FX2N protocol
B12 (from machine)
B13 communication {0, 1, 0, 0}:MODBUS Slave (from
B14 protocol machine)
B15 {1, 0, 0, 0}: MODBUS RTU (Master,
IVRD,IVWR instruction)
{1, 1, 0, 0}:Free communication (RS
instruction, with CCD check)

www.adbautomation.in Mobile: +91-8015868596


Read data from slave

D0 - Station number (High byte) and Command code (Low byte)


D0= H103 means Slave ID = 1 (ID range 0-31) and Command code 03 ( Read
Holding regisers)

D1 - Slave start address to read the value

D2 - Master start address for store the received data (read addresses)

H1 - Channel number of RS485 port (High byte), No of data to be read (Low byte).
H indicates hexadecimal value
Read through the channel 0, No of data to be read 1 then value H1
Read through the channel 0, No of data to be read 16 then value H10

Note : Reset M8123(Receive completion flag) after data receive

Write data to slave

D0 - Station number (High byte) and Command code (Low byte)


D0= H106 means Slave id = 1 (Id range 0-31) and Command code 06 (single
register write)

D1 – Slave start address to write the value

D2 - Master start address for send data

H1- Channel number of RS485 port (High byte), No of data to be write (low byte).
H indicates hexadecimal value
Read through the channel 0, No of data to be read 1 then value H1

www.adbautomation.in Mobile: +91-8015868596


Note : Set M8122(Send request flag) before send the data

Master setting

Baud rate – 19200


Stop bit – 1
Data length - 8

Slave setting

Slave id - 2
Baud rate – 19200
Stop bit – 1
Data length - 8

www.adbautomation.in Mobile: +91-8015868596

You might also like