Page 1
COOLMAY EX3G PLC/HMI All in one Programming manual COOLMAY EX3G PLC/HMI All in one Programming manual (plc part: Difference comparing with Mitsubishi FX3G) All right belongs to Shenzhen Coolmay Technology Co.,Ltd V8.112...
COOLMAY EX3G PLC/HMI All in one Programming manual Content 1. Overview ................................. 1 1.1 EX3G PLC/HMI Allin one Main Advantage: ..................1 1.2 Specification ............................2 1.3 Hardware description ..........................3 1.3.1 EX3G-43HA/HB structure description and dimension .............. 3 1.3.2 EX3G-43(50)KH structure description and dimension .............. 4 1.3.3 EX3G-70KH structure description and dimension ..............
Page 3
COOLMAY EX3G PLC/HMI All in one Programming manual 3.3 Introduction when HMI is with com port for MODBUS RTU protocol ..........66 3.3.1 HMI as master .......................... 66 3.3.2 HMI as slave ..........................68 3.4 Other HMI usage..........................69...
COOLMAY EX3G PLC/HMI All in one Programming manual 1. Overview 1.1 EX3G PLC/HMI Allin one Main Advantage: ◆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.
Regular models:EX3G-43HB/43KH/50KH-16MR/24MR/24MT(-4AD2DA-485P/232H) EX3G-70KH100HA-16MR/24MR/44MT/44MRT(-16AD8DA-485P/232H) *EX3G-70HA/100HA: If with 30DI/30DO,the maximum analogs are 5AD/2DA;If with 24DI/20DO,the maximum analogs are 16AD/8DA; Detailed info.refer to:《Coolmay HMI/PLC All-in-on Programming Manual》 《HMI/PLC All-in-one User Manual》 《CoolMay HMI User Manual》 《EX3G PLC/HMI Programming Manual》 《EX3G PLC/HMI User Manual》...
COOLMAY EX3G PLC/HMI All in one Programming manual 1.3 Hardware description 1.3.1 EX3G-43HA/HB structure description and dimension PLC Run light Com port of plc and hmi Power light * Dimension(mm):134*102*30 * Cutout size(mm): 119*93 * Installation: Clip installation * Display size(mm): 97*56...
COOLMAY EX3G PLC/HMI All in one Programming manual 1.3.2 EX3G-43(50)KH structure description and dimension PLC Run light Com port of plc and hmi Power light * Dimension(mm):150*93*32 * Cutout size(mm):143*86 * Installation: Clip installation * Display size(mm): EX3G-43KH:97*56 EX3G-50KH:108*65...
COOLMAY EX3G PLC/HMI All in one Programming manual 1.3.3 EX3G-70KH structure description and dimension PLC Run light Com port of plc and hmi Power light * Dimension(mm):226*163*35.6 * Cutout size(mm): 218*153 * Installation: Clip installation * Display size(mm): 154*87...
COOLMAY EX3G PLC/HMI All in one Programming manual 1.3.4 EX3G-100HA structure description and dimension PLC Run light Com port of plc and hmi Power light * Dimension(mm):275*194*36 * Cutout size(mm): 261*180 * Installation: Clip installation * Display size(mm): 222*133...
COOLMAY EX3G PLC/HMI All in one Programming manual 1.3.5 Introduction of each interface and indicator POWER: Power indicator, connected to the power light RUN: PLC running status indicator. This light is on when the PLC is running. COM: touch screen and PLC communication status indicator, when the two communicate, the light is on Power terminal: The positive and negative terminals of the DC24V switching power supply are respectively connected to the DC24V and 0V of the power supply terminal.
COOLMAY EX3G PLC/HMI All in one Programming manual 2. PLC 2.1 PLC Programming notice The PLC is compatible with GX 8.86/Works 2 and below. If you use other versions of the software, incompatibility may occur. When the PLC program is downloaded, there is a prompt error: Cannot specify the com port, GX 8.86 software: Online - Transfer settings change com port;...
Page 12
COOLMAY EX3G PLC/HMI All in one Programming manual EEPROM hold S10~S899 890 points Signal Alert (EEPROM hold) S900~S999 100 points General*1 S1000~S4095 3096 points Timer (ON delay timer) 100ms 200 points T0~T191 0.1~3,276.7s ※1 T200~T245 46 points 0.01~327.67s 10ms 1ms accumulative 4 points T246~T249...
COOLMAY EX3G PLC/HMI All in one Programming manual Constant 16 bit -32,768~+32,767 Decimal (K) 32 bit -2,147,483,648~+2,147,483,647 16 bit 0~FFFF Hexadecimal (H) 32 bit 0~FFFFFFFF Real number(E)*3 -1.0×2128~-1.0×2-126,0,1.0×2-126~1.0×2128 32 bit Can be in the form of a decimal point and index *1: The 10ms timer will be affected by the scan cycle.
Page 14
COOLMAY EX3G PLC/HMI All in one Programming manual Content Remarks Content Remarks M8052 Input interrupt (I20 is prohibited) M8252 C252 Increase/decrease counting action M8053 Input interrupt (I30 is prohibited) M8253 C253 Increase/decrease counting action M8054 Input interrupt (I40 is prohibited)
Page 15
COOLMAY EX3G PLC/HMI All in one Programming manual Content Remarks Content Remarks M8152 6 pulse operation monitoring M8364 Y002 reverse limit Y002 near-point DOG signal logic M8153 7 pulse operation monitoring M8365 inversion M8154 8 pulse operation monitoring M8366 Y002 zero signal logic inversion...
COOLMAY EX3G PLC/HMI All in one Programming manual Content Remarks Content Remarks action 2.11.4 C209 Increase/decrease counting M8209 M8423 RS2 command reception end action C210 Increase/decrease counting M8210 M8424 RS2 command data in reception action C211 Increase/decrease counting M8211 M8425...
Page 17
COOLMAY EX3G PLC/HMI All in one Programming manual Content Remarks Content Remarks 8...8K steps; When 16K steps and above, D8002=8,D8102 is corresponded to 16,32,64 10H:Programmable D8003 Memory type controller built-in D8169 Restrict access status memory D8010 Scan current value D8182 Z1 Register contents...
Page 18
COOLMAY EX3G PLC/HMI All in one Programming manual Content Remarks Content Remarks D8051 DA1 analog output value D8354 High Y1 crawling speed D8052 DA2 analog output value D8355 Initial value: 1000 D8053 DA3 analog output value D8356 Y1 Origin return speed...
Page 19
COOLMAY EX3G PLC/HMI All in one Programming manual Content Remarks Content Remarks number D8102 PLC memory capacity 16...16K steps D8410 RS2 header 1, 2 <initial value: STX> D8108 Number of special modules connected D8411 RS2 header 3, 4 D8109 Y number of output refresh error D8412 RS2 trailer 1, 2 <initial value: ETX>...
COOLMAY EX3G PLC/HMI All in one Programming manual M8084~M8119, 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》 2.5 Applied instructions【Sequence is according to instruct variety】...
Page 21
COOLMAY EX3G PLC/HMI All in one Programming manual 1. Data move instructions Mnemonic FNC No. Function Support Move ★ SMOV Shift Move ★ Compliment ★ BMOV Block Move ★ FMOV Fill Move ★ PRUN Parallel Run (Octal Mode) ★ Exchange ★...
Page 22
COOLMAY EX3G PLC/HMI All in one Programming manual AND>= Contact compare AND (S1)≧(S2) ★ Contact compare OR (S1)=(S2) ★ OR> Contact compare OR (S1)>(S2) ★ OR< Contact compare OR (S1)<(S2) ★ OR<> Contact compare OR (S1)≠(S2) ★ OR<= Contact compare OR (S1)≦(S2) ★...
Page 23
COOLMAY EX3G PLC/HMI All in one Programming manual 6. Special function instructions Mnemonic FNC No. Function Support Square Root ★ ESQR Floating Point Square Root ★ Floating Point Exponent ★ Floating Point Natural Logarithm LOGE ★ LOG10 Floating Point Common Logarithm ★...
Page 24
COOLMAY EX3G PLC/HMI All in one Programming manual Negation ★ ENEG Floating Point Negation ★ WTOB WORD to BYTE ★ BTOW BYTE to WORD ★ 4-bit Linking of Word Data ★ 4-bit Grouping of Word Data ★ Check Code ★...
Page 25
COOLMAY EX3G PLC/HMI All in one Programming manual SRET Subroutine Return ★ IRET Interrupt Return ★ Enable Interrupt ★ Disable Interrupt ★ FEND Main Routine Program End ★ Start a FOR/NEXT Loop ★ NEXT End a FOR/NEXT Loop ★ 12. I/O refresh instructions Mnemonic FNC No.
Page 26
COOLMAY EX3G PLC/HMI All in one Programming manual IVRD Inverter Parameter Read IVWR Inverter Parameter Write IVBWR Inverter Parameter Block Write IVMC Inverter multiple command ADPRW MODBUS read and write ★ 16. Special block/unit control instructions Mnemonic FNC No. Function...
D8001, D8101, if necessary, please query the value of D8001. 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 thermocouple.
Page 28
COOLMAY EX3G PLC/HMI All in one Programming manual (Negative temp) PT100/PT1000 -200~350℃ -2000~3500 0.1℃ -48~210℃ -480~2100 0.1℃ Voltage 0~10V/0-5V 0~4000 2.5mV Current Type1 0~20mA 0~4000 Current Type2 4~20mA 0~4000 Below table for software version 26230 and above Accuracy Input signal...
COOLMAY EX3G PLC/HMI All in one Programming manual 2.6.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. K type thermocouple (1~4 channel) are in the 4 registers from R23680, the 5 is temperature compensation, R23684 reveals the environment temperature.
COOLMAY EX3G PLC/HMI All in one Programming manual AD13 R23653 R23673 D8043 R23633 AD14 R23654 R23674 D8044 R23634 AD15 R23655 R23675 D8045 R23635 When 4~20mA,<3.8mA,value is 32760,which is the disconnection value. 2.6.3 Analog input reading 2 (for Main software version 26220)
COOLMAY EX3G PLC/HMI All in one Programming manual D8037 D8038 D8039 AD10 D8040 AD11 D8041 AD12 D8042 AD13 D8043 AD14 D8044 D8045 AD15 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.
COOLMAY EX3G PLC/HMI All in one Programming manual 2.6.6 Demo example Below is an example of EX3G 1 channel temperature analog AD0 acquisition. The program reads the values as follows: 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.
COOLMAY EX3G PLC/HMI All in one 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.
2.10.Application of high speed pulse 2.10.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).
COOLMAY EX3G PLC/HMI All in one Programming manual Acceleration/deceleration time T calculation= (target speed-current speed) * acceleration/deceleration time÷maximum speed. For example, target speed = 50000, current speed = 20000, acceleration time 100 (ms), maximum speed = 100,000, T = 30 ms.
Page 36
M8344=0,relative position; M8344=1,absolute position. 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.
2.10.3 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.
Page 38
COOLMAY EX3G PLC/HMI All in one Programming manual Operand Description: All use 32-bit registers. S1. indicates the pulse frequency, that is, the speed of the interpolation motion. S2. indicates the X-axis target address. S2.+2 indicates the Y-axis target address. In the center mode: S2.+4 and S2.+6 indicates the Center coordinates.
Page 39
COOLMAY EX3G PLC/HMI All in one Programming manual Program as below :...
COOLMAY EX3G PLC/HMI All in one Programming manual 2.11 PLC Communication port User Manual PLC defaulted has a RS232 programming port, and two communication ports ( Rs232 or Rs485) can be added. Meanwhile, CANbus is also optional. 2.11.1 Serial port 2: RS485(A B)/RS232 Support MITSUBISHI programming port protocol,Mitsubishi BD board protocol,RS protocol and MODBUS protocol;...
Page 41
COOLMAY EX3G PLC/HMI All in one Programming manual Main version 26232 or higher RD3A/WR3A interval period D8126 D8406 D8426 version RD3A\WR3A end operation -1 Main version 26232 or higher ADPRW command settings D8126=0 D8126=1 D8126=2 version Main version 26232 or higher...
Page 42
COOLMAY EX3G PLC/HMI All in one Programming manual Data length 0:7 bit 1:8 bit Parity 00:None 01:Odd 11:Even Stop bit 0:1 bit 1:2 bit Baud rate (b7b6b5b4) 0100:600bps 0101:1200bps 0110:2400bps 0111:4800bps 1000:9600bps 1001:19200bps 1010:38400bps 1011:57600bps 1100:115200bps Demo Program: Use the serial port tool by serial port 2 to monitor the data obtained: [2017:11:01:10:49:16][receive]31 32 33 2.11.1.3 Modbus RTU Protocol...
Page 43
1011:57600bps 1100:115200bps Set 0 Set 0 Set 1 Set 1 Set 1 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.
Page 44
COOLMAY EX3G PLC/HMI All in one Programming manual In the instruction, m1 represents the station number of the read slave device,range:1-247; m2 represents the first address number of the read data in the slave device; D represents the number of registers read, range: 1-32, and the read data is sequentially stored in the host D.+1, D.+2.
Page 45
COOLMAY EX3G PLC/HMI All in one Programming manual 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 46
COOLMAY EX3G PLC/HMI All in one Programming manual 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.
COOLMAY EX3G PLC/HMI All in one 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 2.11.2 Serial port 3:RS485 (A1 B1)/RS232...
Page 48
COOLMAY EX3G PLC/HMI All in one Programming manual M8196=1 RS port protocol M8192=1 M8125=0 RS sending mark M8122=1 M8402=1 M8422=1 Need manual reset RS sending completion mark M8425 Need manual reset RS receiving completion mark M8123 M8403 M8423 Need manual reset...
Page 49
COOLMAY EX3G PLC/HMI All in one Programming manual M8029:Communication completion flag (communication completion flag when using ADPRW instruction, needs to be reset by hand). M8161:8-bit/16-bit mode distinguishing flag for RS/RS2 instruction (used in version 26230 and above, always in 8-bit mode in versions 26210 and 26220) D8400:Save the communication parameters of the Modbus RTU protocol...
Page 50
COOLMAY EX3G PLC/HMI All in one 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 2.11.2.1 Mitsubishi programming protocol When using as mitsubishi programming port protocol: set M8192=0.
Page 51
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
COOLMAY EX3G PLC/HMI All in one Programming manual 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 2.11.2.4 MODBUS RTU ADPRW Command...
COOLMAY EX3G PLC/HMI All in one Programming manual 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 2.11.3 Modbus Communication address number...
Page 56
COOLMAY EX3G PLC/HMI All in one Programming manual Serial port Serial port Functions CAN(H/L) Remark 2(A/B) 3(A1/B1) 26232 or higher version: power Programming port M8196=0 M8192=0 lost can not be retentive M8196=1 RS2 functions M8192=1 M8125=0 RS2 sending mark M8122=1...
Page 57
COOLMAY EX3G PLC/HMI All in one Programming manual M8424: Data is under receiving. M8425: The transmission is completed and needs manual reset. M8426: Switch between multi-machine mode and master-slave mode M8426=1: CAN is in multi-machine mode, there is no master-slave division, and it can transmit up to 8 bytes of data.
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 59
COOLMAY EX3G PLC/HMI All in one Programming manual the above parameters and then restart). M8062:=1 Represents MODBUS timeout, MODBUS_TCP is used. M8063:=1 Represents IP address is conflict. D8395:Switch between Mitsubishi function and MODBUS_TCP D8395=0:Mitsubishi function D8395=1:MODBUS_UPD Slave D8395=2:MODBUS_UPD Master D8395=3:MODBUS_TCP Slave D8395=4:MODBUS_TCP Master...
COOLMAY EX3G PLC/HMI All in one Programming manual 2.13 Difference between EX3G and EX2N PLC/HMI All in one Series EX2N series HMI/PLC all in one EX3G series HMI/PLC all in one Difference Size difference EX2N-43H series is the same as the EX3G-43HB series ,Dimension:134*102*30mm,Cutout:...
Page 61
COOLMAY EX3G PLC/HMI All in one Programming manual The optional communication port supports the Optional communication port supports the Mitsubishi programming port Mitsubishi programming port protocol/MODBUS protocol/MODBUS protocol/RS protocol. protocol/RS protocol. EX2N-43H/43KH/50KH EX3G-43HB/43(50)KH can be equipped with Optional 1 RS232, optional audio, no optional 1 RS232.
Page 62
COOLMAY EX3G PLC/HMI All in one Programming manual [M0~M383] 384 points General; [M0~M499] 500 points General; Auxiliary [M384~M1535] 1152 points to keep in; [M500~M1535] 1036 points Keep in; register range [M1536~M7679] 6144 points General; [M8000~M8255] 256 points Special. [M8000~M8511] 512 points Special.
Page 63
COOLMAY EX3G PLC/HMI All in one Programming manual mixed output MRT. Support multiple channels of various types of analog single or mixed input and output, a single device up to 16 in 8 out, analog input and output accuracy 12 bits. The CX3G...
3.1 HMI program software user introduction 3.1.1HMI Program software installation Coolmay HMI program software, compatible with XP/WIN7/WIN8/WIN10 system. If it can not be installed for use, pls try by replacing another computer, re-installing the system, and higher user rights. Among them, The WIN7 system must change the user account control settings to never notify, WIN8 system, WIN10 system must turn off the digital signature to reduce trouble.
COOLMAY EX3G PLC/HMI All in one Programming manual EX3G-50KH/50KHA/70KHAS select MT6070H(800*480); EX3G-70KHA/100HA select MT6100HA(1024*600); 3.2 HMI Display download 3.2.1 Online download step (USB download line download) 1. After saving the program, click “application” --- ”compile” in the software (shortcut F5)
Page 66
COOLMAY EX3G PLC/HMI All in one Programming manual After compiling, it will prompt to create the target file successfully; 2. Under the target file path (view the default disk in the software application---target file path, the default is on the C drive) Confirm that the C drive has generated a file with the same file name and the same name as .hw6, as shown...
Page 67
COOLMAY EX3G PLC/HMI All in one Programming manual 3. Click “Application”--”Download”. 4.The download window pops up, the HMI connection is OK, the IP setting is OK, wait for the download command prompt, and then click download; 5.The download will complete and the update will be successful.
COOLMAY EX3G PLC/HMI All in one Programming manual 3.2.2 U disk download step (43HB series don’t support) 1. After saving the program, compile the program (shortcut F5); 2. Under the target file path (view the default disk in the software application---target file path, the default is on the C drive) Find the file generated in C disk, which name is “.hw6”...
COOLMAY EX3G PLC/HMI All in one Programming manual 5. Click “Update *.hw6 file”, enter the corresponding level password , the default super password is 12345678, the default normal password is empty (direct confirmation); if you changed the password, you need to enter the corresponding correct password;...
Page 70
COOLMAY EX3G PLC/HMI All in one Programming manual 2) Communication Parameter setting: Open "Application --- Setting OP --- Network Settings" Controller ID Address Mode: Select the default standard mode 2.HMI as mater and connect to multi-slaves setting: Note: When the HMI is used as the Master with multiple slaves, the communication port must be set to COM2 in the Link1 setting (HMI optional RS485).
COOLMAY EX3G PLC/HMI All in one Programming manual Extended communication ID switching interval: The default is 35ms, which can be adjusted according to actual communication. Extended Mode Start ID: The default is 1, which is the first slave station number of the connected slave.
COOLMAY EX3G PLC/HMI All in one Programming manual 2. station number setting 1) Put a function key on the HMI program and jump to the 255 system menu page, and then compile and download the program to the HMI. As shown below: 3.4 Other HMI usage.
Need help?
Do you have a question about the EX3G-43HB-24M and is the answer not in the manual?
Questions and answers