Coolmay MX2N Series, MX2N-43HB, MX2N-70HB Programming Manual

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
MX2N series HMI PLC all in one programming manual
2
Content
2 Component Range
3 PLC Supported instruction
4 Analog Usage
5 Random number instructions
6 High speed counter application
7 Pulse capture function application
8 High speed pulse output application
9 MX2N-70HB Optional com port instructions
10.Fault detection
11 HMI (Human Machine Interface)
..................................................................................................................................
1.1 COOLMAY MX2N PLC main advantage
1.2 Type & Specification
1.3 Hardware description
1.3.1 MX2N-43HB structure description and dimension
1.3.2 MX2N-70HB structure description and dimension
1.3.3 Interface and Indicators description
....................................................................................................................
3.1 Basic Logic instructions
3.2 Step command instructions
3.3 Function instruction table( Compared with Mitsubishi PLC)
3.4 Special relay & register function
.........................................................................................................................
4.1 Analog input type
4.1.1 Analog input reading
4.2 Analog output type.
4.2.1 Analog output reading
6.1 Inside high speed counter input distribution table
6.2 High speed count input instructions
9.1 Function Description
9.2Modbus-RTU Protocol special registers & relays
9.3 D8120 Parameter and Function setting
9.4Modbus-RTU Master station instructions
9.5Modbus-RTU Protocol slave station element address
9.6 RS Protocol special registers & relays instructions
......................................................................................................................
11.1 Touch Panel Software instruction
11.1.1 Touch Panel Software installation
11.1.2 New build touch panel program
11.2 Touch panel screen download (don't support U disk download)
11.3 Other HMI software usage, refer toCoolMay HMI series user manual.
....................................................................................................
....................................................................................................
.....................................................................................................
..............................................................................................
.........................................................................................
................................................................................
........................................................................................................
........................................................................................
.....................................................................................................
......................................................................................
.................................................................................................
..............................................................................................
.........................................................................................
......................................................................................
...................................................................................................
.....................................................................................
.............................................................................
...................................................................
...........................................
...........................................
...................................................................
.....................................
......................................................
............................................................................
.......................................................................
.......................................................
.......................................................................
....................................................................
.................................................
....................................................
.................................................................
.....................................................................
..............................
........
3 3 4 6 6 7 8
9 10 10 10 11 15 20 20 20 21 21 22 23 23 24 25 26 27 27 27 28 29 30 32 33 36 36 36 36 37 39
MX2N series HMI PLC all in one programming manual
3

1 Summary

1.1 COOLMAY MX2N PLC main advantage

Could use GX Developer and GX Works2 software to program,read,download, verify, diagnose,monitor and process sequence.
Could customize 12 channels AD and 2 channels DA,in 12bit precision,use RD3A to read AD data and WRA3 to output DA data (can set upper and lower limit ranges.)
Support optional one RS485 or RS232 COM Port,support Programming port protocol and MODBUS-RTU master-slave protocol.It can be switched in the program through D8120,support communication through RS485 networking and inverter etc.
Support RTC function,when password is 12345678,the programming software can't modify clock data.
High Speed counter input conventional 6 channels single-phase counting (X0-X5) or 2 channels AB phase counting (X0-X1/X3-X410KHz, it can be customized 6 channels single-phase counting at most (4 channels 60KHz,2channels 60KHz).
High speed pulse output conventional 4 channels 20KHz Y0/Y1/Y2/Y3, it can be customized 4 channels Y0/Y1 200KHz,Y2/Y3 100KHz.
Support Watch dogs function-compatible with Mitsubishi FX2N.
Support external interrupt function-compatible with the original,support pulse
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 FLASH,data will be checked when power-on.)
Check the downloaded ladder program
When the program run in the PLC,it will check the program instructions and the
components range,corresponding problem will be reported when being detected.
Run light flashes when switch turns to "RUN", run light goes out when to "STOP".
During running. If check slight fault,the ERR light flashes. If serious fault,ERR
light is on always.
Support constant scan mode: D8039-Constant scan time,M8039-Constant scan mode.
Support CAN networking communication function. Support 32 slaves at most,master-slaves share 32 registers at most,communication baud rate could be set.
Optional High speed pulse output function, PWM support the highest frequency 900KHz,duty ratio is -100%.
Support function of thermocouple temperature measuring: automatic cold junction compensation,could connect 2 channels K/E/J thermocouple at most,could measure negative temperature.
Support function of program limit : could select clock date limit,power-up
MX2N series HMI PLC all in one programming manual
4
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
COM port
1 TP download port,1 USB port
1 RS232 /1 RS485 optional
Software
CoolMayHMI V5.**(newest vesion pls see HTTP://coolmay.net)
PLC
cumulative time limit.
Support function of NTC thermistor to measure temperature,support NTC of 10K,50K,B value of 3950.
Support optional digital tube display function, support 24keys input,10 common positive digital display,you can choose dingle and double bits display,or whether to decode the display.
MX2N-70HB is optional to add 1 channel load cell function (occupy AD0-AD2).

1.2 Type & Specification

MX2N series HMI PLC all in one programming manual
5
Digital I/O
12DI/12DO
24DI/20DO
I/O level
NPN,COM
Output type
MT(MOS) : 2A at most / MR (Relay): 5A at most
High speed
Counting
Normally 6 single phase counting (X0-X5) or 2 AB phase counting
X0-X1/X3-X4)10KHz
High speed
Counting
At most 6 single counting can be customized (4 60KHz2 10KHz)
or 2 AB phase counting( 2 60KHz)
High speed
Pulse
Normally 4 channels 20KHzY0-Y3
2 channels 200KHz and 2 channels 100KHz can be customized
Analog I/O
AI: 0-5V/0-10V/0-20mA/NTC10K/NTC50K/EKJ
Note: NTC type needs to occupy 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,
not suggest to change rs232 to
be rs485)
Software
Compatible with MITSUBISHI GX8.52 and WORKS2
Regular Models:MX2N-43HB-16MR/24MR/24MT(-4AD2DA-232H)
MX2N-70HB-44MR/44MT(-8AD2DA-485P/232H)
485P= PLC to add 485;485H/232H= HMI to add 485/232 Detailed info. refer to: <Coolmay MX2N Series PLC Programming Manual> <HMI PLC All In One User Manual> <Coolmay HMI User Manual>
MX2N series HMI PLC all in one programming 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
MX2N 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
MX2N series HMI PLC all in one programming manual
8

1.3.3 Interface and Indicators description

POWERPower indicator, light on when connected to power RUNPLC operating status indicator, the lamp is on when PLC is running COMTouch 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
MX2N series HMI PLC all in one programming manual
9
Input X
X0~X47 40 points
Out put Y
Y0~Y47 40 points
Ministrant
relay M
M0~M38
3 384
points
(general)
M384~M1535 1052 points
(keep)
M8000~M8255 255
points (special)
State relay
S
S0~S9 10 points
(State keep)
S10~S999 990 points (keep)
Timer T
T0~T199
200 points
100ms
T200~T254
46 points
10ms
T246~T249 4points 1ms
accumulation
T250~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)
P0~P127 128 points
(jump,subroutine)
IO 口口~I5 口口 6
points (External interrupt)
Constant
K(10
digits)
16 bits-32768~32767
32bits-2147483648~2147
483647
H(16
digits
16 bits O~FFFF
32 bits 0~FFFFFFFF

2 Component Range

MX2N series HMI PLC all in one programming manual
10
Mnemonics
Function
Available soft
Elements
Program Step
LD
NO Logic operation begin
X,Y,M,S,T,C
1
LDI
NC Logic operation begin
X,Y,M,S,T,C
1
LDP
Rising Edge detection operation
begin
X,Y,M,S,T,C
2
LDF
Falling Edge detection operation
begin
X,Y,M,S,T,C
2
AND
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 connection of parallel
circuit blocks
1
ORB
Parallel connection of series
circuit blocks
1
OUT
Coils drive
Y,M,S,T,C
Note 1
SET
Action holding
Y,M,S
Note 2
RST
Clear "Action holding",Register
to clear zero
Y,M,S,T,C,D,
V,Z
MC
Connection command of common
series point
Y,M(Exclude
Special M)
3
MCR
Eliminate command of common
series points
2
MPS
Operation memory
1

3 PLC Supported instruction

3.1 Basic Logic instructions

●The program step for soft element Y and general M is 1,for S and special auxiliary relay M,timer T,counter C is 2for Data register D ,index register V and Z is 3.

3.2 Step command instructions

MX2N series HMI PLC all in one programming manual
11
MRD
Memory read
1
MPP
Memory read and reset
1
INV
Inversion of operation result
1
PLS
Rising edge differential output
Y,M(Exclude
Special M)
1
PLF
Falling edge differential output
Y,M(Exclude
Special M)
1
OUT
Counter coils drive
C
32-bit counter:5
16- bit counter:3
SET
Action holding
Y,M,S
Y,M1
S,Special -M2
RST
Clear "Action holding"Current
value and
Register to zero
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
Mnemonics
Function
Available soft
Elements
Program Step
SEL
Step Action begin
S
1
RET
Step Action end
/
1
Sorts
FN
C
instruction
mnemonics
Function
Support
command
NO
programming flowchart
00CJConditional jump
01
CALL
Subroutine call
02
SRET
Subroutine return
03
IRET
Interrupt return
04EIInterrupt the license
05DIInterruption forbidden
06
FEND
Main program end
07
WDT
Monitor timer
08
FOR
Cycle range begin
●STLSupport 8 branches at mostRET
3.3 Function instruction table( Compared with Mitsubishi PLC)
MX2N series HMI PLC all in one programming manual
12
09
NEXT
Cycle range end
Transmission and
comparison
10
CMP
Comparison
11
ZCP
Region comparison
12
MOV
Transfer
13
SMOV
Shift Transfer
14
CML
Reverse transfer
15
BMOV
Transfer together
16
FMOV
Multi-casting
17
XCH
Exchange
18
BCD
BCD exchange
19
BIN
BIN exchange
Four logical operations
20
ADD
BIN addition
21
SUB
BIN subtraction
22
MUL
BIN multiplication
23
DIV
BIN division
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 reset
41
DECO
Ze code
42
ENCO
Coding
43
SUM
ON digits
44
BON
ON digits determination
45
MEAN
Average value
46
ANS
Signal alarm set
47
ANR
Signal alarm reset
48
SQR
BIN extraction of a root
49
FLT
BIN Integer→floating conversion
Loading...
+ 27 hidden pages