0% found this document useful (0 votes)
40 views1 page

Modbus Easycon

The document provides instructions for operating an Easycon FX3U485 PLC with MODBUS-RTU communication over RS485 ports. It describes setting communication parameters in data registers for the two RS485 ports and switching between them. Special relays and data registers are outlined for MODBUS communication status and error handling.

Uploaded by

Jose Brizuela
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views1 page

Modbus Easycon

The document provides instructions for operating an Easycon FX3U485 PLC with MODBUS-RTU communication over RS485 ports. It describes setting communication parameters in data registers for the two RS485 ports and switching between them. Special relays and data registers are outlined for MODBUS communication status and error handling.

Uploaded by

Jose Brizuela
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Easycon Operating instructions of FX3U485/Modbus

RS485 instructions;
*RS485-1 power-on default is FX programming port protocol;
*RS485-1 supports switching between Mitsubishi FX programming port protocol and
MODBUS-RTU protocol;
* communication parameters of RS485-1 are set in D8400, and communication
parameters of RS485-2 are set in D8420, which supports ADPRW to switch between
RS485-1 and RS485-2;
* The maximum length of data read and written by *ADPRW is 520, if it exceeds
6343 or 6363 fault;

name Effective
RS485-1 RS485-2 Detailed content R/W
station

Communi
cation Master/ Set the communication
D8400 D8420 format
D8420 slave format. See below for R/W
setting station details.

Select MODBUS master


MODBUS Master/ protocol when the value
D8401 D8421 Protocol slave is H0, and select MODBUS R/W
selection station slave protocol when the
value is H10(K16).
Communi
cation Master/ The latest error code in
MODBUS communication
slave
D8402 D8422 error
code station will be stored. R

Master/ The latest details of


Error slave the error will be stored.
D8403 D8423 details station R

Easycon focuses on the research and development and


production of PLC touch screen. Welcome to act as an agent to
distribute Easy Control King Gold with guaranteed quality.

RS485-1 RS485-2 name Effective Detailed content R/W


station

Step
where The step number of the
main R
D8404 D8424 communi
station first ADPRW
cation
error instruction with error
occurs will be stored.
The step number of ADPRW
instruction in MODBUS
communication will be
Commun
stored. (When the
D8407 ication instruction is not
D8427 main R
executed, 0 will be
step station stored.) The step number
of the last executed
number ADPRW instruction will
be kept.
The When the communication
current is retried due to the
D8408 D8428 number of main response timeout of the R
retries slave station, the
station current number of
retries will be stored.

After the master station


sends the request, if the
slave station does not
respond within the set time,
the master station will send
the text again, or according
to the set number of retries.
(D8412,D8432) It is judged
that there is a timeout
error, and then the
Slave processing of this
D8409 D8429 main instruction is finished. R/W
station The setting range is 0~
station 32767, 1 = 10ms, and when it
is 0, it is 3 seconds.
Is timeout.

The delay refers to the delay


of receiving data and then
Master/ returning the data.
D8410 D8431 Send delay slave Setting range: 0 ~ 16382 R/W
station [ms],
default: 10ms.

RS485 RS485
Effective
name station Detailed content R/W
-1 -2
When the slave station
fails to respond within
the time set in the
response timeout of the
slave station, the master
station sends the text
until the set number of
retries is reached, and
D8412 D8432 Number of main R/W
the instruction processing
retries station will be ended due to
timeout error.
Setting range: 0 ~ 20
[times]. When setting a
value above 20, the number
of retries is 20.
passive Store the slave station
station passive number, with the setting
D8414 D8434 R/W
This site station range of 1 ~ 247.

Serial When a communication error


communication Master/
occurs, the error code
D8063 D8438 error slave R
code corresponding to the error
station
in MODBUS communication
will be stored.

0-FX programming port


communication
4-RS instruction
Action Master/ 5-RS2 instruction
D8419 D8439 mode slave 19-MODBUS communication R
display station master station
29-MODBUS communication
slave station

Special relay

Effective
RS485-1 RS485-2 name station Detailed content R/W

M8410 R/W
RS485-1/2 Off: RS485-1 Use ADPRW
use main instruction.
ADPRW station On: RS485-2 uses ADPRW
instruction instruction.
switching

M8029 OFF: the instruction is not R


being executed or the
End of
main instruction has not been
instruction
station completed.
execution
ON: instruction execution
is complete.

M8401 M8421 MODBUS main MODBUS R


In
station Communication center is
communication set to on.

M8402 M8422 MODBUS Master/ R


Set it ON when MODBUS
Communication slave
communication error occurs.
error occurred. station

M8403 M8423 MODBUS Master/ Once MODBUS R


Communication slave
communication error occurs,
error latch
station it is set to ON.

M8408 M8428 Retry R


occurred. main When the slave station fails
station to respond on time, it is set to
ON during the transmission
retry of the master station.

M8409 M8429 Timeout main Set the response R


occurred. station timeout to on.

Slave station protocol soft component address (bit component address)

MODBUS-RTU Slave station soft component address


Soft component
Read out special Read/write address

0x0000~0x1DFF 0x0000~0x1DFF M0~M7679

0x1E00~0x1FFF 0x1E00~0x1FFF M8000~M8511

0x0000~0x2FFF 0x0000~0x2FFF S0~S4095

0x3000~0x31FF 0x3000~0x31FF TS0~TS511

0x3200~0x32FF 0x3200~0x32FF CS0~CS255

0x3300~0x33FF 0x3300~0x33FF Y0~Y377

0x3400~0x34FF —— X0~X377

Word address
MODBUS-RTU Slave station soft component address
Soft component
Read out special Read/write address

0x0000~0x1F3F 0x0000~0x1F3F D0~D7999

0x1F40~0x213F 0x1F40~0x213F D8000~D8511

0xA140~0xA33F 0xA140~0xA33F TN0~TN511

0xA340~0xA407 0xA340~0xA407 CN0~CN199

0xA408~0xA477 0xA408~0xA477 CN200~CN255(32 位)

0xA478~0xA657 0xA478~0xA657 M0~M7679

0xA658~0xA677 0xA658~0xA677 M8000~M8511

0xA678~0xA777 0xA678~0xA777 S0~S4095

0xA778~0xA797 0xA778~0xA797 TS0~TS511

0xA798~0xA7A7 0xA798~0xA7A7 CS0~CS255

0xA7A8~0xA7B7 0xA7A8~0xA7B7 Y0~Y377

0xA7B8~0xA7C7 —— X0~X377
RS485-1/RS485-2 communication parameter setting D8400/D8420 setting instructions

content
Bit number name
0(bit=OFF) 1(bit=ON)
b0 data sheet *α
7 place 8 place
b2 b1
b1 (0 0)-No parity
b2 odevity
(0 1)--odd number (ODD)
(1 1)--even number (EVEN)

b3 Stop bit 1 bit 2 bit


b4 b7 b6 b5 b4 b7 b6 b5 b4
(0 0 1 1):300 (1 0 0 0):9600
b5
rate (0 1 0 0):600 (1 0 0 1):19200
b6
(0 1 0 1):1200 (1 0 1 0):38400
b7 (0 1 1 0):2400 (1 0 1 1):57600
(0 1 1 1):4800 (1 1 0 1):115200
b8~b11 forbidden Set as 0
b12 b14 b13 b12

b13 (0 0 0):FX Programming port protocol

(0 0 1): RS Protocol-free communication


b14
(0 1 0):RS2 Protocol-free communication

(0 1 1): MODBUS protocol (D8401/D8421


Set up master-slave station)
b15 forbidden Set as 0
*: When the data bit is in 7 bits, parity cannot be selected-there is no test (report
6304 failure);
*FX programming port protocol: data length 7, stop bit 1, parity EVEN is fixed, and
the rate can be set;
*MODBUS-RTU protocol: data length, stop bit, parity and speed can be set;
*RS instruction: data length, parity, stop bit and speed can be set;
*RS2 instruction: data length, parity, stop bit and speed can be set;
* choose MODBUS master station protocol when *D8401/D8421 value is H0;
Select MODBUS slave protocol when the value of D8401/D8421 is H10.
RS485-1/RS485-2 supports the following instructions:

Types of supported soft compone


function order
Bit element Word element
Bit read command 1(H1)、2(H2) X、Y、M、S、T、C、special M ——
Bit write command 5(H5) Y、M、S、T、C、specia M ——
Register read X、Y、M、S、T、C、specia M D、T、C、specia D
command 3(H3)、4(H4)
Register write 6(H6) Y、M、S、T、C、specia M D、T、C、specia D
command
Register bulk 16(H10) Y、M、S、T、C、specia M D、T、C、specia D
write
* Using register to read bits, one register will read the state of 16-bit elements;
* Using register to write bits, a register will write the state that will affect 16-bit
elements;

The functional elements of RS485-1 RS instruction are as follows


M8401-RS instruction is being sent
M8402-RS instruction is being sent
M8403-RS instruction receiving flag
M8409- communication timeout flag M8161-8-bit processing mode (ON-8 bits, OFF-16 bits)
D8400- selection of communication parameters and protocols
D8402-RS instruction sends data remainder Number of D8403-RS instructions received

Setting of time-out for receiving D8409-RS instruction (1=10ms, default 50=500ms)


D8419- Sign of communication in progress
* The maximum data sent and received by RS instruction is 520 (exceeding 6343 6363).
The functional elements of RS485-2 RS instruction are as follows:
M8421-RS2 instruction is being sent. M8422-RS2 instruction sending

M8423-RS2 instruction receiving flag


M8429- communication timeout flag
D8420- Selection of communication parameters and protocols
D8422-RS2 instruction sends data remainder Number of D8423-RS2 instructions received

Setting of instruction receiving timeout for D8429-RS2 (1=10ms, default 50=500ms)


D8439- Sign of communication in progress
* The maximum data sent and received by RS2 instruction is 520 (exceeding 6706).

You might also like