Amx-Fx3u V1.2
Amx-Fx3u V1.2
Cover
Rev: V1.2
https://www.amsamotion.store
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
Foreword
Foreword
Instructions
Before using PLC products, users should read and grasp the information of this
PLC completely
The sample contents in the manual are only for users’reference and
understanding. If in doubt, please contact the relevant technical personnel of
imoxun
If the user will use this PLC with other products, please ensure that the relevant
technical specifications
Contact
If you have questions about the use of this PLC product, please contact the
agent, the sales staff, or contact us by telephone.
Http://amsamotion.com
Email: amx@amsamotion. Com
Telephone numbers: 4001-522-518 Dial 1(technical hotline) and 4001-522-518 Dial
2(sales hotline)
Address: 1/F, Building B, Zhaoxuan Manufacturing Park, 9 Yizhan Road, Yuan Wu
Bian, Dongguan City, Guangdong Province
Scan the QR code below for more product information on imoxun’s official public
account
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
Version history
Version history
The text after “Rev:”on the cover of this user’s manual represents the
document version
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
Table of contents
Product Overview 1
1.1 model naming convention 1
1.2 models and major functions1
1.3 product features 2
2. Product Specification 3
2.1 main specification 3
2.2 interface specification 4
2.2.1 amx-fx3u-14interface definition 4
2.2.2 amx-fx3u-26interface definition 6
2.2.3 amx-fx3u-48interface definition 8
Functional planning 10
Communications Guide 22
6.1RS232 Communication 22
6.2RS422 communication 23
6.3RS485 Communication 24
6.3.1, using FX3U PLC 485 communication function 24
6.3.2. Communication of Modbus RTU main station with PLC 25
6.3.3. PLC as Modbus RTU slave station communication 36
Product Overview
AMX-FX3U relay series is a new generation of high-speed, high-performance
programmable controller (PLC) .
The 1 and 2 of the model name components represent the following specifications
1 I/O total points: 14,26,48, etc.
2 output type: R stands for relay output (with contact, AC/DC load)
T represents transistor output (for contactless DC loads)
Product specification
3
Dongguan AMX Automation Technology AMX-FX3U relay series programmable
Co. , Ltd. controller manual
Structure and
environment
Size (mm) 114 * 101 * 32 129 * 86 * 50 196 * 99 * 62
Installation mode 35mm DIN rail
Operating Working temperature 0 °C ~ + 50 °C
Temperature (no freezing)
10 ~ 80% Rh (no
Working humidity condensation)
Terminal diagram
4
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
Terminal instruction
Terminal diagram
6
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
Terminal instruction
Terminal Terminal
label Function description label Function description
24 + DC 24V Power Positive Pole Common terminal of 1 ~ 4 digital
0v DC 24V power supply negative pole COM0 output channels
Y zero Number One - way digital output
A-plus 485A + (see Chapter 6.3 for features)
Y1 2 - way digital output
B minus 485B-(see Chapter 6.3 for features)
Common end of 1-16 digital input Y2 3 - way digital output
S/s channel Y3 4 - way digital output
X0 Channel 1 digital input Digital output common terminal of 5
X1 Channel 2 digital input COM1 ~ 10 channels
Y4 5 - way digital output
X2 Channel 3 digital input
Y-5 6 - way digital output
X3 Channel 4 digital input
Y6 7 - way digital output
X4 Channel 5 digital input
Y7 No. 8 - way digital output
X5 Channel 6 digital input
Y10 9 - way digital output
X6 Number seven input
Y11 10th digital output
X7 Route 8 digital input
1 voltage/current
X10 Route 9 digital input SW1 Analog input switching code
X 11 10th digital input 2 voltage/current
X-12 Route 11 digital input SW2 Analog input switching code
X13 Channel 12 digital input COM3 Analog input
X14 Route 13 digital input The first analog voltage is 0 ~ 10V/0
~ 20ma
X 15 Route 14 digital input In1
Current input
X16 Route 15 digital input
The second analog voltage is 0 ~
X17 Route 16 digital input 10V/0 ~ 20ma
IN2
Current input
COM4 Analog output
Analog 0 ~ 10V voltage output
V channel
Analog current output channel of 0 ~
I 20ma
RS422 programming port, S
RS422 terminal
Error indicator light, PLC error
Sys. often red light
Running Indicator Light: PLC is
always green when running
Run The light is always red when it
stops
RS485 communication light, flashing
COMM when communicating
7
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
Terminal diagram
8
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
Terminal instruction
Y2 Digital output of Route 3
Terminal Y3 Channel 4 digital output
label Function description
24V + DC 24V Power Positive Pole
0v DC 24V power supply negative pole
Common end of 1-24 digital input
S/s channel
X0 Channel 1 digital input
X1 Channel 2 digital input
X2 Channel 3 digital input
X3 Channel 4 digital input
X4 Channel 5 digital input
X5 Channel 6 digital input
X6 Number seven input
X7 Route 8 digital input
X10 Route 9 digital input
X 11 10th digital input
X-12 Route 11 digital input
X13 Channel 12 digital input
X14 Route 13 digital input
X 15 Route 14 digital input
X16 Route 15 digital input
X17 Route 16 digital input
X20 Route 17 digital input
X21 Route 18 digital input
X22 Route 19 digital input
X23 20th digital input
X24 Route 21 digital input
X25 Route 22 digital input
X26 Route 23 digital input
X27 Route 24 digital input
485A + (see Chapter 6.3.3 for
A-plus features)
B minus 485B-(see Chapter 6.3.3 for features)
RS485 3 feet 485A + , 8 feet 485b -
(DB9 (see sections 6.3.1 and 6.3.2 for
master) features)
RS232 Standard PLC programming
RS232 port: 2 Feet TX, 3
(DB9 Foot Rx, 5 foot GND (see Chapter
master) 6.1)
Common terminal of 1 ~ 4 digital
COM0 output channels
Y zero Channel 1 digital output
Y1 Digital output of Route 2
21 ~ 24 channels
Terminal Y24 Route 21 digital output
label Function description
Y25 Route 22 digital output
Digital output common terminal of 5 Y26 Route 23 digital output
COM1 ~ 8 channels
Y27 Route 24 digital output
Y4 Digital output of Route 5
Analog input 1 voltage/current
Y-5 Route 6 digital output SW1 switching code
Y6 Route 7 digital output Analog Input 2 voltage/current
Y7 Route 8 digital output SW2 switching code
Digital output common terminal of 9 COM6 Analog Input/output common land
COM2 ~ 12 channels output The first analog voltage is 0 ~ 10V/0
Y10 Route 9 digital output ~ 20ma
Ai1
Y11 10th digital output Current input
Y12 Route 11 digital output The second analog voltage is 0 ~
Y13 Route 12 digital output 10V/0 ~ 20ma
AI2
Digital output common terminal of Current input
COM3 13 ~ 16 channels Analog current output channel of 0 ~
Y14 Route 13 digital output Ao1 20ma
Error indicator light, PLC error
Y15 Route 14 digital output
SF DIAG often red light
Y16 Route 15 digital output
Run Indicator:
Y17 Route 16 digital output Run The green light is always on when
Digital output common terminal of the PLC is running and off when it
COM4 17 ~ 20 channels stops
Y20 Route 17 digital output Stop Light:
Stop The PLC often turns red when it
Y21 Route 18 digital output
stops and goes out when it is
Y22 Route 19 digital output running
Y23 20th digital output
COM5 Digital output common terminal of
9
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
Function Planning
AMX-FX3U relay series of different models of PLC function planning information as
shown in table 3 below
Table 3-1amx-fx3u-14functional list
Function name Function description
Point photoelectric isolation digital input, 6 points photoelectric isolation relay
Io count 8 output, do not support extended IO points
Io High-speed
configurat counter Line single phase (x 0 ~ x 3)100K pulse count, 2 line single phase (x 4 ~ x 5)40K
ion (hardware) 4 pulse count;
2 Path AB phase (x 0, X 1 is 1 path, X 3, X 4 is 1 path) count
User Program capacity 0-16K
programm
ing Annotation
capacity 0 $31
Capacity
File register
capacity The file register is not supported. The default is 0 block
Communication
port 1 - way asynchronous serial port: RS232(DB9 Master)
Communication
protocol FX3U PLC protocol
Communi Programming port: RS232(DB9 Master)
cation
function Programming
mode Programming Cable: USB to RS232C DB9 Gongtou cable (USB-CIF31 +)
Programming software: support GX-Works2/Gx-Developer to achieve the download
and monitoring debugging
Equipment The device or host computer which contains RS232 serial port and supports FX3U
Communication PLC protocol can communicate with PLC.
Number of
channels 2路
Analog
quantity Input Range 0 ~ 10V or 0 ~ 20ma current
Inputting Switching mode 2 Circuit DIP switch switching voltage/current
Conversion
accuracy 12-bit resolution
Number of
Analog channels 1 路
quantity
Output Range 0 ~ 10V or 0 ~ 20ma current
Output
Conversion
accuracy 12-bit resolution
The RUN/SOTP dial switch is used to control the stop of the PLC, and the green
light shows that the PLC is in working mode
RUN/stop
Light on PLC in stop mode
Other False indication When the PLC operation error, the error light red light
functions Support, Save Range See section 4.1, can not be modified through the software
Power down save power-down range
Clock Support, button battery power in case of power failure
Firmware
upgrade Support
T
en
Dongguan AMX Automation Technology Co. , AMX-FX3U relay series programmable
Ltd. controller manual
Table
3-2 AMX-FX3U-26FEATURE list
Function name Function description
16-point photoelectric isolation digital input, 10-point relay output, do not support
Io count extended IO points
Io High-speed
configur counter 4 single-phase (x 0 ~ x 3)100K pulse counting, 2 single-phase (x 4 ~ x 5)40K pulse
ation (hardware) counting;
Two-way AB phase (x 0, X 1 for 1 way, X 3, X 4 for 1 Way) counting
User Program capacity 0-16K
programm
ing Annotation
Capacity capacity $0-$31
File register
capacity The file register is not supported. The default is 0 block
Communication
port 1-way asynchronous serial port: RS422(s terminal) , RS485
Communication
protocol FX3U PLC, Modbus RTU
Programming
port: RS422
Communi
cation Programming
function mode Programming Cable: USB to RS422 S terminal cable (USB-SC09-FX cable)
Programming software: support GX-Works2/Gx-Developer to achieve the download
and monitoring debugging
The equipment or upper computer which includes RS422, RS485 serial port and
Equipment supports FX3U PLC protocol can communicate with this PLC
Communication
The equipment or host computer with RS485 serial port and supporting Modbus
RTU protocol can communicate with this PLC
Number of
channels Route 2
Analog
quantity Input Range 0 ~ 10V or 0 ~ 20ma current
Inputting Switching mode 2-WAY DIP switch switching voltage/current
Conversion
accuracy 12-bit resolution
Number of
Analog channels Route 1
quantity
Output Range 0 ~ 10V or 0 ~ 20ma current
Output
Conversion
accuracy 12-bit resolution
The RUN/SOTP dial switch is used to control the stop of the PLC, and the green
light shows that the PLC is in working mode
RUN/stop
Light on PLC in stop mode
Other False indication When the PLC operation error, the error light red light
functions Support, Save Range See section 4.1, can not be modified through the software
Power down save power-down range
Clock Support, button battery power in case of power failure
Firmware
upgrade Support
11
Dongguan AMX Automation Technology Co. , AMX-FX3U relay series programmable
Ltd. controller manual
Table
3-2 AMX-FX3U-48FEATURE list
Function name Function description
Io 24-point photoelectric isolation digital input, 24-point photoelectric isolation relay
configur Io count output, do not support extended IO points
ation Six single-phase (x 0 ~ x 5)20K pulse counts and two AB-phase (x 0, X 1, X 3, X 4)
High-speed count counts
User Program capacity 0-16K
programm
ing Annotation
Capacity capacity $0-$31
File register
capacity The file register is not supported. The default is 0 block
Communication 3 asynchronous serial communication ports: DB9 Master RS232, DB9 Master
port RS485, Terminal RS485
Communication
protocol FX3U PLC protocol, Modbus RTU (RS485 communication port)
Communi
cation Programming
function port: RS232
Programming
mode Programming Cable: USB to RS232C DB9 Gongtou cable (USB-CIF31 +)
Programming software: support GX-Works2/Gx-Developer to achieve the download
and monitoring debugging
The equipment or upper computer which includes RS232, RS485 serial port and
Equipment supports FX3U PLC protocol can communicate with PLC.
Communication
The equipment or host computer with RS485 serial port and supporting Modbus
RTU protocol can communicate with this PLC
Number of
channels Route 2
Analog
quantity Input Range 0 ~ 10V voltage or 0 ~ 20ma current, 12 bit resolution
Inputting Switching mode 2-WAY DIP switch switching voltage/current
Conversion
accuracy 12-bit resolution
Number of
Analog channels Route 1
quantity
Output Range 0 ~ 20 ma current
Output
Conversion
accuracy 12-bit resolution
The RUN/SOTP dial switch is used to control the stop of the PLC, and the green
light shows that the PLC is in working mode
RUN/stop
Light on PLC in stop mode
Other False indication When the PLC operation error, the error light red light
functions Support, Save Range See section 4.1, can not be modified through the software
Power down save power-down range
Clock Support, button battery power in case of power failure
Firmware
upgrade Support
12
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
Software
component
category Amx-fx3u-14 AMX-FX3U-26 Amx-fx3u-48
X 0 ~ x 7,8 X 0 ~ x 17, that’s 16
Enter Relay X points points X 0 ~ x 27,24 points
Y-o-y-11, that’s 10
Output Relay Y Y-0-y-6,7:00 points Y 0 ~ y 27, that’s 24 points
M0 ~ M512 ~ M8000 ~
M511 M1023 M1024 ~ M7696 M8424
Auxiliary Relay
M 512 512 512 425 points
General Keep Special
purpose using it General purpose purpose
S 0 ~ s 4095, total 4096 points,
Status Relay S general
T246 ~
T200 ~ T245 T249 T250 ~ T255 T256 ~ T511
46
Timer T T0 ~ T199 points 4:00 6:00 256 points
1 ms
cumulative 10ms
200.100 MS 10 MS type cumulative type 1ms
General General Keep using Keep
purpose purpose it using it General purpose
16-bit increment 32 bit bidirectional 32-bit bidirectional
count counter high-speed counter
C100 ~
Counter C0 ~ C99 C199 C200 ~ C234 C235 ~ C255
C 100 100 Thirty-five 28
General Keep General
purpose using it General purpose purpose
D951 ~ V 0 ~ V 7, Z 0 ~ Z
D0 ~ D499 D500 ~ D950 D7999 D8000 ~ D8483 7
951 484 16 o’clock change
Data Register D 500 points points 7,049 points of address
General Keep General Special
purpose using it purpose purpose General purpose
Pointer N-0-n-7,8:00, co-dominant P 0 ~ p 127,128 points, branching pointer
K 16-32768 ~ 32767 32-digit-2147483648 ~ 2147483647
Const
ant H 16 bit 0 ~ FFFFFF H 32 bit FFFFFFFFH
±1.175495e-38 ~ ±3.402823E + 38(significant position
E 7)
13
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
The auxiliary relay is used to change the increasing and decreasing direction of the
high-speed counter. When the state is OFF, the high-speed counter is counted.
Counting C237 M8237
Counter direction C238 M8238
Serial Switching
number address C239 M8239
C235 M8235 C240 M8240
C236 M8236
Counting C243 M8243
Counter direction C244 M8244
Serial Switching
number address C245 M8245
C241 M8241
C242 M8242
14
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
15
AMX-FX3U relay series programmable
Dongguan AMX Automation Technology Co. , Ltd. controller manual
16
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
M837
0
h
i
g
h
b
i
t
17
AMX-FX3U relay series programmable
Dongguan AMX Automation Technology Co. , Ltd. controller manual
Pulse
monitorin Delta Y 0, the number of steps in a
M8378 g Y003, locating command drive 8380 circle
And
positionin Delta
M8379 g Y003 pulse output stop command 8381 Y 0 step drive subdivision
Delta Y 1, the number of steps in a
M8401 In Modbus communication 8382 circle
An error occurred in the Modbus Delta
M8402 communication 8383 Y 1 step drive subdivision
Kinematic
Error lock for Modbus Delta positionin
M8403 communication 8384 g Y 2 the number of steps in a circle
Delta
M8408 Retry occurs 8385 Y 2 Step Drive subdivision
Delta
M8409 Modbus Time-out occurred 8386 Y 3 the number of steps in a circle
Communi Flag bit for Modbus
cation communication parameter setting, Delta
M8411 The PLC will stay on when it’s 8387 Y 3 step drive subfraction
powered up
An error occurred in the Modbus Delta Master station communication
M8422 communication 8400 format
Error lock for Modbus Delta Master station communication
M8423 communication 8402 error code
When only receive mode (offline Delta
M8424 state) 8403 The details of the master error
Delta A communication error occurred
8404 at the main station
Delta Display communication
8405 parameters (master station)
Delta Step number in communication
8407 (master station)
Delta
8408 Current number of retries (master)
Delta
8409 Slave response timeout (master)
Delta
8410 Play delay (main station)
Delta Inter request delay (inter frame
8411 delay)(master station)
Delta MDOBU
8412 S Number of retries (master)
Delta Communi
8414 cation Site No. (0-247)(main site)
Delta Action mode display (main
8419 station)
Delta
8420 Slave communication format
Delta
8422 Error code from the station
Delta Details of what went wrong from
8423 the station
Delta Display communication
8425 parameters from slave station
Delta Inter request delay
8431
(inter-frame delay)
Delta
8434 Site No. (0-247)
Delta Serial communication error code
8438 (slave)
Delta
8439 Slave action mode display
Configure Modbus 485 slave
Delta mode, line
8480 Circle corresponding to the
number of points and register
address
Configure Modbus 485 slave
mode
The number of points and register
Delta address of the input discrete
8481 Modbus quantity
RTU
slave Configure Modbus 485 slave
Delta station
mode
8482 Number of incoming registers and
starting address
Configure Modbus 485 slave
Delta mode to protect
8483 The number of registers held and
the starting address
18
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
Note: The dotted line connection shows that the second analog input channel is the same, but
a sensor can only select one of the channels to input analog signals.
19
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
Terminal block
Description of 2-way analog input terminal
Seri
al
num Terminal
ber name Function description Notes
Analog Voltage/curren Default voltage input, DIP code OFF for voltage, ON for current;
1 SW1 Channel 1 t switching 14outward dial for
Analog Voltage/curren
2 SW2 Channel 2 t switching Off, 26UP is OFF, 48down is OFF, and vice versa is ON
Analog 1-way
3 Ai1/IN1 voltage/current input The range of analog quantity is 0 ~ 10V/0 ~ 20ma
Analog 2-way
4 AI2/IN2 voltage/current input The range of analog quantity is 0 ~ 10V/0 ~ 20ma
GND
5 Analog input
COM6
Conversion parameter
Description of 2-channel analog input data conversion
Serial
numbe Detailed
r Parametric characteristic description Notes
Corresponding AD
1 value 0 ~ 2047 Analog Input PLC converted to decimal data
AI1/IN1 channel
2 corresponding register Delta 8030
AI2/IN2 channel
3 corresponding register Delta 8031
Terminal block
AMX-FX3U-14/26analog output (1-way) terminal description
Serial
numbe Terminal
r name Function description Notes
Both channels can be used
simultaneously, but are subject to
1 O-V/V 1-way 0 ~ 10V analog voltage output the same
PLC register control analog output
2 O-I/I 1-way 0 ~ 20ma analog current output value size
3 GND Analog output common land
Conversion parameter
Description of analog output parameter conversion
Serial Detailed
numbe Parametric description
r characteristic Notes
AMX-FX3U-14/26 Amx-fx3u-48
0 ~ 20
1 Output Analog range 0 ~ 10V/0 ~ 20ma Ma
Corresponding
2 numerical range 0 ~ 4095 Decimal System
The value of the PLC Data
Analog output Register D8080,
3 channel register Delta 8080 Determines the size of the output
value of the analog quantity
21
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
6. Communications Guide
6.1RS232 communication
In AMX-FX3U-14/48, there is only one RS232 communication port with DB9 master,
through which users can communicate programmatically or with devices that support
FX3U (such as touch screen communication) .
RS232 communication port (DB9 master) location and pin description
Programming Communication
Users can communicate with PLC by using USB to RS232C signal of DB9 male head
serial port. It is suggested that when purchasing, they can use USB-CIF03 +
programming cable.
Equipment Communication
When the user device supports RS232 serial port signal and FX3U protocol, the
number of plcs can be monitored by RS232
According to, the default communication parameters 9600,7, EVEN, 1(baud rate
adaptive) .
6.2RS422 communication
Only AMX-FX3U-26PLC in this series supports RS422(master) communication.
Users can communicate through this port or with devices that support FX3U (such as
touch screen communication) .
RS422 communication port (master) position and PIN specification (for PLC)
1 422
2 422 +
3 SG
4 422
7 422 +
Programming Communication
Users can communicate with PLC by using USB to RS422 signal s terminal serial
port cable. It is suggested that the PLC can be purchased with USB-SC09-FX
programming cable.
Equipment Communication
When the user device supports RS422 serial port signal and FX3U protocol, the
number of plcs can be monitored by RS422
According to, the default communication parameters 9600,7, EVEN, 1(baud rate
adaptive) .
23
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
6.3RS485 communication
Only amx-fx3u-26and AMX-FX3U-48PLC support 485 communication.
For amx-FX3U-26, there is only one 485 terminal channel in PLC, but the
communication function can be changed to Modbus RTU slave station or master
station by program configuration.
For amx-fx3u-48, the PLC includes a DB9 master and a 485-terminal channel, two
independent channels. The RS485 communication of DB9 bus head, the default
communication protocol of FX3U PLC, can be used as Modbus RTU slave port through
the internal configuration of PLC, and the other communication function of RS485
terminal is that PLC is used as Modbus RTU master port.
T
w
en
ty
-
fi
ve
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
The software components in the Master Station PLC setup routine are described as
follows:
M8411: set the flag bit of Modbus communication parameter setting, and the PLC will
stay on when power up
D8400: Communication format setting, the routine set value is H181, representing RTU
mode, using Modbus protocol, 9600 communication baud rate, 1 stop bit, no check, 8
bit data, other format setting refer to master communication parameter table
D8200: This PLC 485 function configuration, routine set value k 1 means to configure
485 as Modbus master use (because amx-fx3u-48has its own master communication
port, so do not need to configure this)
D8409: response timeout from slave station, MS. The routine sets the value K2000,
indicating a timeout of 2 seconds
D8411: delay between frame data requests in MS. For example, if the routine is set to
K0, the default delay interval for the system is used
D8412: request retry number, the routine to set the value of K3, that means after the
timeout communication connection retry 3 times
D8414: PLC as Modbus RTU main station when the station number, routine said the
main station number set to 0, the default 0 can be
Pay attention
PLC power to execute the above initialization code, before the main station communication, so
power communication should keep the main Station PLC when setting the program
PLC power-on if change the main station set program parameters, power off and restart will be
effective.
26
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
Type of operand Content Data type
S From station number (station number range 1-16) BIN16 bit
S1 Function code (support 01,02,03,04,05,06,15,16 function code) BIN16 bit
S2 Function parameter corresponding to function code BIN16 bit
S3 Function parameter corresponding to function code BIN16 bit
S4d Function parameter corresponding to function code Bit/BIN16 bit
27
Dongguan AMX Automation Technology Co. , AMX-FX3U relay series programmable
Ltd. controller manual
Pay attention
Function code S4 object software components only support data register D, set other software
components PLC error indicator will light error.
3) with the routine of function 01, this PLC master station can read the state of the
slave station coil:
In the routine, whenever x 1 changes from OFF to ON, M0 is set to ON, after M0 is
set to ON, the ADPRW instruction execution function is driven (function 01 in the
routine, the driving condition M0 is kept as ON) . When M8029 changes from OFF to
ON, the ADPRW instruction execution is completed.
In the routine, the ADPRW instruction performs the function 01. As a result, the
PLC master station accesses the state of 32 coils from the Modbus address 0 of the
Slave Station Equipment No. 1, and then puts the read state of coils into the PLC
address beginning with D3, storage order to begin to access the Modbus address low
to high characters, one by one corresponding to the beginning of the PLC storage
address from the low to high characters.
29
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
Pay attention
With the ADPRW instruction, keep the drive contacts (such as M0) ON until the end of the ADPRW
instruction (M8029 is ON) .
When driving multiple ADPRW instructions simultaneously in the Modbus master station, only one
instruction is executed at a time. When the current instruction ends, execute the next ADPRW
instruction in procedural order.
Do not disconnect the status before an ADPRW communication ends. When a state is disconnected
during communication, the ADPRW instruction becomes a stop-in state. Will not be transferred
to other ADPRW commands. Please refer to the following notes for programming sequence
control:
Interlock your state transition conditions with the ON condition of M8029(end of
instruction flag bit) to ensure no state transition occurs while communicating with other
stations. For example, in the example above, only if M8029 is ON will the driver condition M0
of function 01 be reset and the driver condition M1 of function 02 be reset.
when the state is disconnected in the communication process, the remaining communication can
be completed after the state is ON again, but the communication time-out may occur
according to the disconnection time.
When using the ADPRW instruction in a program flow, the ADPRW instruction can not be used in
the following program flow:
Between CJ-P conditional jump instructions
Between the FOR-NEXT loop instructions
P-sret subroutine
I-IRET interrupt subroutine
30
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
Function routine 06 as above, the use of instructions refer to “Coil read function
01”content
33
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
0F function routine as above, the use of instructions refer to “Coil read function
01”content
34
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
Function routine No. 10 as above, use instructions refer to “Coil read function No.
01”content
35
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
The slave function is turned off by default and needs to be started by setting
instruction D8420 to K2, which is started by M8411.
When PLC communicates with Modbus RTU slave station:
Baud rates between 1,200 and 19,200
The default input discreteness is the host’s digital input
The default coil quantity is the digital output quantity of the host
The default input register is 2 input analog starting data 16 bytes of data.
The default holds registers for D7200 starting in the data area
Slave communication parameter
36
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
In the same section 6.3.1, “485 interface location and terminal description”.
The software components in the PLC setup routine at the slave station are illustrated as
follows:
M8411: set the flag bit of Modbus communication parameter, the PLC will be
connected after power on
D8200: This PLC 485 function configuration, routine setting value k 2 means
configuration 485 as Modbus slave use
D8420: PLC as Modbus RTU slave communication parameter, routine setting value is
H181, representing RTU mode, using Modbus protocol, 9600 communication baud rate,
1 stop bit, no check, 8 bit data
D8431: delay between frame data requests, the routine setting value of K0 indicates
the use of the system default delay interval (3.5 character interval, PLC automatically
adjusts according to the set baud rate) , in MS
D8434: PLC as slave station address, routine set value for K 1
D8480: the starting address of the coil discrete quantity and the number of
components when setting this machine as slave station
D8481: when setting this machine as slave, input the starting address of the discrete
quantity and the number of components
D8482: when setting this machine as slave, enter the starting address of the register
and the number of components
D8483: when setting this machine as slave station, keep the starting address of register
and the number of components
Pay attention
PLC power-on to execute the above initialization code, will save the parameters, power-off reset
after the parameters set will be effective.
In order to reduce the power-on time to save parameters to write FLASH, after the execution of this
set code once, you can delete this set program, later if you need to change communication
parameters to write to join the run.
38
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
Pay attention
Must take M8411 as the instruction drive, through MOV and other data transmission write
instruction, change the configuration address D8480 ~ D8483 numerical value, the PLC power
cut restarts after taking effect, the following explanation does not make this stipulation again
to emphasize, the user needs to pay attention.
If the configuration value exceeds the PLC address range, the master station will fail to
communicate if the access range also exceeds the PLC address range.
In the example program above, the H6050 converts to binary data bits as follows:
In the example program above, H9770 converts to binary data bits as follows:
The first three bits “100”of the D8480 address correspond to base 104 in units of
8 bit, that is 4x8 = 32 bit, the bit element representing Modbus master station when
accessing the PLC coil dispersion of slave station has 32 bits (when the number is set to
0, the access points to the Y element default range “Y 0 ~ Y77”(Octal)) .
Combined with the above, the routine provides that the master station access slave
PLC coil discrete address range of “D6000.0 ~ D6001.15”(a data register D address
16bit) , that is, D6000, D6001 two words.
41
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
In the example program above, H9775 converts to binary data bits as follows:
The first three bits “100”of the D8481 address correspond to base 104, and the
unit is 8bit, that is 4x8 = 32bit, which means that the bit element has 32 bits when
Modbus master station accesses the Slave Station PLC to input the discrete quantity
(when the number is set to 0, the access points to the default range of X element) .
In combination with the above, the routine specifies that the input discrete address
range of master station access slave station PLC is “D6005.0 ~ D6006.15”(a data register
D address 16bit) , namely D6005, D6006 these two words.
In the example program above, H377A converts to binary data bits as follows:
44
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
In the example program above, H979D converts to binary data bits as follows:
Instruction Instruction
type Code Functional description Notes
LD Get (start of logical operation of a contact)
LDI Get Back (start of logical operation of B contact)
Take the rising edge of the pulse (start of operation to detect
LDP the rising edge)
Take the falling edge of the pulse (the beginning of the
LDF operation to detect the falling edge)
AND With (series a contact)
Ani With non (Series B contacts)
Contact Connected in series with the rising edge of the pulse
instruction ANDP (detecting the rising edge)
Connected in series with the pulse falling edge (detecting
ANDF falling edge)
Or Or (parallel a contact)
Ori Or not (parallel B contact)
Or pulse rising edge (parallel connection to detect rising
ORP edge)
Orf Or pulse drop edge (parallel connection to detect drop edge)
ANB To connect (a Circuit Block in series)
Orb Circuit block or (parallel connection of Circuit Block)
MPS Stack Access (arithmetic storage)
Combined
instruction MRD Read Stack (read memory)
MPP Out of the stack (read out storage and reset)
INV Inversion of the result of an operation
Out Output (coil driven)
Set Position (action hold)
Output
instruction RST Reset (UNHOLD action, current value and register clearing)
PLS. Rising pulse (rising edge pulse output)
PLF Down Pulse (down edge pulse output)
Master MC Master Control (coil instruction for universal series contacts)
Command
MCR Master Reset (Universal series contact release instruction)
Other
commands Nop No program (empty operation)
End of program (end of program and input/output processing,
End instruction END and return 0 steps)
Step ladder STL Step ladder diagram (the beginning of a step ladder diagram)
Instructions Ret Return (end of step ladder diagram)
CJ Conditional jump
Program flow CALL Subroutine call
Sret Subroutine return
46
Dongguan AMX Automation Technology Co. , AMX-FX3U relay series programmable
Ltd. controller manual
Main program
FEND terminated
Program flow For The beginning of the looping range
Next The end of the loop range
MOV Teleport
Smov Dislocated
Hey, CMP Comparison
Interval
ZCP comparison
Reverse
Transmission
CML transmission
comparison
Batch
BMOV transmission
Multipoint
Fmov transmission
XCH Swap
BCD
BCD conversion
Two-word
BIN Bin conversion instruction support,
Pulse Command
Add Bin addition not supported
Sub Bin subtraction
Bin
Mul multiplication
Div Bin Division
Four. Logic Inc. Bin plus one
Arithmetic
operation Dec. Bin Minus One
Wand Logic and
Wor Logic or
WXOR Exclusive or
Complementary
NEG code
Contact
LD = comparison LD S1 = S2
Contact
LD > comparison LD S 1 > s 2
Contact
LD < comparison LD S1 < S2
Contact
LD < > comparison LD S 1≠ s 2
Contact
LD < = comparison LD S 1≤ s 2
LD > = Contact S 1≥ s 2
comparison LD
Contact
Contact comparison
comparison And = AND S1 = S2
Contact
comparison
AND > AND S1>s2
Contact
comparison
And < AND S1 < S2
Contact
comparison
And < > AND S 1≠ s 2
Contact
comparison
And < = AND S 1≤ s 2
Contact
comparison
AND > = AND S 1≥ s 2
Contact
OR = comparison OR S1 = S2
47
Dongguan AMX Automation Technology Co. , AMX-FX3U relay series programmable
Ltd. controller manual
Contact
OR > comparison OR S 1 > s 2
Contact
Or < comparison OR S1 < S2
Contact Contact
comparison Or < > comparison OR S 1≠ s 2
Contact
Or < = comparison OR S 1≤ s 2
Contact
OR > = comparison OR S 1≥ s 2
Cyclic right
Ror shift
Whoa, Whoa,
whoa Cyclic left shift
Two-word
RCR Carry cycle right shift instruction support,
Pulse Command
Cycle. Shift RCL carry cyclic left shift not supported
SFTR Shift right
SFTL Shift left
Zrst Batch reset
Data
Processing Mean Mean value
Flt Bin integer-binary floating point number conversion
Filter
Reff adjustment
High-speed
processing PLSY Pulse output
PLSR Pulse output with acceleration and deceleration
Origin
Zrn regression
Variable Speed
Positioning
PLSV Pulse
control
Relative
Drvi positioning
Absolute
Drva positioning
DECMP Binary floating point number comparison
DEZCP Interval comparison of binary floating-point numbers
Demov Binary floating-point data transfer
DEBCD Binary-to-decimal floating-point conversion
Debin Decimal floating-point to binary floating-point conversion
DEADD Binary floating-point number addition
IEEE 754- Pulse Command
2008: IEEE DESUB Binary floating-point number subtraction not supported
Standard for
Floating-Point
Arithmetic
DEMUL Binary floating-point multiplication
DEDIV Binary floating-point number division
INT Binary floating-point number-BIN integer conversion
DSIN Binary floating point number SIN operation
DCOS Binary floating-point COS operation
DTAN Binary floating point number TAN operation
Data Up and down
Processing 2 Swap byte conversion
48
AMX-FX3U relay series programmable
Dongguan AMX Automation Technology Co. , Ltd. controller manual
50
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
Continuation:
Please confirm
whether the slave
station
Using Modbus
communication,
The request text is not in the correct Is receiving the
format correct
The number of access points to receive Function, confirm
text and the actual point received command
Master/Sla Is the number of
207 The numbers don’t match ve Station See above access points in the
Range of slave and
master stations
Or the number of access points
exceeds the function’s maximum
value 内
. If not compiled
correctly
Cheng, it sometimes
happens
Protocol error
Refer to error code
Receiving text error. Master/Sla 207
208 ASCII mode can not be converted to ve Station See above
Byte Code To be disposed of
Please confirm the
Received without corresponding work used
function code Can you match it to
Slave the primary site and
209 The requested function code is invalid station See above the
or does not correspond Specification of
slave station
Please confirm your
station
Modbus soft
component
allocation
If It’s set correctly.
To the undistributed software
components Modbus software
components into
Please confirm that
the master station
All Right, interview data is
Selected Modbus software component Slave Not in the selected
210 or software component + access station See above function has
Points exceeded Range of effect
The support range of the slave station
Please confirm that
the main site is
visited
I asked for a valid
software component
range
围
Please confirm the
number from this
site
And the
communication
Master parameters are
211 Slave response timeout station See above positive
The right setting
Exception response text receive
The exception response text was sent
from the site (see below
Abnormal response of plane Please confirm the
work used
Code) Can be compared
with the function
parameters
That match the
Master primary and
212 station See above secondary sites
Details:
Specifications
High-bit byte: exception function code
51
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
Continuation:
The station
numbers
don’t match
The request and response text are not
aligned from the site number
Please refer to the
Master error code
213 station See above
Details: Disposal of 0207
High-bit byte: the requested number
from the site
Low-bit byte: the number of the
response from the site
The function code is
inconsistent
The request text and the response text
have different functional codes
致 Please refer to the
Master error code
214 station See above
Disposal of 0207
Details:
High-bit byte: the function code for
the request text
Low-bit byte: function code that
responds to text
Error in play
request
Received from the station playback
function does not support the function
Please confirm
whether the function
Play request is in the
Within the scope of
Slave the slave station
215 Details: station See above specification
Non diagnostic Diagnostic
function function Okay, play it
Functional
High Byte: 0 Code
(08H)
Low-bit byte: Function Subfunction
Code Code
Request text data
exception
The data values do not agree with the
Modbus specification. Please refer to the
Slave error code
216 station See above
(for example: off = [0000H ] , on = Disposal of 0207
[ FF00H ]
Write to [5h ] value)
Please use the
Incorrect use of the Slave ADPRW at the main
217 ADPRW instruction station See above site
The ADPRW instruction
is used at the slave
station Instructions
Out of range of application instruction
operand data
Read/write object softcell for the
ADPRW instruction
The item is invalid. or the
number of points
occupied Refer to the above or
Please confirm
whether the function
Out of range is in the
Master station
Master specifications or
218 station M8067 will be ON, 6705 or software components
To the extent of the
Details: 6706 will be stored law
High Byte: 0 D8076 in progress
S.S4D according to RS
Low Byte: instructions
The invalid parameter is
stored 1-4
The length of the data Refer to error code
The data length is Master/Sla received does not match 207
219 incorrect ve Station Modbus specification To be disposed of
52
AMX-FX3U relay series Programmable Controller User Manual, Dongguan AMX Automation
Technology Co. , Ltd.
The exception response code for the Modbus slave station (details of the master station error, data in D8403)
Exception
response code Exception response code name
The requested function code does not correspond
01H Functional code exception to a slave station
The requested Modbus software component or
access point exceeds the slave
02H Soft component anomaly
The effective range of the
One data region of the request text exceeds the
valid range (data
03H Data Anomaly
Length, number of soft components)
A fatal error occurred while processing the
request text from the station
04H Processing interrupt
Go wrong
0CH I/0 error in sending or receiving data Incorrect length of data received or CRC error
53