XL Extension Module Manual
XL Extension Module Manual
User manual
Precautions Please follow the precautions. If not, it may lead the control
system incorrect or abnormal, even cause fortune lose.
Correct
Application The models could only be used according to the manual, and an
only be used along with the peripheral equipment recognized or
recommended by X Company. They could only work normally
in the condition of be transported, kept and installed correctly,
also please operate and maintain them according to the
recommendation.
Duty Declare
We have checked the manual; its content fits the hardware and software of the products. As
mistakes are unavoidable, we couldn’t promise all correct. However, we would check the data in
the manual frequently, and in the next edition, we will correct the necessary information. Your
recommendation would be highly appreciated
Catalog
1. MODULE INFORMATION SUMMARY .................................................................................... 1
1-1. MODULE MODEL AND CONFIGURATION .......................................................................................... 1
1-2. PART NAME AND FUNCTION ............................................................................................................ 2
1-3. GENERAL SPECIFICATION ............................................................................................................... 3
1-4. MODULE INSTALLATION ................................................................................................................. 4
1-5. TERMINAL RESISTANCE MODULE XL-ETR ..................................................................................... 6
2. I/O EXTENSION MODULE XL-ENXMY.................................................................................. 8
2-1. MODULE FEATURES AND SPECIFICATIONS ....................................................................................... 8
2-2. TERMINAL DESCRIPTIONS ............................................................................................................. 10
2-3. I/O DEFINITION NUMBER .............................................................................................................. 11
2-4. EXTERNAL CONNECTION .............................................................................................................. 13
2-4-1. Input wiring ......................................................................................................................... 13
2-4-2. Output wiring....................................................................................................................... 15
2-4-3. External terminal block ....................................................................................................... 17
2-5. MODULE PARAMETERS ................................................................................................................. 18
2-6. DIMENSION .................................................................................................................................. 22
2-7. APPLICATION ................................................................................................................................ 23
3. ANALOG I/O MODULE XL-E4AD2DA .................................................................................. 27
3-1. MODULE FEATURES AND SPECIFICATIONS ..................................................................................... 27
3-2. TERMINAL DESCRIPTION .............................................................................................................. 28
3-3. I/O ADDRESS ................................................................................................................................ 29
3-4. WORKING MODE SETTINGS........................................................................................................... 34
3-5. EXTERNAL WIRING ....................................................................................................................... 37
3-6. ANALOG DIGITAL CONVERSION DIAGRAM .................................................................................... 39
3-7. DIMENSION .................................................................................................................................. 41
3-8. APPLICATION ................................................................................................................................ 41
4. ANALOG INPUT MODULE XL-E8AD-A ............................................................................... 43
4-1. MODULE FEATURES AND SPECIFICATIONS ..................................................................................... 43
4-2. TERMINAL DESCRIPTIONS ............................................................................................................. 44
4-3. I/O ADDRESS ................................................................................................................................ 45
4-4. WORKING MODE SETTINGS........................................................................................................... 50
4-5. EXTERNAL WIRING ....................................................................................................................... 53
4-6. ANALOG DIGITAL CONVERSION DIAGRAM .................................................................................... 54
4-7. DIMENSION .................................................................................................................................. 54
4-8. APPLICATION ................................................................................................................................ 55
5. ANALOG INPUT MODULE XL-E8AD-V ............................................................................... 56
5-1. MODULE FEATURES AND SPECIFICATIONS ..................................................................................... 56
5-2. TERMINAL DESCRIPTIONS ............................................................................................................. 57
5-3. I/O ADDRESS ................................................................................................................................ 58
5-4. WORKING MODE SETTINGS........................................................................................................... 63
5-5. EXTERNAL WIRING ....................................................................................................................... 66
i
5-6. ANALOG DIGITAL CONVERSION DIAGRAM .................................................................................... 67
5-7. DIMENSION .................................................................................................................................. 67
5-8. APPLICATION ................................................................................................................................ 68
6. ANALOG OUTPUT MODULE XL-E4DA ............................................................................... 69
6-1. MODULE FEATURES AND SPECIFICATIONS ..................................................................................... 69
6-2. TERMINAL DESCRIPTION .............................................................................................................. 70
6-3. I/O ADDRESS ................................................................................................................................ 71
6-4. WORKING MODE SETTINGS........................................................................................................... 75
6-5. EXTERNAL WIRING ....................................................................................................................... 77
6-6. ANALOG DIGITAL CONVERSION DIAGRAM .................................................................................... 78
6-7. DIMENSION .................................................................................................................................. 79
6-8. APPLICATION ................................................................................................................................ 80
7. PT100 TEMPERATURE MODULE XL-E4PT3-P .................................................................... 81
7-1. MODULE FEATURES AND SPECIFICATIONS ..................................................................................... 81
7-2. TERMINALS .................................................................................................................................. 82
7-3. I/O ADDRESS ................................................................................................................................ 83
7-4. WORKING MODE .......................................................................................................................... 88
7-5. EXTERNAL WIRING ....................................................................................................................... 90
7-6. DIMENSION .................................................................................................................................. 91
7-7. APPLICATION ................................................................................................................................ 92
8. THERMOCOUPLE TEMPERATURE MODULE XL-E4TC-P ................................................ 95
8-1. SPECIFICATIONS ........................................................................................................................... 95
8-2. TERMINALS .................................................................................................................................. 96
8-3. I/O ADDRESS ASSIGNMENT ........................................................................................................... 97
8-4. WORKING MODE ........................................................................................................................ 102
8-5. EXTERNAL CONNECTION ............................................................................................................ 104
8-6. DIMENSION ................................................................................................................................ 105
8-7. PROGRAMMING EXAMPLE .......................................................................................................... 106
9. ANALOG INPUT MODULE XL-E4AD ................................................................................. 109
9-1. SPECIFICATIONS ......................................................................................................................... 109
9-2. TERMINALS ................................................................................................................................ 110
9-3. I/O ADDRESS ASSIGNMENT ......................................................................................................... 110
9-4. WORKING MODE ........................................................................................................................ 114
9-5. EXTERIOR CONNECTION ............................................................................................................. 116
9-6. AD CONVERSION DIAGRAM ........................................................................................................ 118
9-7. DIMENSION ................................................................................................................................ 119
9-8. PROGRAMMING .......................................................................................................................... 119
10. N CHANNEL PRESSURE MEASUREMENT MODULE XL-ENWT-D ............................. 121
10-1. FEATURES ................................................................................................................................ 121
10-2. TERMINALS .............................................................................................................................. 122
10-3. EXTERNAL CONNECTION .......................................................................................................... 124
10-4. WEIGHING SYSTEM .................................................................................................................. 125
10-5. MODULE FUNCTIONS ................................................................................................................ 126
10-5-1. Pressure sensor ................................................................................................................ 126
ii
10-6. I/O ADDRESS ............................................................................................................................ 127
10-7. WORKING MODE ...................................................................................................................... 132
10-8. MODULE SETTING .................................................................................................................... 134
10-9. MODULE ERROR INFO ............................................................................................................... 136
10-10. INSTRUCTION FROM AND TO ................................................................................................ 136
10-11. DIMENSION ............................................................................................................................ 140
10-12. APPLICATION PROGRAM ......................................................................................................... 141
11. ANALOG INPUT MODULE XL-E8AD-A-S ........................................................................ 142
11-1. MODULE FEATURES AND SPECIFICATIONS ................................................................................. 142
11-2. TERMINAL DESCRIPTIONS ......................................................................................................... 143
11-3. I/O ADDRESS ............................................................................................................................ 144
11-4. WORKING MODE SETTINGS ....................................................................................................... 150
11-5. EXTERNAL WIRING ................................................................................................................... 153
11-6. ANALOG DIGITAL CONVERSION DIAGRAM ................................................................................ 154
11-7. DIMENSION .............................................................................................................................. 155
11-8. APPLICATION ............................................................................................................................ 155
12. ANALOG INPUT MODULE XL-E8AD-V-S ........................................................................ 156
12-1. MODULE FEATURES AND SPECIFICATIONS ................................................................................. 156
12-2. TERMINAL DESCRIPTIONS ......................................................................................................... 157
12-3. I/O ADDRESS ............................................................................................................................ 158
12-4. WORKING MODE SETTINGS....................................................................................................... 164
12-5. EXTERNAL WIRING ................................................................................................................... 167
12-6. ANALOG DIGITAL CONVERSION DIAGRAM ................................................................................ 167
12-7. DIMENSION .............................................................................................................................. 168
12-8. APPLICATION ............................................................................................................................ 168
13. PT100 TEMPERATURE MODULE XL-E4PT3-P-H ............................................................ 170
13-1. MODULE FEATURES AND SPECIFICATIONS ................................................................................. 170
13-2. TERMINALS .............................................................................................................................. 171
13-3. I/O ADDRESS ............................................................................................................................ 173
13-4. WORKING MODE ...................................................................................................................... 177
13-5. EXTERNAL WIRING ................................................................................................................... 180
13-6. DIMENSION .............................................................................................................................. 181
13-7. APPLICATION ............................................................................................................................ 182
iii
1. Module information summary
This chapter introduces the model, appearance, general specification, installation method, software
configuration and PID function of XL series expansion module. This series of modules are suitable for
XL series PLC models.
XL series PLC not only has powerful functions of logic processing, data operation and high-speed
processing, but also has functions of A/D and D/A conversion. By using input-output expansion
module and analog module, XL series PLC has been widely used in process control systems such as
temperature, flow and liquid level.
Model Function
XL-EnXmY N inputs, m outputs, NPN input, relay/transistor output
XL-E4AD 4-channel analog input (14 bits), current and voltage bipolar input
4 channels analog input (14 bits), 2 channels analog output (12 bits). Input
XL-E4AD2DA
output is voltage/current optional
XL-E8AD-A 8 channels analog input (14 bits), current bipolar input
XL-E8AD-V 8 channels analog input (14 bits), voltage bipolar input
XL-E8AD-A-S 8 channels analog input (16 bits), current bipolar input
XL-E8AD-V-S 8 channels analog input (16 bits), voltage bipolar input
XL-E4DA 4 channels analog output (12 bits), current/voltage optional
XL-E4PT3-P 4 channels PT100, PT1000 temperature measurement, with PID function
XL-E4PT3-P-H 4 channels PT100, PT1000 temperature measurement, with PID function
XL-E4TC-P 4 channels thermocouple temperature measurement, with PID function
XL-EnWT-D N-channel pressure sensor input (23bit), detection range DC-20mV~20mV
Module configuration
XL series expansion module can be installed on the right side of the main unit and expansion module
of XL series PLC.
1
XL-E4AD2DA XL-E4AD2DA XL-E4AD2DA XL-E4AD2DA XL-E4AD2DA XL-E4AD2DA XL-E4AD2DA XL-E4AD2DA XL-E4AD2DA
L+ L+ L+ L+ L+ L+ L+ L+ L+
M M M M M M M M M
C0 C0 C0 C0 C0 C0 C0 C0 C0
VI0 VI0 VI0 VI0 VI0 VI0 VI0 VI0 VI0
AI0 AI0 AI0 AI0 AI0 AI0 AI0 AI0 AI0
C1 C1 C1 C1 C1 C1 C1 C1 C1
VI1 VI1 VI1 VI1 VI1 VI1 VI1 VI1 VI1
AI1 AI1 AI1 AI1 AI1 AI1 AI1 AI1 AI1
C2 C2 C2 C2 C2 C2 C2 C2 C2
VI2 VI2 VI2 VI2 VI2 VI2 VI2 VI2 VI2
Note: When the number of right extension modules connected by XL series PLC is more than 5, it is
necessary to connect a terminal resistance module XL-ETR to the right of the last module (requiring
the hardware version of XL series right extension module to be H3.1 or more).
2
Name Function
Fixed buckle fix the PLC unit and extension module
Module model The extension module model
Extension port To connect other modules
I/O terminal Connect analog input and output, external devices, removable
Power LED PWR The LED lights up when the module has power supply.
COM When the module communication port communicates
normally, the LED lights on.
ERR When there is an error in the module, the LED is always
on or flickering (red).
When the ERR LED is always on, it indicates that the
module has serious application errors and can not be
used. It is necessary to adjust the mode of use and
switch the PLC to STOP state.
When the ERR LED flickers, there are application
errors, abnormal work and abnormal data in the module,
but the PLC is still RUN.
I/O LED Input output ON indicator
3
1-4. Module installation
Installation environment
Installation
XL series analog input and output, temperature control module can be installed on the right side of the
main unit and expansion module of XL series PLC. The installation can use DIN46277 guideway (35
mm wide).
The basic unit and expansion module are installed on the DIN46277 guideway (35 mm wide). To
dismantle, just pull down the assembly hook of DIN guide rail and take off the product.
4
Installation process
Taking the first expansion module as an example, explain the installation steps below:
1. Find the back cover on the right side of the PLC, and
push the back cover in the direction of the arrow shown
in the diagram;
5
Wiring requirement
Apart from the XL series 32-point extension module, which needs to use an external terminal for
wiring, other modules can directly insert the cable into the corresponding wiring hole.
Cautions:
1. Please confirm the specifications and select the appropriate modules.
2. When processing screw holes and wiring, do not let chips and wire chips fall into the module.
3. Before connecting, please reconfirm the specifications of modules and connecting equipment
to ensure that there is no problem.
4. When connecting, please pay attention to whether the connection is firm or not. If the
connection falls off, it will cause data incorrect, short circuit and other faults.
5. Installation, wiring and other operations must be carried out after cutting off all the power
supply.
When the number of right extension modules of XL series PLC is more than 5, the terminal resistance
module XL-ETR must be used together.
XL-ETR is only applicable to XL series right extension modules of hardware version H3.1 and above.
Dimension
Unit: mm
6
70 11
105
Installation
When using, please install XL-ETR on the right side of the last extension module and connect the
interface slot of the module as shown in the following figure:
7
2. I/O extension module XL-EnXmY
This chapter mainly introduces the specification of XL-EnXmY module, terminal description,
input definition number assignment, external connection, appearance size diagram and related
programming examples.
XL series PLC can expand XL-EnXmY input and output module externally. Each XL3 series PLC
can expand 10 modules, XL5/XL5E can expand 16 modules, XL1 does not support expansion
module. The module is rich in types and compact in shape, which makes it possible for more input
and output points and meets the actual production needs.
Naming rule
8
⑥ Output type YT: Transistor output
YR: Relay output
No: European terminal
⑦ Interface type
A: Horn terminal, requires external terminal
block
Models
Model Function
NPN input PNP input
XL-E8X8YR XL-E8PX8YR 8 channels digital input, 8 channels relay output
XL-E8X8YT XL-E8PX8YT 8 channels digital input, 8 channels transistor output
XL-E16X XL-E16PX 16 channels digital input
XL-E16YR - 16 channels relay output
XL-E16YT - 16 channels transistor output
XL-E16YT-A - 16 channels transistor output (horn terminals)
XL-E16X16YT XL-E16PX16YT 16 channels digital input, 16 channels transistor
output
- XL-E16PX16PYT 16 channels PNP digital input, 16 channels PNP
transistor output
XL-E16X16YT-A XL-E16PX16YT-A 16 channels digital input, 16 channels transistor
output (horn terminal)
XL-E32X XL-E32PX 32 channels digital input
XL-E32X-A XL-E32PX-A 32 channels digital input (horn terminals)
XL-E32YT - 32 channels transistor output
XL-E32YT-A - 32 channels transistor output (horn terminals)
Module specification
Item Specification
Power supply DC24V±10%
Environment Non-corrosive gas
Temperature 0℃~60℃
Humidity 5~95%
Installation Direct mounting on DIN46277 (35 mm wide) rail
9
2-2. Terminal descriptions
M L+
X0 X1
X2 X3
X4 X5
X6 X7
X10 X11
X12 X13
X14 X15
X16 X17
X20 X21
X22 X23
X24 X25
X26 X27
X30 X31
X32 X33
X34 X35
X36 X37
XL-E16YR,
XL-E16YT-A XL-E32YT XL-E32YT-A
XL-E16YT
COM0 COM0
Y0 Y1
Y2 Y3
Y0 Y1
Y4 Y2 Y3
Y5
Y6 Y7 Y4 Y5
Y10 Y11 Y6 Y7
Y12 Y13 Y10 Y11
Y14 Y15 Y12 Y13
Y16 Y17 Y14 Y15
Y16 Y17
Y20 Y21
Y22 Y23
Y24 Y25
Y26 Y27
Y30 Y31
Y32 Y33
Y34 Y35
Y36 Y37
M M0
X0 Y0
X1 Y1 M L+
X2 Y2
X0 X1
X3 Y3 X2 X3
X4 Y4 X4 X5
X6 X7
X5 Y5
X10 X11
X6 Y6 X12 X13
Y7
X14 X15
X7
X16 X17
L1+
M1 Y0 Y1
X10 Y10
Y2 Y3
Y4 Y5
X11 Y11 Y6 Y7
X12 Y12 Y10 Y11
Y12 Y13
X13 Y13
Y14 Y15
X14 Y14 Y16 Y17
X15 Y15
X16 Y16
X17 Y17
10
Wiring head specifications
The wiring must be consistent with the following requirements in connection with the X-E8X8YR,
XL-E8PX8YR, XL-E8PX8YT, XL-E16X, XL-E16PX, XL-E16YR, XL-E16YT modules:
(1) The stripping length is 9 mm;
(2) Flexible conductors with bare tubular ends are 0.25-1.5 square meter.
(3) Flexible conductor with tubular pre-insulated end is 0.25-0.5 square meter.
The addresses of the input and output terminals of the XL Series I/O Extension Module are as
follows:
Note: The terminal definitions and addresses of NPN and PNP type modules are the same.
#1~#16 extension module input terminal X0~X37 definition:
#1 #2 #3 #4 #5 #6 #7 #8
X0 X10000 X10100 X10200 X10300 X10400 X10500 X10600 X10700
X1 X10001 X10101 X10201 X10301 X10401 X10501 X10601 X10701
… … … … … … … … …
X7 X10007 X10107 X10207 X10307 X10407 X10507 X10607 X10707
X10 X10010 X10110 X10210 X10310 X10410 X10510 X10610 X10710
… … … … … … … … …
X17 X10017 X10117 X10217 X10317 X10417 X10517 X10617 X10717
X20 X10020 X10120 X10220 X10320 X10420 X10520 X10620 X10720
… … … … … … … … …
X27 X10027 X10127 X10227 X10327 X10427 X10527 X10627 X10727
X30 X10030 X10130 X10230 X10330 X10430 X10530 X10630 X10730
… … … … … … … … …
X36 X10036 X10136 X10236 X10336 X10436 X10536 X10636 X10736
X37 X10037 X10137 X10237 X10337 X10437 X10537 X10637 X10737
#9 #10 #11 #12 #13 #14 #15 #16
X0 X11000 X11100 X11200 X11300 X11400 X11500 X11600 X11700
X1 X11001 X11101 X11201 X11301 X11401 X11501 X11601 X11701
… … … … … … … … …
X7 X11007 X11107 X11207 X11307 X11407 X11507 X11607 X11707
X10 X11010 X11110 X11210 X11310 X11410 X11510 X11610 X11710
… … … … … … … … …
X17 X11017 X11117 X11217 X11317 X11417 X11517 X11617 X11717
X20 X11020 X11120 X11220 X11320 X11420 X11520 X11620 X11720
11
… … … … … … … … …
X27 X11027 X11127 X11227 X11327 X11427 X11527 X11627 X11727
X30 X11030 X11130 X11230 X11330 X11430 X11530 X11630 X11730
… … … … … … … … …
X36 X11036 X11136 X11236 X11336 X11436 X11536 X11636 X11736
X37 X11037 X11137 X11237 X11337 X11437 X11537 X11637 X11737
12
2-4. External connection
3-wire (NPN) proximity switch wiring 2-wire (NO/NC) proximity switch wiring
13
PNP input specification:
Input signal voltage DC24V±10%
Input signal current 7mA/DC24V
Input ON current Below 4.5mA
Input OFF current Below 1.5mA
Input response time About 10ms
Input signal form Contact input or PNP open collector transistor
Circuit insulation Optoelectronic coupling insulation
Input action display LED lights up when input is ON
+24V
●
3-wire (PNP) proximity switch wiring 2-wire (NO/NC) proximity switch wiring
XL-E16PX16PYT:
+24V
●
X1
X2
X5
X4
X6
X7
X0
X3
M
14
3-wire proximity switch wiring 2-wire proximity switch wiring
Output specification:
(1) Relay output
External power supply Below AC250V, DC30V
Circuit insulation Mechanical insulation
Action display LED light
Resistive 3A
Max load Inductive 80VA
Light 100W
Min load DC5V 2mA
Response OFF→ON 10ms
time ON→OFF 10ms
15
(3) General transistor output (PNP)
External power supply Below DC5~30V
Circuit insulation Optocoupler insulation
Action display LED light
Max load Resistive 0.3A
Min load DC5V 2mA
Open circuit leakage Below 0.1mA
current
Response OFF→ON Below 0.2ms
time ON→OFF Below 0.2ms
16
Transistor type (PNP)
XL-A modules have horn terminals, which need external terminals. Xinje provides adapter
terminals and connection cables for users to choose from. A list of module models and adapter
terminals and connecting cables:
42.1 109.0
45.0
17
Wiring method
When wiring, press the spring switch with the slotted screwdriver, insert the wire into the
corresponding holes, and loosen the spring switch. The length of the cable skin stripping is 1.5 cm.
Connection cable
External terminals need to cooperate with the use of connecting cables, Xinje provides
JC-TE32-NNN05, JC-TE32-NN10, JC-TE32-NN15 three different length of cables for users to
choose and purchase. When connecting, please note that the end closing to the transparent heat
shrinkable tube connects the module, the other end connects to the terminals, can not be
reversed!!!
Wiring diagram:
Module Transparent heat shrinkable tube Terminals
Positive and negative logic can be adjusted and filtering time can be adjusted. There are two
configuration modes:
A. Set through the software
18
#3 SFD370~SFD379 #11 SFD450~SFD459
#4 SFD380~SFD389 #12 SFD460~SFD469
#5 SFD390~SFD399 #13 SFD470~SFD479
#6 SFD400~SFD409 #14 SFD480~SFD489
#7 SFD410~SFD419 #15 SFD490~SFD499
#8 SFD420~SFD429 #16 SFD500~SFD509
XL-E16X
Byte Byte Byte Byte Byte8~
Byte0 Byte1 Byte2 Byte3
4 5 6 7 Byte19
Bit7 - - - - -
Bit6 X3 X7 X13 X17 -
logic logic logic logic
Bit5 - - - - -
Bit4 X0~X3 X4~X7 X10~X13 X14~X17 X2 X6 X12 X16 -
logic logic logic logic
filtering filtering filtering filtering
Bit3 - - - - -
time time time time
Bit2 X1 X5 X11 X15 -
logic logic logic logic
Bit1 - - - - -
Bit0 X0 X4 X10 X14 -
logic logic logic logic
Filtering time (unit: ms): Note: 0 is positive logic, 1 is -
Notes 1~5, 10(default), 15, 20, 25, 30, 35, 40, 45, 50 negative logic
19
XL-E16X16Y
Bit0 Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7 Explanation
Byte0 X0~X3 filtering time Filtering time (unit:
Byte1 X4~X7 filtering time ms):
Byte2 X10~X13 filtering time 1~5, 10(default), 15,
Byte3 X14~X17 filtering time 20, 25, 30, 35, 40, 45,
50
Byte4 X0 - X1 - X2 - X3 -
logic logic logic logic
Byte5 X4 - X5 - X6 - X7 -
logic logic logic logic
Byte6 X10 - X11 - X12 - X13 -
Note: 0 is positive
logic logic logic logic
logic, 1 is negative
Byte7 X14 - X15 - X16 - X17 -
logic logic logic logic logic
Byte8 Y0 - Y1 - Y2 - Y3 -
logic logic logic logic
Byte9 Y4 - Y5 - Y6 - Y7 -
logic logic logic logic
Byte10 Y10 - Y11 - Y12 - Y13 -
logic logic logic logic
Byte11 Y14 - Y15 - Y16 - Y17 -
logic logic logic logic
Byte - - - - - - - -
12~19
XL-E16Y/XL-E32Y
Bit0 Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7 Explanation
Byte0 Y0 - Y1logic - Y2 - Y3 -
logic logic logic
Byte1 Y4 - Y5 - Y6 - Y7 - Note: 0 is positive
logic logic logic logic
logic, 1 is negative
Byte2 Y10 - Y11 - Y12 - Y13 -
logic
logic logic logic logic
Byte3 Y14 - Y15 - Y16 - Y17 -
logic logic logic logic
Byte4 Y20 - Y21 - Y22 - Y23 -
logic logic logic logic
Byte5 Y24 - Y25 - Y26 - Y27 -
logic logic logic logic
Byte6 Y30 - Y31 - Y32 - Y33 -
logic logic logic logic
Byte7 Y34 - Y35 - Y36 - Y37 -
logic logic logic logic
Byte8~19 - - - - - - - -
20
XL-E32X
Bit0 Bit1 Bit2 Bit3 Bit4 Bit5 Bit6 Bit7 Explanation
Byte0 X0~X3 filtering time
Byte1 X4~X7 filtering time Filtering time (unit:
Byte2 X10~X13 filtering time ms):
Byte3 X14~X17 filtering time 1~5, 10(default), 15, 20,
Byte4 X20~X23 filtering time 25, 30, 35, 40, 45, 50
Byte5 X24~X27 filtering time
Byte6 X30~X33 filtering time
Byte7 X34~X37 filtering time
Byte8 X0 - X1 - X2 - X3 -
logic logic logic logic
Byte9 X4 - X5 - X6 - X7 - Note: 0 is positive logic,
logic logic logic logic
1 is negative logic
Byte10 X10 - X11 - X12 - X13 -
logic logic logic logic
Byte11 X14 - X15 - X16 - X17 -
logic logic logic logic
Byte12 X20 - X21 - X22 - X23 -
logic logic logic logic
Byte13 X24 - X25 - X26 - X27 -
logic logic logic logic
Byte14 X30 - X31 - X32 - X33 -
logic logic logic logic
Byte15 X34 - X35 - X36 - X37 -
logic logic logic logic
Byte - - - - - - - -
16~19
Note:
In positive logic, X terminal is ON, X-terminal signal is ON, X terminal is OFF and X-terminal
signal is OFF.
In negative logic, X terminal is ON, X terminal signal is OFF, X terminal is OFF, X-terminal
signal is ON.
Default is positive logic, usually without modification.
21
2-6. Dimension
Unit: mm
15.0 70.0 25.0 5.1
Suitable modules
Input Output Input/output
XL-E16X XL-E8X8YR XL-E16YR
XL-E16PX XL-E8PX8YR XL-E16YT
111.5 XL-E8X8YT
105.0 XL-E8PX8YT
85.0 36.0
15.0 70.0 Suitable modules
Input Output Input/output
XL-E32X XL-E16X16YT XL-E32YT
XL-E16PX16PYT
111.5
105.0
87.7
70.0 25.0 Suitable modules
Input Output Input/output
XL-E32X-A XL-E16X16YT-A XL-E16YT-A
XL-E32YT-A
105.0
22
2-7. Application
In this chapter, the application of this module will be exemplified. XL3-16R is slave station with
an extended XL-E8X8YR to communicate with XINJE HMI.
Communication between Extended Module XL-E8X8YR and Xinje TG765 HMI.
THINGET
MODE: TG760T-MT
S/ N: N20121028028
In this example, as the main communication station, the HMI reads the input point state of the
extended module to the local coil state of the HMI, and writes the coil state of the internal HMI to
the output point of the extended module. The corresponding relationship is as follows:
Hardware connection:
The module XL-E8X8YR is attached to XL3-16R, and the RS485 communication terminal AB of
XL3-16R is connected to the AB terminal of the PLC port of TG765 respectively.
Communication parameter settings: the baud rate is 19200 bps, 8 data bits, 1 stop bit, even parity,
PLC Modbus station number is 1, then cut the power supply and power on again.
For TG765 HMI: please set the PLC type to Modbus RTU (panel is master). The baud rate is
19200 bps, 8 data bits, 1 stop bit, even parity.
Program application:
The corresponding relationship between the module input and output address and the local coil
address is as follows:
Local coil Related modbus
Module I/O
address address
PSB500 X10000 K20736
PSB501 Y10000 K24832
HMI screen:
23
Edit the status of extension module X10000, place a lamp, the object type of lamp is 0X,
corresponding Modbus address coil is 20736; select function button, button function is to copy the
coil status of X10000 to PSB500 when pressing the button; edit PSB500 lamp, the lamp object
type is PSB, the coil number is 500.
24
Edit the PSB501 status, place a lamp, the lamp object type is PSB, the coil number is 501. When
the function button is pressed, copy the status of PSB501 to extension module Y10000. Edit the
status of extension module Y10000, the lamp object type is 0x, the modbus address is 24832.
25
Download the program into the HMI. Then make them to communicate.
26
3. Analog I/O module XL-E4AD2DA
This chapter mainly introduces XL-E4AD2DA module specifications, terminal, input definition
number allocation, working mode settings, external connections, analog-to-digital conversion
diagrams, appearance size diagrams and related programming examples.
XL-E4AD2DA analog input and output module converts four channels of analog input values into
digital values, two channels of digital values into analog values, and transmits them to the main
unit of PLC, and real-time data interaction with the main unit of PLC.
XL-E4AD2DA
Module features
L+
M
C0
VI0
XL5/XL5E/XL5N/XL5H/XLME/XLH/XSLH can
expand 16 modules, and XL1 does not
support.expansion modules.
Module specification
27
12 bits binary data
Digital input range -
(0~4095 or -2048~2047)
14 bits binary data -
Digital output range
(0~16383 or -8192~8191)
Resolution 1/16383(14Bit) 1/4095(12Bit)
Integrated precision ±1%
Conversion speed 2ms per channel 2ms per channel
Module power supply DC24V±10%,150mA
Fixed with M3 screws or directly installed on orbit of DIN46277 (Width:
Installation
35mm)
Terminal arrangement
VI0
AI0
VI1
AI1
VI2
AI2
VI3
AI3
VO0
AO0
VO1
AO1
L+
C0
C2
C1
C3
C0
C1
M
Terminal signal
Name Function
PWR The indicator lights up when the module has a power supply.
COM When the module port communicates normally, the indicator lights on.
ERR When there is an error in the module, the indicator is always on or
flickering (red).
Indicator
When the ERR LED is always on, it indicates that the module has
light
serious application errors and can not be used. It is necessary to adjust
the mode of use and switch the PLC to STOP state.
When the ERR LED flickers, there are application errors, abnormal work
and abnormal data in the module, but the PLC is still RUN.
L+ Module 24V power supply input +
M Module 24V power supply input -
Terminal C0 VI0, AI0 input ground
VI0 Channel 1 AD voltage input
AI0 Channel 1 AD current input
28
C1 VI1, AI1 input ground
VI1 Channel 2 AD voltage input
AI1 Channel 2 AD current input
C2 VI2, AI2 input ground
VI2 Channel 3 AD voltage input
AI2 Channel 3 AD current input
C3 VI3, AI3 input ground
VI3 Channel 4 AD voltage input
AI3 Channel 4 AD current input
C0 VO0, AO0 output ground
VO0 Channel 1 DA voltage output
AO0 Channel 1 DA current output
C1 VO1, AO1 output ground
VO1 Channel 2 DA voltage output
AO1 Channel 2 DA current output
When wiring the module, its wiring head should meet the following requirements:
(1) The stripping length is 9 mm;
(2) Flexible wires with bare tubular ends are 0.25-1.5 square.
(3) Flexible wires with tubular pre-insulated end is 0.25-0.5 square.
XL series analog module does not occupy I/O unit, the converted value is directly sent to the PLC
register, the corresponding channel definition number of the PLC register is as follows:
29
Module 2 register address:
Channel enable switch
Channel AD signal (please turn on the swich to use this
channel)
0CH ID10100 Y10100
1CH ID10101 Y10101
2CH ID10102 Y10102
3CH ID10103 Y10103
Channel DA signal
0CH QD10100 Y10104
1CH QD10101 Y10105
30
2CH ID10402 Y10402
3CH ID10403 Y10403
Channel DA signal
0CH QD10400 Y10404
1CH QD10401 Y10405
31
Module 9 register address:
Channel enable switch
Channel AD signal (please turn on the swich to use this
channel)
0CH ID10800 Y11000
1CH ID10801 Y11001
2CH ID10802 Y11002
3CH ID10803 Y11003
Channel DA signal
0CH QD10800 Y11004
1CH QD10801 Y11005
32
2CH ID11102 Y11302
3CH ID11103 Y11303
Channel DA signal
0CH QD11100 Y11304
1CH QD11101 Y11305
33
Module 16 register address:
Channel enable switch
Channel AD signal (please turn on the swich to use this
channel)
0CH ID11500 Y11700
1CH ID11501 Y11701
2CH ID11502 Y11702
3CH ID11503 Y11703
Channel DA signal
0CH QD11500 Y11704
1CH QD11501 Y11705
Note:
(1) Banning unused channels can improve the scanning speed of input/output.
(2) When the input enable switch is turned off during operation, the corresponding input channel
will not collect data. (Data display is 0)
(3) When the enable switch of output is turned off during operation, the corresponding output
channel keeps the original data unchanged.
There are two ways to set the working mode (the effect of these two ways is equivalent):
(1) Configuration through the software
(2) Setting up by Flash Register
Please use XDPpro v3.5.1 or higher version software to configure the module.
Open the software, click module in the left menu,
34
Choose the module type, and set each channel’s parameters in the above window. Then click write
to PLC, cut the power supply and power on again to make the settings effective.
Note: The first-order low-pass filtering method weighs this time sampling value and the output
value of the last filtering to get the effective filtering value; the filter coefficient is set by the user
to 0-254, the smaller the value, the more stable the data, but may lead to data lag; therefore, when
set to 1, the filtering effect is strongest and the data is the most stable; when set to 254, the
filtering effect is the weakest; default is 0 (no filtering).
The input and output channels of the expansion module can be selected in two modes: voltage and
current. Current is 0-20mA, 4-20mA, and -20-20mA. Voltage is 0-5V, 0-10V, -5-5V and -10-10V.
It is set by special FLASH data register SFD in PLC. As follows:
Module no. SFD register Module no. SFD register
#1 SFD350~SFD359 #9 SFD430~SFD439
#2 SFD360~SFD369 #10 SFD440~SFD449
#3 SFD370~SFD379 #11 SFD450~SFD459
#4 SFD380~SFD389 #12 SFD460~SFD469
#5 SFD390~SFD399 #13 SFD470~SFD479
#6 SFD400~SFD409 #14 SFD480~SFD489
#7 SFD410~SFD419 #15 SFD490~SFD499
#8 SFD420~SFD429 #16 SFD500~SFD509
Note: As shown above, each register sets four-channel modes. Each register has 16 bits. From low
to high, each four bit will set four-channel modes in turn.
35
SFD bit definition
Example: the input channels of the first module are 0-20mA, 4-20mA, 0-10V and 0-5V
respectively, the filter coefficients of the first and second channels are 254, the filter coefficients
of the third and fourth channels are 100, and the output channels of the first and the zero channels
are 0-10V and 0-20mA respectively.
Method 1:
You can configure it directly in the PLC software, as shown above.
36
Method 2:
Set the SFD as follows:
SFD350=64FEH SFD351=2301H SFD352=0002H
For external connection, to avoid interference, use shielding wire and connect the ground to the
single point of shielding layer.
Voltage input
VI0
AI0
VI1
AI1
VI2
AI2
VI3
AI3
VO0
AO0
VO1
AO1
L+
C0
C2
C1
C3
C0
C1
M
VI1+
VI1-
VI2+
VI3+
VI2-
VI3-
VI0+
VI0-
Voltage output
VI0
AI0
VI1
AI1
VI2
AI2
VI3
AI3
VO0
AO0
VO1
AO1
L+
C0
C2
C1
C3
C0
C1
M
VO1+
VO0+
VO1-
VO0-
0CH 1CH
37
38
L+
L+
M
Current input
Current output
C0 AI0-
C0
VI0
VI0
0CH
AI0 AI0+ AI0
C1 AI1- C1
VI1 VI1
1CH
AI1 AI1+ AI1
VI2 VI2
2CH
AI2+
AI2 AI2
AI3-
C3
C3
VI3
AI3+ AI3
AI3
AO0- C0
C0
VO0
VO0
0CH
AO0
AO0+ AO0
C1
AO1- C1 VO1
VO1 AO1
1CH
AO1+ AO1
3-6. Analog digital conversion diagram
The relationship between input analog quantities and converted digital quantities is shown in the
following table:
0~5V analog input 0~10V analog input
+16383 +16383
digital digital
0 5v 0 10v
analog analog
+8191 +8191
digital digital
-5V -10V
0 analog +5V 0 analog
+10V
-8192 -8192
+16383 +16383
digital digital
8191
digital
-20mA
0 analog
+20mA
-8192
39
The relationship between the output digital quantity and its corresponding analog data is shown in
the following table:
0~5V analog output 0~10V analog output
5v 10v
analog analog
0 +4095 0 +4095
digital digital
5v 10v
analog analog
-2048 -2048
digital +2047 digital +2047
-5v -10v
20mA 20mA
analog
analog
4mA
0 +4095 0 +4095
digital digital
Note:
(1) When the AD voltage input is suspended, the corresponding ID register is 16383; when the
AD current input is suspended, the corresponding ID register is 0.
(2) When the input data exceeds K4095, the analog data of DA conversion remains unchanged at
5V, 10V or 20mA.
40
3-7. Dimension
(Unit: mm)
L+
M
C0
VI0
AI0
C1
111.5
105.0
VI1
AI1
C2
VI2
AI2
C2
VI2
AI2
C0
VO0
AO0
C1
VO1
AO1
3-8. Application
Example: The output signal of one-channel pressure sensor needs to be collected (pressure sensor
performance parameters: detection pressure range 0Mp~10Mp, output analog signal 4~20mA),
and output one-channel 0V~10V voltage signal to frequency converter.
Analysis: As the pressure detection range of pressure sensor is 0Mp~10Mp, the analog output is
4~20mA, and the digital conversion range of expansion module is 0~16383, we can skip the
analog amount of 4~20mA in the intermediate conversion process, which directly means that the
pressure detection range is 0~16383 in the corresponding digital range of 0Mp~10Mp;
10Mp/16384=0.0006103515 is pressure corresponding to each digital number 1. The real-time
pressure of the current pressure sensor can be calculated by multiplying the real-time value
collected in the ID register of the expansion module by 0.0006103515. For example, the ID
register is 4096, and the corresponding pressure is 2.5Mp.
Similarly, the range of the set number in the extended module register QD is 0-4095
corresponding to the output voltage signal 0V-10V, 10V/4096=0.0024414, which indicates the
corresponding output voltage value for each set number in the extended module register QD; for
example, it is now necessary to output 3V voltage value, 3V/0.0024414=1229, and send the
calculated value to the extended module register QD.
Note: Please use floating-point number to calculate, otherwise it will affect the accuracy of
calculation and even can not be calculated!
41
Explanation:
SM0 is a constant ON coil and has been in ON state during the operation of PLC.
The PLC starts to run. The analog acquisition first calculates the pressure value corresponding to
each digit 1 collected by the expansion module, and then converts the digital quantity (integer)
collected in the ID10000 register into floating-point numbers. So as long as the real-time value
collected in the expansion module ID10000 register is multiplied by the pressure value
corresponding to each digit 1 collected by the expansion module, the real-time pressure values are
calculated.
Similarly, the analog output first calculates the voltage value corresponding to each digit 1
collected by the expansion module, divides the set target voltage value by the voltage value
corresponding to each digit 1 collected by the expansion module, and then obtains the required
number (floating point number). As the QD10000 register can only store integers, it is necessary
to convert the floating point number to integer and transmit to QD10000.
42
4. Analog input module XL-E8AD-A
This chapter mainly introduces XL-E8AD-A module specifications, terminal instructions, input
definition number allocation, working mode settings, external connections, analog-to-digital
conversion diagrams, appearance size diagrams and related programming examples.
XL-E8AD-A analog input module converts 8 analog current input values into digital values, and
transmits them to the main unit of PLC, and interacts with the main unit of PLC in real time.
XL-E8AD-A
Module features
L+
M
C0
AI0
C1
AI1 8-channel analog input: current input.
C2
AI2
C3
14-bit high-precision analog input.
AI3
Module specification
Analog input
Item
Current input
Analog input range 0~20mA, 4~20mA, -20~20mA
Max input range -40~40mA
Digital output range 14 bits binary data (0~16383 or -8192~8191)
Resolution 1/16383 (14Bit)
Integrated precision 1%
Conversion speed 2ms/1 channel
Module power
DC24V±10%, 150mA
supply
Installation Fixed with M3 screws or directly installed on rail of DIN46277 (Width: 35mm)
43
4-2. Terminal descriptions
Terminal arrangment
AI0
AI3
AI1
AI4
AI7
AI5
AI2
AI6
L+
M
C0
C3
C1
C4
C7
C5
C2
C6
Terminal signal
Name Function
PWR The indicator lights up when the module has a power supply.
COM When the module port communicates normally, the indicator
lights on.
ERR When there is an error in the module, the indicator is always on
or flickering (red).
Indicator When the ERR LED is always on, it indicates that the module
light has serious application errors and can not be used. It is
necessary to adjust the mode of use and switch the PLC to STOP
state.
When the ERR LED flickers, there are application errors,
abnormal work and abnormal data in the module, but the PLC is
still RUN.
L+ Module 24V power supply input +
M Module 24V power supply input -
C0 AI0 output ground
AI0 Channel 1 AD current input
C1 AI1 output ground
AI1 Channel 2 AD current input
C2 AI2 output ground
Terminal
AI2 Channel 3 AD current input
C3 AI3 output ground
AI3 Channel 4 AD current input
C4 AI4 output ground
AI4 Channel 5 AD current input
C5 AI5 output ground
AI5 Channel 6 AD current input
44
C6 AI6 output ground
AI6 Channel 7 AD current input
C7 AI7 output ground
AI7 Channel 8 AD current input
When wiring the module, its wiring head should meet the following requirements:
(1) The stripping length is 9 mm;
(2) Flexible wires with bare tubular ends are 0.25-1.5 square.
(3) Flexible wires with tubular pre-insulated end is 0.25-0.5 square.
XL series analog module does not occupy I/O unit, the converted value is directly sent to the PLC
register, the corresponding channel definition number of the PLC register is as follows:
45
6CH ID10106 Y10106
7CH ID10107 Y10107
46
Module 6 register address:
Channel enable switch
Channel AD signal (please turn on the swich to use this
channel)
0CH ID10500 Y10500
1CH ID10501 Y10501
2CH ID10502 Y10502
3CH ID10503 Y10503
4CH ID10504 Y10504
5CH ID10505 Y10505
6CH ID10506 Y10506
7CH ID10507 Y10507
47
Module 9 register address:
Channel enable switch
Channel AD signal (please turn on the swich to use this
channel)
0CH ID10800 Y11000
1CH ID10801 Y11001
2CH ID10802 Y11002
3CH ID10803 Y11003
4CH ID10804 Y11004
5CH ID10805 Y11005
6CH ID10806 Y11006
7CH ID10807 Y11007
48
Module 12 register address:
Channel enable switch
Channel AD signal (please turn on the swich to use this
channel)
0CH ID11100 Y11300
1CH ID11101 Y11301
2CH ID11102 Y11302
3CH ID11103 Y11303
4CH ID11104 Y11304
5CH ID11105 Y11305
6CH ID11106 Y11306
7CH ID11107 Y11307
49
Module 15 register address:
Channel enable switch
Channel AD signal (please turn on the swich to use this
channel)
0CH ID11400 Y11600
1CH ID11401 Y11601
2CH ID11402 Y11602
3CH ID11403 Y11603
4CH ID11404 Y11604
5CH ID11405 Y11605
6CH ID11406 Y11606
7CH ID11407 Y11607
Note:
(1) Banning unused channels can improve the scanning speed of input/output.
(2) When the input enabling switch is turned off during operation, the corresponding input channel
will not collect data. (Data display is 0)
There are two ways to set the working mode (the effect of these two ways is equivalent):
(1) Configuration through the software
(2) Setting up by Flash Register
Please use XDPpro v3.5.1 or higher version software to configure the module.
Open the software, click module in the left menu,
50
Choose the module type, and set each channel’s parameters in the above window. Then click write to
PLC, cut the power supply and power on again to make the settings effective.
Note: The first-order low-pass filtering method weighs this time sampling value and the output value
of the last filtering to get the effective filtering value; the filter coefficient is set by the user to 0-254,
the smaller the value, the more stable the data, but may lead to data lag; therefore, when set to 1, the
filtering effect is strongest and the data is the most stable; when set to 254, the filtering effect is the
weakest; default is 0 (no filtering).
The input channel of the extended module is current mode, with 0-20mA, 4-20mA and -20-20mA
optional. It is set by special FLASH data register SFD in PLC. As follows:
Module no. SFD register Module no. SFD register
#1 SFD350~SFD359 #9 SFD430~SFD439
#2 SFD360~SFD369 #10 SFD440~SFD449
#3 SFD370~SFD379 #11 SFD450~SFD459
#4 SFD380~SFD389 #12 SFD460~SFD469
#5 SFD390~SFD399 #13 SFD470~SFD479
#6 SFD400~SFD409 #14 SFD480~SFD489
#7 SFD410~SFD419 #15 SFD490~SFD499
51
#8 SFD420~SFD429 #16 SFD500~SFD509
Note: As shown above, each register sets four-channel modes. Each register has 16 bits. From low to
high, each four bit will set four-channel modes in turn.
Example: To set the working modes of input channels 1 and 0 of the first module to be 0-20 mA, input
channels 3 and 2 to be 4-20 mA, input channels 5 and 4 to be 0-20 mA, input channels 7 and 6 to be -
20-20 mA, filter coefficients of channels 0, 1, 2 and 3 to be 254, filter coefficients of channels 4, 5, 6
and 7 to be 100.
52
Method 1:
You can configure it directly in the PLC software, as shown above.
Method 2:
Set the SFD as follows:
SFD350=FEFEH SFD351=6464H SFD352=9988H SFD353=AA88H
For external connection, to avoid interference, use shielding wire and connect the ground to the single
point of shielding layer.
Current input
AI0
AI3
AI1
AI4
AI7
AI5
AI2
AI6
L+
M
C0
C3
C1
C4
C7
C5
C2
C6
AI2-
AI0-
AI0+
AI4-
AI4+
AI5-
AI5+
AI1-
AI1+
AI2+
AI3-
AI3+
AI6-
AI6+
AI7-
AI7+
53
4-6. Analog digital conversion diagram
The relationship between input analog quantities and converted digital quantities is shown in the
following table:
0~20mA analog input 4~20mA analog input
+16383 +16383
digital digital
8191
digital
-20mA
0 analog
+20mA
-8192
Note: When the channel enable switch is turned on and the AD current input is suspended, the ID
register corresponding to the AD current input is displayed as 0. When the channel enable switch is
turned off, the ID register corresponding to the AD current input is displayed as 0.
4-7. Dimension
(Unit: mm)
54
15.0 70.0 25.0 5.1
XL-E8AD-A
L+
M
C0
AI0
C1
AI1
111.5
105.0
C2
AI2
C3
AI3
C4
AI4
C5
AI5
C6
AI6
C7
AI7
4-8. Application
Explain:
SM0 is a constant ON coil and has been in ON state during the operation of PLC.
The PLC starts to run, and continuously writes the data of channel 0 of the module 1 into the data
register D0.
Data in channel 1 is written to data register D1;
Data in channel 2 is written to data register D2.
55
Data in channel 3 is written to data register D3.
Data in channel 4 is written to data register D4.
The data of channel 5 is written to the data register D5.
The data of channel 6 is written to the data register D6.
The data of channel 7 is written to the data register D7.
Since all channels are used, all the channel enablers are opened.
XL-E8AD-V analog input module converts 8 analog current input values into digital values, and
transmits them to the main unit of PLC, and interacts with the main unit of PLC in real time.
XL-E8AD-V
Module features
L+
M
C0
VI0
C1
VI1
8-channel analog input: voltage input.
C2
VI2
C3
14-bit high-precision analog input.
As a special functional module of the XL series, XL3
VI3
C4
VI4
C5
VI5
can connect up to 10 modules,
XL5/XL5E/XL5N/XL5H/XLME/XLH/XSLH can
C6
VI6
C7
VI7
expand 16 modules, and XL1 does not support
expansion modules.
56
Module specification
Analog input
Item
Voltage input
Analog input range 0~5V, 0~10V, -5~5V, -10~10V
Max input range DC±15V
Digital output range 14 bits binary data (0~16383 or -8192~8191)
Resolution 1/16383 (14Bit)
Integrated precision 1%
Conversion speed 2ms/1 channel
Module power
DC24V±10%, 150mA
supply
Installation Fixed with M3 screws or directly installed on rail of DIN46277 (Width: 35mm)
Terminal arrangment
VI0
VI3
VI1
VI4
VI7
VI5
VI2
VI6
L+
M
C0
C3
C1
C4
C7
C5
C2
C6
Terminal signal
Name Function
PWR The indicator lights up when the module has a power supply.
COM When the module port communicates normally, the indicator
lights on.
Indicator ERR When there is an error in the module, the indicator is always on
light or flickering (red).
When the ERR LED is always on, it indicates that the module
has serious application errors and can not be used. It is
necessary to adjust the mode of use and switch the PLC to STOP
57
state.
When the ERR LED flickers, there are application errors,
abnormal work and abnormal data in the module, but the PLC is
still RUN.
L+ Module 24V power supply input +
M Module 24V power supply input -
C0 VI0 output ground
VI0 Channel 1 AD voltage input
C1 VI1 output ground
VI1 Channel 2 AD voltage input
C2 VI2 output ground
VI2 Channel 3 AD voltage input
C3 VI3 output ground
Terminal
VI3 Channel 4 AD voltage input
C4 VI4 output ground
VI4 Channel 5 AD voltage input
C5 VI5 output ground
VI5 Channel 6 AD voltage input
C6 VI6 output ground
VI6 Channel 7 AD voltage input
C7 VI7 output ground
VI7 Channel 8 AD voltage input
When wiring the module, its wiring head should meet the following requirements:
(1) The stripping length is 9 mm;
(2) Flexible wires with bare tubular ends are 0.25-1.5 square.
(3) Flexible wires with tubular pre-insulated end is 0.25-0.5 square.
XL series analog module does not occupy I/O unit, the converted value is directly sent to the PLC
register, the corresponding channel definition number of the PLC register is as follows:
58
1CH ID10001 Y10001
2CH ID10002 Y10002
3CH ID10003 Y10003
4CH ID10004 Y10004
5CH ID10005 Y10005
6CH ID10006 Y10006
7CH ID10007 Y10007
59
6CH ID10306 Y10306
7CH ID10307 Y10307
60
Module 8 register address:
Channel enable switch
Channel AD signal (please turn on the swich to use this
channel)
0CH ID10700 Y10700
1CH ID10701 Y10701
2CH ID10702 Y10702
3CH ID10703 Y10703
4CH ID10704 Y10704
5CH ID10705 Y10705
6CH ID10706 Y10706
7CH ID10707 Y10707
61
1CH ID11001 Y11201
2CH ID11002 Y11202
3CH ID11003 Y11203
4CH ID11004 Y11204
5CH ID11005 Y11205
6CH ID11006 Y11206
7CH ID11007 Y11207
62
6CH ID11306 Y11506
7CH ID11307 Y11507
Note:
(1) Banning unused channels can improve the scanning speed of input/output.
(2) When the input enabling switch is turned off during operation, the corresponding input channel
will not collect data. (Data display is 0)
There are two ways to set the working mode (the effect of these two ways is equivalent):
(1) Configuration through the software
(2) Setting up by Flash Register
63
Please use XDPpro v3.5.1 or higher version software to configure the module.
Open the software, click module in the left menu,
Choose the module type, and set each channel’s parameters in the above window. Then click write to
PLC, cut the power supply and power on again to make the settings effective.
Note: The first-order low-pass filtering method weighs this time sampling value and the output value
of the last filtering to get the effective filtering value; the filter coefficient is set by the user to 0-254,
the smaller the value, the more stable the data, but may lead to data lag; therefore, when set to 1, the
filtering effect is strongest and the data is the most stable; when set to 254, the filtering effect is the
weakest; default is 0 (no filtering).
The input channel of the extended module is voltage mode, with 0~5V, 0~10V, -5~5V, -10~10V
optional. It is set by special FLASH data register SFD in PLC. As follows:
Module no. SFD register Module no. SFD register
#1 SFD350~SFD359 #9 SFD430~SFD439
#2 SFD360~SFD369 #10 SFD440~SFD449
#3 SFD370~SFD379 #11 SFD450~SFD459
#4 SFD380~SFD389 #12 SFD460~SFD469
#5 SFD390~SFD399 #13 SFD470~SFD479
#6 SFD400~SFD409 #14 SFD480~SFD489
64
#7 SFD410~SFD419 #15 SFD490~SFD499
#8 SFD420~SFD429 #16 SFD500~SFD509
Note: As shown above, each register sets four-channel modes. Each register has 16 bits. From low to
high, each four bit will set four-channel modes in turn.
65
Example: To set the first module's input channels 1and 0 to 0~10V, input channels 3 and 2 to 0~5V,
input channels 5 and 4 to 0~10V, input channels 7 and 6 to 0~5V, filter coefficients of channels 0, 1, 2
and 3 to 254, filter coefficients of channels 4, 5, 6 and 7 to 100.
Method 1:
You can configure it directly in the PLC software, as shown above.
Method 2:
Set the SFD as follows:
SFD350=FEFEH SFD351=6464H SFD352=1100H SFD353=1100H
For external connection, to avoid interference, use shielding wire and connect the ground to the single
point of shielding layer.
Voltage input
VI0
VI3
VI1
VI4
VI7
VI5
VI2
VI6
L+
M
C0
C3
C1
C4
C7
C5
C2
C6
VI0-
VI0+
VI4-
VI4+
VI5-
VI5+
VI1-
VI1+
VI2-
VI2+
VI3-
VI3+
VI6-
VI6+
VI7-
VI7+
66
5-6. Analog digital conversion diagram
The relationship between input analog quantities and converted digital quantities is shown in the
following table:
0~5V analog input 0~10V analog input
+16383 +16383
digital digital
0 5V 0 10V
analog analog
8191 8191
digital digital
-5V -10V
0 analog
+5V 0 analog
+10V
-8192 -8192
Note: When the channel enable switch is turned on and the AD voltage input is suspended, the
corresponding ID register is displayed as 16383; When the channel enable switch is turned off, the ID
register corresponding to the AD voltage input is displayed as 0.
5-7. Dimension
(Unit: mm)
67
15.0 70.0 25.0 5.1
XL-E8AD-V
L+
M
C0
VI0
C1
VI1
111.5
105.0
C2
VI2
C3
VI3
C4
VI4
C5
VI5
C6
VI6
C7
VI7
5-8. Application
Explain:
SM0 is a constant ON coil and has been in ON state during the operation of PLC.
The PLC starts to run, and continuously writes the data of channel 0 of the module 1 into the data
register D0.
Data in channel 1 is written to data register D1;
Data in channel 2 is written to data register D2.
68
Data in channel 3 is written to data register D3.
Data in channel 4 is written to data register D4.
The data of channel 5 is written to the data register D5.
The data of channel 6 is written to the data register D6.
The data of channel 7 is written to the data register D7.
Since all channels are used, all the channel enablers are opened.
XL-E4DA analog output module converts four digital quantities into analog quantities, and transmits
them to the main unit of PLC, and interacts with the main unit of PLC in real time.
XL-E4DA
Module features
L+
M
C0
VO0
AO0
Four-channel analog output: Voltage and current
mode can be selected.
C1
VO1
AO1
C2
VO2
12-bit high-precision analog output.
AO2
C3 As a special functional module of the XL series,
VO3
AO3
XL3 can connect up to 10 modules,
XL5/XL5E/XL5N/XL5H/XLME/XLH/XSLH can
expand 16 modules, and XL1 does not support
expansion modules.
69
Module specification
Terminal arrangement
VO0
AO0
VO1
AO1
VO2
AO2
VO3
AO3
L+
M
C2
C3
C0
C1
Terminal signal
Name Function
PWR The indicator lights up when the module has a power supply.
COM When the module port communicates normally, the indicator lights on.
ERR When there is an error in the module, the indicator is always on or
flickering (red).
Indicator
When the ERR LED is always on, it indicates that the module has
light
serious application errors and can not be used. It is necessary to adjust
the mode of use and switch the PLC to STOP state.
When the ERR LED flickers, there are application errors, abnormal work
and abnormal data in the module, but the PLC is still RUN.
Terminal L+ Module 24V power supply input +
70
M Module 24V power supply input -
C0 VO0, AO0 output ground
VO0 Channel 1 DA voltage output
AO0 Channel 1 DA current output
C1 VO1, AO1 output ground
VO1 Channel 2 DA voltage output
AO1 Channel 2 DA current output
C2 VO2, AO2 output ground
VO2 Channel 3 DA voltage output
AO2 Channel 3 DA current output
C3 VO3, AO3 output ground
VO3 Channel 4 DA voltage output
AO3 Channel 4 DA current output
When wiring the module, its wiring head should meet the following requirements:
(1) The stripping length is 9 mm;
(2) Flexible wires with bare tubular ends are 0.25-1.5 square.
(3) Flexible wires with tubular pre-insulated end is 0.25-0.5 square.
XL series analog module does not occupy I/O unit, the converted value is directly sent to the PLC
register, the corresponding channel definition number of the PLC register is as follows:
Module 1 register address:
Channel enable switch
Channel DA signal (please turn on the swich to use this
channel)
0CH QD10000 Y10000
1CH QD10001 Y10001
2CH QD10002 Y10002
3CH QD10003 Y10003
71
Module 2 register address:
Channel enable switch
Channel DA signal (please turn on the swich to use this
channel)
0CH QD10100 Y10100
1CH QD10101 Y10101
2CH QD10102 Y10102
3CH QD10103 Y10103
72
3CH QD10503 Y10503
73
1CH QD11001 Y11201
2CH QD11002 Y11202
3CH QD11003 Y11203
74
Module 16 register address:
Channel enable switch
Channel DA signal (please turn on the swich to use this
channel)
0CH QD11500 Y11700
1CH QD11501 Y11701
2CH QD11502 Y11702
3CH QD11503 Y11703
Note:
1) Banning unused channels can improve the scanning speed of input/output.
2) When the enabling switch of output is turned off during operation, the corresponding output channel
keeps the original data unchanged.
There are two ways to set the working mode (the effect of these two ways is equivalent):
(1) Configuration through the software
(2) Setting up by Flash Register
Please use XDPpro v3.5.1 or higher version software to configure the module.
Open the software, click module in the left menu,
75
Choose the module type, and set each channel’s parameters in the above window. Then click write to
PLC, cut the power supply and power on again to make the settings effective.
The output channels of the expansion module can be selected in two modes: voltage and current.
Current is 0-20mA, 4-20mA. Voltage is 0-5V, 0-10V, -5-5V and -10-10V. It is set by special FLASH
data register SFD in PLC. As follows:
76
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
DA2 DA1
Byte0 - voltage current - voltage current
000:0~10V 010:0~20mA 000:0~10V 010:0~20mA
001:0~5V 011:4~20mA 001:0~5V 011:4~20mA
100:-10~10V 100:-10~10V
101:-5~5V 101:-5~5V
DA4 DA3
Byte1 - voltage current - voltage current
000:0~10V 010:0~20mA 000:0~10V 010:0~20mA
001:0~5V 011:4~20mA 001:0~5V 011:4~20mA
100:-10~10V 100:-10~10V
101:-5~5V 101:-5~5V
Byte2~
-
Byte19
Example: The working modes of output channel 3, channel 2, channel 1 and channel 0 are 0-10V,
0-10V, 0-20mA and 0-20mA, respectively.
Method 1:
You can configure it directly in the PLC software, the configuration method please refer to chapter 6-4.
Method 2:
Set the SFD as follows: SFD350=0022H
For external connection, to avoid interference, use shielding wire and connect the ground to the single
point of shielding layer.
Voltage output
VO0
AO0
VO1
AO1
VO2
AO2
VO3
AO3
L+
M
C0
C1
C2
C3
VO3-
VO0-
VO1-
VO2-
VO3+
VO0+
VO1+
VO2+
77
Current output
VO0
AO0
VO1
AO1
VO2
AO2
VO3
AO3
L+
M
C0
C1
C2
C3
AO0-
AO0+
AO1-
AO1+
AO2+
AO2-
AO3+
AO3-
0CH 1CH 2CH 3CH
R<500Ω
C_
The relationship between the output digital quantity and its corresponding analog data is shown in the
following table:
0~5V analog output 0~10V analog output
5v 10v
analog analog
0 +4095 0 +4095
digital digital
78
5v 10v
analog analog
-2048 -2048
digital +2047 digital +2047
-5v -10v
20mA 20mA
analog
analog
4mA
0 +4095 0 +4095
digital digital
Note: When the input data exceeds K4095, the analog data of DA conversion remains unchanged at 5V,
10V or 20mA.
6-7. Dimension
(Unit: mm)
L+
M
C0
111.5
105.0
VO0
AO0
C1
VO1
AO1
C2
VO2
AO2
C3
VO3
AO3
79
6-8. Application
Explain:
SM0 is a constant ON coil and has been in ON state during the operation of PLC.
Write the data register D10 to output channel 0.
Write the data register D11 to output channel 1.
Write the data register D12 to output channel 2.
Write the data register D13 to output channel 3.
Since all channels are used, all the enabled bits of all channels are opened.
80
7. PT100 temperature module XL-E4PT3-P
This chapter mainly introduces XL-E4PT3-P module specifications, terminal instructions, input
definition number allocation, working mode settings, external connections, analog-to-digital
conversion diagrams, appearance size diagrams and related programming examples.
XL-E4PT3-P temperature PID control module processes 4-channel thermal resistance temperature
signals and transmits them to the main unit of PLC.
XL-E4PT3-P
Features
L+
A0
B0
C0
A1
Platinum thermal resistance input, indexing
B1
C1
A2
number Pt100, Pt1000
B2
C2
4 channels input, 4 channels output
4 groups PID parameters, auto-tune function
A3
B3
C3
Y1
Y2
by the change of external environment.
Resolution is 0.1℃
Y3
Module specifications
Item Contents
Analog input signal Pt100, Pt1000 platinum thermistors
Temperature
-100℃~500℃
measurement range
Digital output range -1000~5000
Resolution 0.1℃
Integrate precision ±0.5% (relative max value)
Conversion speed 450ms/4 channels
Module power supply DC24V±10%, 50mA
Install format Fixed with M3 screws or directly installed on orbit of
81
DIN46277 (Width: 35mm)
Note:
(1) When there is no signal input, the channel data is the maximum value of the digital output range
(5000).
(2) Connect Pt100 or Pt1000 thermal resistor according to actual needs.
(3) Only firmware version V3 and above modules support Pt1000, and can be used in conjunction with
version V3.7.16 and above XDPPro software for configuration.
7-2. Terminals
Terminal arrangement
L+
C2
A0
B0
C0
A1
B1
C1
A2
B2
A3
B3
C3
Y0
Y1
Y2
Y3
M
Module signal
Name Function
PWR The indicator lights up when the module has a power supply
COM When the module communication port communicates normally, the
indicator lights on
ERR When there is an error in the module, the indicator is always on or
LED flickering (red)
light When the ERR lamp is always on, there are serious application errors in
the module that can not be used, so the mode of use must be adjusted,
and the PLC body is switched to STOP state. When the ERR lamp
flickers, there are application errors, abnormal work and abnormal data
in the module, but the PLC body is still RUN.
L+ External power supply 24V +
M External power supply 24V -
A0 CH0 temperature input
terminal B0 CH0 input common terminal
C0 CH0 input common terminal
A1 CH1 temperature input
B1 CH1 input common terminal
82
C1 CH1 input common terminal
A2 CH2 temperature input
B2 CH2 input common terminal
C2 CH2 input common terminal
A3 CH3 temperature input
B3 CH3 input common terminal
C3 CH3 input common terminal
COM0 PID output common terminal
Y0~Y3 PID output terminals corresponding to CH0~CH3
When wiring the module, its wiring head should meet the following requirements:
(1) The stripping length is 9 mm;
(2) Flexible conductors with bare tubular ends are 0.25-1.5 square.
(3) Flexible conductor with tubular pre-insulated end is 0.25-0.5 square.
XL series analog module will not occupy I/O unit, the conversion value will be sent to PLC register.
Each channel related PLC register address are shown as below:
Parameter Address
Channel CH0 CH1 CH2 CH3
Display Module 1 ID10000 ID10001 ID10002 ID10003
temperature Module 2 ID10100 ID10101 ID10102 ID10103
(unit: 0.1℃) ID10x00 ID10x01 ID10x02 ID10x03
Module 16 ID11500 ID11501 ID11502 ID11503
Module 1 Y10000 Y10001 Y10002 Y10003
PID enable
Module 2 Y10100 Y10101 Y10102 Y10103
bit (0: OFF,
Y10x00 Y10x01 Y10x02 Y10x03
1: ON)
Module 16 Y11700 Y11701 Y11702 Y11703
PID contact Module 1 X10000 X10001 X10002 X10003
output (X Module 2 X10100 X10101 X10102 X10103
input X10x00 X10x01 X10x02 X10x03
returning to Module 16
the main X11700 X11701 X11702 X11703
body)
Open circuit Module 1 X10010 X10011 X10012 X10013
detection (0: Module 2 X10110 X10111 X10112 X10113
83
normal, 1: X10x10 X10x11 X10x12 X10x13
disconnected) Module 16 X11710 X11711 X11712 X11713
Module 1 X10020 X10021 X10022 X10023
Auto-tuning Module 2 X10120 X10121 X10122 X10123
error X10x20 X10x21 X10x22 X10x23
Module 16 X11720 X11721 X11722 X11723
Note:
(1) When the "Y function selection" is set to "channel enable", Y10000-Y10003 (taking # 1 module
as an example) is the PID enable bit, and the PID duty cycle output needs to be monitored
from X10000 to X10003 (taking # 1 module as an example).
(2) When the "Y function selection" is set to "immediate output", Y0~Y3 are ordinary switch output
terminals, and Y10000~Y10003 (taking # 1 module as an example) can be used to directly
control the Y0~Y3 output of the module.
(3) When the "Y function selection" is set to "channel enable", Y0~Y3 are the PID output terminals,
and Y10000~Y10003 (taking # 1 module as an example) can be used to enable the
corresponding channel's PID control. The Y0~Y3 output of the module is automatically
calculated and controlled by the PID.
From/To instruction
The reading and writing of the temperature control module for the thermal resistor needs to be
completed in the sequence block through the FROM/TO command, as shown in the following figure:
Function: write the PLC register data to module address, the operate unit is word.
Operand:
84
S1: target module number, range: 10000~10015. Operand: K, TD, CD, D, HD, FD
S2: first address of module. Operand: K, TD, CD, D, HD, FD
S3: write in register numbers. Operand: K, TD, CD, D, HD, FD
D1: first address of PLC. Operand: TD, CD, D, HD, FD
Function: read the module data to the PLC regsiter, the operate unit is word.
S1: target module number, range: 10000~10015. Operand: K, TD, CD, D, HD, FD
S2: first address of module. Operand: K, TD, CD, D, HD, FD
S3: read register numbers. Operand: K, TD, CD, D, HD, FD
D1: first address of PLC. Operand: TD, CD, D, HD, FD
Note:
(1) The FROM/TO instruction can only be written in the sequence function block. For XL series
PLCs with firmware version V3.4.5 and above, a maximum of 100 BLOCKs can be written in
the program, but a maximum of 8 can be run simultaneously.
(2) The starting number of the module starts from K10000, with module # 1 being K10000,
module # 2 being K10001... and so on, module # 16 being K10015.
85
0~100)
Temperature 0
difference δ K33 K34 K35 K36 R/W
(unit: 0.1℃)
Calibrate -
ambient
temperature K37 K38 K39 K40 W
values
(unit: 0.1℃)
From/To data
K41 K41 K41 K41 W -
initialization
86
For example, in the thermal equilibrium state, the user measured the ambient
temperature as 60.0 ℃ using a mercury thermometer, and the displayed temperature
was 55.0 ℃ (corresponding to the sampling temperature of 550), with a temperature
deviation value δ = 0. At this point, the user writes 600 and the temperature deviation
value δ Recalculated to 50 (5 ℃), the displayed temperature is (sampling temperature
value+temperature deviation value δ) / 10=60 ℃.
Attention: When the user inputs the adjusting temperature value, confirm that it is
consistent with the ambient temperature. This data is very important, and once entered
incorrectly, it can lead to calculating temperature deviation values δ Serious error,
which in turn affects the display temperature.
Auto-tune The output amplitude calculated by PID is in %, where 100 represents the duty cycle
output range as 100% of the full scale output and 80 represents 80% of the full scale output.
Note: When set to 0, PID control will have no output.
From/To data This function can restore the parameters in the above table to their factory settings.
initialization When using it, K41 needs to be set to 1, setting to other values are invalid.
Note:
(1) The "From/To data initialization" function requires the module firmware version to be V3 or
higher.
(2) When the "Y function selection" is set to "immediate output", only the “temperature deviation
value” and “adjusting ambient temperature value” is valid, and other parameters are not
effective.
(3) The module can automatically save the set temperature value, PID parameters, temperature
control cycle, output amplitude, temperature deviation, and temperature calibration
parameters. When writing the above parameters, it is necessary to use the rising edge to
trigger the writing. Do not keep writing. It is recommended to only write the parameters used.
It is not recommended to write the entire piece of data for programming convenience, as
writing 0 to some addresses may cause the system to malfunction.
(4) The self-tuning enable address K0: K0 will occupy a continuous 8-bit address space. The
4-channel module enable bits correspond to the first 4 bits address space, while the last 4 bits
addresses are idle (but cannot be used for other purposes). When the read/write enable bit is
enabled, K0 can be a coil or register. When it is a coil, it occupies 8 consecutive bits starting
from the coil address; When it is a register, it occupies that register. For example, to set the
first and third channels of the module to self-tuning mode, and the other two channels to
manual PID mode, with the command To K10000 K0 K1 M10, M10 and M12 should be set to
ON, and M11, M13, M14, and M15 should be set to OFF; When the instruction is To K10000
K0 K1 D100, D100 should be assigned a value of 5.
87
7-4. Working mode
There are two ways to set the working mode (the effect of these two ways is equivalent):
1: Through the XDPpro software
2: Through Flash Register (FD) Settings
Open the software, click configure/expansion module setting, then select the module type in the
following window:
Choose the module model, set the parameters of each channel, click write to PLC. Then download user
program and run, the settings will be effective.
Note:
(1) The first-order low-pass filtering method weighted this sampling value and the output value of
the last filtering to get the effective filtering value; the filter coefficient is set by the user to
0-254, the smaller the value, the more stable the data, but it may lead to data lag; therefore,
when set to 1, the filtering effect is strongest and the data is the most stable; when set to 254,
the filtering effect is the weakest; default is 0 (no filtering).
(2) The "Y function selection" function needs to be supported by module firmware versions of V3
or above.
(3) "Y Function Selection" is used to specify the functions of Y10000~Y10003 (# 1 module as an
example). The default factory setting is "Channel Enable", which supports the module's own
self-tuning and PID control functions. The output points Y0~Y3 on the module are affected by
the PID output value, resulting in on/off effects; When set to "immediate output", the output
points Y0~Y3 on the module are ordinary switch output points. Setting On Y10000~Y10003
88
can conduct Y0~Y3, while the module only retains the temperature acquisition function. If
temperature control is required, please use the PID command of the PLC body to achieve it.
(4) The "PT channel disconnection detection" function requires firmware version V3 or above.
Extension module CH0~CH3 channel can set filter coefficients through special FLASH data register
FD inside PLC. As follows:
89
Byte9 - -
PT2 sensor type PT1 sensor type
Byte10 0000: PT100 0000: PT100
0001: PT1000 0001: PT1000
SFD355
PT4 sensor type PT3 sensor type
Byte11 0000: PT100 0000: PT100
0001: PT1000 0001: PT1000
Byte12 - -
SFD356
Byte13 - -
SFD357~SFD359 -
When connecting the thermal resistance, when connecting the external + 24V power supply, please use
the 24V power supply on the PLC body to avoid interference.
Input wiring
L+
C2
A0
B0
C0
A1
B1
C1
A2
B2
A3
B3
C3
Y0
Y1
Y2
Y3
M
For a three-wire platinum thermistor, please connect two wires of the same color to the C0 end and the
other wire to the A0 or A1 end.
Output circuit
Output terminal: transistor output terminal, please choose DC5V ~ 30V smooth power supply.
Circuit Insulation: Optical couplers are used for optical insulation between the internal circuit of
programmable controller and the output transistor, and the common modules are also separated
from each other.
Response time: The time from the programmable controller-driven (or circuit-breaking) optical
coupler to the transistor ON/OFF is no more than 0.2 ms.
Output Current: In order to limit the temperature rising, please make 50mA at each point.
90
Open circuit leakage current: below 0.1mA.
Power supply
heater
5000
Digital
output
-100 0 500
Temperature
-1000 input
7-6. Dimension
Unit: mm
91
15.0 70.0 25.0 5.1
XL-E4PT3-P
L+
A0
B0
C0
A1
111.5
105.0
B1
C1
A2
B2
C2
A3
B3
C3
Y0
Y1
Y2
Y3
7-7. Application
92
M0 Y10000
( ) // open PID enable bit
SM0
MOV HD0 D0 // set target value
SBLOCKE
M10
SBLOCK write auto-tune bit //write in the auto-tune flag bit
TO K10000 K0 K1 M10
SBLOCKE
// turn on auto-tune function
M10 SM13
SBLOCK read PID values //read auto-tune bit and PID parameters
//read auto-tune bit
FROM K10000 K0 K1 M100
SBLOCKE
M20
MOV HD10 D50
//set P value
MOV HD11 D51
//set I value
MOV HD12 D52
//set D value
MOV HD13 D53
//set Diff value
M21
SBLOCK manual PID
//perform manual PID control, write in P, I, D, Diff
TO K10000 K9 K4 D50 values
SBLOCKE
SM0
MOV K1 D20
M50
SBLOCK Initialize module
// Initialize module parameters
TO K10000 K41 K1 D20
SBLOCKE
93
Explanation:
After enabling the self-tuning, this command will immediately occupy a total of 8 bits in M10-M17.
M10-M13 corresponds to the self-tuning enable of each channel. To set which channel needs to be
tuned, set the corresponding coil to ON. M14~M17 have no meaning at the moment and need to be left
blank.
If the output is a solid-state relay, it is recommended to set the temperature control cycle to 1-3
seconds; If the output is a relay, it is recommended to set the temperature control cycle to 3-15s.
Due to inconsistent units, the PID parameters of the main body and module cannot be used
interchangeably. The main body PID parameters are in uppercase, and the module PID parameters are
in lowercase. The specific conversion relationship is as follows: p=P/100; i=I/10; d=D/100.
D0 target value
D10 temperature control period
D80 P
D81 I
D82 D
D83 DIFF
94
8. Thermocouple temperature module
XL-E4TC-P
This chapter mainly introduces XL-E4TC-P module specifications, terminal instructions, input
definition number allocation, working mode settings, external connections, analog-to-digital
conversion diagrams, appearance size diagrams and related programming examples.
8-1. Specifications
XL-E4TC-P can process 4-channel of thermocouple signal and send the data to the PLC.
XL-E4TC-P
Features
L+
M
Y1
As a special functional module of the XL series, the
XL3 series PLC can connect up to 10 modules,
Y2
Y3
XL5/XL5E/XL5N/XL5H/XLME/XLH/XSLH can
expand 16 modules, and XL1 does not support
expansion modules.
Specification
Item Contents
Analog input signal K, S, E, N, B, T, J, R type thermocouple
Temperature K 0.0℃~1300.0℃
measurement range S 0.0℃~1700.0℃
E 0.0℃~600.0℃
N 0.0℃~1200.0℃
B 250.0℃~1800.0℃ (display 0 below 250.0℃)
T 0.0℃~400.0℃
J 0.0℃~800.0℃
R 0.0℃~1700.0℃
Digital output range 0~max measuring temperature×10 (Taking K-type as an
example, the digital output range is 0~13000)
Resolution 0.1℃
Integrate precision ±1% (relative max value)
Conversion speed 420ms 4 channels
Module power supply DC24V±10%, 50mA
Installation Fixed with M3 screws or directly installed on orbit of
DIN46277 (Width: 35mm)
Note:
1. If no signal input, the channel data is -1.
2. According to the actual requirement to connect the thermocouple
3. The cover of device which installs thermocouple should be connected to the ground.
8-2. Terminals
Arrangment
L+
Y0
Y1
Y2
Y3
M
Signal
Name Function
PWR The indicator lights up when the module has a power supply
COM When the module communication port communicates normally, the
indicator lights on
ERR When there is an error in the module, the indicator is always on or
Indicator
flickering (red)
light
When the ERR lamp is always on, there are serious application
errors in the module that can not be used, so the mode of use must
be adjusted, and the PLC body is switched to STOP state. When the
ERR lamp flickers, there are application errors, abnormal work and
abnormal data in the module, but the PLC body is still RUN.
L+ External power supply 24V +
M External power supply 24V -
TC0+ CH0 thermocouple input +
TC0- CH0 thermocouple input -
TC1+ CH1 thermocouple input +
Wiring TC1- CH1 thermocouple input -
terminal TC2+ CH2 thermocouple input +
TC2- CH2 thermocouple input -
TC3+ CH3 thermocouple input +
TC3- CH3 thermocouple input -
COM0 PID output common terminal
Y0~Y3 PID output terminals corresponding to CH0~CH3
Wiring specification
When wiring the module, its wiring head should meet the following requirements:
(1) The stripping length is 9 mm;
(2) Flexible conductors with bare tubular ends are 0.25-1.5 square.
(3) Flexible conductor with tubular pre-insulated end is 0.25-0.5 square.
XL series analog module will not occupy I/O unit, the conversion value will be sent to PLC
register. Each channel related PLC register address are shown as below:
Parameters Notes
Channel Ch0 Ch1 Ch2 Ch3
Module 1 ID10000 ID10001 ID10002 ID10003
Display
Module 2 ID10100 ID10101 ID10102 ID10103
temperature
ID10×00 ID10×01 ID10×02 ID10×03
Unit: 0.1 ℃
Module 16 ID11500 ID11501 ID11502 ID11503
Module 1 X10000 X10001 X10002 X10003
Module 2 X10100 X10101 X10102 X10103
PID output
X10×00 X10×01 X10×02 X10×03
( return to the X
Module 16 X11700 X11701 X11702 X11703
input of PLC )
When module duty cycle output, X point should be monitored, but Y point should not be
monitored, because Y point is the PID enabler.
Connection state Module 1 X10010 X10011 X10012 X10013
of Module 2 X10110 X10111 X10112 X10113
thermocouple(0 is X10×10 X10×11 X10×12 X10×13
connection, 1 is Module 16 X11710 X11711 X11712 X11713
disconnection)
PID auto-tune Module 1 X10020 X10021 X10022 X10023
error signal bit(0 Module 2 X10120 X10121 X10122 X10123
is normal, 1 is X10×20 X10×21 X10×22 X10×23
error) Module 16 X11720 X11721 X11722 X11723
Module 1 Y10000 Y10001 Y10002 Y10003
Channel PID
Module 2 Y10100 Y10101 Y10102 Y10103
enable signal (0:
Y10×00 Y10×01 Y10×02 Y10×03
Off, 1: On)
Module 16 Y11700 Y11701 Y11702 Y11703
Note:
(1) When the "Y function selection" is set to "channel enable", Y10000-Y10003 (taking # 1
module as an example) is the PID enable bit, and the PID duty cycle output needs to be
monitored from X10000 to X10003 (taking # 1 module as an example).
(2) When the "Y function selection" is set to "immediate output", Y0~Y3 are ordinary switch
output terminals, and Y10000~Y10003 (taking # 1 module as an example) can be used to
directly control the Y0~Y3 output of the module.
(3) When the "Y function selection" is set to "channel enable", Y0~Y3 are the PID output
terminals, and Y10000~Y10003 (taking # 1 module as an example) can be used to enable
the corresponding channel's PID control. The Y0~Y3 output of the module is
automatically calculated and controlled by the PID.
From/To instruction
The reading and writing of the thermocouple temperature control module needs to be completed in
the sequence block through the FROM/TO command, as shown in the following figure:
Parameter write insruction TO
Function: write the PLC register data to module address, the operate unit is word.
Operand:
S1: target module number, range: 10000~10015. Operand: K, TD, CD, D, HD, FD
S2: first address of module. Operand: K, TD, CD, D, HD, FD
S3: write in register numbers. Operand: K, TD, CD, D, HD, FD
D1: first address of PLC. Operand: TD, CD, D, HD, FD
Function: read the module data to the PLC regsiter, the operate unit is word.
S1: target module number, range: 10000~10015. Operand: K, TD, CD, D, HD, FD
S2: first address of module. Operand: K, TD, CD, D, HD, FD
S3: read register numbers. Operand: K, TD, CD, D, HD, FD
D1: first address of PLC. Operand: TD, CD, D, HD, FD
Note:
(1) The FROM/TO instruction can only be written in the sequence block. For XL series PLCs
with firmware version V3.4.5 and above, a maximum of 100 BLOCKs can be written in
the program, but a maximum of 8 can be run simultaneously.
(2) The starting number of the module starts from K10000, with module # 1 being K10000,
module # 2 being K10001... and so on, module # 16 being K10015.
Note:
(1) The "From/To data initialization" function requires the module firmware version to be V3
or higher.
(2) When the "Y function selection" is set to "immediate output", only the “temperature
deviation value” and “adjusting ambient temperature value” is valid, and other parameters
are not effective.
(3) The module can automatically save the set temperature value, PID parameters,
temperature control cycle, output amplitude, temperature deviation, and temperature
calibration parameters. When writing the above parameters, it is necessary to use the
rising edge to trigger the writing. Do not keep writing. It is recommended to only write
the parameters used. It is not recommended to write the entire piece of data for
programming convenience, as writing 0 to some addresses may cause the system to
malfunction.
(4) The self-tuning enable address K0: K0 will occupy a continuous 8-bit address space. The
4-channel module enable bits correspond to the first 4 bits address space, while the last 4
bits addresses are idle (but cannot be used for other purposes). When the read/write
enable bit is enabled, K0 can be a coil or register. When it is a coil, it occupies 8
consecutive bits starting from the coil address; When it is a register, it occupies that
register. For example, to set the first and third channels of the module to self-tuning mode,
and the other two channels to manual PID mode, with the command To K10000 K0 K1
M10, M10 and M12 should be set to ON, and M11, M13, M14, and M15 should be set to
OFF; When the instruction is To K10000 K0 K1 D100, D100 should be assigned a value
of 5.
8-4. Working mode
Open the software, click configure/expansion module setting, then select the module type in the
following window:
Set the thermocoupler of each channel, click write to PLC and ok. Then download user program
and run, the settings will be effective.
The expansion module 0CH~3CH channel can set the type of thermocouple, and it can be set
through the special FLASH data register FD inside the PLC. As follows:
Note: The "Y function selection" and "TC channel disconnection detection" functions require
module firmware version V3 or above.
8-5. External connection
For thermocouple connection, When connect to+24V power, please use the 24V power supply of
PLC to avoid interference.
Input wiring
L+
Output circuit
Output terminal
For transistor output terminals, please use DC5V~30V power supply.
Circuit insulation
PLC internal circuit and output transistor is optical insulation with optical coupling device.
Each public module is separate.
Response time
The time is less than 0.2ms from PLC driving (or cut) optical coupling circuit to transistor
ON/OFF.
Output circuit
Each point current is 50mA to avoid over-heating.
Open circuit leak current
Below 0.1mA.
Power supply
Heating unit
SSR
10000
0 1000℃
8-6. Dimension
L+
111.5
105.0
Y0
Y1
Y2
Y3
SBLOCKE
M10
SBLOCK write auto-tune bit //write in the auto-tune flag bit
TO K10000 K0 K1 M10
SBLOCKE
// turn on auto-tune function
M10 SM13
SBLOCK read PID values //read auto-tune bit and PID parameters
//read auto-tune bit
FROM K10000 K0 K1 M100
SBLOCKE
M20
MOV HD10 D50
//set P value
MOV HD11 D51
//set I value
MOV HD12 D52
//set D value
MOV HD13 D53
//set Diff value
M21
SBLOCK manual PID
//perform manual PID control, write in P, I, D, Diff
TO K10000 K9 K4 D50 values
SBLOCKE
SM0
MOV K1 D20
M50
SBLOCK Initialize module
// Initialize module parameters
TO K10000 K41 K1 D20
SBLOCKE
Explanation:
After enabling the self-tuning, this command will immediately occupy a total of 8 bits in
M10-M17. M10-M13 corresponds to the self-tuning enable of each channel. To set which channel
needs to be tuned, set the corresponding coil to ON. M14~M17 have no meaning at the moment
and need to be left blank.
If the output is a solid-state relay, it is recommended to set the temperature control cycle to 1-3
seconds; If the output is a relay, it is recommended to set the temperature control cycle to 3-15s.
Due to inconsistent units, the PID parameters of the main body and module cannot be used
interchangeably. The main body PID parameters are in uppercase, and the module PID parameters
are in lowercase. The specific conversion relationship is as follows: p=P/100; i=I/10; d=D/100.
D0 target value
D10 temperature control period
D80 P
D81 I
D82 D
D83 DIFF
9. Analog input module XL-E4AD
9-1. Specifications
XL-E4AD transform the analog input (current or voltage) to digital value and send to PLC
register.
XL-E4AD
L+
C0
VI0
AI0
C1
VI1
AI1
C2
VI2
AI2
C3
VI3
AI3
Features:
4-channel analog input: two modes of voltage input and current input can be selected.
14-bit high precision analog input.
As a special functional module of the XL series, the XL3 series PLC can connect up to 10
modules, XL5/XL5E/XL5N/XL5H/XLME/XLH/XSLH can expand 16 modules, and
XL1 does not support expansion modules.
Specifications:
ITEMS Analog Input (AD)
Voltage Input Current Input
0~5V, 0~10V, 0~20mA, 4~20mA,
Analog Input Range
-5~5V, -10~10V -20~20mA
Max input range DC±15V -40~40mA
Digital Output Range 14 bits binary (0~16383 or -8192~8191)
Resolution 1/16383(14Bit)
Synthesis Precision ±1%
Conversion Speed 2ms per channel
Power Supply DC24V±10%, 150mA
Installation Fix with M3 screw or install on DIN46277 guilder (Width: 35mm) directly
9-2. Terminals
VI0
AI0
VI1
AI1
VI2
AI2
VI3
AI3
L+
M
C0
C1
C2
C2
Name Function
L+ External power supply for the module DC24V+
M External power supply for the module DC24V-
C0 VI0, AI0 input ground
VI0 Channel 1 AD voltage input terminal
AI0 Channel 1 AD current input terminal
C1 VI1, AI1 input ground
Wiring VI1 Channel 2 AD voltage input terminal
terminals AI1 Channel 2 AD current input terminal
C2 VI2, AI2 input ground
VI2 Channel 3 AD voltage input terminal
AI2 Channel 3 AD current input terminal
C3 VI3, AI3 input ground
VI3 Channel 4 AD voltage input terminal
AI3 Channel 4 AD current input terminal
Note:
When wiring the module, its connector shall meet the following requirements:
(1) Stripping length: 9mm.
(2) Flexible cable with tubular bare end 0.25-1.5mm2.
(3) Flexible cable with tubular pre-insulated end is 0.25-0.5mm2.
XL series expansions do not occupy I/O units; the converted value is sent to PLC register directly.
Note: each channel can work after turning on the channel enable bit.
XDPpro software:
Open the XDPpro software, click configure/expansion module settings:
Set the model and channel parameters in the following window. Then click write to PLC.
Please restart the PLC after setting.
Note:
1. The first-order low-pass filtering method uses this sampling value and the last filtering output
value for weighting to get the effective filtering value.
2. The filter coefficient is set to 0 ~ 254 by the user, the smaller the value is, the more stable the
data is, but it may cause data lag; when it is set to 1, the filtering effect is the strongest, and when
it is set to 254, the filtering effect is the weakest, and the default value is 0 (no filtering).
Flash registers:
The working mode can be voltage 0~5V, 0~10V, -5~5V, -10~10V or current 0~20mA, 4~20mA,
-20~20mA, set through SFD registers of PLC:
Module no. SFD address Module no. SFD address
#1 SFD350~SFD359 #9 SFD430~SFD439
#2 SFD360~SFD369 #10 SFD440~SFD449
#3 SFD370~SFD379 #11 SFD450~SFD459
#4 SFD380~SFD389 #12 SFD460~SFD469
#5 SFD390~SFD399 #13 SFD470~SFD479
#6 SFD400~SFD409 #14 SFD480~SFD489
#7 SFD410~SFD419 #15 SFD490~SFD499
#8 SFD420~SFD429 #16 SFD500~SFD509
Note: As shown in the preceding table, every register set 4 channels mode, each register has 16
bits, from low to high, and every 4 bits set 1 channel mode.
We take module 1 as an example to show how to set:
Register Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Note
SFD350 Byte0 AD channel 1, 2 filtering coefficient AD
filtering
Byte1 AD channel 3, 4 filtering coefficient
coefficient
SFD351 Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 To set the
AD2 AD1 input
- 000:0~10V - 000:0~10V range of
001:0~5V 001:0~5V AD
Byte2 100:-10~10V 100:-10~10V module.
101:-5~5V 101:-5~5V Byte2 low
010:0~20mA 010:0~20mA 4-bit is to
011:4~20mA 011:4~20mA set AD
110:-20~20mA 110:-20~20mA channel 1,
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 high 4-bit
AD4 AD3 is to set
- 000:0~10V - 000:0~10V AD
001:0~5V 001:0~5V channel 2.
Byte3 100:-10~10V 100:-10~10V Byte3
101:-5~5V 101:-5~5V Low 4-bit
010:0~20mA 010:0~20mA is to set
011:4~20mA 011:4~20mA AD
110:-20~20mA 110:-20~20mA channel 3,
SFD352 AD channel short circuit/open circuit/over range detection high 4-bit
Byte4 is to set
switch
Byte5 - AD
SFD353~SFD359 channel 4.
-
For example:
Set module no. 1 channel 3, 2, 1, 0 working mode to 0~20mA, 4~20mA, 0~10V, 0~5V. Set
channel 1 and channel 2 filter factor to 254, set channel 3 and channel 4 filter factor to 100.
So the SFD values are:
SFD350=64FEH SFD351=2301H SFD352=0000H SFD353=0000H
Voltage input
VI0
AI0
VI1
AI1
VI2
AI2
VI3
AI3
L+
M
C0
C1
C2
C2
VI0-
VI0+
VI1-
VI1+
VI0-
VI0+
VI1-
VI1+
0CH 1CH 2CH 3CH
Current input
VI0
AI0
VI1
AI1
VI2
AI2
VI3
AI3
L+
M
C0
C1
C2
C2
AI1+
AI0+
AI0+
AI0-
AI1-
AI0-
AI1-
AI1+
i
External
current
device
The relationship between analog input and converted digital value is shown in the following chart:
0~5V analog input 0~10V analog input
+16383 +16383
digital digital
0 5v 0 10v
analog analog
-8192 -8192
0~20mA analog input 4~20mA analog input
+16383 +16383
digital digital
8191
digital
-20mA
0 analog
+20mA
-8192
Note: When the channel enable switch is turned on and the AD voltage input is suspended, the
corresponding ID register is displayed as 16383; When the AD current input is suspended, the
corresponding ID register is displayed as 0. When the channel enable switch is turned off, the ID
register corresponding to the AD voltage/current input is displayed as 0.
9-7. Dimension
(Unit: mm)
L+
C0
VI0
AI0
C1
111.5
105.0
VI1
AI1
C2
VI2
AI2
C3
VI3
AI3
9-8. Programming
For example, the output signal of the existing pressure sensor needs to be collected (performance
parameters of the pressure sensor: the detection pressure range is 0Mp~10Mpa, and the output
analog signal is 4~20mA).
Analysis: because the pressure detection range of the pressure sensor is 0Mp~10Mpa, the
corresponding output analog quantity is 4~20mA, and the digital quantity range of the expansion
module converted by analog-to-digital conversion is 0~16383. So we can skip the analog quantity
4~20mA of the intermediate conversion link, which is directly the digital quantity range 0~16383
corresponding to the pressure detection range of 0Mp~10mp. 10Mp/16384=0.0006103515 is the
pressure value corresponding to each digit 1 of the digital quantity collected by the expansion
module, so the real-time pressure of the current pressure sensor can be calculated by multiplying
the real-time value collected in the expansion module ID register by 0.0006103515. For example,
if the digital quantity collected in the ID register is 4096, the corresponding pressure is 2.5Mp.
Note:
(1) First, set the enable bit corresponding to the first channel, namely Y10000, to ON.
(2) Please use floating-point operation for calculation, otherwise the calculation accuracy will be
affected or even cannot be calculated!
The program is as follows:
SM0
EDIV K10 K16384 D0
Normally 0.0006103516
ON coil
FLT ID10000 D2
4096 4096
EMUL D0 D2 D4
Explanation:
SM0 is normally ON coil, which is always ON during PLC operation.
The PLC starts to run, and the analog quantity acquisition first calculates the pressure value
corresponding to each digit 1 of the digital quantity collected by the expansion module, and then
converts the digital quantity (integer) collected in the ID10000 register into a floating point
number. Therefore, the current real-time pressure value can be calculated by multiplying the
real-time value collected in the ID10000 register of the expansion module by the pressure value
corresponding to each digit 1 of the digital quantity collected by the expansion module.
10. N channel pressure measurement
module XL-EnWT-D
10-1. Features
XL-EnWT pressure measurement module can be used to detect 1/2/4 channels -20~20mV voltage
signal or collect voltage signal of pressure sensor, and convert analog voltage value into digital
value through A/D and perform operation.
Features:
The analog voltage signal of 1 / 2 / 4 channel pressure sensor can be collected.
It can detect the voltage signal of -20~20mV.
23-bit high precision A / D conversion.
As a special functional module of the XL series, XL3 can connect up to 10 modules,
XL5/XL5E/XL5N/XL5H/XLME/XLH/XSLH can expand 16 modules, and XL1 does not
support expansion modules.
Specifications:
10-2. Terminals
When wiring the module, its connector shall meet the following requirements:
(1) Stripping length: 9mm.
(2) Flexible cable with tubular bare end 0.25-1.5mm2.
(3) Flexible cable with tubular pre-insulated end is 0.25-0.5mm2.
Please use shield cable and single-point connect to the ground for shield layer.
6 wires mode:
4 wires mode:
Note: short connect EXC1- and SEN1-, short connect EXC1+ and SEN1+ for 4 wires mode
sensor.
base
XL-EnWT- PLC PC
D
JB
HMI
Loading bearing part: to support the load. Such as flat, hopper, container, air transport car…
Pressure sensor: transform the weight to voltage signal.
Assembly part: make sure the pressure sensor can work correctly, assembly part and direct part
can avoid overload. Overload will cause measurement error and sensor damage.
Connection box (JB): to collect several sensor signals.
XL-EnWT-D: can be used as an electronic assessment device, it gets the pressure sensor signal
and makes further assessment.
The pressure sensor is based on resistance strain effect, see the following diagram:
U+
r1 R3
S- E
S+ Uo
R4
r2
U-
R1 and R2 is strain resistor which make bridge circuit with R3 and R4. With the change of R1 and
R2, the bridge circuit will lose the balance, unbalance voltage Uo will be produced as the output
of sensor.
U+ and U- are positive and negative point of the sensor power supply. Please select the 5V power
of the module or from outside.
S+ and S- are positive and negative point of the sensor output. Connect the output to the module to
test the weight.
……..
Address explanation:
filter level ON: filter level A, OFF: filter level B
Reset The reset is valid in the reset range, not save zero point
zero point calibration To calibrate the system zero point
gain calibration To calibrate system linear
Stable flag The signal output is effective when meeting the stable range and time
Overflow flag When the signal voltage larger than 10mv, this signal output is effective
Calibration success This signal output is effective when zero point calibration and gain
flag calibration succeeded
Calibration failure This signal output is effective when zero point calibration and gain
flag calibration failed (the detailed reasons please check module applicatoin
error info)
AD update flag bit AD value acquisition and setting ON once
Present digital Switch through upper device, when it is switched to present input voltage,
value/present input the unit is mv, the decimal place is 4 bits
voltage
Set the model and channel parameters in the following window. Then click write to PLC.
Please restart the PLC after setting.
Parameter Function
Automatic clearing of After opening, the module will be reset automatically every time it
power on is powered on.
Data display selection Configuration switching can be performed. When switching to the
current input voltage, the unit is mV and the decimal point is 4
digits;
AD sampling rate Select AD sampling speed
All channel input ranges Support -20~20mV voltage signal detection, can choose the range
according to the demand
Steady state filter switch Steady state filter switch, when set to off, the steady-state filter
coefficient can be written, but it is invalid. When set to on, it is
valid in steady state.
Parameter notes:
1. Zero-point tracking range and time: If the weight value fluctuates in the range of K0 of
zero point and the fluctuation lasts for K1 time, it is considered that the fluctuation value
in this range is not recorded, and the weight value is displayed as 0.
2. Reset range: It is allowed to perform the reset action within the proportion range of the
parameter maximum range.
3. Stable range and time: When the difference between the last weight value and the
previous weight value is in K3 range and maintains K4 time, it is considered that the
weight value at this time has been stable.
Calibration:
Please calibrate the pressure sensor for the first time using.
Take module channel 1 as an example:
Step 1:
Confirm whether the module and sensor work properly.
Judgment method:
First, monitor whether the overflow flag X10001 is OFF state. If it is ON, the sensor is not
connected or the sensor is damaged.
Second, using the software to monitor whether ID10002 value fluctuates following sensor
(fluctuation range is related to sensor range), and pressure value increased when increasing the
load, if there are value but increase the load stress value decreases, that means (1) sensor installed
opposite, please adjust the sensor position or exchange +/- of sensor output signal; (2) The
incoming voltage signal has been overflow, reducing the load appropriately.
Step 2:
Make the sensor no load, after the stable flag X10000 is ON, set ON zero-point calibration
Y10002. X10002 ON means the zero-point calibration is successful. If after few seconds, X10003
is ON, that means zero-point calibration is failed.
Step 3:
Put the load whose weight is known on the scale, write the weight through TO instruction, after
stable flag X10000 is ON, set ON gain calibration Y10003, X10002 ON means calibration is
successful, shut off Y10003. If after few seconds, X10003 is ON, that means zero-point calibration
is failed.
Step 4:
Hereto, the calibration finished. The module will automatic adjust the result according to the idle
load value and calibration value when weighing, and finally get the correct weight.
Serious application error (related to main unit register address SD503 high 8 bits)
Error code
Meaning
Binary Hex Decimal
0000 0001 0x01 1 Not connect 24V
0000 0010 0x02 2 Not finish the setting in 5s
0000 0011 0x03 3 Module model is different
0000 0011 0x04 4 Communicate with PLC error
The error code using method: write in module no. in SD500, if it needs to check module no.1 error
code, please write in 10000.
The reading and writing of XD-EnWT-D module needs to be completed through the FROM/TO
instruction in the sequential function block, as shown in the figure below:
(a) Insert FROM/TO module
Write instruction TO
Function: write the PLC register data to module specified address, the unit is word.
Operand:
S1: target module number. Operand: K, TD, CD, D, HD, FD.
S2: module first address. Operand: K, TD, CD, D, HD, FD.
S3: write in register quantity. Operand: K, TD, CD, D, HD, FD.
D1: write in data register first address in PLC. Operand: TD, CD, D, HD, FD.
Example: write the weight value to module no.1 channel 1
M3
SBLOCK CH_Aparameter
A
weight
write TO K10000 K12 K2 HD12
in flag HD12:CH_A AD code of gain
calibration
SBLOCKE
Function: read the module data to PLC register, the unit is word.
Operand:
S1: target module number. Operand: K, TD, CD, D, HD, FD.
S2: module first address. Operand: K, TD, CD, D, HD, FD.
S3: read register quantity. Operand: K, TD, CD, D, HD, FD.
D1: PLC register first address. Operand: TD, CD, D, HD, FD.
For example: read all the parameters of module no.1
SM0
SBLOCK Read all para
Normally
ON coil FROM K10000 K0 K50 D0
D0:Track zero range
SBLOCKE
Note:
1. From/TO instruction can only be written in sequence function block, XL series PLC with
firmware version v3.4.5 and above can write up to 100 blocks in the program, but can
only run up to 8 blocks at the same time.
2. The starting number of module starts from k10000, k10000 is module 1 and k10001 is
module 2. By analogy, module 16 is K10015.
10-11. Dimension
111.5
105.0
XL-E4WT-D (Unit: mm)
85.0
15.0 36.0
70.0
111.5
105.0
10-12. Application program
M1
SBLOCK General parameter
Write in
parameter TO K10000 K0 K7 HD0
M2 Y10002
( )
Zero point CH_A reset calibration
calibration
M3
SBLOCK CH_A parameter
Write in
weight TO K10000 K12 K2 HD12
HD12:CH_A AD code of gain calibration
SBLOCKE
M3
TMR T3 K10 K100
Write in
weight T3:Write in time
T3 M3
( R )
Weight write
Write in in notice
time M4
( S )
Weight write in end
flag
M5 M4 Y10003
( )
Gain
Weight CH_A gain calibration
calibr
write in
ation
end flag
Y10003
TMR T1 K30 K100
CH_A Gain
calibration
M5 X10002 M5
( R )
Gain CH_A Gain
calibr calibration calibration
ation success flag M4
( R )
T1 X10002 Weight write in end
CH_A flag
calibration
success flag
Explanation:
Read all the parameters and write in general parameters through FROM/TO instruction.
Set ON M1, write in all the parameters of channel 1.
Zero-point calibration: set ON M2, if zero-point calibration is successful, X10002 is set ON.
Gain calibration: first set ON M3, write the weight value HD12 to the module. After write in
success flag M4 is ON, it starts to calibrate gain. Set ON M5 to start the calibration, the preset
stable time is 3s. after the scale is stable, gain calibration success flag X10002 is ON or calibration
time T1 reached, reset M4, M5, gain calibration is finished.
XL-E8AD-A-S analog input module converts 8 analog current input values into digital values, and
transmits them to the main unit of PLC, and interacts with the main unit of PLC in real time.
XL-E8AD-A-S
L+
Module features
M
C0
VI0
C1
VI1
C2
C3
VI3
VI4
C5
C6
VI6
C7
VI7
can connect up to 10 modules,
XL5/XL5E/XL5N/XL5H/XLME/XLH/XSLH can
expand 16 modules, and XL1 does not support
expansion modules.
Module specification
Analog input
Item
Current input
Analog input
0~20mA, 4~20mA, -20~20mA
range
Max input range -40~40mA
Digital output
16 bits binary data (0~65535 or -32768~32767)
range
Resolution 1/65535 (16Bit)
Integrated
±1%
precision
Conversion
2ms/1 channel
speed
Module power
DC24V±10%, 150mA
supply
Terminal arrangment
AI0
AI3
AI1
AI4
AI7
AI5
AI2
AI6
L+
M
C0
C3
C1
C4
C7
C5
C2
C6
Terminal signal
Name Function
PWR The indicator lights up when the module has a power supply.
COM When the module port communicates normally, the indicator
Indicator
lights on.
light
ERR When there is an error in the module, the indicator is always on
or flickering (red).
When the ERR LED is always on, it indicates that the module
has serious application errors and can not be used. It is
necessary to adjust the mode of use and switch the PLC to STOP
state.
When the ERR LED flickers, there are application errors,
abnormal work and abnormal data in the module, but the PLC is
still RUN.
L+ Module 24V power supply input +
M Module 24V power supply input -
C0 AI0 output ground
AI0 Channel 1 AD current input
C1 AI1 output ground
AI1 Channel 2 AD current input
C2 AI2 output ground
AI2 Channel 3 AD current input
C3 AI3 output ground
Terminal
AI3 Channel 4 AD current input
C4 AI4 output ground
AI4 Channel 5 AD current input
C5 AI5 output ground
AI5 Channel 6 AD current input
C6 AI6 output ground
AI6 Channel 7 AD current input
C7 AI7 output ground
AI7 Channel 8 AD current input
When wiring the module, its wiring head should meet the following requirements:
(1) The stripping length is 9 mm;
(2) Flexible wires with bare tubular ends are 0.25-1.5 square.
(3) Flexible wires with tubular pre-insulated end is 0.25-0.5 square.
XL series analog module does not occupy I/O unit, the converted value is directly sent to the PLC
register, the corresponding channel definition number of the PLC register is as follows:
Module 1 register address:
Channel enable switch Channel alarm flag bit
Channel AD signal (please turn on the swich to
use this channel)
0CH ID10000 Y10000 X10000
1CH ID10002 Y10001 X10001
2CH ID10004 Y10002 X10002
3CH ID10006 Y10003 X10003
4CH ID10008 Y10004 X10004
5CH ID10010 Y10005 X10005
6CH ID10012 Y10006 X10006
7CH ID10014 Y10007 X10007
Note:
(1) Banning unused channels can improve the scanning speed of input/output.
(2) When the input enabling switch is turned off during operation, the corresponding input channel
will not collect data. (Data display is 0)
There are two ways to set the working mode (the effect of these two ways is equivalent):
(1) Configuration through the software
(2) Setting up by Flash Register
Please use XDPpro v3.5.1 or higher version software to configure the module.
Open the software, click module in the left menu,
Choose the module type, and set each channel’s parameters in the above window. Then click write
to PLC, cut the power supply and power on again to make the settings effective.
Note: The first-order low-pass filtering method weighs this time sampling value and the output
value of the last filtering to get the effective filtering value; the filter coefficient is set by the user
to 0-254, the smaller the value, the more stable the data, but may lead to data lag; therefore, when
set to 1, the filtering effect is strongest and the data is the most stable; when set to 254, the
filtering effect is the weakest; default is 0 (no filtering).
The input channel of the extended module is current mode, with 0-20mA, 4-20mA and -20-20mA
optional. It is set by special FLASH data register SFD in PLC. As follows:
Module no. SFD register Module no. SFD register
#1 SFD350~SFD359 #9 SFD430~SFD439
#2 SFD360~SFD369 #10 SFD440~SFD449
#3 SFD370~SFD379 #11 SFD450~SFD459
#4 SFD380~SFD389 #12 SFD460~SFD469
#5 SFD390~SFD399 #13 SFD470~SFD479
#6 SFD400~SFD409 #14 SFD480~SFD489
#7 SFD410~SFD419 #15 SFD490~SFD499
#8 SFD420~SFD429 #16 SFD500~SFD509
Note: As shown above, each register sets four-channel modes. Each register has 16 bits. From low
to high, each four bit will set four-channel modes in turn.
SFD bit definition
AD8 AD7
Byte7 1000:0~20mA 1000:0~20mA
1001:4~20mA 1001:4~20mA
1010:-20~20mA 1010:-20~20mA
Byte8~
-
Byte19
Example: To set the working modes of input channels 1 and 0 of the first module to be 0-20 mA,
input channels 3 and 2 to be 4-20 mA, input channels 5 and 4 to be 0-20 mA, input channels 7 and
6 to be - 20-20 mA, filter coefficients of channels 0, 1, 2 and 3 to be 254, filter coefficients of
channels 4, 5, 6 and 7 to be 100.
Method 1:
You can configure it directly in the PLC software, as shown above.
Method 2:
Set the SFD as follows:
SFD350=FEFEH SFD351=6464H SFD352=9988H SFD353=AA88H
For external connection, to avoid interference, use shielding wire and connect the ground to the
single point of shielding layer.
Current input
AI0
AI3
AI1
AI4
AI7
AI5
AI2
AI6
L+
M
C0
C3
C1
C4
C7
C5
C2
C6
AI2-
AI0-
AI0+
AI4-
AI4+
AI5-
AI5+
AI1-
AI1+
AI2+
AI3-
AI3+
AI6-
AI6+
AI7-
AI7+
0CH 1CH 2CH 3CH 4CH 5CH 6CH 7CH
The relationship between input analog quantities and converted digital quantities is shown in the
following table:
0~20mA analog input 4~20mA analog input
+65535 +65535
digital digital
+32767
digital
-20mA
0 analog
+20mA
-32768
Note: When the channel enable switch is turned on and the AD current input is suspended, the ID
register corresponding to the AD current input is displayed as 0. When the channel enable switch
is turned off, the ID register corresponding to the AD current input is displayed as 0.
11-7. Dimension
(Unit: mm)
L+
C0
VI0
C1
VI1
111.5
105.0
C2
VI2
C3
VI3
C4
VI4
C5
VI5
C6
VI6
C7
VI7
11-8. Application
DMOV ID10002 D2
DMOV ID10004 D4
DMOV ID10006 D6
DMOV ID10008 D8
Explain:
SM0 is a constant ON coil and has been in ON state during the operation of PLC.
The PLC starts to run, and continuously writes the data of channel 0 of the module 1 into the data
register D0.
Data in channel 1 is written to data register D1, D0.
Data in channel 2 is written to data register D3, D2.
Data in channel 3 is written to data register D5, D4.
Data in channel 4 is written to data register D7, D6.
Data in channel 5 is written to data register D9, D8.
Data in channel 6 is written to data register D11, D10.
Data in channel 7 is written to data register D13, D12.
Data in channel 8 is written to data register D15, D14.
Since all channels are used, all the channel enablers are opened.
XL-E8AD-V-S analog input module converts 8 analog current input values into digital values, and
transmits them to the main unit of PLC, and interacts with the main unit of PLC in real time.
XL-E8AD-V-S
Module features
L+
C0
VI0
C1
VI1
C2
VI2
8-channel analog input: voltage input.
C3
VI3
C4
16-bit high-precision analog input.
VI4
C5
VI5
As a special functional module of the XL series, XL3
C6
VI6
C7
VI7
can connect up to 10 modules,
XL5/XL5E/XL5N/XL5H/XLME/XLH/XSLH can
expand 16 modules, and XL1 does not support
expansion modules.
Module specification
Analog input
Item
Voltage input
Analog input
0~5V, 0~10V, -5~5V, -10~10V
range
Max input range DC±15V
Digital output
16 bits binary data (0~65535 or -32768~32767)
range
Resolution 1/65535 (16Bit)
Integrated
±1%
precision
Conversion
2ms/1 channel
speed
Module power
DC24V±10%, 150mA
supply
Installation Fixed with M3 screws or directly installed on rail of DIN46277 (Width: 35mm)
Terminal arrangment
VI0
VI3
VI1
VI4
VI7
VI5
VI2
VI6
L+
M
C0
C3
C1
C4
C7
C5
C2
C6
Terminal signal
Name Function
PWR The indicator lights up when the module has a power supply.
Indicator COM When the module port communicates normally, the indicator
light lights on.
ERR When there is an error in the module, the indicator is always on
or flickering (red).
When the ERR LED is always on, it indicates that the module
has serious application errors and can not be used. It is
necessary to adjust the mode of use and switch the PLC to STOP
state.
When the ERR LED flickers, there are application errors,
abnormal work and abnormal data in the module, but the PLC is
still RUN.
L+ Module 24V power supply input +
M Module 24V power supply input -
C0 VI0 output ground
VI0 Channel 1 AD voltage input
C1 VI1 output ground
VI1 Channel 2 AD voltage input
C2 VI2 output ground
VI2 Channel 3 AD voltage input
C3 VI3 output ground
Terminal
VI3 Channel 4 AD voltage input
C4 VI4 output ground
VI4 Channel 5 AD voltage input
C5 VI5 output ground
VI5 Channel 6 AD voltage input
C6 VI6 output ground
VI6 Channel 7 AD voltage input
C7 VI7 output ground
VI7 Channel 8 AD voltage input
When wiring the module, its wiring head should meet the following requirements:
(1) The stripping length is 9 mm;
(2) Flexible wires with bare tubular ends are 0.25-1.5 square.
(3) Flexible wires with tubular pre-insulated end is 0.25-0.5 square.
XL series analog module does not occupy I/O unit, the converted value is directly sent to the PLC
register, the corresponding channel definition number of the PLC register is as follows:
Module 1 register address:
Channel enable switch Channel alarm flag bit
Channel AD signal (please turn on the swich to
use this channel)
0CH ID10000 Y10000 X10000
1CH ID10002 Y10001 X10001
2CH ID10004 Y10002 X10002
3CH ID10006 Y10003 X10003
4CH ID10008 Y10004 X10004
5CH ID10010 Y10005 X10005
6CH ID10012 Y10006 X10006
7CH ID10014 Y10007 X10007
Note:
(1) Banning unused channels can improve the scanning speed of input/output.
(2) When the input enabling switch is turned off during operation, the corresponding input channel
will not collect data. (Data display is 0)
There are two ways to set the working mode (the effect of these two ways is equivalent):
(1) Configuration through the software
(2) Setting up by Flash Register
Please use XDPpro v3.5.1 or higher version software to configure the module.
Open the software, click module in the left menu,
Choose the module type, and set each channel’s parameters in the above window. Then click write
to PLC, cut the power supply and power on again to make the settings effective.
Note: The first-order low-pass filtering method weighs this time sampling value and the output
value of the last filtering to get the effective filtering value; the filter coefficient is set by the user
to 0-254, the smaller the value, the more stable the data, but may lead to data lag; therefore, when
set to 1, the filtering effect is strongest and the data is the most stable; when set to 254, the
filtering effect is the weakest; default is 0 (no filtering).
The input channel of the extended module is voltage mode, with 0~5V, 0~10V, -5~5V, -10~10V
optional. It is set by special FLASH data register SFD in PLC. As follows:
Module no. SFD register Module no. SFD register
#1 SFD350~SFD359 #9 SFD430~SFD439
#2 SFD360~SFD369 #10 SFD440~SFD449
#3 SFD370~SFD379 #11 SFD450~SFD459
#4 SFD380~SFD389 #12 SFD460~SFD469
#5 SFD390~SFD399 #13 SFD470~SFD479
#6 SFD400~SFD409 #14 SFD480~SFD489
#7 SFD410~SFD419 #15 SFD490~SFD499
#8 SFD420~SFD429 #16 SFD500~SFD509
Note: As shown above, each register sets four-channel modes. Each register has 16 bits. From low
to high, each four bit will set four-channel modes in turn.
SFD bit definition
Example: To set the first module's input channels 1and 0 to 0~10V, input channels 3 and 2 to 0~5V,
input channels 5 and 4 to 0~10V, input channels 7 and 6 to 0~5V, filter coefficients of channels 0,
1, 2 and 3 to 254, filter coefficients of channels 4, 5, 6 and 7 to 100.
Method 1:
You can configure it directly in the PLC software, as shown above.
Method 2:
Set the SFD as follows:
SFD350=FEFEH SFD351=6464H SFD352=1100H SFD353=1100H
For external connection, to avoid interference, use shielding wire and connect the ground to the
single point of shielding layer.
Voltage input
VI0
VI3
VI1
VI4
VI7
VI5
VI2
VI6
L+
M
C0
C3
C1
C4
C7
C5
C2
C6
VI0-
VI0+
VI4-
VI4+
VI5-
VI5+
VI1-
VI1+
VI2-
VI2+
VI3-
VI3+
VI6-
VI6+
VI7-
VI7+
The relationship between input analog quantities and converted digital quantities is shown in the
following table:
0~5V analog input 0~10V analog input
+65535 +65535
digital digital
0 5V 0 10V
analog analog
digital digital
-5V -10V
0 analog
+5V 0 analog
+10V
-32768 -32768
Note: When the channel enable switch is turned on and the AD current input is suspended, the ID
register corresponding to the AD current input is displayed as 0. When the channel enable switch
is turned off, the ID register corresponding to the AD current input is displayed as 0.
12-7. Dimension
(Unit: mm)
L+
C0
VI0
C1
VI1
111.5
105.0
C2
VI2
C3
VI3
C4
VI4
C5
VI5
C6
VI6
C7
VI7
12-8. Application
DMOV ID10002 D2
DMOV ID10004 D4
DMOV ID10006 D6
DMOV ID10008 D8
Explain:
SM0 is a constant ON coil and has been in ON state during the operation of PLC.
The PLC starts to run, and continuously writes the data of channel 0 of the module 1 into the data
register D0.
Data in channel 1 is written to data register D1, D0.
Data in channel 2 is written to data register D3, D2.
Data in channel 3 is written to data register D5, D4.
Data in channel 4 is written to data register D7, D6.
Data in channel 5 is written to data register D9, D8.
Data in channel 6 is written to data register D11, D10.
Data in channel 7 is written to data register D13, D12.
Data in channel 8 is written to data register D15, D14.
Since all channels are used, all the channel enablers are opened.
13. PT100 temperature module
XL-E4PT3-P-H
This chapter mainly introduces XL-E4PT3-P-H module specifications, terminal instructions, input
definition number allocation, working mode settings, external connections, analog-to-digital
conversion diagrams, appearance size diagrams and related programming examples.
XL-E4PT3-P
Features
L+
A0
B0
C0
A1
B1
C1
A2
Three wires temperature sensors analog inputs and support
Pt100, Pt1000, Cu50, and Cu100 thermistors.
B2
C2
A3
C3
Y0
Y1
of independent PID parameters, supporting self-tuning
Y2
Y3
function.
1mA constant current output, unaffected by external
environmental changes.
The resolution accuracy is 0.1 ℃ and 0.01 ℃.
As a special functional module of the XL series, the XL3
series can connect up to 10 units, the
XL5/XL5E/XL5H/XL5N/XLME/XLH/XSLH series can
connect up to 16 units, and the XL1 series does not support
expansion modules.
Module specifications
Item Contents
Analog input signal Pt100, Pt1000, Cu50, and Cu100 thermistors
Sensor type Display resolution Temperature range
(0.1℃) -200.0℃~850.0℃
Pt100
Temperature (0.01℃) -200.00℃~300.00℃
measurement range (0.1℃) -200.0℃~850.0℃
Pt1000
(0.01℃) -200.00℃~300.00℃
Cu50 (0.1℃, 0.01℃) -50.00℃~150.00℃
Cu100 (0.1℃, 0.01℃) -50.00℃~150.00℃
Digital output range -20000 to 30000 (specific differentiation based on sensor type)
Resolution 0.1℃, 0.01℃
Integrate precision ±0.2% (relative max value)
Repeatability ±0.05%FS
Conversion speed 50ms/all the channels
Module power
DC24V±10%, 50mA
supply
Install format Fixed with M3 screws or directly installed on orbit of DIN46277 (Width:
35mm)
Note:
(1) When there is no signal input, the channel data is the maximum value of the digital output
range.
(2) Connect Pt100, Pt1000, Cu50, Cu100 thermal resistor according to actual needs.
(3) The module needs to be configured and used in conjunction with version V3.7.17 and above of
the Xinje PLC programming tool software.
13-2. Terminals
Terminal arrangement
L+
C2
A0
B0
C0
A1
B1
C1
A2
B2
A3
B3
C3
Y0
Y1
Y2
Y3
M
Module signal
Name Function
PWR The indicator lights up when the module has a power supply
COM When the module communication port communicates normally, the
indicator lights on
ERR When there is an error in the module, the indicator is always on or
LED flickering (red)
light When the ERR lamp is always on, there are serious application errors in
the module that can not be used, so the mode of use must be adjusted,
and the PLC body is switched to STOP state. When the ERR lamp
flickers, there are application errors, abnormal work and abnormal data
in the module, but the PLC body is still RUN.
L+ External power supply 24V +
M External power supply 24V -
A0 CH0 temperature input
B0 CH0 input common terminal
C0 CH0 input common terminal
A1 CH1 temperature input
B1 CH1 input common terminal
C1 CH1 input common terminal
terminal
A2 CH2 temperature input
B2 CH2 input common terminal
C2 CH2 input common terminal
A3 CH3 temperature input
B3 CH3 input common terminal
C3 CH3 input common terminal
COM0 PID output common terminal
Y0~Y3 PID output terminals corresponding to CH0~CH3
When wiring the module, its wiring head should meet the following requirements:
(1) The stripping length is 9 mm;
(2) Flexible conductors with bare tubular ends are 0.25-1.5 square.
(3) Flexible conductor with tubular pre-insulated end is 0.25-0.5 square.
13-3. I/O address
XL series analog module will not occupy I/O unit, the conversion value will be sent to PLC
register. Each channel related PLC register address are shown as below:
Parameter Address
Channel CH0 CH1 CH2 CH3
Display Module 1 ID10000 ID10001 ID10002 ID10003
temperature Module 2 ID10100 ID10101 ID10102 ID10103
(unit: 0.1℃) ID10x00 ID10x01 ID10x02 ID10x03
Module 16 ID11500 ID11501 ID11502 ID11503
Module 1 Y10000 Y10001 Y10002 Y10003
PID enable
Module 2 Y10100 Y10101 Y10102 Y10103
bit (0: OFF,
Y10x00 Y10x01 Y10x02 Y10x03
1: ON)
Module 16 Y11700 Y11701 Y11702 Y11703
PID contact Module 1 X10000 X10001 X10002 X10003
output (X Module 2 X10100 X10101 X10102 X10103
input X10x00 X10x01 X10x02 X10x03
returning to Module 16
the main X11700 X11701 X11702 X11703
body)
Open circuit Module 1 X10010 X10011 X10012 X10013
detection (0: Module 2 X10110 X10111 X10112 X10113
normal, 1: X10x10 X10x11 X10x12 X10x13
disconnected) Module 16 X11710 X11711 X11712 X11713
Module 1 X10020 X10021 X10022 X10023
Auto-tuning Module 2 X10120 X10121 X10122 X10123
error X10x20 X10x21 X10x22 X10x23
Module 16 X11720 X11721 X11722 X11723
Note:
(1) When the "Y function selection" is set to "channel enable", Y10000-Y10003 (taking # 1
module as an example) is the PID enable bit, and the PID duty cycle output needs to be
monitored from X10000 to X10003 (taking # 1 module as an example).
(2) When the "Y function selection" is set to "immediate output", Y0~Y3 are ordinary switch
output terminals, and Y10000~Y10003 (taking # 1 module as an example) can be used to
directly control the Y0~Y3 output of the module.
(3) When the "Y function selection" is set to "channel enable", Y0~Y3 are the PID output
terminals, and Y10000~Y10003 (taking # 1 module as an example) can be used to enable the
corresponding channel's PID control. The Y0~Y3 output of the module is automatically
calculated and controlled by the PID.
From/To instruction
The reading and writing of the temperature control module for the thermal resistor needs to be
completed in the sequence block through the FROM/TO command, as shown in the following
figure:
Function: write the PLC register data to module address, the operate unit is word.
Operand:
S1: target module number, range: 10000~10015. Operand: K, TD, CD, D, HD, FD
S2: first address of module. Operand: K, TD, CD, D, HD, FD
S3: write in register numbers. Operand: K, TD, CD, D, HD, FD
D1: first address of PLC. Operand: TD, CD, D, HD, FD
Function: read the module data to the PLC regsiter, the operate unit is word.
S1: target module number, range: 10000~10015. Operand: K, TD, CD, D, HD, FD
S2: first address of module. Operand: K, TD, CD, D, HD, FD
S3: read register numbers. Operand: K, TD, CD, D, HD, FD
D1: first address of PLC. Operand: TD, CD, D, HD, FD
Note:
(1) The FROM/TO instruction can only be written in the sequence function block. For XL
series PLCs with firmware version V3.4.5 and above, a maximum of 100 BLOCKs can be
written in the program, but a maximum of 8 can be run simultaneously.
(2) The starting number of the module starts from K10000, with module # 1 being K10000,
module # 2 being K10001... and so on, module # 16 being K10015.
Note:
(1) When the "Y function selection" is set to "immediate output", only the “temperature
deviation δ” and “adjusting ambient temperature value” is valid, and other parameters are not
effective.
(2) The module can automatically save the set temperature value, PID parameters, temperature
control cycle, output amplitude, temperature deviation, and temperature calibration
parameters. When writing the above parameters, it is necessary to use the rising edge to
trigger the writing. Do not keep writing. It is recommended to only write the parameters used.
It is not recommended to write the entire piece of data for programming convenience, as
writing 0 to some addresses may cause the system to malfunction.
(3) The self-tuning enable address K0: K0 will occupy a continuous 8-bit address space. The
4-channel module enable bits correspond to the first 4 bits address space, while the last 4 bits
addresses are idle (but cannot be used for other purposes). When the read/write enable bit is
enabled, K0 can be a coil or register. When it is a coil, it occupies 8 consecutive bits starting
from the coil address; When it is a register, it occupies that register. For example, to set the
first and third channels of the module to self-tuning mode, and the other two channels to
manual PID mode, with the command To K10000 K0 K1 M10, M10 and M12 should be set
to ON, and M11, M13, M14, and M15 should be set to OFF; When the instruction is To
K10000 K0 K1 D100, D100 should be assigned a value of 5.
(4) When switching the "resolution", "temperature setting value", "PID parameter", "PID
operation range", "temperature deviation δ", "adjusting environment temperature value"
needs to be set again, and the parameter units should be consistent with the resolution.
There are two ways to set the working mode (the effect of these two ways is equivalent):
1: Through the XDPpro software
2: Through Flash Register (FD) Settings
Open the software, click configure/expansion module setting, then select the module type in the
following window:
Choose the module model, set the parameters of each channel, click write to PLC. Then download
user program and run, the settings will be effective.
Note:
(1) The first-order low-pass filtering method weighted this sampling value and the output value of
the last filtering to get the effective filtering value; the filter coefficient is set by the user to
0-254, the smaller the value, the more stable the data, but it may lead to data lag; therefore,
when set to 1, the filtering effect is strongest and the data is the most stable; when set to 254,
the filtering effect is the weakest; default is 0 (no filtering).
(2) "Y Function Selection" is used to specify the functions of Y10000~Y10003 (# 1 module as an
example). The default factory setting is "Channel Enable", which supports the module's own
self-tuning and PID control functions. The output points Y0~Y3 on the module are affected by
the PID output value, resulting in on/off effects; When set to "immediate output", the output
points Y0~Y3 on the module are ordinary switch output points. Setting On Y10000~Y10003
can conduct Y0~Y3, while the module only retains the temperature acquisition function. If
temperature control is required, please use the PID command of the PLC main body to
achieve it.
The CH0~CH3 channels of the expansion module can be set with sensor type, filtering coefficient,
and Y function selection, which can be set through the special FLASH data register SFD inside the
PLC. As shown below:
When connecting the thermal resistance, when connecting the external + 24V power supply,
please use the 24V power supply on the PLC body to avoid interference. To avoid interference,
shielding measures should be taken for signal wires.
Input wiring
L+
C2
A0
B0
C0
A1
B1
C1
A2
B2
A3
B3
C3
Y0
Y1
Y2
Y3
M
For a three-wire platinum thermistor, please connect two wires of the same color to the C0 end
and the other wire to the A0 or A1 end.
Output circuit
Output terminal: transistor output terminal, please choose DC5V ~ 30V smooth power
supply.
Circuit Insulation: Optical couplers are used for optical insulation between the internal circuit
of programmable controller and the output transistor, and the common modules are also
separated from each other.
Response time: The time from the programmable controller-driven (or circuit-breaking)
optical coupler to the transistor ON/OFF is no more than 0.2 ms.
Output Current: In order to limit the temperature rising, please make 50mA at each point.
Open circuit leakage current: below 0.1mA.
Power supply
heater
Taking PT100 as an example, illustrate the relationship between temperature and digital quantity
at resolutions of 0.1 ℃ and 0.01 ℃, respectively.
0.1℃ 0.01℃
digital digital
8500 30000
-200 -200
0 850 ℃ 0 300 ℃
-2000 -20000
13-6. Dimension
Unit: mm
15.0 70.0 25.0 5.1
XL-E4PT3-P
L+
A0
B0
C0
A1
111.5
105.0
B1
C1
A2
B2
C2
A3
B3
C3
Y0
Y1
Y2
Y3
13-7. Application
SBLOCKE
M10
SBLOCK Write in auto-tune bit //write in the auto-tune flag bit
TO K10000 K0 K1 M10
SBLOCKE
// turn on auto-tune function
M10 SM13
SBLOCK Read PID values //read auto-tune bit and PID parameters
//read auto-tune bit
FROM K10000 K0 K1 M100
SBLOCKE
M20
MOV HD10 D50
//set P value
MOV HD11 D51
//set I value
MOV HD12 D52
//set D value
MOV HD13 D53
//set Diff value
M21
SBLOCK Manual PID values
//perform manual PID control, write in P, I, D, Diff
TO K10000 K9 K4 D50 values
SBLOCKE
SM0
MOV K1 D20
M50
SBLOCK Initialize module
// Initialize module parameters
TO K10000 K41 K1 D20
SBLOCKE
Explanation:
After enabling the self-tuning, this command will immediately occupy a total of 8 bits in
M10-M17. M10-M13 corresponds to the self-tuning enable of each channel. To set which channel
needs to be tuned, set the corresponding coil to ON. M14~M17 have no meaning at the moment
and need to be left blank.
If the output is a solid-state relay, it is recommended to set the temperature control cycle to 1-3
seconds; If the output is a relay, it is recommended to set the temperature control cycle to 3-15s.
Due to inconsistent units, the PID parameters of the main body and module cannot be used
interchangeably. The main body PID parameters are in uppercase, and the module PID parameters
are in lowercase. The specific conversion relationship is as follows: p=P/100; i=I/10; d=D/100.
D0 target value
D10 temperature control period
D80 P
D81 I
D82 D
D83 DIFF
WUXI XINJE ELECTRIC CO., LTD.
214072
Tel: 400-885-0136
Email: fiona.xinje@vip.163.com
We chat ID www.xinje.com