3G series PLC and PLC integrated machine communication case

CX3G series PLCs all have a programming port (RS232), two communication ports (RS232 or RS485), and CAN ports are optional to meet users' external connection of several types of equipment.

The case is a master station and two slave stations. The case can be downloaded at the end of the article.


First, port support: RS485 (AB) / RS232 - support Mitsubishi programming port protocol, RS protocol and MODBUS protocol;


2. The special relays involved in the serial port are: M8196, M8125, M8122, M8123, M8128, M8029;

2. The special registers involved are: D8120, D8121, D8124, D8125, D8126, D8129.

M8196: Use programming port protocol and other protocol enable flag.
M8125: Use the enable flag of MODBUS and the original Mitsubishi function.
M8128: Communication completion flag (valid for MODBUS communication using RD3A and WR3A, manual reset required).
D8120: Save the Modbus RTU protocol communication parameters, and the highest bit of the communication parameters must be set to E.
D8121: Save the master or slave station number.

When used as Modbus RTU protocol: set M8196=1, M8125=1; D8120 is set as communication parameter;
D8121 sets the slave station number.

Example: (Query the "CoolMay CX3G Series PLC Programming Manual" with the setting method)
Set D8120=HE081, D8121=H1 (communication parameters are 9600/8/n/1, slave station number is 1).

Third, PLC as a host, support ADPRW instruction, RD3A instruction, WR3A instruction.

Fourth, instructions:

[RD3A M1 M2 S] <Instruction Composition Structure>


In the CoolMayPLC, the WR3A instruction corresponds to Modbus No. 06 function and No. 10 function.

In the command: 1.m1 indicates the station number of the read slave device, range 1-247.

2.m2 represents the first address of the read register in the slave device

3.S. Indicates the number of registers to be written, range 1-32. The data to be written is saved in sequence on the host S.+1, S.+2.......
When S=1, the WR3A command corresponds to the Modbus No. 06 function. It means: When writing an address S=1-32, the WR3A command corresponds to the No. 10 function of the Modbus; Indicates: Writing multiple addresses

The S-1 address value must be set to 0. (=0: serial port 1, =1: serial port 2.)

Case download address

Universal Vacuum Cleaner Dc Motor

Universal Vacuum Cleaner Dc Motor,Dc Motor Vacuum Cleaner,Dc Brushed Motor,Motor For Vacuum Cleaner

Zhoushan Chenguang Electric Appliance Co., Ltd. , https://www.vacuum-cleaner-motors.com