Coolmay CX3G-32M Programming Manual

Coolmay CX3G-32M Programming Manual

Plc, difference comparing with mitsubishi fx3g

Advertisement

CX3G/FX3GC PLC Programming manual
COOLMAY
CX3G/FX3GC PLC
Programming manual
(Difference comparing with Mitsubishi FX3G)
All right belongs to Shenzhen Coolmay Technology Co.,Ltd
V9.72

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX3G-32M and is the answer not in the manual?

Questions and answers

Summary of Contents for Coolmay CX3G-32M

  • Page 1 CX3G/FX3GC PLC Programming manual COOLMAY CX3G/FX3GC PLC Programming manual (Difference comparing with Mitsubishi FX3G) All right belongs to Shenzhen Coolmay Technology Co.,Ltd V9.72...
  • Page 2: Table Of Contents

    CX3G/FX3GC PLC Programming manual Content 1. Overview ................................. 1 1.1 COOLMAY CX3G PLC has the following advantages: ..............1 1.2 Models of CX3G PLC ........................... 3 1.3 Models of FX3GC PLC ........................4 2. Soft element ..............................5 2.1 Soft element table ..........................5 3.
  • Page 3: Overview

    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.
  • Page 4 CX3G/FX3GC PLC Programming manual ◆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.
  • Page 5: Models Of Cx3G Plc

    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/ FX3GC PLC Programming Manual Support interruption,linear and arc interpolated,PID and modify parameters automatically; with capacity of 32K step program, 32K holding register while power off. *CX3G-24M,if with 8AD,maximum digits are 10DI;...
  • Page 6: Models Of Fx3Gc Plc

    WORKS 2/GX Developer8.86 Regular models: FX3GC-16/32MT/MR/MRT FX3GC-30MT/MR/MRT(-485) Detailed info. refer to:COOLMAY CX3G/ FX3GC PLC Programming Manual Support interruption、linear and arc interpolated、PID and modify parameters automatically; with capacity of 32K step program, 32K holding register while power off. Extension module can add at most 2 RS485,1 CAN port,6AD4DA,...
  • Page 7: Soft Element

    CX3G/FX3GC PLC Programming manual 2. Soft element 2.1 Soft element table Name Contents I/O relay Input relay X000~X047 40points Soft element number is octal Total 80points for I/O Output relay Y000~Y047 40points Auxiliary relay General M0~M383 384 points EEPROM hold M384~M1535 1152 points General*1...
  • Page 8: Special Relay And Register

    CX3G/FX3GC PLC Programming manual Bi-direction (32 bit)(EEPROM hold) Name Contents Data register(32 bit when using in pair) General(16bit) D0~D127 128 points EEPROM hold (16 bit) D128~D7999 7872 points Special (16 bit) D8000~D8511 512 points Index (16 bit) V0~V7,Z0~Z7 16 points Extended register·extended file register R0~R22999 23000points Maintain when power off not supported...
  • Page 9 CX3G/FX3GC PLC Programming manual Content Remarks Content Remarks C229 Increase/decrease counting M8012 Oscillating in 100ms cycle M8229 action C230 Increase/decrease counting M8013 Oscillating in 1s cycle M8230 action C231 Increase/decrease counting M8014 Oscillating in 1min cycle M8231 action C232 Increase/decrease counting M8020 Zero flag M8232 action...
  • Page 10 CX3G/FX3GC PLC Programming manual Content Remarks Content Remarks C250 Increase/decrease counting M8050 Input interrupt (I00 is prohibited) M8250 action C251 Increase/decrease counting M8051 Input interrupt (I10 is prohibited) M8251 action C252 Increase/decrease counting M8052 Input interrupt (I20 is prohibited) M8252 action C253 Increase/decrease counting M8053 Input interrupt (I30 is prohibited)
  • Page 11 CX3G/FX3GC PLC Programming manual Content Remarks Content Remarks M8121 RS/RS2 command sends standby M8356 Y001 zero signal logic inversion RS/RS2 command to send M8122 M8357 Y001 interrupt signal logic inversion request M8123 RS/RS2 command reception end M8358 Y001 positioning command driver Serial Port RS/RS2 command data in M8124...
  • Page 12 CX3G/FX3GC PLC Programming manual Content Remarks Content Remarks C201 Increase/decrease counting OFF:increa 2.11.2 M8201 M8402 RS2 command to send request action se action C202 Increase/decrease counting M8202 M8403 RS2 command reception end action C203 Increase/decrease counting M8203 M8404 RS2 command data in reception action C204 Increase/decrease counting M8204...
  • Page 13: Special Register Number And Content

    CX3G/FX3GC PLC Programming manual Content Remarks Content Remarks C222 Increase/decrease counting M8222 M8452 7th pulse stop action C223 Increase/decrease counting M8223 M8453 8th pulse stop action 3.2 Special register number and content Content Remarks Content Remarks D8000 Watchdog timer D8146 pulse max speed Main version D8001 PLC type and system version...
  • Page 14 CX3G/FX3GC PLC Programming manual Content Remarks Content Remarks Y0 deviation speed D8037 AD7 analog input value D8342 Initial value:0 D8038 AD8 analog input value D8343 pulse maximum speed D8039 AD9 analog input value D8344 High Y0 crawling speed D8040 AD10 analog input value D8345 Initial value: 1000 D8041 AD11 analog input value...
  • Page 15 CX3G/FX3GC PLC Programming manual Content Remarks Content Remarks [1/6μs unit] Initial value:1000 D8089 High D8376 Y3 Origin return speed Initial value:50000 D8090 X3 pulse width / pulse period D8377 High [10μs unit] D8091 High D8378 4 pulse acceleration time D8092 D8379 4 pulse deceleration time X4 Rising edge ring counter value...
  • Page 16 CX3G/FX3GC PLC Programming manual Content Remarks Content Remarks RS2 header 1, 2 <initial value: D8129 Set timeout D8430 STX> D8140 D8431 RS2 header 3, 4 position pulse amount RS2 trailer 1, 2 <initial value: D8141 High D8432 ETX> D8142 D8433 RS2 trailer 3, 4 position pulse amount RS2 receives the summation D8143...
  • Page 17: Function Instructions

    CX3G/FX3GC PLC Programming manual 4. Function Instructions Applied instructions【Sequence is according to instruct variety】 (Contrast with MITSUBISHI) Applied instruction can be divided into the following 18 kinds. Data move instructions Data conversion instructions Comparison instructions Arithmetic operation instructions Logical operation instructions Special function instructions Rotate instructions Data operation instructions...
  • Page 18 CX3G/FX3GC PLC Programming manual Conversion to Binary ★ Decimal to Gray Code Conversion ★ GBIN Gray Code to Decimal Conversion ★ Conversion to Floating Point ★ Floating Point to Integer Conversion ★ Floating Point to Scientific Notation EBCD ★ Conversion Scientific Notation to Floating Point EBIN ★...
  • Page 19 CX3G/FX3GC PLC Programming manual BKCMP> Block compare (S1)>(S2) ★ BKCMP< Block compare (S1)<(S2) ★ BKCMP<> Block compare (S1)≠(S2) ★ BKCMP<= Block compare (S1)≦(S2) ★ BKCMP>= Block compare (S1)≧(S2) ★ 4. Arithmetic operation instructions Mnemonic FNC No. Function Support Addition ★ Subtraction ★...
  • Page 20 CX3G/FX3GC PLC Programming manual 7. Rotate instructions Mnemonic FNC No. Function Support Rotation Right ★ Rotation Left ★ Rotation right With Carry ★ Rotation Left with Carry ★ 8. Shift instructions Mnemonic FNC No. Function Support Bit Shift Right SFTR ★...
  • Page 21 CX3G/FX3GC PLC Programming manual Search a Data Stack ★ FDEL Deleting Data from Tables ★ FINS Inserting Data to Tables ★ 10. String processing instruction Mnemonic FNC No. Function Support Floating Point to Character String Conversion ESTR ★ EVAL Character String to Floating Point Conversion ★...
  • Page 22 CX3G/FX3GC PLC Programming manual TCMP RTC Data Compare ★ TZCP RTC Data Zone Compare ★ TADD RTC Data Addition ★ TSUB RTC Data Subtraction ★ Read RTC data ★ Set RTC data ★ HTOS Hour to Second Conversion ★ STOH Second to Hour Conversion ★...
  • Page 23 CX3G/FX3GC PLC Programming manual 17. Extension register/extension file register control instructions Mnemonic FNC No. Function Support LOADR Load From ER SAVER Save to ER RWER Rewrite to ER INITR Initialize R and ER INITER Initialize ER LOGR Logging R and ER 18.
  • Page 24: Application Of Analog

    D8001, if necessary, please query the value of D8001. 5.1 Analog input Input precision of coolmay CX3G/FX3GC PLC and EX3G plc hmi all-in-one is 12-bit, directly read the corresponded register value of each analog while using. Environment temperature is only used in K-type thermocouple.
  • Page 25 CX3G/FX3GC PLC Programming manual Current Type1 0~20mA 0~4000 Current Type2 4~20mA 0~4000 Below table for software version 26230 and above Accuracy Resolut Input signal Range Register value (Total Measuring range) K-type 0~1100℃ Room temperature 0.1℃ thermocouple ~11000 K-type -230~ -2300~13700 0.1℃...
  • Page 26: Analog Input Reading 1 (For Software Version 26210 And 26220)

    CX3G/FX3GC PLC Programming manual 5.1.2 Analog input reading 1 (for software version 26210 and 26220) Support FROM instruction or register directly read. Such as: FROM K0 K0 D400 K16, read out 16 analog input, 0-10V. The K-type thermocouple registers read values are shown in the following table: Register Value R23680 R23681...
  • Page 27: Analog Input Reading 2 (For Software Version 26220)

    CX3G/FX3GC PLC Programming manual AD13 R23653 R23673 D8043 R23633 AD14 R23654 R23674 D8044 R23634 AD15 R23655 R23675 D8045 R23635 When it is less than 3.8mA, the value is 32760, that is break value. 5.1.3 Analog input reading 2 (for software version 26220) Thermocouple K-type (negative temperature), T-type, T-type (negative temperature) register read value are as the table below.
  • Page 28 CX3G/FX3GC PLC Programming manual D8034 (Environment temperature) D8035 D8036 D8037 D8038 D8039 D8040 AD10 D8041 AD11 D8042 AD12 D8043 AD13 D8044 AD14 D8045 When the analog input has a thermocouple type, it can only do up to 15 channels, of which AD4 is the ambient temperature of the thermocouple.
  • Page 29: Analog Input Sampling

    CX3G/FX3GC PLC Programming manual R23940~R23955 PT100\PT1000 different hardware and cannot be R23940~R23955 10K\50K\100K NTC changed after the value is set. R23940~R23943 K Type thermocouple positive The thermocouple R23945~R23955 temperature type has little difference in R23940~R23943 K Type thermocouple negative hardware usage, and R23945~R23955 temperature can be modified to...
  • Page 30 CX3G/FX3GC PLC Programming manual Connect the signal terminal of the temperature sensor to the AD0 input of the PLC and the other end to the GND of the analog input port. When the PLC is running, the value of the data register D8030 corresponding to AD0 will be transmitted to D0, the value of D0 will be put into D10 after floating point operation, and then the floating point number division operation will be performed on D10, and then operation result will be put into D20, the result D20 is the actual Temperature value.
  • Page 31: Analog Output

    CX3G/FX3GC PLC Programming manual In the above figure, when M0 is closed, the value -100 is transmitted to the correction register R23960, and now you can see that the value of the actual measured temperature D20 is close to the actual temperature which is 37.9 °C.
  • Page 32: Application Of High Speed Counter

    CX3G/FX3GC PLC Programming manual 6. Application of high speed counter Assignment table of built-in high speed counter Counter type Input assignment X000 X001 X002 X003 X004 X005 X006 X007 C235 C236 C237 C238 Single phase C239 single counter C240 input C241 C242 C243...
  • Page 33: Application Of High Speed Pulse

    7. Application of high speed pulse 7.1 high speed pulse output Coolmay CX3G default has 8 channels high speed pulse, Y0-Y3 each 100KHz, Y4-Y7 each 10KHz,variable speed supported, the initial/final speed of start/stop is 0, diagram as below: (take accelerate and decelerate time D8148 as an example).
  • Page 34 M8434 = 1 D8340 shows the current address of X axis,D8350 shows the current address of Y axis。 In CoolMay 3G PLC,interpolation motion still adopts DPLSR for pulse output. Description of the Operand: represents the pulse frequency, that is, the speed of the interpolation motion.
  • Page 35 CX3G/FX3GC PLC Programming manual In the Center interpolation: D100 speed, D102 is the X-axis target address, D104 is the Y-axis target address, and D106 is the center X address. D108 is the center Y address. Y0 and Y1 respectively pulse the X-axis and Y-axis. Note 1: The current address of X and Y must be on the same circle as the destination address.
  • Page 36: Continuous Interpolation Function

    M8436 is the flag for the normal interpolation mode and continuous interpolation mode. M8436=0: regular interpolation mode; M8436=1: continuous interpolation mode; In CoolMay 3G PLC 26236 and higher version, continuous interpolation motion uses DPLSR for pulse output. Operand Description: All use 32-bit registers.
  • Page 37 CX3G/FX3GC PLC Programming manual D104, D106, D108, D110. For example: draw a line and two arcs, as shown: Program as below :...
  • Page 38 CX3G/FX3GC PLC Programming manual...
  • Page 39: Coolmay Cx3G Plc Communication User Manual

    CX3G/FX3GC PLC Programming manual 8. Coolmay CX3G PLC Communication User Manual CX3G PLC defaulted has a RS232 programming port, and two communication ports ( Rs232 or Rs485) can be added. Meanwhile, CANbus is also optional. 8.1 Serial port 1: RS232( PLC programming port) Support Mitsubishi programming port protocol;Can be used to download PLC program or...
  • Page 40: Mitsubishi Programming Port Protocol

    CX3G/FX3GC PLC Programming manual D8434 D8434:CAN slave station NO Master-slave station D8121 D8414 D8440 D8440\D8442 multi-device number D8442 mode ID NO RD3A/WR3A overtime D8129 D8409 D8429 Unit: ms RD3A/WR3A interval D8126 D8406 D8426 26232 or higher version period RD3A\WR3A end operation -1 ADPRW command D8126=0...
  • Page 41: Free Port Protocol

    CX3G/FX3GC PLC Programming manual 8.2.2 Free port protocol When used as MITSUBISHI protocol: set M8196=1,M8125=0; the difference between Mitsubishi protocol 1 and protocol 4 is with end mark OA OD ( stored in D8124, D8125 separately) For the Mitsubishi protocol, the D8120 only needs to set the lower 8 bits. Data length 0:7 bits 1:8bits Odd and Even 00: None...
  • Page 42 CX3G/FX3GC PLC Programming manual When PLC is as host, ADPRW,RD3A and WR3A is supported. RD3A and WR3A only support the below MODBUS functions: Function No. 03: Read holding register and takes the current binary value range of 1-32 in one or more holding registers.
  • Page 43 Read slave data instruction function and action description: RD3A originally referred to the analog module readout. For CoolMay PLC, the RD3A instruction corresponds to Modbus's No. 03 function. In the instruction, m1 represents the station number of the read slave device,range:1-247;...
  • Page 44 Write data to the slave instruction function and action description: WR3A originally referred to the analog modules write. For CoolMay PLC, the WR3A instruction corresponds to Modbus's 06 and 10 functions. In the instruction, m1 represents the station number of the slave device to be written, range :1-247.
  • Page 45: Modbus Rtu Adprw Command

    CX3G/FX3GC PLC Programming manual Master program: Program explanation: This program represents that 1 data of the register D301 in the master PLC is written to the PLC in Slave 1, and is stored in the register D100 of the slave PLC. Use the serial port tool to monitor the results: [2017:10:31:16:47:22][receive]01 06 00 64 00 6F 88 39 [2017:10:31:16:47:22][receive]01 06 00 64 00 6F 88 39...
  • Page 46 CX3G/FX3GC PLC Programming manual No. 05: Force a single coil to force the on/off state (write bit) of a logic coil, range 1 No. 06: Load specific binary values into a retentive register (write register), range 1 No. 15: Force multiple coils, forcibly open and close a series of continuous logic coils (write multiple bits), range 1-512 No.
  • Page 47: Serial Port 3:Rs485(A1 B1)

    CX3G/FX3GC PLC Programming manual Slave program: Use the serial port tool to monitor serial port 2 for below data: [2017:11:01:17:48:54][receive]01 03 00 00 00 06 C5 C8 [2017:11:01:17:48:54][receive]01 03 0C 00 0C 00 17 00 22 00 38 00 4E 00 63 C4 29 8.3 Serial port 3:RS485(A1 B1) Support Mitsubishi programming port protocol,RS2 protocol and MODBUS RTU protocol.
  • Page 48 CX3G/FX3GC PLC Programming manual differentiation M8426=0 master-slave mode, RS command CAN M8426 M8426=1 multi-device master-slave mode RS command end operation settings M8196=1 MODBUS RTU function M8192=1 M8125=1 RD3A\WR3A receiving M8128 M8408 M8428 Need manual reset completion RD3A\WR3A M8129 M8409 M8429 Need manual reset communication over-time ADPRW command Command execution end...
  • Page 49 CX3G/FX3GC PLC Programming manual D8409: Time-out period. (Unit: ms. Better not over 100ms while setting.) D8414: Save the master or slave station number (The value mast be set as max K255 as master). D8126: When using the serial port 3 in the ADPRW instruction, set D8126 to 1. (26232 or lower version) D8397: When using the serial port 3 in the ADPRW instruction, set D8397 to 1.
  • Page 50: Mitsubishi Programming Protocol

    CX3G/FX3GC PLC Programming manual D8401 Parameter set Select protocol 0: Other communication protocol 1: MODBUS protocol b1~b3 Unavailable, Set 0 Master/Slave setting 0: MODBUS Master 1: MODBUS Slave b5~b15 Unavailable, Set 0 8.3.1 Mitsubishi programming protocol When using as mitsubishi programming port protocol: set M8192=0. 8.3.2 Mitsubishi programming protocol When using as mitsubishi free port protocol: set M8192=1, M8402=1;...
  • Page 51: Modbus Rtu Protocol Rd3A/Wr3A Command

    Read slave data instruction function and action description: RD3A originally referred to the analog module readout. For CoolMay PLC, the RD3A instruction corresponds to Modbus's No. 03 function. In the instruction, m1 represents the station number of the read slave device,range:1-247;...
  • Page 52 Write data to the slave instruction function and action description: WR3A originally referred to the analog modules write. For CoolMay PLC, the WR3A instruction corresponds to Modbus's 06 and 10 functions. In the instruction, m1 represents the station number of the slave device to be written, range :1-247.
  • Page 53 CX3G/FX3GC PLC Programming manual Program Example Slave program Master program Use the serial port tool to monitor serial port 3 for below data: [2017:11:01:09:25:20][receive]01 10 00 64 00 08 10 00 0B 00 16 00 21 00 2C 00 37 00 42 00 4D 00 58 D1 6C [2017:11:01:09:25:20][receive]01 10 00 64 00 08 10 00 0B 00 16 00 21 00 2C 00 37 00 42 00 4D 00 58 D1 6C...
  • Page 54: Modbus Rtu Adprw Command

    CX3G/FX3GC PLC Programming manual 8.3.4 MODBUS RTU ADPRW Command ADPRW instruction supports all functions of the MODBUS RTU. No. 01: Read coil status and get the current status (ON/OFF) of a set of logic coils, range 1-512. No. 02: Read the input status and get the current status (ON/OFF) of a group of switch inputs, range 1-512.
  • Page 55: Modbus Communication Address Number

    CX3G/FX3GC PLC Programming manual Slave program Use the serial port tool to monitor serial port 3 for below data: [2017:11:01:17:38:34][receive]01 04 00 00 00 06 70 08 [2017:11:01:17:38:34][receive]01 04 0C 00 15 00 20 00 2B 00 41 00 57 00 00 5F A7 8.4 Modbus Communication address number 8.4.1 Bit device: MODBUS device...
  • Page 56: Word Device

    CX3G/FX3GC PLC Programming manual 8.4.2 Word device: MODBUS device CX3G/FX3GC device Input register (readout Holding register (read/write) dedicated) 0x0000~0x1F3F 0x0000~0x1F3F D0~D7999 0x1F40~0x213F 0x1F40~0x213F D8000~D8511 0x2140~0x7EFF 0x2140~0x7EFF R0~R23999 0x7F00~0xA13F 0x7F00~0xA13F Unused address 0xA140~0xA27F 0xA140~0xA27F TN0~TN319 0xA280~0xA33F 0xA280~0xA33F Unused address 0xA340~0xA407 0xA340~0xA407 CN0~CN199 0xA408~0xA477 0xA408~0xA477...
  • Page 57: Can Communication Port

    CX3G/FX3GC PLC Programming manual Write object device MODBUS D.R.X.Y.M.S Single coil write Address: 0(Fix) 0=OFF 0000H~FFFFH 1=ON MODBUS Single register Write object device Address: 0(Fix) write 0000H~FFFFH MODBUS Access points: Write object device Bulk coil writing Address: 1~1968 D.R.X.Y.M.S 0000H~FFFFH MODBUS Access points:...
  • Page 58 CX3G/FX3GC PLC Programming manual RD3A\WR3A receiving M8128 M8408 M8428 Need manual reset completion mark RD3A\WR3A communication M8129 M8409 M8429 Need manual reset over-time mark ADPRW command Command execution end M8029 M8029 M8029 completion mark mark Communication D8120 D8400 D8420 parameters Communication mode D8401 D8421...
  • Page 59 16-bit S0~S15 of the slave PLC to the M100~M115 of the master PLC. The default state is compatible with Mitsubishi original programs. The Mitsubishi PLC only has one port to support the ADPRW instruction, depends on D8401 (in prior) and D8421. All three ports of Coolmay PLC support the ADPRW instruction.
  • Page 60: Network Communication

    CX3G/FX3GC PLC Programming manual 8.6 Network communication Automatically detect the network after power-on. M8193=1 when there is a network chip, network preparation. Special relays, registers and registers that IP addresses used are as below. Functions Network Remark Network preparation M8193 Write network address M8197 26232 or higher version...
  • Page 61 CX3G/FX3GC PLC Programming manual also be set. Note: MAC addresses on the same network cannot be duplicated, otherwise communication will be abnormal. R23807,R23808 is the local IP address. Default:192 .168. 1 .250.Namely R23807=0XC0A8, R23808=0X01FA. R23810,R23811 is the MODBUS target IP, R23812 Port default =502 R23813 default=100 (Cycle numbers) is the WR3A RD3A sequential execution interval.

Table of Contents