How Can We Help?
< All Topics
Print

About RX/WX instructions

Question

Question

I want to transfer data between PLCs using RX / WX instructions.
How should I set up a ladder program?

Answer

Answer

Please refer to the figure below for the ladder program.

For details, refer to 7-2 “Communication module instructions” in the “S Series Programming Manual”.

General-purpose communication port setting



Set the station number of the master station (PLC that executes RX / WX) to “1”.

Select only one protocol to use. (Red frame in the figure below)


From the KPP “PLC” menu, go to “PLC settings” → “General-purpose communication port settings”.

Set communication conditions such as protocol / station code / baud rate to be used.
KPP_PlcPortSel


You can do the same as Method 1 by setting a value in the special register with the ladder software.

For the address of the special register, refer to the user’s manual of each PLC.
RX_WX_smpl1


When port 1 of SJ-ETHER is used as the master station, it is necessary to set it to forced RUN mode (SW of RUN / TERM is set to RUN).

The communication port setting is also executed when the forced RUN mode is entered. (See sample ladder)
RX_WX_smpl2

Communicating flag

For the communication flag address of the CPU built-in port, refer to the user’s manual of each PLC.

Module mounting position

The upper byte is the slot number of the own station, and the lower byte is the station number of the other party.

When communicating from the communication module installed in slot 1 to the communication module of station number 2, it is LDS K102.

The slot numbers of the CPU built-in ports are port 1: F1, port 2: F2, and port 3: F3.

(For SJ-ETHER, port 1: F0, port 2: F1)

Therefore, when communicating from the CPU built-in port 2 to the communication module of station number 3, it is LDS KF203.
RX_WX

Related manual

Related keywords

Inquiry

Next Analog configuration volume
Table of Contents