EasyManua.ls Logo

Xinje XD5 - Page 254

Xinje XD5
389 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
253
Y0
Y0
COLW K1 H4800 Y0 K2
COLW K2 H4800 Y0 K2
COLW K3 H4800 Y0 K2
The program takes serial port 2 as example, so corresponding communication flag is the serial
port 2’s. About other serial port, please refer to appendix 1. Serial port, please refer to
appendix 1.
Method 2 use broadcasting function
Y0
Y0
COLW K0 H4800 Y0 K2
Broadcast station is 0, all the slaves will response but not reply.
Broadcast cannot read.
PLC1
When master Y0 status changes, it broadcasts the status to all the slaves. The synchronization
of three PLCs is better than method 1.
6-2-8Application
Example 1:
Following are the programs for reading and writing Modbus communication between 1
master station and 3 slave stations.
Program operation:
(1) Write master PLC Y0~Y11 status to slave PLC 2 Y0~Y11
(2) Read slave PLC 2 Y0~Y11 to master PLC M10~M19
(3) Write master PLC D10~D19 to slave PLC 2 D10~D19
(4) Read slave PLC 2 D10~D19 to master PLC D20~D29
(5) So as slave PLC 3 and 4
The following is a comparison of XC and XD series Modbus-RTU communication programs
for reference. The communication programs in XC series are as follows:

Table of Contents

Related product manuals