![Coolmay MX2N Series Programming Manual Download Page 30](http://html.mh-extra.com/html/coolmay/mx2n-series/mx2n-series_programming-manual_2661266030.webp)
MX2N series HMI PLC all in one programming manual
30
are executed at the same time, the system will communicate in turns. If the communication is
overtime, M8129 turns ON and reports 6306 fault and exits this communication, and
records
this overtime station number in the D8122 register,execute
the next communication
instructions;
2. The FROM/TO instruction cannot be used with the RS instruction in the program at
the same time, reporting
6609
failure;
3. The maximum data length of the FROM/TO instruction:
bit (1~64), register (1~64)
;
4. The communication parameters of the master station and the slave station must be set
same to communicate, such as data length, parity, stop bit, and rate;
5. When using the 05 command to set the slave station component, such as:
TO H501
K4000 D0 K1
—
Set the M0 state of slave No. 1. If D0 is equal to 0, slave M0 is OFF; when
D0 is non-zero, slave M0 is ON;
6. When using the TO command, you can send instructions to all slaves, and only need
to set the slave address to 0.
For example, TO H600 K0 D0 K3:
Write D0, D1, D2 of master station to register
addresses 0, 1, 2 of all slaves.
D8129
—
Communication timeout setting, default 500ms; setting technique, set D8129
larger,when writing program communication is normal, run a period of time, monitor the
value of D8124, D8129 equals D8124 plus 3 (only for reference );
Note: 1) The function needs to be enabled in IO setting and activation software,
otherwise it will report 6506 fault (unsupported instruction) when using FROM/TO
instruction;
9.5Modbus-RTU Protocol slave station element address
Bit
component
Addres
s
Bit
component
Bit
component
Bit
component
Addres
s
Bit
component
Addre
ss
Bit
component
Addr
ess
X0
0
X40
32
Y0
300
Y40
332
S0-S999
1000-1
999
X1
1
X41
33
Y1
301
Y41
333
T0-T255
2000-2
255
X2
2
X42
34
Y2
302
Y42
334
C0-C255
3000-3
255
X3
3
X43
35
Y3
303
Y43
335
M0-M1535
:
FX1N
4000-5
535
X4
4
X44
36
Y4
304
Y44
336
M0-M3071
:
FX2N
4000-7
071