![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bg1.png)
CX3G / FX3GC PLC
Programming Manual
(Difference comparing with Mitsubishi
FX3G)
Shenzhen Coolmay Technology Co.,Ltd
V8.71
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bg2.png)
CATALOG
1. Overview...............................................................................................................................1
1.1 COOLMAY CX3G PLC has the following advantages:....................................1
1.2 CX3G PLC..................................................................................................................3
1.3 Models of FX3GC PLC.............................................................................................4
2. Soft element......................................................................................................................... 5
3. Special relay and register not supported......................................................................... 8
4. Function Instructions...........................................................................................................9
5. Application of analog.........................................................................................................20
5.1 Analog input............................................................................................................. 20
5.1.1 Analog input (temperature)........................................................................ 20
5.1.2 Analog input reading 1 (for software version 26210 and 26220)...... 23
5.1.3 Analog input reading 2 (for software version 26220).......................... 24
5.1.4 Analog input reading 3 (for software version 26230 and above)...... 25
5.1.5 Analog input sampling..............................................................................27
5.2 Analog output...........................................................................................................27
5.3 PID instruction......................................................................................................... 28
6. Application of high speed counter.................................................................................. 29
7. Application of high speed pulse...................................................................................... 31
7.1 high speed pulse output.........................................................................................31
7.2 Circular interpolation...............................................................................................32
8. Coolmay CX3G PLC Communication User Manual.................................................... 37
8.1 Serial port 1: RS232( PLC programming port)................................................... 37
8.2 Serial port 2: RS485(A B)/RS232.........................................................................37
8.3 Serial port 3:RS485(A1 B1)...................................................................................49
8.4 Modbus Communication address number.......................................................... 60
8.5 CAN communication port.......................................................................................61
8.6 Network communication.........................................................................................65
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bg3.png)
CX3G/FX3GC PLC Programming manual
1. Overview
1.1 COOLMAY CX3G PLC has the following advantages:
◆Powerful, compatible with FX3G/FX3U/FX3S PLC, high processing speed.
◆Upper computer programming software compatible with Works 2/GX
Developer8.86
◆Military level 32 bit CPU adopted, which is faster and more adapted to industrial
environment of high electromagnetic interference.
◆Special encryption, prevent illegal reading thoroughly. 8-bit encryption, 12345678
as password can thoroughly prevent reading of ladder logic program.
◆Clock supported, rechargeable battery adopted.
◆With two PLC programming ports. CX3G PLC has one MiniB USB port with faster
downloading speed; one Rs232 programming port with 8 mouse hole
sockets.FX3GC PLC has one MiniB USB port with faster downloading speed; one
Rs422 programming port with 8 mouse hole sockets.
◆Support Mitsubishi programming port protocol/Modbus protocol/Rs protocol/BD
board protocol, PLC communication with each other and other devices is easily
achieved.
CX3G-16M/24M/32M/48M PLC is with 2 com ports. Default is with 2 RS485, or
customized as 1 RS485+1 RS232, or 1RS485+ 1 CAN port, or 1RS232 + 1 CAN port.
CX3G-34M/64M/80M PLC is with 3 com ports. Default is with 2 RS485,or customized
as 1 RS485+1 RS232,CAN port is optional for connecting HMI,VFD and other
equipment.
For FX3GC-30M, 1 Rs485 can be added;
For FX3GC-16M, com ports/ analog can be added, at most 2 Rs485+1 CAN
port+6AD4DA can be added; or 1 Rs485+1 CAN port+8AD4DA can be added; or 1
RS485 +8AD6DA can be added, or 2 RS485 +1 CAN port can be added.
◆High speed counter. For CX3G PLC,regularly single phase 4 channels 60KHz、2
channels
www.coolmayplc.com
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bg4.png)
CX3G/FX3GC PLC Programming manual
10KHz or double phase 2 -3channels up to 60KHz, and could be customized as single
phase 100khz or 2 channels double phase 60khz+ 1 channel 10khz; For FX3GC PLC,
regularly single phase 1 channels 100KHz、4 channels 20KHz or double phase 1
channels 60KHz、2 channels 10KHz
◆High speed pulse, regular as 8 channels Y0-Y3 in 100KHz,Y4-Y7 in 10KHz, could
be customized as 8 channels 10-100KHz;
Note: High speed counter+High speed pulse should be less 480KHz.
◆Support multiple types analog individually or mixed ones for analog output and
input.
Precision of AD/DA is 12bit.Temperature/current/voltage for input. current/voltage for
output.
For CX3G PLC, at most 16DI/8DO. For FX3GC-16M, com ports/ analog can be added,
at most 2 Rs485+1 CAN port+6AD/4DA can be added; or 1 Rs485+1 CAN
port+8AD/4DA can be added; or 1 RS485+8AD/6DA can be added or 2 RS485+ 1
CAN port can be added.
◆Up to 40DI/40DO for CX3G PLC, up to 16DI/16DO for FX3GC PLC.
Relay/transistor or mixed relay and transistor for output.
◆Convenient for wiring. CX3G adopts 5.00mm pluggable terminals. FX3GC adopts
3.5mm pluggable terminals.
◆Easy installation. DIN-Rail (35mm width) installation and fixed hole installation.
◆Flexible, can be customized accordingly.
www.coolmayplc.com
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bg5.png)
1.2 CX3G PLC
Fixed hole installation and DIN-Rail (35mm )
Support interrupt, linear arc interpolation, PID auto-tuning. 32K program capacity, 32K retentive register
Input: Passive NPN, public terminal isolated
Transistor output: NPN
Relay output: Normally open dry contact
Transistor(MT)
or mixed(2T6R)
Relay(MR) or transistor(MT) or mixed(MRT)
6 channel single-phase 60KHz or AB(Z) phase 2 channel 60KHz, 1 channel 10KHz
8 channels, Y0-Y3 is 100KHz, Y4-Y7 is 10KHz
High-speed counting + high-speed pulse < 480KHz
Type E/K/S/T/J thermocouple/ PT100/ PT1000/ NTC10K/ NTC50K/ NTC100K/
0~10V/ 0~5V/ 0-20mA/ 4-20mA
-5V~5V/ -10V~10V(except for CX3G-16M)
0~10V/ 0-~5V/ 0~20mA/ 4~20mA
1 Mini type B USB port, 1 Rs232(Interface terminal is mouse female port with 8 holes), 2 RS485 ports
Default 2 RS485 ports can be customized as
1 RS485, 1 RS232,
or 1 RS485, 1 CAN (2.0A/B),
or 1 RS232, 1 CAN (2.0A/B)
Default 2 RS485 ports can be customized as 1 RS485, 1
RS232,
CAN (2.0A/B) port is optional
Software
Suggested models:CX3G-16MT/MRT(-485/232) CX3G-24MT/MR/MRT(-6AD4DA -485/232)
CX3G-32MT/MR/MRT(-2AD -485/232) CX3G-34MT/MR/MRT(-12AD8DA -485/232)
CX3G-48MT/MR/MRT(-8AD4DA -485/232) CX3G-64MT/MR/MRT(-16AD8DA -485/232)
CX3G-80MT/MR/MRT(-4AD4DA -485/232)
Detailed info. refer to:COOLMAY CX3G PLC Programming Manual CX3G PLC user manual
CX3G/FX3GC PLC Programming manual
www.coolmayplc.com
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bg6.png)
1.3 Models of FX3GC PLC
FX3GC-16M
Communication/analog extension module can
be customized
DIN-Rail (35mm ) mounting
Support interrupt, linear arc interpolation, PID auto-tuning. 32K program capacity, 32K retentive register
Input: Passive NPN, public terminal isolated
Transistor Output: NPN
Relay output: NO contact
Relay(MR)/ Transistor (MT)/ Mixed (MRT)
Single phase 6 channel 60KHz or AB(Z) phase 2 channel 60KHz, 1 channel 10KHz
8 channels,Y0-Y3 is 100KHz,Y4-Y7 is 10KHz
High-speed counting + high-speed pulse < 480KHz
6AI/4AO or 8AI/4AO or 8AI/6AO
Type E/K/S/T/J thermocouple/ PT100/ PT1000/ NTC10K/
NTC50K/ NTC100K/
0~10V/ 0~5V/ 0-20mA/ 4-20mA
-5V~5V/ -10V~10V/ mixed
0-10V/ 0-5V/ 0-20mA/ 4-20mA
1 Mini type B USB port, 1 RS422(Interface terminal is 8 holes mouse female port)
Compatible with Mitsubishi WORKS 2/GX Developer8.86
Suggested models:FX3GC-16/32MT/MR/MRT FX3GC-30MT/MR/MRT(-485)
Analog and COM package of FX3GC-16M: 2 RS485, 1 CAN, 6AD4DA
Or 1 RS485, 1 CAN port, 8AD4DA
Or 1 RS485, 8AD/6DA
Or 2 RS485, 1 CAN
Detailed info. refer to:COOLMAY CX3G PLC Programming Manual
CX3G/FX3GC PLC Programming manual
www.coolmayplc.com
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bg7.png)
Soft element table
Soft element number is octal
Total 80points for I/O
Initial state (EEPROM hold)
Signal Alert (EEPROM hold)
1ms accumulative
(EEPROM hold)
100ms accumulative
(EEPROM hold)
CX3G/FX3GC PLC Programming manual
2. Soft element
www.coolmayplc.com
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bg8.png)
CX3G/FX3GC PLC Programming manual
General up counter (16bit)
EEPROM hold up counter
(16 bit)
General bi-direction (32 bit)
-2,147,483,648~+2,147,483,647
counter
EEPROM hold bi-direction
(32 bit)
-2,147,483,648~+2,147,483,647
counter
Single-phase single counter
input
Bi-direction (32 bit) (EEPROM
hold)
-2,147,483,648~+2,147,483,647 Counter
Software counter
Single phase:at most 6 channel, 60kHz
Double phase:double frequency:at most 2-3
channels,60KHz
M8198 is 4 times frequency sign of
C251.
Quad frequency:at most 2-3
channels,24kHz
M8199 is 4 times frequency sign
of C253.
Single-phase double counter
input
Bi-direction (32 bit) (EEPROM
hold)
Double –phase double counter
input
Bi-direction (32 bit)(EEPROM
hold)
Data register(32 bit when using in pair)
Extended register·extended file register
Extended register(16 bit)*1
24000points Maintain when power off not
www.coolmayplc.com
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bg9.png)
CX3G/FX3GC PLC Programming manual
2048 points
1281
points(26232 and
above)
CJ instruct、CALL instruct
-2,147,483,648~+2,147,483,647
-1.0×2128~-1.0×2-126,0,1.0×2-126~1.0×2128
Can be in the form of a decimal point and index
www.coolmayplc.com
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bga.png)
3. Special relay and register not supported
Special relay and register not supported
※ Special relay not supported
M8004~M8010,
M8015~M8019,
M8024~M8027,
M8030,
M8038~M8039,
M8040~M8044,
M8060~M8074,
M8084~M8119,
CX3G/FX3GC PLC Programming manual
M8130~M8159,
M8161~M8169,
M8178~M8191,
M8256~M8339,
M8370~M8395,
M8430~M8511.
※ Special register not supported
D8004~D8009,
D8042~D8067,
D8069~D8073,
D8105~D8119,
D8150~D8168,
D8200~D8329,
D8468~D8511.
* Specific functions please refer to “Mitsubishi FX3G programming manual”
www.coolmayplc.com
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bgb.png)
CX3G/FX3GC PLC Programming manual
Data conversion instructions
Arithmetic operation instructions
Logical operation instructions
Special function instructions
Data operation instructions
Data operation instructions
Character string operation instructions
Program flow control instructions
Real time clock control instructions
Pulse output/positioning control instructions
Special block/unit control instructions
Extension register/extension file register control instructions
1. Data move instructions
4. Function Instructions
Applied instructions “Sequence is according to instruct variety”
(Contrast with MITSUBISHI)
Applied instruction can be divided into the following 18 kinds.
www.coolmayplc.com
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bgc.png)
CX3G/FX3GC PLC Programming manual
Parallel Run (Octal Mode)
2. Data conversion instructions
Conversion to Binary Coded Decimal
BIN19Conversion to Binary
Decimal to Gray Code Conversion
Gray Code to Decimal Conversion
Conversion to Floating Point
Floating Point to Integer Conversion
Floating Point to Scientific Notation
Conversion
Scientific Notation to Floating Point
Conversion
Floating Point Degree to Radian
Conversion
Floating Point Radian to degree
Conversion
3. Comparison instructions
Contact compare LD
(S1)=(S2)
www.coolmayplc.com
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bgd.png)
CX3G/FX3GC PLC Programming manual
Contact compare LD
(S1)>(S2)
Contact compare LD
(S1)<(S2)
Contact compare LD
(S1)≠(S2)
Contact compare LD
(S1)≦(S2)
Contact compare LD
(S1)≧(S2)
Contact compare AND
(S1)=(S2)
Contact compare AND
(S1)>(S2)
Contact compare AND
(S1)<(S2)
Contact compare AND
(S1)≠(S2)
Contact compare AND
(S1)≦(S2)
Contact compare AND
(S1)≧(S2)
Contact compare OR
(S1)=(S2)
Contact compare OR
(S1)>(S2)
Contact compare OR
(S1)<(S2)
Contact compare OR (S1)≠(S2)
Contact compare OR (S1)≦(S2)
Contact compare OR (S1)≧(S2)
Floating Point Zone Compare
High Speed Counter Zone Compare
High speed counter table compare
www.coolmayplc.com
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bge.png)
CX3G/FX3GC PLC Programming manual
4. Arithmetic operation instructions
Floating Point Subtraction
Floating Point Multiplication
5. Logical operation instructions
6. Special function instructions
www.coolmayplc.com
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bgf.png)
CX3G/FX3GC PLC Programming manual
Floating Point Square Root
Floating Point Natural Logarithm
Floating Point Common Logarithm
Floating Point Arc Cosine
Floating Point Arc Tangent
Rotation right With Carry
Bit Shift Right with Carry
Bit Shift Left with Carry
Shift Write [FIFO/FILO Control]
www.coolmayplc.com
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bg10.png)
CX3G/FX3GC PLC Programming manual
Shift Read [FIFO Control]
Shift Last Data Read [FILO Control]
9. Data operation instructions
Check Specified Bit Status
4-bit Linking of Word Data
4-bit Grouping of Word Data
Scaling (Coordinate by Point Data)
Scaling 2 (Coordinate by X/Y Data)
www.coolmayplc.com
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bg11.png)
CX3G/FX3GC PLC Programming manual
Deleting Data from Tables
10. String processing instruction
Floating Point to Character String
Conversion
Character String to Floating Point
Conversion
BIN to Character String Conversion
Character String to BIN Conversion
Decimal ASCII to BIN Conversion
BIN to Decimal ASCII Conversion
Hexadecimal to ASCII Conversion
ASCII to Hexadecimal Conversion
Character String Transfer
Character String Length Detection
Extracting Character String Data From the
Right
Extracting Character String Data from the
Left
Random Selection of Character Strings
Random Replacement of Character Strings
11. Program flow control instructions
www.coolmayplc.com
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bg12.png)
CX3G/FX3GC PLC Programming manual
12. I/O refresh instructions
Refresh and Filter Adjust
13. Real time clock control instructions
Hour to Second Conversion
Second to Hour Conversion
14. Pulse output/positioning control instruction
Absolute Current Value Read
www.coolmayplc.com
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bg13.png)
CX3G/FX3GC PLC Programming manual
Batch Data Positioning Mode
Variable Speed Pulse Output
Acceleration/Deceleration Setup
15. Serial communication instructions
Inverter Parameter Block Write
Inverter multiple command
16. Special block/unit control instructions
Read From a Special Function Block
Write To a Special Function Block
Read form Dedicated Analog Block
Write to Dedicated Analog Block
www.coolmayplc.com
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bg14.png)
CX3G/FX3GC PLC Programming manual
17. Extension register/extension file register control instructions
18. Other handy instructions
Batch Store of Index Register
Batch POP of Index Register
www.coolmayplc.com
![](/html/8d/8d54/8d54e3344ad41dfff476a682b02a2573a7f12ca0c2204a4ce91a09fa053c624f/bg15.png)
CX3G/FX3GC PLC Programming manual
Incremental Drum Sequencer
Digital switch (thumbwheel input)
www.coolmayplc.com