EasyManua.ls Logo

Coolmay MX2N Series - 9.4 Modbus-RTU Master Station Instructions

Coolmay MX2N Series
39 pages
Print Icon
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...
MX2N series HMI PLC all in one programming manual
29
*2D8121 is MODBUS-RTU slave station number setting
*3When the data bit is in 7 bit,the parity can’t be selected---No checking. (6038 failure).
*Mitsubishi Programming port protocolData length is 7stop bit is 1Parity EVEN is fixed
the rate can be set
*MODBUS-RTU protocoldata length, stop bit, parity, rate can be set;
*RS instruction Data length, stop bit, parity, rate, start character, and end character can all be
set.
9.4Modbus-RTU Master station instructions
Master read slave data usage instruction
* Transfer the data of register from address 0 of 1
st
station to D0
M1--low 8 bits indicate the slave address, high 8 bits indicate the sent instruction;
Such as: H301-command 03 (read register instruction), slave address 01; if the high 8 bit is 0,
then the command is default as 03;
M2--slave element address; (Slave address of MX2N series PLC refers to slave element
address table);
D - master station data register, this register holds the data which read from the slave station;
N -- read data length (1~64);
Master write slave data usage instruction
* Write the data of D0 to the register with the 1
st
slave in address 0
M1--The lower 8 bits indicate the slave address ,the high 8 bits indicate the sent instruction;
Such as: H601-command 06 (read register instruction), slave address 01; if the high 8 bit is 0,
the command defaults is 06;
M2--slave component address; (Slave address of MX2N series PLC refers to slave element
address table);
If the address is set to 0, it means that data is written to all slaves;
D -- the master station data register, which holds the data to be written to the slave;
N -- write data length;
When using commands 05 (write bit) and 06 (write register),act as 1 regardless of the
length is set.
When using H10 (K16) to write multi-bit registers, the data length (1~64);
Special Note:
1. FROM and TO can be used many times in the program. When multiple instructions