0% found this document useful (0 votes)
206 views16 pages

XD E6TC-P English

The document discusses thermocouple temperature control modules XD-E6TC-P, XD-E6TC-P-H, and XD-E2TC-P. It describes their specifications, terminal layout, data addresses, working principles for reading and writing data, and provides example programs. Key features include analog input of thermocouple sensors, PID control, and independent settings for each channel.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
206 views16 pages

XD E6TC-P English

The document discusses thermocouple temperature control modules XD-E6TC-P, XD-E6TC-P-H, and XD-E2TC-P. It describes their specifications, terminal layout, data addresses, working principles for reading and writing data, and provides example programs. Key features include analog input of thermocouple sensors, PID control, and independent settings for each channel.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

XD 系列PLC 打展模挟用戸手冊 17.

熱屯偶温度控制模挟XD-E6TC-P、XD-E2TC-P

17. Thermocouple temperature control module XD-E6TC-P(-H), XD-E2TC-P

This chapter mainly introduces the specifications of the XD-E6TC-P, XD-E6TC-P-H,


and XD-E2TC-P modules, related thermocouple knowledge, terminal description, data
address description, related thermocouple knowledge, terminal description, data
address description, working process principle of reading and writing data, and
related program examples.

17-1. Model features and specifications

XD-E6TC-P/ XD-E6TC-P-H/XD-E2TC-P PID control module is used to process the 6/2-point


thermocouple signal and send it to the PLC main unit .
1) Model features

◆ Analog input for thermocouple temperature sensor.


◆ XD-E6TC-P module: 6 channels input, 6 channels output, 6 sets of independent PID parameters,
support auto-tuning function. .
◆ XD-E6TC-P-H module: 6 channels input, 6 channels output, 6 sets of independent PID parameters,
support self-tuning function, separate processing for each channel, stronger anti-interference ability. Wider
sampling rate and faster sampling rate.
◆ XD-E2TC-P module: 2 channels input, 2 channels output, 2 sets of independent PID parameters, support
auto-tuning function.
◆ Built-in cold compensation circuit.
◆ The temperature accuracy is 0.1℃。
◆ As the special function module of XD series, XD3 can connect up to 10 modules on the right side of the PLC main unit,
XD5/XDM/XDC/ XD5E/XDME/XDH can expand to 16 ↑ modules, XD1/XD2 does not support extension modules.

191
XD 系列PLC 打展模挟用戸手冊 17.熱屯偶温度控制模挟XD-E6TC-P、XD-E2TC-P

2) Model specifications

XD-E6TC-P、XD-E2TC-P:
Project Sensor type
Analog Input K、S、E、N、B、T、J、R thermocouple type
K type 0℃~1300℃
S type 0℃~1700℃
E type 0℃~600℃
Measuring N type 0℃~1200℃
temperature B type 0℃~1800℃(display 0 below
range 0℃)
T type 0℃~400℃
J type 0℃~800℃

project Sensor type


R type 0℃~1700℃
Digital output 0 to maximum temperature value x 10(take K type sensor as an example, the
range digital output range is 0 to 13700)
resolution 0.1℃
Comprehensive 士1%(relative
accuracy maximum
value)
Conversion 80ms/1 channel
speed
Module power DC24V土10%,50mA
supply
Installation 可用 M3 的螺銘固定或直接安装在DIN46277(寛 35mm)的号執上
method
dimensions 63mm×108mm×89.9mm

Note:
※1: When an input channel is not connect, the channel no wiring data is 0.
※2: Connect the thermocouples according to actual needs.
※3: The shield of the thermocouples must be grounded.

192
XD 系列PLC 打展模挟用戸手冊 17.熱屯偶温度控制模挟XD-E6TC-P、XD-E2TC-P
XD-E6TC-P-H:
project Sensor type
Analog input K、S、E、N、B、T、J、R thermocouple type
K type -200℃~1372℃
S type -50℃~1768℃
E type -200℃~1000℃
N type -200℃~1300℃
Measuring
B type -250℃~1798℃(display -1 below -
temperature
250℃)
range
T type -200℃~400℃
J type -210℃~1200℃
R type -50℃~1768℃

Digital output 0 to maximum temperature value x 10(take K type sensor as an example, the
range digital output range is 0 to 13720)
resolution 0.1℃
Comprehensive 士1%(relative
accuracy maximum value)
Conversion 80ms/1 channel
speed
Module power DC24V土10%,50mA
supply
Installation Can be fixed with M3 screw or directly installed on the DIN46277
method (width 35mm) handle
dimensions 63mm×108mm×89.9mm
Note:
※1: When an input channel is not connect, the channel no wiring data is -1.
※2: Connect the thermocouples according to actual needs.
※3: The shield of the thermocouples must be grounded.
※4: Althought, the conversion speed of XD-E6TC-P-H and XD-E6TC-P are the same, each channel of
XD-E6TC-P(-H) is isolated. Multiple channels can be sampled at the same time, so the sampling
rate is faster.

193
194
XD 系列PLC 打展模挟用戸手冊 17.熱屯偶温度控制模挟XD-E6TC-P、XD-E2TC-P

17-2. Terminal
description

1) Terminal arrangement
24V- COMO COM1 COM2 Y3 Y5
24V+ YO Y1 Y2 Y4

TCO+ TC1+ TC2+ TC3+ TC4+ TC5+


TCO- TC1- TC2- TC3- TC4- TC5-

1) Terminal signal

Channel Terminal Signal


name name
TC0+ 0CH thermocouple positive signal
CH0
TC0- 0CH thermocouple negative signal
TC1+ 1CH thermocouple positive signal
CH1
TC1- 1CH thermocouple negative signal
TC2+ 2CH thermocouple positive signal
CH2
TC2- 2CH thermocouple negative signal
TC3+ 3CH thermocouple positive signal
CH3
TC3- 3CH thermocouple negative signal
TC4+ 4CH thermocouple positive signal
CH4
TC4- 4CH thermocouple negative signal
TC5+ 5CH thermocouple positive signal
CH5
TC5- 5CH thermocouple negative signal
Y0 0CH terminal output
CH0
COM0 0CH common signal to 0V
Y1 1CH terminal output
CH1
COM1 1CH common signal to 0V
Y2 2CH terminal output
CH2
COM2 2CH common signal to 0V
Y3 3CH terminal output
CH3
COM2 3CH common signal to 0V
Y4 4CH terminal output
CH4
COM2 4CH common signal to 0V
Y5 5CH terminal output
CH5
COM2 5CH common signal to 0V
24V+ +24V power supply
-
24V- 0V power supply common

Note: XD-E2TC-P have just two channels: CH0 and CH1 。

193
XD 系列PLC 打展模挟用戸手冊 17.熱屯偶温度控制模挟XD-E6TC-P、XD-E2TC-P

17-3. Working mode setting

17-3-1. Setting with software

Open the programing software XDPRO. Click on PLC settings ,and select
“Expansion Module Settings”:

Afterwards, the following configuration panel appears, displaying the corresponding model and
configuration information:

1 2

Indicate the corresponding model in the circle "2" (Note: XD-E6TC-P-H is the same as XD-
E6TC-P, overlap XD/E-E6TC-P), after completion, the "1" will be shows the extension modules
addeds. In addition, you can select on “3section, the 8 different thermocouple sensors, and
setting if Y outputs be inmediate output or need enable signal from program control.
※ 1 : " Y F u n ct i o n S el e ct i o n i s al so s u p p o rt ed b y X D -E 6 T C -P - H an d X D -E n T C -P w i t h fi r m w ar e v e rsi o n V 1 0 o r V 1 0 4
an d a b o v e.
※ 2 : " Y fu n ct i o n s el ect i o n " i s u sed t o d e si g n at e t h e f u n ct i o n o f Y 1 0 0 0 0 ~ Y 1 0 0 0 5 (# 1 mo d u l e ex a m p l e ), an d t h e
" ch an n el en ab l e" (t h i s i s f ac t o ry d e fau l t set t i n g ) o f " Y " i s u s ed t o su p p o rt t h e sel f - t u n i n g a n d P ID co n t ro l fu n c t i o n s
o f t h e mo d u l e .
T h e o u t p u t p o i n t s Y 0 ~ Y 5 ar e co n t r o l l ed b y t h e P I D o u t p u t v al u e t o p ro d u ce O N / O F F ef fe ct i n t h e p ro c es s el e m en t ( S S R ,
rel a y , v al v e ) .
W h en set “ i m m ed i at e o u t p u t ” , t h e o u t p u t s p o i n t s Y 0 - Y 5 w i l l b e u sed a s an o rd i n ar y sw i t c h o u t p u t p o i n t . S et
Y 1 0 0 0 0 -Y 1 0 0 0 5 , an d t h e m o d u l e re t ai n s t h e t e m p e rat u re a cq u i s i t i o n fu n ct i o n . If n eed P ID t e mp er at u re c o n t ro l ,
p l ea se u se t h e P ID co n t ro l i n t h e P L C C P U u n i t .

194
XD 系列PLC 打展模挟用戸手冊 17.熱屯偶温度控制模挟XD-E6TC-P、XD-E2TC-P

17-3-2. Flash register Configuration.


In addition, the 0CH~5CH channels can be fixed and dual-mode, and the special FLASH data
register FD inside the PLC can be set. As follows:
Module Configuration Module Configuration
ID Address ID Address
number number
#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

17-3-3. Definition of SFD register


Take the first extension module as an example to illustrate the setting method:
Register Bit7 Bit6 Bit5 Bit4 Bit Bit2 Bit1 BitO 説明
3
SFD35O TC1 channel TC0 channel
K:0000 K:0000
S:0001 S:0001
E:0010 E:0010
ByteO N:0011 N:0011
J:0100 J:0100
T:0101 T:0101
R:0110 R:0110
B:0111 B:0111
TC3 channel TC2 channel
K:0000 K:0000
S:0001 S:0001 Use to
configure the
E:0010 E:0010
type of
Byte1 N:0011 N:0011 thermocouple
J:0100 J:0100 used by each
T:0101 T:0101 channel. Each
R:0110 R:0110 channel use
4Bit of one
B:0111 B:0111
register SFD.
SFD351 TC5 channel TC4 channel
K:0000 K:0000
S:0001 S:0001
E:0010 E:0010
Byte2 N:0011 N:0011
J:0100 J:0100
T:0101 T:0101
R:0110 R:0110
B:0111 B:0111

195
XD 系列 PLC 打展模決用戸手冊 17.熱屯偶温度控制模決XD-E6TC-P、XD-E2TC-P

Register Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 BitO 説明


SFD352 Y Function selection
Byte4 - 0000:channel enable
0001:inmediate output
Byte5 reserved
SFD353~SFD359 reserved
Note:XD-E2TC-P have just 2 channels, TC0 and TC1。

17-4. Address assignment


The XD series analog module does not occupy I/O units, and the special value is
directly sent to the PLC register. The PLC register number corresponding follows:
Related Addresses
ias follows:
parameter Module ChO Ch1 ………….. Ch5
Module 1 ID10000 ID10001 ID1000× ID10005
Channel display Module 2 ID10100 ID10101 ID10X0× ID10105
temperature ………….. ID10X00 ID10X01 ID10X0× ID10X05
value Module 16 ID11500 ID11501 ID1150× ID11505
(unit 0.1℃)
Module 1 X10000 X10001 X1000× X10005
PID contact Module 2 X10100 X10101 X1010× X10105
output …………. X10×00 X10×01 X10×0× X10×05
(returns the Module 16 X11700 X11701 X1170× X11705
state of the Monitoring the PID out of each channel with corresponding X1xxxx bit, cannot
output monitoring the Y point, because it is used only for enable PID channel。
channel)
Thermocuple Module 1 X10010 X10011 X1001× X10015
state (0: TC Module 2 X10110 X10111 X1011× X10115
sensor OK, 1: …………… X10××0 X10××1 X10××× X10××5
TC sensor is
Module 16 X11710 X11711 X1171× X11715
broken)
PID self-tuning Module 1 X10020 X10021 X1002X X10025
pin position (0 Module 2 X10120 X10121 X1012× X10125
self-tuning X1××20 X1××21 X1××2× X1××25
without error, 1
Module 16 X11720 X11721 X1172× X11725
self-tuning error)
Module 1 Y10000 Y10001 Y1000× Y10005
Module 2 Y10100 Y10101 Y1010× Y10105
PID enable signal Y1××00 Y1××01 Y1××0× Y1××05
(0: OFF; 1: ON) Module 16 Y11700 Y11701 Y1170× Y11705
When Y function selection is set to “Immediate Output”, Y10000-Y10005 (#1 module as an example) can
used to control Y0-Y5 output on the module like a normal digital out. Set to “Channel Enable” for run PID
control of the extension module of the first channel, turning ON Y10000 (channel 1, #1 extension module as
an example) with a bit (X, M, T).
The auto-tuning trigger signal, when set to 1 , enters the auto-tuning secuence.
After the self-tuning is finished, the PID parameter value and the temperature control cycle value are automatically updated, and the
Self-tuning control bit is automatically cleared to 0. The user can also display its status. A force to 1 means that the self-tuning is in progress, and a
control bit force to 0 , means that the self-tuning is not in progress or the self-tuning is finished.

The digital output value takes the value range 0,.._4095 (12 bit resolution). In the case of PID output force analog quantity
PID output value control (such as steam lift or controllable flow angle), the output value can be sent to the analog quantity output module
(the resultation of (analog output current or voltaje) to supply the control requirements.
PID calculation)

196
XD 系列PLC 打展模挟用戸手冊 17 熱屯偶温度控制模挟XD-E6TC-P、XD-E2TC-P

Related Descriptions of parameters


parameters Channles ChO Ch1 Ch5
The best parameter value obtained by PID self -tuning.
PID parameter
If the current PID control cannot meet the control requirements well, the user can also
value (P、I、D) directly write the empirical PID parameters, the module perform PID control according
to the PID parameters set by the user.
PID The PID algorithm works within ±Diff °C range with no fixed temperature. In a temperature controlled environment, when the
T -T
differential temperature is lower than setting Diff s e t , P I D o u t p u t t h e l o w e r v a l u e
T + TDiff i s h i g h e r t h a n t h e a c t u a l
(unit ,PID forces the maximum value output when the setting
temperature.
0.1℃)
Temperature (Sampling temperature value + temperature deviation value δ)/10 = display temperature value. At this
deviation value δ time, the channel temperature display values can be equal or as close as possible. This parameter is
(unit0.1℃) a signed number, the unit is 0.1°C, and it will be held when power off.
Set Temperature value
The target temperature value of the control system. The adjustment range is 0~1000°C, and the precision is 0.1°C.
(unit 0.1℃)
Temperature cycle The control cycle adjustment range is 0.5 seconds to 200 seconds, and the minimum precision is 0.1 seconds. The written value is 10
(unit 0.1 sec) for actual temperature control, that is, 0.5 second control period needs to be written into 5, and 200 second control period needs to be
written into 2000.

Calibrate the ambient When the user thinks that the ambient temperature value is inconsistent with the temperature value displayed by the module
temperature value channel, the known ambient temperature value can be written into this parameter. At the moment when the module is written,
(actual temperature the temperature deviation value δ is calculated and saved. Calculation of temperature deviation value δ = calibration ambient
correction value, unit
temperature value - sampling temperature value. The unit is 0.1°C.
0.1°C)
For example: in the heat balance state, the user measures the ambient temperature as 60.0°C with a mercury thermometer, and
the displayed temperature is 55.0°C (corresponding to the sampling temperature 550), and the temperature deviation value is
δ =0. At this time, the user writes 600 to this parameter, and the temperature deviation value δ is recalculated as 50 (5°C), so
the displayed temperature = (sample temperature value + temperature deviation value δ)/10=60°C.

Note: When the user enters the calibration temperature value, confirm that it is consistent with the ambient temperature. This
data is very important, once it is entered incorrectly, it will cause a serious error in calculating the temperature deviation value
δ, which in turn will affect the displayed temperature.
Output during auto-tuning, in % force unit, 100 means 100% of duty ratio force scale output, 80 force
Self-tuning per moment
output amplitude 80% of the degree output.
Note: When the "Y function selection" is set to "immediate output", only the channel
display temperature value, temperature deviation value δ and calibration are valid among
the above parameters, and other parameters are ineffective.

197
XD 系列PLC 打展模挟用戸手冊 17 熱屯偶温度控制模挟XD-E6TC-P、XD-E2TC-P

17-5. Instructions for using From/To command


17-5-1. Instruction Description
The writing of the thermocouple module needs to be completed through the ::I FROM/TO
command in the sequence function BLOCK, as shown in the figure below:

a) Insert Read/Write module FROM/TO

b) Write module

c) Read Module

198
XD 系列PLC 打展模挟用戸手冊 17 熱屯偶温度控制模挟XD-E6TC-P、XD-E2TC-P

d)Convert to Ladder Diagram

Instruction Analysis
1) Write instruction on the module TO
D1

Function: Write the data information of the specified register of the program to the specified
module address, and the operation unit is word integer.

Operand description:
S1: Target module number. Available operands: K, TD, CD, D, HD, FD.
S2: The first address of the write block. Available operands: K, TD, CD, D, HD, FD.
S3: Number of registers to write (number of words). Available operands: K, TD, CD, D, HD,
FD.
D1: The first address of the register that stores the written data in the ladder program.
Available operands: TD, CD, D, HD, FD.

199
XD 系列PLC 打展模挟用戸手冊 17 熱屯偶温度控制模挟XD-E6TC-P、XD-E2TC-P

2) Read parameters from the module FROM


S2 S3 D1

Function: Transfer the data information in the specified address of any


module, to the specified register of the ladder program, and the
operation unit is word integer:
S1: It is called the model express number. Available operands: K, TD, CD, D, HD, FD.
S2: The initial address of the extension module. Available operands: K, TD, CD, D, HD, FD.
S3: Quantity of registers to read (number of words). Available operands: K, TD, CD, D, HD, FD.
D1: The first address of the ladder program to receiving data read. Available operands: TD, CD,
D, HD, FD.

Note
※1: The FROM/TO command can only be written in the BLOCK sequence function block.
The XD series PLC with firmware version V3.4.5 and below only allows a maximum of 8 BLOCK
function blocks; the XD/XL series PLC with firmware version V3.4.5 and above, Up to 100
BLOCKs can be written in the program, but only 8 can be run at the same time.
※2: The starting number of the module starts from K10000, the #1 module is K10000,
the #2 module is K10001... and so on, #16 module for K10015. ※3: In V3.3 and below
version software, the module number range is K0-K15, please pay attention to modification
when transferring projects between different versions of software.
17-5-2. Related address definition

During the user's use of this module, the following parameter objects that need to be written
through FROM/TO are involved. The following table specifies the order of each address:
XD-E6TC-P/ XD-E6TC-P-H:
From/To data Initial CH1 CH2 CH3 CH4 CHS CH6 R(read)
value
W(write)
Self-Tuning control word 0 K0 K0 K0 K0 K0 K0 R、W
PID output value - K1 K2 K3 K4 K5 K6 R
Set Value 0 K7 K8 K9 K10 K11 K12 R、W
PID kp 40 K13 K17 K21 K25 K29 K33 R、W
parameter ki 240 K14 K18 K22 K26 K30 K34 R、W
s kd 60 K15 K19 K23 K27 K31 K35 R、W
Diff 1000 K16 K20 K24 K28 K32 K36 R、W
Cycle time(unit:0 1s) 20 K37 K38 K39 K40 K41 K42 R、W
Ouput amplitude range(range:0~100) 100 K43 K44 K45 K46 K47 K48 R、W
temperature
Temperature offset calibration 0 K49 K50 K51 K52 K53 K54 R、W
Ambient temperature, can be used for - K55 K56 K57 K58 K59 K60 W
calibration
From/To data initialization - K61 K61 K61 K61 K61 K61 W

200
XD 系列PLC 打展模挟用戸手冊 17 熱屯偶温度控制模挟XD-E6TC-P、XD-E2TC-P
XD-E2TC-P:
From/To data Initial CH1 CH2 R(read)
value /w(write)
Self-tuning control word 0 K0 K0 R、W
PID Output value - K1 K2 R
Set Value 0 K3 K R、W
4
PID Kp 40 K5 K R、W
parameters 9
Ki 240 K6 K R、W
10
Kd 60 K7 K R、W
11
Diff 1000 K8 K R、W
12
Cycle time(unit:0 1s) 20 K13 K R、W
14
Ouput amplitude range(range: 100 K15 K R、W
0~100) temperature 16
Temperature offset 0 K17 K R、W
calibration
18
Ambient temperature, can be used for - K19 K W
calibration 20
From/To data initialization - K21 K W
21

Note:
(1) The "FROM TO data initialization" function requires the module to be XD-E6TC-P-H and XD-EnTC-P with firmware version V10 or
V104 and above; this function can restore the parameters in the above table to factory settings. It is necessary to set K61 or K21 to 1, and
other values are invalid.

(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, you need to use the rising edge to trigger the writing.
Do not write all the time. It is recommended to only write the parameters used. It is not recommended to write the data in the whole chip for
the convenience of programming, because writing 0 to some addresses will cause the system to fail. Work.

(3) Self-tuning enable address K0: The K0 address will occupy a continuous 8-bit address space, the 6-channel module enable bit
corresponds to the first 6-bit address space, and the last 2-bit address is free (but cannot be used for other purposes). When reading and
writing the enable bit, K0 can be a coil or a register. If it is a coil, it will take the coil as the starting address to occupy 8 consecutive bits; if
it is a register, it will occupy this register.
For example: to set the first and third channels of the module as self-tuning mode, and the other 4 channels as manual PID mode, when the
command is [To K10000 K0 KI M10], M10 and M12 should be set to ON. M11, M13, M14, M15 Set it to OFF;
When the instruction is: [To K10000 K0 K1 D100 ], D100 register should be assigned a value of 5 (binary value is 0101).

17-6. Wiring
⚫ When making wiring connections, pay attention to the following two aspects:
⚫ When connecting +24V power supply externally, please wiring the OV of the external power
supply with the 0V of the 24V power supply off the PLC unit.
⚫ Try to avoid interference, and take shielding the thermocouples before wiring the
signals.

201
XD 系列PLC 打展模挟用戸手冊 17 熱屯偶温度控制模挟XD-E6TC-P、XD-E2TC-P
1) Input connection method:

2) Outputs wiring

⚫ Output terminal: Transistor output terminal, please choose DC 5V-30V power supply.

• Circuit isolation: The internal circuit of the programmable controller and the output
transistor are optically isolated by optocouplers, and each common module is also
separated from each other.

• Response time: The time off commutation from the CPU of the extension module, to the
optocoupler, and the transistor is ON/OFF is not more than 0.2ms.

• Output current: In order to limit the temperature rise, please use 50mA per point. Open
circuit leakage current: below 0.1mA.

Heating
Resistor

SSR Solid State Relay

202
XD 系列 PLC 打展模挟用戸手冊 17.熱屯偶温度控制模挟XD-E6TC-P、XD-E2TC-P

17-7. Programming example

Example 1: Take #1 module as an example, and implement PID control on its CH0.

M0 Y10000
// T u r n o n t h e PID enable bit.
SM0
MOV HD0 D0 // Set the target value(unit 0.1℃)

MOV HD1 D10 // Set the cycle time of control(unit 0.1sec)

Y10000 SM13
// Write the target value , cycle time control in a 1 sec
period, if the target value is modified, it can be updated
TO K10000 K7 K1 D0
after 1 se
TO K10000 K37 K1 D10

SBLOCKE

M10
SBLOCK Self Tuning ON

TO K10000 K0 K1 M10 // Turn On the Self Tuning mode

SBLOCKE

M10 SM13
SBLOCK Read PID parameters, etc // Regularly read self-tuning state and PID parameters

FROM K10000 K0 K1 M100 // Read self-tuning state bit

FROM K10000 K1 K1 D100 // R e a d P I D o u t p u t v a l u e

FROM K10000 K13 K4 D110 // R e a d P、I、D、DIFF parameters


SBLOCKE

M100
TMR T0 K5 K100
// After the self-tuning bit is reset for 0.5s,Reset the bit
T0 M10 M10, that start the self-tuning sequence.

M20
MOV HD10 D50
// Set the P parameter value
MOV HD11 D51
// Set the I parameter value
MOV HD12 D52
// Set the D parameter value
MOV HD13 D53
// Set the Diff parameter value(operating range,unit 0.1℃)
M21
SBLOCK manual PID parameters

TO K10000 K13 K4 D50 // Set manually PID parameters,writing P、I、D、Diff


values in parameters.
SBLOCKE

SM0
MOV K1 D20

M50
SBLOCK Initialize module

TO K10000 K61 K1 D20


// Initialize the module parameters to factory default
SBLOCKE values

203
XD 系列 PLC 打展模挟用戸手冊 17 熱屯偶温度控制模挟 XD-E6TC-P、XD-E2TC-P

Notes:
(1) After the auto-tuning enable is turned on, the command will immediately occupy 8 bits
of M10-M17. M10-M15 respectively correspond to the auto-tuning enable of each channel.
Which channel needs to be tuned, just turn ON the corresponding coil. M16 and M17 have no
meaning for now and need to be left blank.
(2) If the output is a solid state relay, the recommended temperature control period is
1~3s; if the output is a relay, the recommended temperature control period is 3-15s.
(3) Due to inconsistent units, the main PID of PLC unit and module PID parameters cannot be
used in common. The PID of PLC unit parameter is uppercase, and the module pid parameter is
lowercase.
The specific conversion relationship is as follows: p=P/100; i=I/10; d=D/100.

Device function
M0 S t a r t PID enable
SM0 Set target value 、cycle time control
M10 Turn on Self-tuning sequence
M20 Set manual P、I、D parameters on transfer registers
M21 Write manual P、I、D parameters on extension module
M10 Read autotuning state、PID parameters、PID output value
M50 Initialize the module to factory defaults
Y10000 Channel0 PID enable bit
D0 Set target value of process
D10 Temperature cycle time control
D50 P
D51 I
D52 D
D53 DIFF

204

You might also like