CX3G PLC Programming Manual
CX3G PLC Programming Manual
CX3G PLC Programming Manual
COOLMAY
CX3G PLC
Programming manual
(Differences comparing with Mitsubishi FX3G)
Content
1. Overview......................................................................................................................................................... 3
2. Soft element....................................................................................................................................................4
2.1 Soft element table.................................................................................................................................4
3. Special relay and register not supported........................................................................................................ 6
3.1 Special relay and register not supported.............................................................................................6
4. Function Instructions(Contrast with MITSUBISHI).................................................................................... 7
4.1 Applied instructions........................................................................................................................... 7
5. Application of analog.................................................................................................................................... 13
5.1 Analog input........................................................................................................................................ 13
5.1.1 Analog input type(temperature)..............................................................................................13
5.1.2 Analog input reading...............................................................................................................13
5.1.3 Analog input sampling............................................................................................................ 15
5.2 Analog output..................................................................................................................................... 16
6. Application of high speed counter................................................................................................................17
6.1 Assignment table of built-in high speed counter................................................................................17
7. Application of high speed pulse.................................................................................................................... 18
8. Coolmay CX3G PLC Communication User Manual........................................................................................19
CX3G PLC Programming Manual
1. Overview
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.
◆Round Rs232 for programming, Mini B-type USB programming port also adoptable.
◆2 Rs485 or 1 Rs232 and 1 Rs485 can be added, canbus optional for connecting HMI、VFD
and other equipment.
◆Support Mitsubishi programming port protocol/Modbus protocol/Rs protocol/BD board
protocol, PLC communication with each other and other devices is easily achieved.
◆At most 8 100KHz high speed pulse. Among which, regularly Y0~Y3 is 100KHz, Y4~Y7 8KHz
(100KHz can be customized).
◆At most 6 60KHz single high speed counter or 2-3 AB(Z). At most 60KHz for double frequency,
24KHz for quadruplicated frequency.
◆Support multiple types analog individually or mixed ones for analog output and input. At
most 20DI/8DO, the precision is 12 bit. Temperature/current/voltage for input. current/voltage for
output.
◆At most 40DI/40DO, relay、transistor or both relay and transistor for output
◆Convenient for wiring. 5.00 pluggable terminals adopted for convenient wiring.
◆Easy installation. DIN-Rail (35mm width) installation and fixed hole installation.
◆Flexible, can be customized accordingly.
CX3G PLC Programming Manual
2. Soft element
Name Contents
Scientific Notation to
EBIN 119 Floating Point ★
Conversion
Floating Point Degree
RAD 136 to ★
Radian Conversion
AND> 233 Contact compare AND (S1)>(S2) ★ ESUB 121 Floating Point Subtraction ★
AND< 234 Contact compare AND (S1)<(S2) ★ EMUL 122 Floating Point Multiplication ★
AND<> 236 Contact compare AND (S1)≠(S2) ★ EDIV 123 Floating Point Division ★
AND<= 237 Contact compare AND (S1)≦(S2) ★
BK+ 192 Block Data Addition ★
AND>= 238 Contact compare AND (S1)≧(S2) ★
BK- 193 Block Data Subtraction ★
OR= 240 Contact compare OR (S1)=(S2) ★
INC 24 Increase ★
OR> 241 Contact compare OR (S1)>(S2) ★
FNC FNC
Mnemonic Function Support Mnemonic Function Support
No. No.
RCR 32 Rotation right With Carry SFR 213 Bit Shift Right with Carry
★ ★
RCL 33 Rotation Left with Carry ★ SFL 214 Bit Shift Left with Carry ★
FNC
Mnemonic Function Support
No.
FNC FNC
Mnemonic Function Support Mnemonic Function Support
No. No.
5. Application of analog
The transmitter which is integrated inside PLC is one of the above table or mixed ones, it is up to
customers.
AD0 R23680
AD1 R23681
AD2 R23682
AD3 R23683
Environment R23684
temperature
AD4 R23685
AD5 R23686
AD6 R23687
AD7 R23688
AD8 R23689
AD9 R23690
AD10 R23691
CX3G PLC Programming Manual
AD0 R23640
AD1 R23641
AD2 R23642
AD3 R23643
AD4 R23644
AD5 R23645
AD6 R23646
AD7 R23647
AD8 R23648
AD9 R23649
AD10 R23650
AD11 R23651
NTC10K is in the 12th register from R23660
AD0 R23660
AD1 R23661
AD2 R23662
AD3 R23663
AD4 R23664
AD5 R23665
AD6 R23666
AD7 R23667
AD8 R23668
AD9 R23669
AD10 R23670
AD11 R23671
CX3G PLC Programming Manual
0~10V/0-5V or 0~20mA in D8030~D8041(without constant scanning time)。
AD0 D8030
AD1 D8031
AD2 D8032
AD3 D8033
AD4 D8034
AD5 D8035
AD6 D8036
AD7 D8037
AD8 D8038
AD9 D8039
AD10 D8040
AD11 D8041
4~20mA is in the 12th register from R23620,< 3.8mA,the value is 32760,that is off line。
AD0 R23620
AD1 R23621
AD2 R23622
AD3 R23623
AD4 R23624
AD5 R23625
AD6 R23626
AD7 R23627
AD8 R23628
AD9 R23629
AD10 R23630
AD11 R23631
U: up counter D: down counter A: A phase input B:B phase input R: External reset input
S: External start input
AB phase: Double frequency: at most 2-3 channels, most frequency 60KHz; M8198 is quadruplicated
frequency sign of C251
Quadruplicated frequency: at most 2-3 channels, most frequency 24KHz; M8199 is
quadruplicated frequency sign of C253
Accelerate and decelerate time: ( target speed-current speed)* accelerate and decelerate time/highest
speed
Such as: target speed=50000, current speed=20000, acceleration time 100(ms), highest speed=100000,
T=30ms.
CX3G: 8 pulse, the latter 4 accelerate and decelerate=D8148, highest speed are all D8146L.
PLSY、PLSR、ZRN、PLSV、DRVI、DRVA、DVIT、DSZR,only Y0-Y3 support DVIT、DSZR.
Y0 Y1 Y2 Y3 Y4 Y5 Y6 Y7
Pulse M8340 M8350 M8360 M8370 M8151 M8152 M8153 M8154
operation
monitoring
Position D8340L D8350L D8360L D8370L D8140L D8142L D8144L D8160L
pulse
(32bit)
0X03: read hold register, get current binary value in one or multiple registers, range:1-32 registers
0X06: put specific binary value into a hold register( write register), range: 1
0X10: Preset multiple registers, put specific binary value into a sequence of hold register( write multiple
RD3A originally is a read instruction of analog module, the original instruction cannot be used. RD3A
correspond to 03# function, read register (4X). D300 stand for station number of the slave device which has
been read, range 1-247; D400 stand for the address number 0000 (Hexadecimal number) in slave devices of
data which has been read. Value in D500 stand for quantity of register which have been read, range 1-32,
WR3A originally is analog module write instruction, the original instruction cannot be used. WR3A
corresponds to 16 function of MODBUS, write data to each register(4x) of slave devices. If write only one
register, WR3A correspond to 6# function of Modbus, write one data to one register (4X) of slave device.
D300 stand for station of slave device which has been write, range 1-247; D400 stand for the initial address
number 0000 (Hexadecimal number) in slave devices of data which has been read. Value in D500 stand for
★ Serial port3: RS485—support Mitsubishi programming port protocol, Rs protocol and Modbus
protocol ( communication parameters of Modbus RTU is set in D8400、station number is set in D8401, can
◆ CAN—CAN adopts transparent data process, communication parameters is set in D8420, station
Support RS2
RS2 finial parameter=1: serial port 3;
=2:CAN。
When RS2 support CAN, multiple channels can communicate with each other, ID(read 29 bit )=D8442;ID
(write 29 bit)=D8440,at most 8 length.
LD M8000 RS2 D600 K8 D800 K8 K2
LD M8002 MOV H10 D8421
LDI M8422 ANI M8424 SET M8422
Support WR3A、RD3A,such as above data format,D499=0:serial port 2;
D499=1:serial port 3;
D499=2:CAN。
ADPRW: D8126=0(power on default) corresponds to optional serial port 2;
D8126=1 corresponds to optional serial port 1;
D8126=2 corresponds to CAN port
Such as CAN port programming of extended board:
LD M8002 MOV H1 D8421:CAN port of this PLC is main station
LD M8000 MOV K2 D8126
LD M8 ADPRW H1 H2 H2000 K16 M100
Means communication through CAN of this PLC with CAN of slave PLC, read S0~S15 of slave PLC to
M100~M115 of master PLC.
Defaulted state is compatible with the original program of Mitsubishi. Each Mitsubishi PLC can support
ADPRW for only one port, D8401、D8421 decide,D8401 priority. All three ports of Coolmay PLC support
ADPRW.
When M8192=1, the optional serial port 3 support the above protocol
When M8192=0 (power on default), the optional serial port 3 is programming port, namely
programming port protocol .
M8192=0,serial port 3 CH1 is programming port protocol;M8192=1,serial port 3CH1 is stated as above.