background image

MX2N series HMI PLC all in one programming manual

21

Thermocouple analog reading register:

NO

Register reading value

1

st

channel

D8094

2

nd

channel

D8095

Cold junction temperature

D8093

Thermocouple sampling filter times

D8090(0-22,Default 0)

Calculate the input voltage formula:

Measure voltage = D803n (n = 0-11) * (VRF reference voltage / 4095);

Analog input sampling period:

Fixed to 22 PLC scan cycles.

4.2 Analog output type.

Output signal type

Range

Register

reading value

Voltage analog

0~10V/0-5V

0~4095

Current analog

0~20mA

0~4095

4.2.1 Analog output reading

Analog output could be up to 2 channels, and the precision is in 12 bits.

NO

Register reading

value

DA0

D8096

DA1

D8097

* When PLC is in “STOP”, D8096 D8097 is automatically set as 0 , DA output is also 0.

* When data setting of analog output is incorrect, 6712 fault will be defected, and DA output
is 0.

Summary of Contents for MX2N Series

Page 1: ...MX2N series HMI PLC all in one programming manual 1 Coolmay MX2N series HMI PLC all in one programming manual Copy right Shenzhen Coolmay Technology Co Ltd V8 12 1 ...

Page 2: ...instructions 22 6 High speed counter application 23 6 1 Inside high speed counter input distribution table 23 6 2 High speed count input instructions 24 7 Pulse capture function application 25 8 High speed pulse output application 26 9 MX2N 70HB Optional com port instructions 27 9 1 Function Description 27 9 2Modbus RTU Protocol special registers relays 27 9 3 D8120 Parameter and Function setting ...

Page 3: ... capture function support 6 channels X0 X5 Support super password When password is 12345678 the program can t read except the device data When password is changed the program will be cleaned You can also open the PLC program to disable the read mode on setup software Once open no matter what the password is the program can t be read Support Power down data protection All power down is Kept by FLAS...

Page 4: ...ther to decode the display MX2N 70HB is optional to add 1 channel load cell function occupy AD0 AD2 1 2 Type Specification Type MX2N 43HB MX2N 70HB Image Dimension 134 102 30mm 212 148 40mm Cutout size 120 94mm 194 138mm HMI Features 60K colors resistive panel Display size 97 56mm 154 87mm Resolution pixels 480 272 800 480 RAM 32MB 64MB ROM 128MB Operation system NULL CPU ARM9 216MHz ARM9 288MHz C...

Page 5: ...y AD4 as a common terminal optional EKJ thermocouple has only 2 channels which occupies AD4 AD7 NTC type and thermocouple type cannot coexist AO 0 10V 0 5V 0 20mA or mixed Optional voltage and current could be done 4 channels at most 4AD 2DA 8AD 2DA Optional 1 channel load cell occupy AD0 AD2 Com port Default with rs232 programming port null Optional 1 485 can not coexist with its default rs232 no...

Page 6: ...ming manual 6 1 3 Hardware description 1 3 1 MX2N 43HB 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 ...

Page 7: ...X2N series HMI PLC all in one programming manual 7 1 3 2 MX2N 70HB structure description and dimension Dimension mm 212 148 40 Cutout size mm 194 138 Installation Clip installation Display size mm 154 87 ...

Page 8: ...ndicator the lamp is on when PLC is running COM Touch screen and PLC communication status indicator light on when communicated Power terminal The positive and negative poles of the DC24V switching power supply are connected to the DC24V and 0V power terminals PLC programming port download by 232 programming line HMI programming port Download touch screen configuration program ...

Page 9: ...0 T255 6points 100ms accumulation Counter C 16 Bits counter 32 Bits counter C0 C15 16 points general C16 C199 184 points keep C200 C219 20 points general C220 C23 4 15points keep C235 C255 20points HS keep R D V Z D0 D127 128 points general D128 D7999 7872 points keep D8000 D819 5 196 points special keep D8196 D8 255 59points special V0 V7 Z0 Z7 16points index Nested Pointer N0 N7 8 points master ...

Page 10: ...D NO series connection X Y M S T C 1 ANI NC series connection X Y M S T C 1 ANDP Rising edge detects series connection X Y M S T C 2 ANDF Falling edge detects series connection X Y M S T C 2 OR NO parallel connection X Y M S T C 1 ORI NC parallel connection X Y M S T C 1 ORP Rising edge detects parallel connection X Y M S T C 2 ORF Falling edge detects parallel connection X Y M S T C 2 ANB Series ...

Page 11: ...Y M S T C D V Z Y M 1 S Special M 2 T C 2 D V Z Special D 3 NOP No action 1 END Input Output and Return to begin 1 STL Support 8 branches at most RET Mnemonics Function Available soft Elements Program Step SEL Step Action begin S 1 RET Step Action end 1 3 3 Function instruction table Compared with Mitsubishi PLC Sorts FN C instruction mnemonics Function Support command NO programming flowchart 00 ...

Page 12: ...n 24 INC BIN plus 1 25 DEC BIN minus 1 26 WAND Logic word and 27 WOR Logic word or 28 WXOR Logic word XOR 29 NEG Complementary code Cyclic shift 30 ROR Rotate right 31 ROL Rotate left 32 RCR Carry rotate right 33 RCL Carry rotate left 34 SFTR Shift right 35 SFTL Shift left 36 WSFR Word move to right 37 WSFL Word move to left 38 SFWR Shift write 39 SFRD Shift read out Data processing 40 ZRST Batch ...

Page 13: ...BSD Cam control absolute 63 INCD Cam control increment 64 TTMR Teaching timer 65 STMR Special timer 66 ALT Alternate output 67 RAMP Ramp signal 68 ROTC Rotary table control 69 SORT Data arrangement Peripheral equipment I O 70 TKY Numeric key input 71 HKY 16 key input 72 DSW Digital switch 73 SEGD 7 segment decoding 74 SEGL 7 segment code time display 75 ARWS Arrow switch 76 ASC ASCⅡtransformation ...

Page 14: ...g point COS operation 132 TAN Floating point TAN operation 147 SWAP Up and down byte conversion Positioning 155 ABS ABS current value 156 ZRN Origin regression 157 PLSV Variable speed pulse output 158 DRVI Relative positioning 159 DRVA Absolute positioning Clock operation 160 TCMP Clock data comparison 161 TZCP Clock data zone comparison 162 TADD Clock data addition 163 TSUB Clock data subtraction...

Page 15: ... series PLC 4 Instruction details refer to FX series PLC Programming manual 3 4 Special relay register function No Content No Content M8000 Operation monitoring contact M8081 M8104 24 Keys input M8001 Operation monitoring anti contact M8112 M8002 Initialize pulse contact M8113 M8003 Initialize pulse anti contact M8114 M8004 Error indication contact M8115 Thermocouple open circuit fault M8005 Rando...

Page 16: ...lse capture M8047 STL Effective monitoring M8172 X2 Pulse capture M8048 S900 S999 ON M8173 X3 Pulse capture M8049 Valid signal alarms M8174 X4 Pulse capture M8050 I0 口口 Interruption prohibition M8175 X5 Pulse capture M8051 I1 口口 Interruption prohibition M8196 C251 C252 C254 2 multiplier M8052 I2 口口 Interruption prohibition M8197 C253 C255 2 multiplier flag M8053 I3 口口 Interruption prohibition M819...

Page 17: ...29 RS MODBUS Master communication timeout 1 10ms Default 500 D8013 D8019 Corresponding to seconds minutes hours days months years and weeks D8136 Y0 Y1 high speed output count 32 bit D8020 X0 X17 filter ratio Setting 0 60ms Default 10 D8140 Y0 pulse output counter register D8021 X20 X47 filter ratio Setting 1 60ms Default 10 D8142 Y1 pulse output counter register D8022 Optional external digital tu...

Page 18: ... High 4 digit flash register D8166 Y2 Y3 High speed output count 32 bit D8078 Optional External Digital Tube Key High 4 digit decimal point position register D8182 Z1 Address register contents D8080 D8089 Optional external digital tube key show register D8183 V1 Address register contents D8090 Sampling filter numbers 0 22 Default 0 D8184 Z2 Address register contents D8091 Thermocouple type K 0 E 1...

Page 19: ...16 D8195 V7 Address register contents D8117 D8196 CAN Slave can t communicate 1 16 D8118 D8197 CAN Slave can t communicate 17 32 D8119 D8198 CAN Slave summary no communicate 1 16 D8199 CAN Slave summary no communicate 17 32 D8200 CAN Communication time 1 1ms ...

Page 20: ...perature 9 999 0 1 1 J type thermocouple Environment temperature 999 9 Room temperature 9 999 0 1 1 Thermistor NTC10K 19 9 109 9 199 1099 0 1 1 Thermistor NTC50K 40 199 9 400 1999 0 1 1 Voltage analog 0 10V 0 5V 0 4000 2 5mV 1 Current analog 0 20mA 0 4000 5uA 1 4 1 1 Analog input reading Analog input could be up to 4 channels and the precision is in 12 bits NO Register reading value AD0 D8030 AD1 ...

Page 21: ...voltage 4095 Analog input sampling period Fixed to 22 PLC scan cycles 4 2 Analog output type Output signal type Range Register reading value Voltage analog 0 10V 0 5V 0 4095 Current analog 0 20mA 0 4095 4 2 1 Analog output reading Analog output could be up to 2 channels and the precision is in 12 bits NO Register reading value DA0 D8096 DA1 D8097 When PLC is in STOP D8096 D8097 is automatically se...

Page 22: ...number just need to set M8005 ON in the program When the random number is generated and be saved to D8005 D8006 M8005 will be set OFF automatically 3 Therefore M8005 is set from OFF to ON then start the random number conversion And M8005 turn from ON to OFF then the conversion is completed 4 Example LDP M0 M0 No Pulse SET M8005 SET M8005 LDF M8005 M8005 s Down Conversion completed DMOV D8005 D0 Ex...

Page 23: ... OP 1 U D C249 U D R S C250 U D R S Double phase double count input C251 A B C252 A B R C253 A B R C253 OP 1 A B C254 A B R S C254 OP 1 A B C255 A B R S 6 1 Inside high speed counter input distribution table U add counter input D Delete counter input A A phase input B B phase input R External reset input S External start input Input X000 X007 as shown in the above table corresponding to each high ...

Page 24: ...ycle When M8196 ON C251 C252 C254 count pulse is 2 times frequency When M8197 ON the C253 C255 count pulse is 2 times frequency When M8198 ON C251 C252 C254 count pulse is 4 times frequency When M8199 ON C253 C255 count pulse is 4 times frequency For example If you use an AB phase encoder it is 1024 pulse inputs in one turn If not set the frequency multiplier then adjust the counter count 1024 the...

Page 25: ... Pulse capture function application 1 Supports the pulse capture function of X0 X5 corresponding to X0 M8170 X1 M8171 X2 M8172 X3 M8173 X4 M8174 X5 M8175 2 Using the pulse capture function you need to use the EI instruction first The example is as follows ...

Page 26: ...ding the positioning command with direction output after driving the direction output delay is 20ms before outputting the pulse 3 Special components used for pulse instructions Y0 Y1 Y2 Y3 Min output frequency default 0 D8145 D8145 D8159 D8159 Max output frequency D8146 D8147 D8146 D8147 D8160 D8160 Acceleration time default 100ms D8148 D8148 D8162 D8162 Output pulse stops immediately M8145 M8146 ...

Page 27: ...is set in the D8121 Range 1 255 4 Use FROM to read slave data when using MODBUS RTU master to write slave data supports broadcast sending function 5 Set the optional communication port to MODBUS RTU protocol the baud rate of slave is 9600 as follows 9 2Modbus RTU Protocol special registers relays Master M8121 Master data transmission M8122 Master receive Slave data check error M8123 Master receive...

Page 28: ...n diagram as below D8120 communication parameter selection register b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 Bit number Name Content b0 Data length 0 7 bit 1 8 bit b2b1 Parity 00 None 01 Odd 11 Even b3 Stop bit 0 1 bit 1 2 bit b7b6b5b4 Baud rate 0011 300bps 0100 600bps 0101 1200bps 0110 2400bps 0111 4800bps 1000 9600bps 1001 19200bps 1010 38400bps 1011 57600bps 1100 115200bps b8 Forbi...

Page 29: ...s Slave address of MX2N series PLC refers to slave element address table D master station data register this register holds the data which read from the slave station N read data length 1 64 Master write slave data usage instruction Write the data of D0 to the register with the 1st slave in address 0 M1 The lower 8 bits indicate the slave address the high 8 bits indicate the sent instruction Such ...

Page 30: ...non zero slave M0 is ON 6 When using the TO command you can send instructions to all slaves and only need to set the slave address to 0 For example TO H600 K0 D0 K3 Write D0 D1 D2 of master station to register addresses 0 1 2 of all slaves D8129 Communication timeout setting default 500ms setting technique set D8129 larger when writing program communication is normal run a period of time monitor t...

Page 31: ...efer to above D8120 2 Inspection N or O or E 3 Data bit 8 or 7 4 Stop bit 1 or 2 5 ID is set in D8121 1 255 MODBUS RTU instruction 1 Read bit operation instruction 01 02 2 Write bit operation instructions 05 3 Read register X13 11 X53 43 Y13 311 Y53 343 X14 12 X54 44 Y14 312 Y54 344 X15 13 X55 45 Y15 313 Y55 345 X16 14 X56 46 Y16 314 Y56 346 X17 15 X57 47 Y17 315 Y57 347 X20 16 X60 48 Y20 316 Y60 ...

Page 32: ...73 360 X35 29 X75 61 Y35 329 Y75 361 X36 30 X76 62 Y36 330 Y76 362 X37 31 X77 63 Y37 331 Y77 363 9 6 RS Protocol special registers relays instructions M8121 RS instruction is being sent M8122 RS instruction is in sending M8123 RS instruction receiving signal M8124 RS instruction is in receiving M8129 Communication timeout signal D8122 RS instruction sends data remainder D8123 Numbers of RS instruc...

Page 33: ...20 Reuse RS instruction correctly 6330 D8120 Parameter setting error 6331 MODBUS RTU Master doesn t support function code Reset FROM and TO Function code 6332 D8120 doesn t open MODBUS RTU Master station Set D8120 reuse FROM and TO instruction correctly 6333 FROM TO receive slave data check error Check whether the communication parameters of the master and slave stations are 6334 FROM TO receive s...

Page 34: ...ntinue use times is over 9 times 2 RET appears without using STL 6606 1 I interrupt IRETSRET in the main program 2 No IRETSRET in the program 6609 Others Whether to use FROM TO and RS instructions at same time 6614 Less MPS 6615 Less MPP 6619 I MC MCR IRET STL RST in FOR NEXT 6623 No MC instruction 6625 1 The initialization step is out of range S0 S9 2 The number of STL Sn used is more than 2 3 Th...

Page 35: ...rned off the ERR light is on and the program is not allowed to be downloaded If you need to reset the ERR light after troubleshooting 1 Pull the RUN switch to STOP and pull it back to RUN 2 After the main board is powered off wait for the ERR light to turn off and then send power ...

Page 36: ...r user rights to correct the fault Among them for WIN7 system the user account control settings must be changed into never notify for WIN8 WIN10 system the digital signature must be turned off Installation way Double click CoolMayHMI V exe Follow the prompts and click Next Note If it is not the latest version you could ask sales or visit our website for downloading www coolmay net 11 1 2 New build...

Page 37: ...anual 37 MX2N 70HB select MT6070H 800 480 11 2 Touch panel screen download don t support U disk download 1 Use USB downloading cable to download the program and save it click application compile F5 After compiling it will show Create file success ...

Page 38: ...rogramming manual 38 2 In the target file path as picture show to see the default disk usually C drive Confirm C drive generate a file in same name with the program and format hw6 As picture T480272 hw6 3 Click Application Download F6 ...

Page 39: ...ownloading window will appear waiting until that HMI connection is ok IP setting is OK then click Download when you get the prompt 5 It will prompt Update success after download completed 11 3 Other HMI software usage refer to CoolMay HMI series user manual ...

Reviews: