4.5
4.5
4.5
4.5 Application
Application
Application
Application example
example
example
example
In this chapter, there are two examples: communicate with Xinje XC series PLC and Xinje HMI.
4.5.1
4.5.1
4.5.1
4.5.1 MA-8X8YR
MA-8X8YR
MA-8X8YR
MA-8X8YR communicate
communicate
communicate
communicate with
with
with
with Xinje
Xinje
Xinje
Xinje XC
XC
XC
XC series
series
series
series PLC
PLC
PLC
PLC XC-32T-E
XC-32T-E
XC-32T-E
XC-32T-E
1
0
4 5
3
2
6 7
7
6
XC3-24R-E
0V
24V
B
A
Y0
COM0
Y1
COM1
Y2
COM2
Y3
Y4
Y10
Y11
Y6
Y7
Y5
COM3
PORT2
PORT1
X
Y
PWR
X10
X11
X12
X13
X14
X15
X7
X6
X5
X4
X3
X2
X1
X0
COM
COM
FG
GND
0 1 2 3
4 5
PWR
Y
X
Y6
Y7
A
B
Y2
COM0
Y1
Y3
Y4
Y5
COM1
Y0
24V
X1
X5
X6
X2
0V
X3
X7
X4
GND
X0
ERR
RUN
2 3
5
4
0 1
RS485+
RS485-
ON
1
2
1
2
3
4
OF
F
For this example, write the value of PLC coil into MA I/O points, read the value of MA I/O points
to PLC coil.
(1) Hardware connection: connect the MA-8X8YR com port A,B with XC-32T-E com port A,B.
Communication parameters setting: baud rate 57600bps, station number No.2.
For MA-8X8YR: baud rate 57600bps, set DIP switch 1-ON, 2-ON;
Station No.2, set DIP switch 1-ON, 2-ON, 3-OFF, 4-OFF.
For PLC XC-32T-E: set the COM2 baud rate to be 57600bps then write into PLC and restart.
(2) Corresponding Modbus address
The address corresponding relationship between MA and PLC:
0x133
Y5 Output point
8X8YR
,
16YR/T
0x134
Y6 Output point
8X8YR
,
16YR/T
0x135
Y7 Output point
8X8YR
,
16YR/T
0x136
Y8 Output point
16YR/T
0x137
Y9 Output point
16YR/T
0x138
Y10 Output point
16YR/T
0x139
Y11 Output point
16YR/T
0x140
Y12 Output point
16YR/T
0x141
Y13 Output point
16YR/T
0x142
Y14 Output point
16YR/T
0x143
Y15 Output point
16YR/T