Coolmay CX3G-32M, CX3G-16M, CX3G Series, CX3G-24M, CX3G-34M Programming Manual

...
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
CX3G/FX3GC PLC Programming manual
1. Overview
1.1 COOLMAY CX3G PLC has the following advantages
1.2 Models of CX3G PLC
1.3 Models of FX3GC PLC
2. Soft element
2.1 Soft element table
3. Special relay and register
3.1 Special relay number and content
3.2 Special register number and content
4. Function Instructions
5. Application of analog
5.1 Analog input
5.2 Analog output
6. Application of high speed counter
7. Application of high speed pulse
7.1 high speed pulse output
7.2 Circular interpolation
8. Coolmay CX3G PLC Communication User Manual
8.1 Serial port 1: RS232( PLC programming port)
8.2 Serial port 2: RS485(A B)/RS232
8.3 Serial port 3:RS485(A1 B1)
8.4 Modbus Communication address number
8.5 CAN communication port
8.6 Network communication
.........................................................................................................................................................
...........................................................................................................................
........................................................................................................................
....................................................................................................................................................
..................................................................................................................................
................................................................................................................................
.........................................................................................................
...................................................................................................
.....................................................................................................................................
....................................................................................................................................
........................................................................................................................................
5.1.1 Analog input (temperature)
5.1.2 Analog input reading 1 (for software version 26210 and 26220)
5.1.3 Analog input reading 2 (for software version 26220)
5.1.4 Analog input reading 3 (for software version 26230 and above)
5.1.5 Analog input sampling
5.1.6 Analog input program example:
......................................................................................................................................
....................................................................................................................
.......................................................................................................................
..........................................................................................................................
7.2.1 Continuous interpolation function
7.2.2 Continuous interpolation function
8.2.1 Mitsubishi programming port protocol
8.2.2 Free port protocol
8.2.3 Modbus RTU Protocol
8.2.4 MODBUS RTU ADPRW command
8.3.1 Mitsubishi programming protocol
8.3.2 Mitsubishi programming protocol
8.3.3 Modbus RTU protocol RD3A/WR3A command
8.3.4 MODBUS RTU ADPRW Command
8.4.1 Bit device:
8.4.2 Word device:
8.4.3 ADPRW Command function parameter
................................................................................................................................
.....................................................................................................................
............................................................................................................................
...................................................................................................................
.....................................................................................................................
......................................................................................................
.............................................................................................................
...............................................................................................
................................................................................................................
............................................................................................
............................................................................................
.......................................................................................................
.............................................................................................................
.......................................................................................
................................................................................................................
............................................................................................
............................................................................................
.......................................................................................
...........................................................................................
II
...................................................................
.........................................
...........................................................
..........................................
....................................................................................
...................................................................................
....................................................................................
.....................................................................
..................................................................................
1 1 3 4 5 5 6
6 11 15 22 22 22 24 25 25 27 27 29 30 31 31 31 31 34 37 37 37 38 39 39 43 45 48 48 49 52 53 53 54 54 55 58

1. Overview

CX3G/FX3GC PLC Programming manual
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.
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.
With two PLC programming ports. CX3G PLC has one MiniB USB port with faster
downloading speed; one Rs232 programming port with 8 mouse hole sockets.FX3GC PLC has
one MiniB USB port with faster downloading speed; one Rs422 programming port with 8 mouse
hole sockets.
Support Mitsubishi programming port protocol/Modbus protocol/Rs protocol/BD board
protocol,easily achieve PLC communication with plc and other devices.
CX3G-16M/24M/32M/48M PLC is with 2 com ports. Default is with 2 RS485, or customized as 1
RS485+1 RS232, or 1RS485+ 1 CAN port, or 1RS232 + 1 CAN port.
CX3G-34M/64M/80M PLC is with 3 com ports. Default is with 2 RS485,or customized as 1
RS485+1 RS232,CAN port is optional for connecting HMI,VFD and other equipment.
For FX3GC-30M, 1 Rs485 can be added;
For FX3GC-16M, com ports/ analog can be added, at most 2 Rs485+1 CAN port+6AD4DA can be
added; or 1 Rs485+1 CAN port+8AD4DA can be added; or 1 RS485 +8AD6DA can be added, or 2
RS485 +1 CAN port can be added.
High speed counter, regular as single phase 6 channels 60KHz or AB(Z) phase 2 channels
60KHz+ 1 channel 10KHz.
High speed pulse, regular as 8 channels Y0-Y3 in 100KHz,Y4-Y7 in 10KHz, could be
customized as 8 channels 10-100KHz;
Note: High speed counter+High speed pulse should be less 480KHz.
Support multiple types analog individually or mixed ones for analog output and input.
Precision of AD/DA is 12bit.Temperature/current/voltage for input. current/voltage for output.
For CX3G PLC, at most 16DI/8DO. For FX3GC-16M, com ports/ analog can be added, at most 2
Rs485+1 CAN port+6AD/4DA can be added; or 1 Rs485+1 CAN port+8AD/4DA can be added; or
1 RS485+8AD/6DA can be added or 2 RS485+ 1 CAN port can be added.
Up to 40DI/40DO for CX3G PLC, up to 16DI/16DO for FX3GC PLC. Relay/transistor or
mixed relay and transistor for output.
1
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.
CX3G/FX3GC PLC Programming manual
2

1.2 Models of CX3G PLC

Models
CX3G-16M
CX3G-24M
CX3G-32M
CX3G-48M
CX3G-34M
CX3G-64M
CX3G-80M
Image
Dimension
85*90*36mm
125*90*36mm
195*90*36mm
285*90*36mm
Cutout size
77*99mm
117*99mm
187*99mm
277*99mm
Installation
Fixed hole installation and DIN-Rail (35mm )
Digital I/O
8DI/8DO
12DI/12DO
16DI/16DO
24DI/24DO
18DI/16DO
32DI/32DO
40DI/40DO
I/O level
MT Output: NPN MR output: NO contact
Input: Passive NPN, public terminal isolated
Output type
Relay MR/Transistor MT/Both MRT
Maximum load of transistor is 500mAMaximum load of relay is 5A
High speed
counting
Normally 6 single-phase 60KHz or 2 AB(Z) phases 60KHz + 1 10KHz;
High speed
pulse
Up to 8 channels. Y0-Y3 is 100KHz, Y4-Y7is 10KHz.
High-speed counting + high-speed pulse total output can not exceed 480KHz
Analog I/O
AI:0-10V/4-20mA/0-20mA/PT100/PT1000 /NTC10K/NTC50K/NTC100K /EKJST thermcouple (support negative
temperaturetc.
AO0-10V/0-5V/0-20mA/4-20mA or mixed ones
Null
8AD/4DA
2AD/2DA
8AD/4DA
12AD/8DA
16AD/8DA
4AD/4DA
6AD/4DA
2DA
COM port
Two programming port(1 Mini B type USB portfaster downloading speed;1 Rs232Interface terminal is mouse
female port with 8 holes)
The total number of COM ports is 2. The default is 2 RS485;
Or customized as 1 RS485, 1 RS232;
Or customized as a RS485, 1 CAN; Or customized as a RS232, 1 CAN.
The total number of COM ports is 3.
The default 2 RS485;
Or customized as 1 RS485, 1 RS232;
Optional CAN.
Programmi
ng software
Compatible with WORKS 2/ GX Developer 8.86
Regular modelsCX3G-16MT/MR/MRT(-485/232)CX3G-22MT/MR/MRT(-8AD4DA -485/232) CX3G-24MT/MR/MRT(-6AD4DA -485/232)CX3G-30MT/MR/MRT(-2AD2DA -485/232) 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 toCOOLMAY 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; *CX3G-32M,if with 2AD/2DA,maximum digits are 16DI/14DO.
CX3G/FX3GC PLC Programming manual
3

1.3 Models of FX3GC PLC

Artical
FX3GC-16M
Communication/analog extension module
can be added
FX3GC-30M(-485)
FX3GC-32M
Image
Dimension
90*60*32mm
Installation
Fixed hole installation and DIN-Rail (35mm
Digital I/O
Up to 8DI/8DO
Up to 16DI/14DO
Up to 16DI/16DO
I/0 level
MT Output: NPN MR output: NO contact
Input: Passive NPN, public terminal isolated
Output Type
Relay MR/Transistor MT/Both MRT
Maximum load of transistor is 500mAMaximum load of relay is 5A
High-speed
counting
Normally 4 single-phase 60KHz+2 10KHz or 2-3 AB(Z) phases up to 60KHz;
Can be specially customized 6 single phase 100KHz or 2 AB(Z) 60KHz+1 10KHz
High-speed
pulse output
Up to 8 channels. Y0-Y3 is 100KHz, Y4-Y7is 10KHz. Customized 8 channels 10-100KHz;
High-speed counting + high-speed pulse total output can not exceed 480KHz
Analog I/O
AI0-10V/4-20mA/0-20mA/PT100/PT1000/K type thermocouple /NTC10K/NTC50K/NTC100K etc.
AO0-10V/0-5V/0-20mA/4-20mA or mixed ones
Analog extension module can be added
NULL
COM port
Two programming port(1 Mini-B type USB port,faster downloading speed;1 Rs422,Interface terminal
is 8 holes mouse female port)
Rs485/CAN extension module can be added
Optional 1 RS485
NULL
Software
Compatible with Mitsubishi WORKS 2/GX Developer8.86
Regular models: FX3GC-16/32MT/MR/MRT
FX3GC-30MT/MR/MRT(-485)
Detailed info. refer toCOOLMAY CX3G/ FX3GC PLC Programming Manual Support interruptionlinear and arc interpolatedPID 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,
Or 1 RS485,1 CAN port,8AD4DA,
Or 1RS485,8AD8DA,
Or 2 RS485,1 CAN port.
CX3G/FX3GC PLC Programming manual
4

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
M1536~M7679*2
6144 points
Special*3
M8000~M8511
512 points
Status
Initial state (EEPROM hold)
S0S9
10 points
EEPROM hold
S10S899
890 points
Signal Alert (EEPROM hold)
S900S999
100 points
General*1
S1000S4095
3096 points
Timer (ON delay timer)
100ms
T0T191
200
points
0.13,276.7s 10ms
T200T245
46 points
0.01327.67s
1ms accumulative
(EEPROM hold)
T246T249
4 points
0.00132.767s
100ms accumulative
(EEPROM hold)
T250T255
6 points
0.13,276.7s 1ms
T256T319
64 points
0.001~32.767s
Counter
General up counter (16bit)
C0C15
16 points
032,767 counter
EEPROM hold up counter
(16 bit)
C16C199
184
points
032,767counter
General bi-direction (32 bit)
C200C219 20 points
-2,147,483,648+2,147,483,647
counter
EEPROM hold bi-direction
(32 bit)
C220C234 15 points
-2,147,483,648+2,147,483,647
counter
High-speed counter
Single-phase single counter input
Bi-direction (32 bit) (EEPROM
hold)
C235C245
-2,147,483,648+2,147,483,647 Counter Software
counter Single phaseat most 6 channel, 60kHz Double phaseDouble frequency:at most 2-3
channels,60KHz; M8198 is 4 times frequency sign of
C251.
Quad frequency:at most 2-3 channels
24kHz,M8199 is 4 times frequency sign of C253.
Single-phase double counter input
Bi-direction (32 bit) (EEPROM
hold)
C246C250 Double –phase double counter
input
C251C255
CX3G/FX3GC PLC Programming manual

2. Soft element

5
CX3G/FX3GC PLC Programming manual
Bi-direction (32 bit)(EEPROM
hold)
Name
Contents
Data register(32 bit when using in pair)
General(16bit)
D0D127
128 points
EEPROM hold (16 bit)
D128D7999
7872 points
Special (16 bit)
D8000D8511
512 points
Index (16 bit)
V0V7,Z0Z7
16 points
Extended register·extended file register
Extended register(16 bit)
R0R22999
23000points Maintain when power off not supported
R23000
R23999
1000points for system internal
Pointer
JUMPCALL branch
P0P255
P0P1280
256 points
1281 points(26232 and above)
CJ instructCALL
instruct
Input interrupt
I0□□I5□□
6points
Timer interrupt
I6□□I8□□
3points
Nest
Master control
N0N7
8points
MC instruct
Constant
Decimal (K) 16 bit
-32,768+32,767
32 bit
-2,147,483,648+2,147,483,647
Hexadecimal (H) 16 bit
0000FFFF
32 bit
00000000FFFFFFFF
Real number(E)*3 32 bit
-1.0×2128-1.0×2-126,0,1.0×2-1261.0×2128
Can be in the form of a decimal point and index

3. Special relay and register

Num
Content
Remarks
Num
Content
Remarks
M8000
In RUN,Normally closed
M8224
C224 Increase/decrease counting
action
ON:decrease
action
OFF:increase
action
M8001
In RUN,Normally open
M8225
C225 Increase/decrease counting
action
M8002
After RUN, Output a scan cycle
ON
M8226
C226 Increase/decrease counting
action
M8003
After RUN, Output a scan cycle
OFF
M8227
C227 Increase/decrease counting
action
M8011
Oscillating in 10ms cycle
M8228
C228 Increase/decrease counting
action
*1: The 10ms timer will be affected by the scan cycle. If the scan period is 12ms, the timer becomes 12ms and is executed once.

3.1 Special relay number and content

6
CX3G/FX3GC PLC Programming manual
Num
Content
Remarks
Num
Content
Remarks
M8012
Oscillating in 100ms cycle
M8229
C229 Increase/decrease counting
action
M8013
Oscillating in 1s cycle
M8230
C230 Increase/decrease counting
action
M8014
Oscillating in 1min cycle
M8231
C231 Increase/decrease counting
action
M8020
Zero flag
M8232
C232 Increase/decrease counting
action
M8021
Borrowing flag
M8233
C233 Increase/decrease counting
action
M8022
Carry flag
M8234
C234 Increase/decrease counting
action
M8024
Specify BMOV direction
M8235
C235 Increase/decrease counting
action
ON:decrease
action
OFF:increase
action
M8028
During instruction
execution,allow interrupt
M8236
C236 Increase/decrease counting
action
M8029
Instruction execution end flag
M8237
C237 Increase/decrease counting
action
M8031
Non-retentive memory is cleared
M8238
C238 Increase/decrease counting
action
M8032
Retentive memory is cleared
M8239
C239 Increase/decrease counting
action
M8033
Memory retention stop
M8240
C240 Increase/decrease counting
action
M8034
Prohibit all output
M8241
C241 Increase/decrease counting
action
M8035
Forced RUN mode
M8242
C242 Increase/decrease counting
action
M8036
Force RUN command
M8243
C243 Increase/decrease counting
action
M8037
Force STOP command
M8244
C244 Increase/decrease counting
action
M8045
Prohibit reset of all outputs
M8245
C245 Increase/decrease counting
action
M8046
STL state action
M8246
C246 Increase/decrease counting
action
ON:decrease
action
OFF:increase
action
M8047
STL effective control
M8247
C247 Increase/decrease counting
action
M8048
Signal alarm action
M8248
C248 Increase/decrease counting
action
M8049
Signal alarm is effective
M8249
C249 Increase/decrease counting
action
7
CX3G/FX3GC PLC Programming manual
Num
Content
Remarks
Num
Content
Remarks
M8050
Input interrupt (I00 is prohibited)
M8250
C250 Increase/decrease counting
action
M8051
Input interrupt (I10 is prohibited)
M8251
C251 Increase/decrease counting
action
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)
M8254
C254 Increase/decrease counting
action
M8055
Input interrupt (I50 is prohibited)
M8255
C255 Increase/decrease counting
action
M8056
Timer interrupt (I6 is prohibited)
M8340
1stpulse operation monitoring
M8057
Timer interrupt (I7 is prohibited)
M8342
Interpolation mode
26233 and lower
version
M8058
Timer interrupt (I8 is prohibited)
M8343
Interpolation mode
M8059
Counter interrupt is prohibited
M8344
Interpolation relative/absolute
coordinate
M8060
I/O Constitute error
M8348
Interpolation counterclockwise
26233and lower
version
M8061
PLC hardware error
M8341
Y000 clear signal output function is
valid
26234 and higher
version
M8062
Serial communication error 0
M8342
Y000 specify the origin return
direction
M8063
Serial communication error 1
M8343
Y000 forward limit
M8064
Parameter error
M8344
Y000 reverse limit
M8065
Grammatical error
M8345
Y000 near-point DOG signal logic
inversion
M8066
Loop error
M8346
Y000 zero signal logic inversion
M8067
Operation error
M8347
Y000 interrupt signal logic inversion
M8068
Operation error latch
M8348
Y000 positioning command driver
M8069
I/O bus detection
M8349
1st pulse stop
M8075
Sample tracking preparation start
command
M8350
2ndpulse operation monitoring
M8076
Sample tracking execution start
command
M8351
Y001 clear signal output function is
valid
M8077
Sample tracking execution
M8352
Y001 specify the origin return
direction
M8078
Sample tracking execution end
control
M8353
Y001 forward limit M8079
Sampling tracking system area
M8354
Y001 reverse limit
M8120
Can't use
M8355
Y001 near-point DOG signal logic
inversion
8
CX3G/FX3GC PLC Programming manual
Num
Content
Remarks
Num
Content
Remarks
M8121
RS/RS2 command sends standby
Serial Port
2
refer to
chapter
2.11
M8356
Y001 zero signal logic inversion
M8122
RS/RS2 command to send
request
M8357
Y001 interrupt signal logic inversion M8123
RS/RS2 command reception end
M8358
Y001 positioning command driver
M8124
RS/RS2 command data in
reception
M8359
2nd pulse stop
M8125
MODBUS and Mitsubishi
function enablement
M8360
3rdpulse operation monitoring
M8128
RD3A/WR3A Receive
Completed
M8361
Y002 clear signal output function is
valid
M8129
RD3A/WR3A communication
timeout
M8362
Y002 specify the origin return
direction
M8151
5thpulse operation monitoring
M8363
Y002 forward limit
M8152
6thpulse operation monitoring
M8364
Y002 reverse limit
M8153
7thpulse operation monitoring
M8365
Y002 near-point DOG signal logic
inversion
M8154
8thpulse operation monitoring
M8366
Y002 zero signal logic inversion
M8160
XCH's SWAP function
M8367
Y002 interrupt signal logic inversion
M8161
8-bit processing mode
Software
26234 and
higher
M8368
Y002 positioning command driver
M8170
Input X000 pulse capture
M8369
3rd pulse stop
M8171
Input X001 pulse capture
M8370
4thpulse operation monitoring
M8172
Input X002 pulse capture
M8371
Y003 clear signal output function is
valid
M8173
Input X003 pulse capture
M8372
Y003 specify the origin return
direction
M8174
Input X004 pulse capture
M8373
Y003 forward limit
M8175
Input X005 pulse capture
M8374
Y003 forward limit
M8176
Input X006 pulse capture
M8375
Y003 near-point DOG signal logic
inversion
M8177
Input X007 pulse capture
M8376
Y003 zero signal logic inversion
M8192
Programming port protocol and
other protocol enablement
Serial
port3
M8377
Y003 interrupt signal logic inversion
M8196
Programming port protocol and
other protocol enablement
Serial
port2
M8378
Y003 positioning command driver
M8198
4 times frequency of C251, C252,
C254
M8379
4th pulse stop
M8199
4 times frequency of C253
M8396
C254 function corresponds to input
phase
Refer to chapter
2.9.1
M8200
C200 Increase/decrease counting
action
ON:decrea
se action
M8401
RS2 command sends standby
Serial port 3
Refer to chapter
9
Num
Content
Remarks
Num
Content
Remarks
OFF:increa
se action
2.11.2
M8201
C201 Increase/decrease counting
action
M8402
RS2 command to send request
M8202
C202 Increase/decrease counting
action
M8403
RS2 command reception end
M8203
C203 Increase/decrease counting
action
M8404
RS2 command data in reception
M8204
C204 Increase/decrease counting
action
M8405
RS2 command data setting ready
M8205
C205 Increase/decrease counting
action
M8408
RD3A/WR3A Receive Completed
M8206
C206 Increase/decrease counting
action
M8409
RD3A/WR3A communication
timeout
M8207
C207 Increase/decrease counting
action
M8421
RS2 command sends standby
CAN
communication
Refer to chapter
2.11.4
M8208
C208 Increase/decrease counting
action
M8422
RS2 command to send request
M8209
C209 Increase/decrease counting
action
M8423
RS2 command reception end
M8210
C210 Increase/decrease counting
action
M8424
RS2 command data in reception
M8211
C211 Increase/decrease counting
action
M8425
RS2 command data send completed
M8212
C212 Increase/decrease counting
action
M8426
RS command master-slave and
multi-machine mode
M8213
C213 Increase/decrease counting
action
M8427
CAN data standard frame and
extended frame
M8214
C214 Increase/decrease counting
action
M8428
CAN communication MODBUS
response correct
M8215
C215 Increase/decrease counting
action
M8429
Communication timeout
M8216
C216 Increase/decrease counting
action
M8432
Interpolation mode
26235 and higher
version
M8217
C217 Increase/decrease counting
action
M8433
Interpolation mode
M8218
C218 Increase/decrease counting
action
M8434
Interpolation relative/absolute
coordinate
M8219
C219 Increase/decrease counting
action
M8435
Interpolation counterclockwise
M8220
C220 Increase/decrease counting
action
M8450
5th pulse stop
M8221
C221 Increase/decrease counting
action
M8451
6th pulse stop
CX3G/FX3GC PLC Programming manual
10
Num
Content
Remarks
Num
Content
Remarks
M8222
C222 Increase/decrease counting
action
M8452
7th pulse stop
M8223
C223 Increase/decrease counting
action
M8453
8th pulse stop

3.2 Special register number and content

Num
Content
Remarks
Num
Content
Remarks
D8000
Watchdog timer
D8146
5th-8thpulse max speed
Low
D8001
PLC type and system version
Main version
number
D8147
High
D8002
PLC memory capacity
2...2K steps
4...4K steps
8...8K steps
When 16K steps
and above,
D8002=8,D8102
is corresponded
to 16,32,64
D8148
5th- 8thpulse acceleration and
deceleration time
D8003
Memory type
10H:Programmab
le controller
built-in memory
D8160
8thposition pulse amount Low
D8010
Scan current value
D8161
High
D8011
Scan time minimum
D8169
Restrict access status
D8012
Scan time maximum
D8182
Z1 Register contents
D8013
Second
D8183
V1 Register contents
D8014
Minute
D8184
Z2 Register contents
D8015
Hour
D8185
V2 Register contents
D8016
Date
D8186
Z3 Register contents
D8017
Month
D8187
V3 Register contents
D8018
Year
D8188
Z4 Register contents
D8019
Week
D8189
V4 Register contents
D8020
Input filter adjustment (0-60ms)
initial 10
D8190
Z5 Register contents D8030
AD0 analog input value
D8191
V5 Register contents
D8031
AD1 analog input value
D8192
Z6 Register contents
D8032
AD2 analog input value
D8193
V6 Register contents
D8033
AD3 analog input value
D8194
Z7 Register contents
D8034
AD4 analog input value
D8195
V7 Register contents
D8035
AD5 analog input value
D8340
1stposition pulse amount Low
D8036
AD6 analog input value
D8341
High
CX3G/FX3GC PLC Programming manual
11
CX3G/FX3GC PLC Programming manual
Num
Content
Remarks
Num
Content
Remarks
D8037
AD7 analog input value
D8342
Y0 deviation speed
Initial value:0
D8038
AD8 analog input value
D8343
1stpulse maximum speed Low
D8039
AD9 analog input value
D8344
High
D8040
AD10 analog input value
D8345
Y0 crawling speed
Initial value: 1000
D8041
AD11 analog input value
D8346
Y0 Origin return speed
Initial value:50000
Low
D8042
AD12 analog input value
D8347
High
D8043
AD13 analog input value
D8348
1stpulse acceleration time
D8044
AD14 analog input value
D8349
1stpulse deceleration time
D8045
AD15 analog input value
D8350
2ndposition pulse amount Low
D8050
DA0 analog output value
D8351
High
D8051
DA1 analog output value
D8352
Y1 deviation speed
Initial value:0
D8052
DA2 analog output value
D8353
2ndpulse maximum speed Low
D8053
DA3 analog output value
D8354
High
D8054
DA4 analog output value
D8355
Y1 crawling speed
Initial value: 1000
D8055
DA5 analog output value
D8356
Y1 Origin return speed
Initial value:50000
Low
D8056
DA6 analog output value
D8357
High
D8057
DA7 analog output value
D8358
2ndpulse acceleration time
D8058
When DA is current,Bit setting
Refer to 2.7
D8359
2ndpulse deceleration time
D8059
Constant scan time
D8360
3rdposition pulse amount Low
D8074
X0 Rising edge ring counter value
[1/6μs unit] Low
D8361
High
D8075
High
D8362
Y2 deviation speed
Initial value:0
D8076
X0 falling edge ring counter value
[1/6μs unit]
Low
D8363
3rdpulse maximum speed Low
D8077
High
D8364
High
D8078
X0 pulse width / pulse period
[10μs unit]
Low
D8365
Y2 crawling speed
Initial value: 1000
D8079
High
D8366
Y2 Origin return speed
Initial value:50000
Low
D8080
X1 Rising edge ring counter value
[1/6μs unit]
Low
D8367
High
D8081
High
D8368
3rdpulse acceleration time
D8082
X1 falling edge ring counter value
[1/6μs unit]
Low
D8369
3rdpulse deceleration time
D8083
High
D8370
4thposition pulse amount Low
D8084
X1 pulse width / pulse period
[10μs unit] Low
D8371
High
D8085
High
D8372
Y3 deviation speed
Initial value:0
D8086
X3 Rising edge ring counter value
[1/6μs unit]
Low
D8373
4thpulse maximum speed Low
D8087
High
D8374
High
D8088
X3 falling edge ring counter value
Low
D8375
Y3 crawling speed
12
CX3G/FX3GC PLC Programming manual
Num
Content
Remarks
Num
Content
Remarks
[1/6μs unit]
Initial value:1000
D8089
High
D8376
Y3 Origin return speed
Initial value:50000
Low
D8090
X3 pulse width / pulse period
[10μs unit]
Low
D8377
High
D8091
High
D8378
4thpulse acceleration time
D8092
X4 Rising edge ring counter value
[1/6μs unit] Low
D8379
4thpulse deceleration time
D8093
High
D8395
Network setting function
Refer to
chapter 2.12
D8094
X4 falling edge ring counter value
[1/6μs unit]
Low
D8397
ADPRW command serial port
position
Refer to
chapter 2.11.1
D8095
High
D8398
0~2147483647(1ms) Ring
count for incremental actions
D8096
X4 pulse width / pulse period
[10μs unit] Low
D8399
D8097
High
D8400
Modbus RTU protocol
Communication parameters
Serial port3
Refer to
chapter 2.11.2
D8101
PLC type and system version
Secondary
version number
D8401
Communication mode D8102
PLC memory capacity
16...16K steps
D8406
Number of intervals
D8108
Number of special modules
connected
D8409
overtime time
D8109
Y number of output refresh error
D8410
RS2 header 1, 2 <initial value:
STX>
D8120
Modbus RTU protocol
Communication parameters
Serial port2
Refer to chapter
2.11
D8411
RS2 header 3, 4
D8121
Master and slave station number
D8412
RS2 trailer 1, 2 <initial value:
ETX>
D8122
RS command to send data remaining
points
D8413
RS2 trailer 3, 4
D8123
RS command to receive points
monitoring
D8414
Master and slave station number
D8124
RS header <initial value: STX>
D8415
RS2 receives the summation
calculation result
D8125
RS trailer <initial value: ETX>
D8416
RS2 sends summation
D8126
When the serial port 2 uses the
ADPRW command, the value is 0.
26232 lower
D8420
Communication parameters
CAN
communication
Refer to
chapter 2.11.4
D8126
Serial port 2 interval period number
26232 and higher
D8421
Communication mode
D8127
Specify the starting number of the
communication request of the lower
computer
Serial port2
Refer to chapter
2.11 D8426
Number of intervals
D8128
Specify the number of data
requested by the lower computer
communication
D8429
overtime time
13
CX3G/FX3GC PLC Programming manual
Num
Content
Remarks
Num
Content
Remarks
D8129
Set timeout
D8430
RS2 header 1, 2 <initial value:
STX>
D8140
5thposition pulse amount
Low
D8431
RS2 header 3, 4
D8141
High
D8432
RS2 trailer 1, 2 <initial value:
ETX>
D8142
6thposition pulse amount
Low
D8433
RS2 trailer 3, 4
D8143
High
D8434
RS2 receives the summation
receive data
D8144
7thposition pulse amount Low
D8435
RS2 receives the summation
calculation result
D8145
High
D8436
RS2 sends summation
Special relay and register not supported
Special relay not supported
M8004~M8010,M8015~M8019,M8024~M8027,M8030,M8038~M8039,M8040~M8044 M8060~M8074,M8084~M8119,M8130~M8159,M8161~M8169,M8178~M8191, M8256~M8339,M8370~M8395,M8430~M8511. Note26234 and later version support M8161.
special register not supported
D8004~D8009D8042~D8067D8069~D8073D8105~D8119D8150~D8168 D8200~D8329D8468~D8511.
Specific functions please refer to Mitsubishi FX3G programming manual
14
CX3G/FX3GC PLC Programming manual
1
Data move instructions
2
Data conversion instructions
3
Comparison instructions
4
Arithmetic operation instructions
5
Logical operation instructions
6
Special function instructions
7
Rotate instructions
8
Data operation instructions
9
Data operation instructions
10
Character string operation instructions
11
Program flow control instructions
12
I/O refresh instructions
13
Real time clock control instructions
14
Pulse output/positioning control instructions
15
Serial communication
16
Special block/unit control instructions
17
Extension register/extension file register control instructions
18
Other handy instruct
1. Data move instructions
Mnemonic
FNC No.
Function
Support
MOV
12
Move
SMOV
13
Shift Move
CML
14
Compliment
BMOV
15
Block Move
FMOV
16
Fill Move
PRUN
81
Parallel Run (Octal Mode)
XCH
17
Exchange
SWAP
147
Byte Swap
EMOV
112
Floating Point Move
HCMOV
189
High Speed Counter Move
2. Data conversion instructions
Mnemonic
FNC No.
Function
Support
BCD
18
Conversion to Binary Coded Decimal

4. Function Instructions

Applied instructions【Sequence is according to instruct variety
(Contrast with MITSUBISHI)
Applied instruction can be divided into the following 18 kinds.
15
CX3G/FX3GC PLC Programming manual
BIN19Conversion to Binary
GRY
170
Decimal to Gray Code Conversion
GBIN
171
Gray Code to Decimal Conversion
FLT
49
Conversion to Floating Point
INT
129
Floating Point to Integer Conversion
EBCD
118
Floating Point to Scientific Notation
Conversion
EBIN
119
Scientific Notation to Floating Point
Conversion
RAD
136
Floating Point Degree to Radian
Conversion
DEG
137
Floating Point Radian to degree Conversion
3. Comparison instructions
Mnemonic
FNC No.
Function
Support
LD=
224
Contact compare LD
(S1)=(S2)
LD>
225
Contact compare LD
(S1)>(S2)
LD<
226
Contact compare LD
(S1)<(S2)
LD<>
228
Contact compare LD
(S1)≠(S2)
LD<=
229
Contact compare LD
(S1)(S2)
LD>=
230
Contact compare LD
(S1)(S2)
AND=
232
Contact compare AND
(S1)=(S2)
AND>
233
Contact compare AND
(S1)>(S2)
AND<
234
Contact compare AND
(S1)<(S2)
AND<>
236
Contact compare AND
(S1)≠(S2)
AND<=
237
Contact compare AND
(S1)(S2)
AND>=
238
Contact compare AND
(S1)(S2)
OR=
240
Contact compare OR
(S1)=(S2)
OR>
241
Contact compare OR
(S1)>(S2)
OR<
242
Contact compare OR
(S1)<(S2)
OR<>
244
Contact compare OR (S1)≠(S2)
OR<=
245
Contact compare OR (S1)(S2)
OR>=
246
Contact compare OR (S1)(S2)
CMP
10
Compare
ZCP
11
Zone Compare
ECMP
110
Floating Point Compare
EZCP
111
Floating Point Zone Compare
HSCS
53
High speed counter set
HSCR
54
High speed counter reset
HSZ
55
High Speed Counter Zone Compare
HSCT
280
High speed counter table compare
BKCMP=
194
Block compare (S1)=(S2)
16
CX3G/FX3GC PLC Programming manual
BKCMP>
195
Block compare (S1)>(S2)
BKCMP<
196
Block compare (S1)<(S2)
BKCMP<>
197
Block compare (S1)≠(S2)
BKCMP<=
198
Block compare (S1)(S2)
BKCMP>=
199
Block compare (S1)(S2)
4. Arithmetic operation instructions
Mnemonic
FNC No.
Function
Support
ADD
20
Addition
SUB
21
Subtraction
MUL
22
Multiplication
DIV
23
Division
EADD
120
Floating Point Addition
ESUB
121
Floating Point Subtraction
EMUL
122
Floating Point Multiplication
EDIV
123
Floating Point Division
BK+
192
Block Data Addition
BK-
193
Block Data Subtraction
INC
24
Increase
DEC
25
Decrement
5. Logical operation instructions
Mnemonic
FNC No.
Function
Support
WAND
26
Word AND
WOR
27
Word OR
WXOR
28
Word Exclusive OR
6. Special function instructions
Mnemonic
FNC No.
Function
Support
SQR
48
Square Root
ESQR
127
Floating Point Square Root
EXP
124
Floating Point Exponent
LOGE
125
Floating Point Natural Logarithm
LOG10
126
Floating Point Common Logarithm
SIN
130
Floating Point Sine
COS
131
Floating Point Cosine
TAN
132
Floating Point Tangent
ASIN
133
Floating Point Arc Sine
ACOS
134
Floating Point Arc Cosine
ATAN
135
Floating Point Arc Tangent
RND
184
Random Number Generation
17
Loading...
+ 42 hidden pages