Easycon FX3U PLC Indication Book
Easycon FX3U PLC Indication Book
Edition: V2.8
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Preface
Thank you for purchasing FX3UE series programmable controller designed by Easycon.
This manual mainly introduces the instruction application of FX3U series programmable
controller.
FX3U series programmable controller is integrated with Ethernet network port, which can
communicate online. Combined with the dark horse configurable cloud platform, it can
realize remote monitoring and program downloading.
The controller system adopts the internationally advanced M4 core control system. It is made
by purchasing high-quality accessories from international manufacturers such as Omron relay
in Japan, Yiguang optocoupler, Fenghua, Guoju and other passive components.
This series of PLC supports GX series software programming, reading, downloading, testing,
diagnosis and monitoring, supports multi-channel analog input and analog output functions,
supports RS422 control, RS485 master slave station Modbus RTU function, CAN expansion
function, supports multi axis step control, PWM function, supports temperature NTC, PT100
sensors, supports AB phase encoder input, supports digital tube function, supports touch screen
function, supports watchdog External interrupt function, support super password setting,
support power failure detection data storage function, and support fault detection.
This series of PLC supports a series of practical functions such as ENET network function,
PLC program protection and anti reading. This series of PLC has more powerful functions,
more flexible application, and more stable performance. It can be widely used in general and
special markets, as well as in electric control cabinet control, automatic production line
transformation, multi axis robots, automatic test racks, textile machinery, packaging machines,
brick machines and other occasions. It provides highly integrated integrated solutions for
equipment intelligent manufacturing and terminal customers in monitoring, protection,
automatic control, etc. It is of great value for reducing system procurement and operating
costs and improving system reliability.
Before installing, using and maintaining the PLC, please read this manual carefully to ensure
that the product can be correctly installed and operated to give full play to its best performance.
If there are difficulties or special requirements for the use of PLC, you can contact our agent at
any time, or call the after-sales service center of our headquarters directly, and we will serve you
wholeheartedly.
All rights are reserved in this user manual, and the contents are subject to change without notice
Knowledge. Version: the first edition in 2020
-2-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Notice to users
Only operators with certain electrical knowledge can perform other operations such as wiring
on the product. If there is any unknown place, please consult the technical department of the
company.
The examples listed in the manual and other technical materials are only for users'
understanding and reference, and certain actions are not guaranteed.
When using this product in combination with other products, please confirm whether it
conforms to relevant specifications and principles.
When using this product, please confirm whether it meets the requirements and safety by
yourself. If the failure of this product may cause machine failure or loss, please set the backup
and safety functions by yourself.
Contact information
If you have any questions about the use of this product, please contact the agent and office
that purchased the product, or directly contact the Easycon
Without explicit written permission, this material and its contents shall not be copied,
transferred or used. Violators shall be liable for the losses caused.
2020/02
-3-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Catalogue
1、Basic description 5
2、Wiring diagram 9
3、Element Range 9
4、Supported Instructions 11
9、Instructions for PLSY PLSR ZRN DRVI DRVA and other pulse s 50
ending and positioning commands
10、Enhanced PWM 54
14 、Fault detection 57
-4-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
1、Basic description
Rated DC24V
Voltage voltage
input
Voltage Voltage variation range: ± 15%, voltage
variation unbalance rate<3%; Frequency ± 5%
Element 256 points for X0~X377
X point Range
input
Hardware X0~X77 64 points
scope
Element 256 points from Y0 to Y377
Range
High speed Y3, Y4, Y5, Y6 and Y7, up to 200 Khz for Y0-
pulse
Y5 and up to 100 Khz for Y6-Y7 at the same
AD input Up to 10 routes,0-10V/4-20ma/NTC,12bit
Analog 2-way,0-10V,12bit
DA output
quantity
-5-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Communication CAN
interface It supports up to 16 slaves, and supports
extended input, output, analog quantity,
weighing, NTC, PT100, thermocouple and other
functions
-6-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
commands
counters: 10KHZ
-7-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Running RUN light When the run switch is pulled to RUN, the
light RUN light flashes
-8-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
-9-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
-10-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
4、Supported Instructions
1) Basic instructions (all supported):
LD LDI LDP LDF AND ANI ANDP ANDF ANDB OR ORI ORP ORF ORB MPS MRD
MPP MC:For nesting, N0-N7 can be used normally; Only N0
MCR INV PLS PLF OUT SET RST NOP MEP MEFENDSTL(Up to 8
branches are supported)RET
2)Application instruction:
Category Function Instructions Function Remarks Category Function Instructions Function Remarks
No No
Subroutine
02 SRET 42 ENCO code
return
Interrupt
03 IRET 43 SUM ON bit
Return
Open ON bit j
04 EI 44 BON
Interrupt udgment
Input refresh
Interval
11 ZCP 51 REFF (with filter NO
comparison
setting)
-11-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Negate
14 CML 54 HSCR Compare Reset
transmission
High speed
Transmission Transmitted processing Interval
15 BMOV 55 HSZ
and
together comparison
comparison
16 FMOV Multicast 56 SPD Pulse
density
Pulse
18 BCD BCD conversion 58 PWM modulation
Acceleration
BIN conversion
19 BIN 59 PLSR and deceleration
pulse output
BIN
20 ADD 60 IST Initialization NO
addition
BIN
21 SUB 61 SER Data retrieval
subtraction
Logical Alternating
26 WAND 66 ALT
word and output
Logical
27 WOR 67 RAMP Ramp signal
word or
Rotary table
28 WXOR Logical XOR 68 ROTC NO
control
Complement
29 NEG 69 SORT Data sorting
code
-12-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Right turn
32 RCR 72 DSW digital switches NO
with carry
Cyclic shift
35 SFTL Bit shift left 75 ARWS Arrow switch NO
Word Shift
36 WSFR 76 ASC ASCII input NO
Right
-13-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
C ategory Function Instructions Function Remarks Category Function Instructions Function Remarks
No No
89 139
Calculate the
100 140 WSUM total value
of data
Data separation
101 141 WTOB of byte units
105 145
-14-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
106 146
108 148
Data
109 149 SORT2
sorting 2
Binary floating Origin
regression
110 ECMP point number 150 DSZR with DOG
comparison search
Binary floating
111 EZCP
point number
151 DVIT Interrupt
interval NO
comparison Positioning
Binary floating
Table Setting
112 EMOV point data 152 TBL NO
transmission Positioning
113 153
Floating Positioning
114 154
point number control
ABS present
115 155 ABS value reading
NO
Conversion of
117 ESTR binary floating NO Variable pulse
point number
157 PLSV
output
to string
Binary to
decimal Relative
118 EBCD floating point 158 DRVI
positioning
conversion
10 base to 2
base floating Absolute
119 EBIN point 159 DRVA
positioning
conversion
Clock data
Subtract binary
121 ESUB floating point 161 TZCP interval
number comparison
Multiplication
of binary Clock data
122 EMUL floating point 162 TADD
addition
numbers
Division of
123 EDIV binary floating 163 TSUB Clock data
point number subtraction
-15-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Exponential
Second
operation of conversion of
124 EXP binary floating 164 HTOS hour, minute
and second data
point number
Binary floating
point natural [hour, minute
125 LOGE 165 STOH Seconds]
logarithm
operation conversion
Binary floating
128 ENEG point sign flip
168
Binary floating
129 INT point BIN 169 HOUR Timer
conversion
Gray code
Data Insertion
171 GBIN inverse 211 FINS
transform of Data Table
Read incoming
172 212 POP data
16 bit data n
173 213 SFR bit right shift
(with carry)
Reading of
176 RD3A analog module *1 216
Write of
177 WR3A analog module *1 217
178 218
179 219
180 220
181 221
-16-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Read the
annotation
182 COMRD data of the NO 222
software
component
183 223
Other Generate
instructions 184 RND random 224 LD= (S1)=(S2)
number
Generate
186 DUTY 226 LD< (S1)<(S2)
timing pulse
187 227
Transmission
189 HCMOV of high-speed Contact 229 LD<= (S1)<=(S2)
counter comparison
command
190 230 LD>= (S1)>=(S2)
191 231
Addition
192 BK+ operation of
232 AND= (S1)=(S2)
data block
Data block
193 BK- Subtraction of
processing data block 233 AND> (S1)>(S2)
Comparison
194 BKCMP= of data blocks 234 AND< (S1)<(S2)
(S1)=(S2)
Comparison
195 BKCMP> of data blocks 235
(S1)>(S2)
Comparison
196 BKCMP< of data blocks 236 AND<> (S1)≠(S2)
(S1)<(S2)
Comparison
197 BKCMP<> of data blocks 237 AND<= (S1)<=(S2)
(S1)<>(S2)
Comparison
198 BKCMP<= of data blocks 238 AND>= (S1)>=(S2)
(S1)<=(S 2)
Comparison
199 BKCMP>= of data blocks 239
(S1)>=(S 2)
-17-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
BIN → string
200 STR conversion NO 240 ORD=
string
Combination NO (S1)=(S2)
manipulation 202 $+ of strings 242 ORD<
Detect the
203 LEN length of the NO 243
string
Get from the
204 RIGHT right side of NO 244 ORD<> (S1)<(S2)
the string
Get from the
205 LEFT left side of the NO 245 ORD<=
string
206 MIDR
Arbitrary fetch NO 246 ORD>= (S1)≠(S2)
from string
Any substitution
207 MIDW in a string NO 247
Transmission
209 $MOV NO 249
of string
Batch Write
251 291 SAVER Extended File NO
Register
Initialization
252 292 INITR of extended NO
registers
Log in to the
Data Table 253 293 LOGR extended NO
register
Processing
Deletion and
254 294 RWER writing of NO
extended file
register
Initialization
255 295 INITER of extended file NO
registers
Upper and
256 LIMIT lower limit 296
control
-18-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Regional
258 ZONE 298
control
Coordinate
determination
259 SCL (coordinate 299
data of different
points)
Action NO
266 306
267 307
268 308
Coordinate 2
269 SCL2 (X/Y
309
coordinate data)
Operation
Write parameter
monitoring of
270 IVCK frequency 273 IVWR NO of frequency NO
converter
converter
Operation The parameter
control of NO of frequency
271 IVDR NO 274 IVBWR converter is NO
frequency written in
External device converter batches
communication Parameter r
272 IVRD eading of
frequency
NO 276 ADPRW MODBUS
read/write
*1
converter
BFM Split
277 279 WBFM NO
Write
Data transfer
-19-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
M8017: Clock correction for positive and negative 30 seconds M8021: Borrowing flag
M8031: Non latching data clearing M8032: Latching data clearing M8053: I3 port interrupt prohibition
M8034: Disable all outputs M8039: Constant scan mode M8055: I5 port interruption prohibited
M8059: I010, I020, I030, I040, I050, I060 counting interrupt prohibition
-20
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
M8129: Serial port 1 communication timeout flag
M8139: HSCS, HSCR, HSZ, HSCT high-speed counter comparison instruction is executing
Y5 high-speed 8-axis
M8154: User interrupt input instruction Y6 M8155: User interrupt input instruction Y7
M8161: 16 bit/8-bit switching flag M8168: SMOV command HEX processing function
M8198: C251 C252 C254 4 times frequency mark M8196: C251, C252, C254 frequency multiplication mark 2
M8234: Counting direction setting of C200-C234 M8199: C253 C255 4 times frequency mark
M8255: Count direction flag of C246-C255 M8330: Output 1 of DUTY (FNC 186) instruction timing clock
M8329: Abnormal end of instruction execution M8332: Output 3 of DUTY (FNC 186) instruction timing clock
M8331: Output 2 of DUTY (FNC 186) instruction timing clock M8334: Output 5 of DUTY (FNC 186) instruction timing clock
M8333: Output 4 of DUTY (FNC 186) instruction timing clock M8350-M8359: High speed output Y1 function High speed four axis
-21-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
MODBUS/RS function
M8401: RS command is being sent (M8121) M8402: RS command sending (M8122)
MODBUS function
M8402: Channel 1 - MODBUS communication error M8422: MODBUS communication error on channel 2
M8403: Channel 1 - MODBUS communication error latch M8423: Channel 2 MODBUS communication error latch
ENET function
M8404: ENET Ready M8406: Executing time setting
M8411: Execution time setting M8492: IP address saving area writing requirements
M8493: End of IP address saving area writing M8494: IP address saving area write error
M8495: IP address saving area clearing requirements M8496: End of IP address saving area cleaning
M8497: IP address saving area clearing error M8498: Change IP address flag bit in operation
M8460: User interrupt input instruction Y00 M8461: User interrupt input instruction Y01
M8464: DSZR and ZRN commands Y00 clear M8465: DSZR, ZRN command Y01 clear signal assignment is valid
signal assignment is valid
M8467: DSZR, ZRN command Y03 clear signal assignment is valid
M8466: DSZR, ZRN command Y02 clear signal
assignment is valid D8009:
D8000: monitoring timer setting value (default 200) D8011: Minimum scanning time (0.1ms)
D8008: Power down detection time (set value: 1~100, D8013: RTC clock seconds
default 10ms)
D8015: RTC clock hour
D8010: Current value of scanning time (0.1ms)
D8017: RTC clock month
D8012: Maximum scanning time (0.1ms)
D8019: RTC Clock Week
D8014: RTC clock minute
D8021: Filter coefficient of X20-X77 (set value: 1~60ms, default: 10)
D8016: RTC clock day
D8029: V0 index register contents
D8018: RTC Clock Year
-22-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
D8136: Y0 Y1 High speed output count accumulation: 32 bits
D8139: Number of instructions in HSCS, HSCR, HSZ, HSCT instruction execution (no more than 4)
D8310: Random number (32 bits) D8330: Counter for scanning number of DUTY instruction
timing clock output 1
D8331: Counter of DUTY instruction timing
clock output 2 scans D8332: Counter of DUTY instruction timing clock output 3 scans
D8333: Counter of DUTY instruction timing clock D8334: Counter of DUTY instruction timing clock output 5 scans
output 4 scans
D8337: DVIT interrupt input assignment Y4-Y7
D8336: DVIT interrupt input assignment Y0-Y3
D8350-D8359: high-speed output Y1 register D8360-
D8340-D8349: high-speed output Y0 register
D8370-D8379: high-speed output Y3 register high-speed four
D8369: High speed output Y2 register axis function
-23-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
MODBUS function
D8400: Serial port 1 communication parameter setting D8403: Number of RS instructions received
D8402: Remaining number of data sent by RS command D8420: Channel 2 - communication format setting
D8472: Subnet mask (low bit) D8473: Subnet mask (high bit)
D8474: Default router IP address (low order) D8475: Default router IP address (high bit)
D8492: IP address setting (low order) D8493: IP address setting (high bit)
D8494: Subnet mask setting (low bit) D8495: Subnet mask setting (high bit)
D8496: Default router IP address setting (low order) D8497: Default router IP address setting (high bit)
D8464: DSZR and ZRN commands specify Y00 to D8465: DSZR and ZRN commands specify Y01 to clear
clear signal elements signal elements
High speed four shaft
D8466: DSZR and ZRN commands specify Y02 to D8467: DSZR and ZRN commands specify Y03 to
clear signal elements clear signal elements
-24-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
6、 Use of high-speed counter
1) C251 C252 C254 (AB phase) maximum response frequency: 110KHz
5) The high speed counter of phase AB can be set with 2-fold frequency and 4-fold frequency (the setting is only valid in
the current cycle of OUT drive):
**When M8196 - ON, C251 C252 C254 count pulse 2 frequency multiplication;
**When M8198 - ON, C251 C252 C254 count pulse 4 times frequency;
M0
(M8196):Select C251 as frequency
multiplication 2
(C251 K10000000)
For example, if an AB phase encoder is used, it turns for 1024 pulses. If frequency multiplication is not set, the counter counts
1024 (the original FX3U does not support frequency multiplication of 2). If frequency multiplication of 2 is set, the counter
turns for 2048; If 4-fold frequency is set, turn the counter to count 4096;
-25-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Instructions:
Specify increase/
decrease count
through ON/OFF
One way single count of M8235 ~ M8245
input ON: decrease
count OFF:
increase count
As shown in the
left figure, count
up/down. The
One way double count counting direction
input can be set through
M8246 ~ M8250.
ON: count down
OFF: count up
As shown in the
A mutually A mutually figure on the left,
1 according to the
B mutually B mutually change of A/B
X Corotation Reverse phase input state,
Two way
double
the counting is
counting input automatically
increased/
decreased, and
the counting
A mutually A mutually direction can be
4 entered through
B mutually B mutually lines M8251~
X M8255.
Corotation Reverse
-26-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
C255 H/W A B R S
H/W: Hardware counter S/W: Software counter U: Up counter input D:Minus counter input
A:A Phase input B:B Phase input R:External reset input S:External start input
-27-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Only X0-X5 high-speed function is supported, X6 and X7 do not support high-speed function
Instructions for DHSCS, DHSCR and DHSZ instructions:
**The times of simultaneous driving of three high-speed comparison commands: X0 hardware counter twice, X3
hardware counter twice, and software counter four times (greater than 6705);
**When comparing hardware high-speed counters, the response frequency will not change. DHSCS and DHSCR
perform real-time comparison, but DHSZ hardware interval comparison is not real-time, but about 5us comparison;
**When the hardware high-speed counter is used, the comparison results will be output as long as DHSCS, DHSCR
and DHSZ are driven
-28-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
7、 Instructions for communication interface
7.1 RS422 interface instructions
Support RS422 protocol. The default power on protocol is FX programming port protocol; It can be used
to connect the touch screen of RS422 protocol.
7.2 RS485 Instructions
*RS485-1 power on defaults to FX programming port protocol;
*RS485-1 supports switching between Mitsubishi FX programming port protocol and MODBUS-RTU protocol;
*RS485-1 communication parameters are set on D8400, RS485-2 communication parameters are set on D8420,
which supports ADPRW switches between RS485-1 and RS485-2;
*The maximum length of data read and written by ADPRW is 254 bytes, and 6343 or 6363 faults are reported if the
length exceeds the limit;
*If the D8400 or D8420 does not enable the MODBUS-RTU master function, and the ADPRW command is used,
6706 fault is reported;
-29-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
-30-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
0 - FX programming port
communication
4 - RS instruction
-31-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Special relay
MODBUS R
M8401 M8421 communication Master station Set to ON in MODBUS communication
MODBUS
M8403 M8423 Master/ Set to ON in case of MODBUS R
communication communication error
slave station
error latch
M8409 M8429 Timeout occurred Master station Set the response timeout to ON R
-32-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Slave protocol software element address (bit element address)
0x3400~0x34FF X0~X377
-33-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Word element address
0xA7B8~0xA7C7 X0~X377
-34-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
RS485-1/RS485-2 Communication Parameter Setting D8400/D8420 Setting Instructions
Tag No Name
0(bit=OFF) 1(bit=ON)
b0 Data length *α 8-bit
7-bit
b2 b1
b1 (0 0) - No check
Parity
b2 (0 1) -- Odd (ODD)
-35-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
*α: When the data bit is 7 bits, parity cannot be selected - no inspection (6304 fault is reported);
*FX programming port protocol: data length 7, stop bit 1, parity EVEN is fixed, and the rate can be set;
When MODBUS RTU communication/RS1/RS2 communication, do not select 7 data bits, which will cause
communication failure.
*MODBUS-RTU protocol: data length, stop bit, parity and rate can be set;
*RS instruction: data length, parity, stop bit and rate can be set;
*RS2 instruction: data length, parity, stop bit and rate can be set;
*Use the register to read the bit, and one register will read the 16 bit element status;
*If register is used to write bits, one register will be written, which will affect the status of 16 bit
elements;
*The maximum data sent and received by RS command is 520 (exceeding 6343 6363 message)
-36-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
RS485-2 RS command functional components are as follows:
M8421-RS2 Command is being sent M8422-RS2 Command sending
*The maximum data sent and received by RS2 command is 520 (exceeding 6706)
-37-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
7.3 CAN is only used for IO module expansion
CAN module extended site assignment
Note: The site selection is set through the internal dial switch on the expansion module.
The factory internal settings are not allowed for users to set.
1) By default, the five ports that are enabled are all MELSOFT connections. The fifth port is MODUS
TCP server function, the sixth port supports SNTP (if SNTP is enabled on the programming software
parameters), and the seventh port supports MELSOFT connections (fixed);
2) The parameter download software supports the automatic generation of MAC address parameters
(based on the algorithm, the generated MAC address is less likely to be the same) or the self filling
of MAC address (cannot be the same in the same LAN)
3) The SPI1 interface of MCU is used, and the maximum speed is 41MHZ. Please select the appropriate
SPI speed according to the use occasion
-38-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
4) Support GX programming software to search FXCPU on the network, and automatically search FX3U and
corresponding IP on the network
5) The supported connections are: 1. MELSOFT connection; 2. MODBUS S connection (MODBUS TCP (UDP) server);
3. SNTP connection; 4. MODBUS C connection (MODBUS TCP (UDP) client UDP supports only one channel (up to
247 slave stations), and TCP supports 7 channels (up to 7 slave stations);
Be careful:
1. After downloading the Ethernet parameters using the Ethernet parameter software, the new parameters
will take effect only after the power supply is cut off;
2. GX W2 programming software - diagnosis - Ethernet diagnosis function cannot be used, and Ethernet
parameters do not support GX W2 setting;
3. The MAC address setting cannot be repeated in the LAN. You can select automatic generation on the
parameter software, or select the default MAC address. You can modify the following numbers to be
different;
-39-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Register and relay description:
The special relays used in ENET are shown in the following table
M8406 Performing time setting The Ethernet adapter is ON during time setting. R
After ON, the Ethernet adapter
M8411 Execution time setting executes time setting. R/W
M8496 IP address storage area Set to ON after clearing. When clearing fails R
-40-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
The special registers used in ENET are as follows
0: Running as 10BASE-T
0: Initialization failed, 1:
Initialization succeeded
D8415
D8416 Local MAC address Save the MAC address (all 3 words) R
D8417
-41-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
-42-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
MODBUS TCP/MODBUS UDP Client application
The used register D8438 is written to 0 using the TCP protocol.
Instructions for master station to read slave station data:
X1
M1 -- The low 8 bits represent the slave address, and the high 8 bits represent the command sent;
For example, H601 command 6 (read register instruction), slave address 1 (1-7);
M2 - slave component address, see the following table for address data;
D * -- Write slave data register;
N -- write data length; When the commands 5 (write bit) and 6 (write register) are used, no matter what
number is set for the length, it is operated by 1. When H10 (K16) is used to write a multi bit register,
the data length is (1~255);
The used register D8438 is the port number of the server that uses UDP
protocol to target D8438.
-43-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
M1 -- The low 8 bits represent the slave address, and the high 8 bits represent the command sent;
For example, H301 command 3 (read register instruction), slave address 1 (1~247);
M2 - slave component address; See the following table for address data;
D * -- save slave data register;
N -- read data length (1~255);
Special instructions:
1. FROM and TO can be used for many times in the program. When multiple commands are executed at the
same time, the system will communicate in turn; If the communication timeout occurs, record the fault
code and execute the next communication command;
4. To use the FROM/TO command, please enable the Ethernet function and download the Ethernet parameters
to enable the MODBUS TCP client function parameters;
5. When the 05 command is used to set the slave station components, for example, TO H501 K4000 D0 K1
sets the M0 status of No. 1 slave station. If D0 is equal to 0, the slave station M0 is OFF; When D0
is not 0, slave M0 is ON;
-44-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
MODBUS TCP/ip MODBUS UDP Server Element Address
-45-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Supported function instructions
Supported Components
Function Command
Bit element Word element
-46-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Error code during Ethernet communication (D8418)
-47-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
-48-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
8、Instructions for pulse capture (input interrupt) function
1) Support the pulse capture function of X0-X5, corresponding to: X0 - M8170,
X1 - M8171, X2 - M8172, X3 - M8173, X4 - M8174, X5 - M8175;
2) To use the pulse capture function, you need to use the EI command first.
The example is as follows
[EI]:Allow Interruption
M8170
(Y0)
M8170
[RST M8170]:After ON, reset is
required to turn ON again
-49-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
9、 Instructions for PLSY PLSR ZRN DRVI DRVA and other pulse sending and
positioning commands
1) Pulse transmission supports up to eight channels of Y0, Y1, Y2, Y3, Y4, Y5,
Y6 and Y7, Y0-Y5 at the same time up to 200 Khz, Y6-Y7 at the same time up to
100 Khz special auxiliary relay
Reading
Y0 Y1 Y2 Y3 Y4*α Y5*α Y6*α Y7*α Name and writing Object instruction
PLSY/PLSR/DSZR/
Instruction
execution
R DVIT/ZRN/DRVI/
end flag bit
M8029
DRVA etc
Instruction PLSY/PLSR/DSZR/
execution R
exception DVIT/ZRN/PLSV/
M8329 end flag bit
DRVI/DRVA
Acceleration
and
M8338 deceleration R/W PLSV
action
The
specified
function of
M8336 interrupt
R/W DVIT
input is
valid
PLSY/PLSR/DSZR/
Monitoring
M8340 M8350 M8360 M8370 M8440 M8450 M8470 M8480 in pulse R
outputd DVIT/ZRN/PLSV/
DRVI/DRVA
-50-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Reading
Y0 Y1 Y2 Y3 Y4*α Y5*α Y6*α Y7*α Name and writing Object instruction
Zero clearing
signal output
M8341 M8351 M8361 M8371 M8441 M8451 M8471 M8481 function is R/W DSZR/ZRN
valid * β
Origin
regression
direction
M8342 M8352 M8362 M8372 M8442 M8452 M8472 M8482 assignment R/W DSZR
PLSY/PLSR/DSZR/
M8343 M8353 M8363 M8373 M8443 M8453 M8473 M8483 Forward limit R/W DVIT/ZRN/PLSV/
DRVI/DRVA
M8344 M8354 M8364 M8374 M8444 M8454 M8474 M8484 Reversal limit
Near point
M8345 M8355 M8365 M8375 M8445 M8455 M8475 M8485 signal logic R/W DSZR
inversion
M8346 M8356 M8366 M8376 M8446 M8456 M8476 M8486 Logic inversion of zero point signal
-51-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
Reading
Y0 Y1 Y2 Y3 Y4*α Y5*α Y6*α Y7*α Name and writing Object instruction
Interrupt
M8347 M8357 M8367 M8377 M8447 M8457 M8477 M8487 signal logic R/W DVIT
inversion
PLSY/PWM/PLSR/
Positioning
M8348 M8358 M8368 M8378 M8448 M8458 M8478 M8488 command R DSZR/DVIT/ZRN/
driving
PLSV/DRVI/DRVA
PLSY/PLSR/DSZR/
Pulse stop
M8349 M8359 M8369 M8379 M8449 M8459 M8479 M8489 command R/W DVIT/ZRN/PLSV/
DRVI/DRVA
User
interrupt
M8460 M8461 M8462 M8463 M8152 M8153 M8154 M8155 input R/W DVIT
instruction
The specified
function of
the zero
clearing
M8464 M8465 M8466 M8467 M8156 M8157 M8158 M8159 signal R/W DSZR/ZRN
software
component
is valid
-52-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
*α When the software high-speed output is 2-4 axes and the specified function
of the zero clearing signal software component is invalid, the zero clearing
signals Y0-Y4, Y1-Y5, Y2-Y6, Y3-Y7,
*β When the software high-speed output is 6-8 axes and the specified function
of the zero clearing signal software component is invalid, the zero clearing
signals Y0-Y10, Y1-Y11, Y2-Y12, Y3-Y13, Y4-Y14, Y5-Y15, Y6-Y16, Y7-Y17
Special register
Software element No Initial Object
Name length
Y0 Y1 Y2 Y3 Y4*α Y5*α Y6*α Y7*α value instruction
Interrupt input
assignment
D8336 D8337 16bit 0 DVIT
D8340 D8350 D8360 D8370 D8440 D8450 D8470 D8480 Locate the
current value
D8341 D8351 D8361 D8371 D8441 D8451 D8471 D8481 register 32bit 0
DSZR/DVIT/ZRN/
Basal velocity
D8342 D8352 D8362 D8372 D8442 D8452 D8472 D8482 [Hz] 16bit 0 DSZR/
D8343 D8353 D8363 D8373 D8443 D8453 D8473 D8483 Top speed PLSV/DRVI/DRVA
[Hz]
D8344 D8354 D8364 D8374 D8444 D8454 D8474 D8484 32bit 100000
Creep speed
D8345 D8355 D8365 D8375 D8445 D8455 D8475 D8485 [Hz] 16bit 1000
DSZR
D8346 D8356 D8366 D8376 D8446 D8456 D8476 D8486 Origin
regression
D8347 D8357 D8367 D8377 D8447 D8457 D8477 D8487 velocity [Hz] 32bit 50000
DSZR/DVIT/ZRN/
Acceleration
D8348 D8358 D8368 D8378 D8448 D8458 D8478 D8488 time [ms] 16bit 100
PLSV*β/DRVI
Deceleration
D8349 D8359 D8369 D8379 D8449 D8459 D8479 D8489 time [ms] 16bit 100
/DRVA
Zero clearing
signal software
D8464 D8465 D8466 D8467 D8156 D8157 D8158 D8159 component 16bit 0 DSZR/ZRN
assignment
Note:
*α High speed output enhanced version function; *b The acceleration and deceleration function
of PLSV is effective only when M8338 is set to ON
*c When using PLSY and PLSR instructions for this pulse, the corresponding registers for the pulse
accumulation issued by the axis
-53-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
10、 Enhanced PWM (this function is not available by default if the customer needs to customize it)
1) The parameter functions of the two components of the PWM command are changed
to frequency (32 digits - only 32 digits for the designated word component) and
duty cycle (16 digits);
2) Enhanced PWM maximum frequency: Y0-Y3 maximum 90K (exceeding 6707), duty
cycle: 1.0% - 99.0% (the higher the frequency, the larger the error of duty
cycle, and the actual output frequency varies with different hardware)
4) X0 S1 S2 D
|--||------------------(PWM D0 D2 Y0)
S1 -- PWM specified frequency, 32 digits (6706 if the maximum 90K of Y0-Y3 exceeds);
m1 m2 s1
M0
(RD3A K0 D0 D10)
Explain:
a) M1 - Specify the number of AD channels to be read (the maximum number is the number of channels opened by
the setting software, and if the number exceeds 6706) m2 - Specify the upper and lower range (- 32767-32767)
registers, m2 is the upper range limit, m2+1 is the lower range limit, and only the D register can be specified as the
range address, m2+2 is the first-order lag filter coefficient (0-128), and other data reports 6706
b) The above program principle: when M0 is ON, read the first AD data (the upper range is D0, the lower range is
D1) to D10 and save it
Example: Follow the above procedure
1) If D0=1000, D1=0, the input of AD is 0~10V, and the current input is 5V, then D10=500
2) If D0=4000, D1=0, the input of AD is 0~10V, and the current input is 5V, then D10=2000
3) If D0=1000, D1=- 1000, the input of AD is 0~10V, and the current input is 5V, then D10=0
-54-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
12、 Use of analog quantity DA
m1 m2 s1
M0
(WR3A K0 D0 D10)
Explain:
a) M1 - Specify the number of DA (range 0-32767) channels to be output (the maximum number is the number
of channels opened by the setting software, and 6712 will be reported if the number is exceeded)
b) M2 -- register that specifies the upper and lower range, m2 is the upper range limit, m2+1 is the lower range
limit, and only the D register can be specified as the range address. Other data reports are 6712
c) The above program principle: When M0 is ON, output the data of D10 (upper range is D0, lower range is D1)
to DA0
Example:
According to the above procedure,
1) If D0=1000, D1=0, DA output voltage is 0~10V, D10 data is 500, and DA output is 5V
2) If D0=4000, D1=0, DA's output voltage is 0~10V, D10's data is 2000, and DA's output voltage is 5V
3) If D0=1000, D1=- 1000, DA output voltage is 0~10V, D10 data is 0, DA output is 5V
Be careful:
The upper and lower ranges can be set as negative numbers, and the upper range must be greater than the lower range
If the upper and lower ranges are both 0, the data conversion of the corresponding range will not be performed
1) When the upper and lower range are both 0, the input range of DA data is 0~4095. On the contrary, the input
range of DA data is>=lower range,<=upper range; When the data is outside the above data, PLC reports 6706 fault
2) Error detection of AD and DA converted data, AD reports 6706, DA reports 6706 fault
3) When RD3A is used to read AD data, it supports first-order lag filtering (range: 0-128, 0 means that first-order
lag filtering is not enabled. The larger the coefficient, the greater the lag, and the recommended setting is 50)
-55-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
13、 Use of Real Time Clock RTC
1) M8018 - If the RTC function is enabled, the power on detection is normal, and it is ON, otherwise it is OFF
(if the RTC crystal oscillator is abnormal, the M8018 is OFF)
2) When M8016 is set to ON, D8013-D8019 displays the clock data to stop; when it is OFF, D8013-D8019
displays the RTC clock data
Note: If the PLC password is set to 12345678, the clock cannot be set with the programming software
-56-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
14、 Fault detection
-57-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
-58-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
0000 No abnormality
1. The malicious
modification or
download of the
program is incomplete;
6401 Program and number check error
Parameter
error M8064 2. CPU internal
(D 8064) program FLASH is
running damaged;
stop
Incomplete download of
6409 IO function parameter and number IO function parameters
verification error or damaged FLASH
-59-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
0000 No abnormality
1. The malicious
modification or
download of the
Program and number check error program is
6401 incomplete;
2. CPU internal
program FLASH is
Parameter damaged;
error M8064
(D8064) Incomplete
running stop download of IO
6409 IO function parameter and number function
verification error parameters or
damaged FLASH
Please activate
AD/DA
Using RD3A/WR3A commands does not enhancements in
6411 enable AD/DA enhancements the settings
software
0000 No abnormality
0000 No abnormality
-60-
Easycon Focus on PLC touch screen R&D and production Welcome to the agency
6623 No MC instruction
0000 No abnormality
**In case of any error, please check the PLC error code and program steps with the diagnosis
PLC diagnosis function on the GX software menu of the PLC programming software;
-61-