XC Expansion Module

Download as pdf or txt
Download as pdf or txt
You are on page 1of 150

XC series PLC expansion module

User Manual

Xinje Electric Co., Ltd.

This manual includes some basic precautions which you should follow to keep you safe and protect the
products. These precautions are underlined with warning triangles in the manual. About other manuals that we
do not mention please follow basic electric operating rules.

Precautions

Correct
Application

Please follow the precautions. If not, it may lead the control system incorrect
or abnormal, even cause fortune lose.

The models could only be used according to the manual, and an only be
used along with the peripheral equipments recognized or recommended by
Xinje 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.

Xinje Electric Co., Ltd.


Copyright reserved
Without exact paper file allowance, copy, translate or using the manual is not allowed. Disobey this, people
should take the responsibility of loss. We reserve all the right of expansions and their design patent.
Duty Declare
We have checked the manual; its content fits the hardware and software of the products. As mistakes are
unavoidable, we couldnt 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. MODULES INTRODUCTION ..................................................................................................................... 6
1-1.MODULE TYPE AND CONFIGURATION .......................................................................................................... 6
1-2.DIMENSIONS ............................................................................................................................................... 7
1-3. MODULE PART NAME AND FUNCTION ......................................................................................................... 8
1-4.GENERAL SPECIFICATIONS .......................................................................................................................... 8
1-5.INSTALLATION ............................................................................................................................................ 9
1-6.SET THE MODULE .......................................................................................................................................11
1-7.PID FUNCTION.......................................................................................................................................... 12
2. ANALOG INPUT MODULE XC-E8AD(-H) ............................................................................................. 15
2-1. SPECIFICATION ......................................................................................................................................... 15
2-2. TERMINALS .............................................................................................................................................. 16
2-3. I/O DISTRIBUTION .................................................................................................................................... 16
2-4. WORKING MODE ...................................................................................................................................... 19
2-5. EXTERIOR CONNECTION........................................................................................................................... 21
2-6. AD CONVERSION DIAGRAM ..................................................................................................................... 23
2-7. PROGRAMMING ........................................................................................................................................ 24
3. ANALOG INPUT/OUTPUT MODULE XC-E4AD2DA(-H).................................................................... 27
3-1. SPECIFICATION ......................................................................................................................................... 27
3-2. TERMINALS .............................................................................................................................................. 28
3-3. THE ASSIGNMENT OF I/O ADDRESS .......................................................................................................... 28
3-4. WORKING MODE ...................................................................................................................................... 31
3-5. EXTERIOR CONNECTION........................................................................................................................... 33
3-6. AD CONVERSION DIAGRAM ..................................................................................................................... 36
3-7. PROGRAMMING ........................................................................................................................................ 37
4. ANALOG INPUT MODULE XC-E4AD(-H) ............................................................................................. 38
4-1. SPECIFICATIONS ....................................................................................................................................... 38
4-2. TERMINALS .............................................................................................................................................. 39
4-3. I/O ADDRESS ASSIGNMENT....................................................................................................................... 39
4-4. WORKING MODE ...................................................................................................................................... 41
4-5. EXTERIOR CONNECTION........................................................................................................................... 43
4-6. AD CONVERSION DIAGRAM ..................................................................................................................... 44
4-7. PROGRAMMING ........................................................................................................................................ 45
5. ANALOG OUTPUT MODULE XC-E4DA(-H)......................................................................................... 46
5-1. SPECIFICATION ......................................................................................................................................... 46
5-2. TERMINALS .............................................................................................................................................. 47
5-3. I/O ADDRESS ASSIGNMENT....................................................................................................................... 47
5-4. WORKING MODE ...................................................................................................................................... 48
5-5. EXTERIOR CONNECTION........................................................................................................................... 49
5-6. DA CONVERT CHART ................................................................................................................................ 51

5-7. PROGRAMMING ........................................................................................................................................ 52


6. ANALOG OUTPUT MODULE XC-E2DA(-H)......................................................................................... 53
6-1. SPECIFICATIONS ....................................................................................................................................... 53
6-2. TERMINALS .............................................................................................................................................. 54
6-3. I/O ADDRESS ASSIGNMENT....................................................................................................................... 54
6-4. WORKING MODE ...................................................................................................................................... 54
6-5. EXTERNAL CONNECTION.......................................................................................................................... 56
6-6. DA CONVERSION DIAGRAM ..................................................................................................................... 57
6-7. PROGRAMMING........................................................................................................................................ 58
7. PT100 TEMPERATURE CONTROL MODULE XC-E6PT(-P) ............................................................. 59
7-1. SPECIFICATION ......................................................................................................................................... 59
7-2. TERMINALS .............................................................................................................................................. 60
7-3. I/O ADDRESS ASSIGNMENT....................................................................................................................... 60
7-4. WORKING MODE ...................................................................................................................................... 63
7-5. EXTERIOR CONNECTION........................................................................................................................... 65
7-6. PROGRAMMING ........................................................................................................................................ 67
8. K TYPE THERMOCOUPLE TEMPERATURE CONTROL MODULE XC-E6TC(-P)...................... 69
8-1. SPECIFICATION ......................................................................................................................................... 69
8-2. TERMINALS .............................................................................................................................................. 70
8-3. I/O ADDRESS ASSIGNMENT....................................................................................................................... 71
8-4. WORKING MODE ...................................................................................................................................... 73
8-5. EXTERIOR CONNECTION........................................................................................................................... 75
8-6. PROGRAMMING ........................................................................................................................................ 77
9. THERMOCOUPLE TEMPERATURE CONTROL MODULE XC-E6TCA-P ..................................... 78
9-1. SPECIFICATIONS ....................................................................................................................................... 78
9-2. TERMINALS .............................................................................................................................................. 79
9-3. WORKING MODE ...................................................................................................................................... 80
9-4. I/O ADDRESS ASSIGNMENT....................................................................................................................... 81
9-5. READ AND WRITE ADDRESS...................................................................................................................... 83
9-6. WORKING PROCESS AND PRINCIPLE ......................................................................................................... 85
9-7. FROM AND TO INSTRUCTION.................................................................................................................. 86
9-7-1. Explanation of the instruction.......................................................................................................... 86
9-7-2. Application of the instruction ............................................................................................................ 3
9-8. PROGRAMMING .......................................................................................................................................... 7
10. XC-E3AD4PT2DA...................................................................................................................................... 12
10-1. SPECIFICATIONS ..................................................................................................................................... 12
10-2. TERMINALS ............................................................................................................................................ 13
10-3. I/O ADDRESS ASSIGNMENT ..................................................................................................................... 14
10-4. WORKING MODE .................................................................................................................................... 17
10-5. EXTERNAL CONNECTION ....................................................................................................................... 20
10-6. AD CONVERSION DIAGRAM ................................................................................................................... 21

10-7. PROGRAMMING ...................................................................................................................................... 22


11-1. SPECIFICATIONS ..................................................................................................................................... 23
11. ANALOG AND TEMPERATURE MODULE XC-E2AD2PT2DA ........................................................ 23
11-2. TERMINALS ............................................................................................................................................ 24
11-3. DATA ADDRESS DESCRIPTION ................................................................................................................. 25
11-3-1. Working mode definition ................................................................................................................ 25
11-3-2. Data address of module ................................................................................................................. 27
11-3-3. Address definition........................................................................................................................... 29
11-4. READ AND WRITE INSTRUCTIONS .......................................................................................................... 31
11-4-1. Instructions description.................................................................................................................. 31
11-4-2. Instruction applications ................................................................................................................. 33
11-5. EXTERNAL CONNECTION ........................................................................................................................ 36
11-6. ANALOG /DIGITAL CONVERSION DIAGRAM ............................................................................................ 38
11-7. PROGRAMMING ...................................................................................................................................... 40
12. PRESSURE TESTING MODULE XC-E2WT ........................................................................................ 42
12-1. SPECIFICATIONS ..................................................................................................................................... 42
12-2. TERMINALS ............................................................................................................................................ 43
12-3. EXTERNAL CONNECTION ........................................................................................................................ 43
12-4. WEIGHING SYSTEM ................................................................................................................................ 45
12-5. MODULE FUNCTIONS ............................................................................................................................. 45
12-5-1. Pressure sensor introduction ......................................................................................................... 45
12-5-2. Adjust the weighing machine ......................................................................................................... 46
12-5-3. Pressure measurement ................................................................................................................... 48
12-6. AD CONVERSION DIAGRAM ................................................................................................................... 50
12-7. PROGRAMMING ...................................................................................................................................... 50
13. I/O EXPANSION MODULE XC-ENXMY .............................................................................................. 52
13-1. SPECIFICATIONS ..................................................................................................................................... 52
13-2. TERMINALS ............................................................................................................................................ 53
13-3. I/O ADDRESS ASSIGNMENT ..................................................................................................................... 54
13-4. EXTERNAL CONNECTION ........................................................................................................................ 60
13-5. APPLICATIONS ........................................................................................................................................ 62

1. Modules introduction

1-1. Module type and configuration


XC series PLCs not only have strong functions of logic operation, data operation, high speed
processing etc. but also A/D, D/A conversion, PID function. With the expansions of analog
input module, analog output module, temperature control module etc, XC series PLCs are
widely used in the control system of temperature, flow, liquid level, pressure.
Module type and names
The detailed information is:
Model
XC-E8AD (-H)

Function
8 channels analog input (14bits); 4 channels current input, 4 channels voltage input

XC-E4AD2DA (-H)

4 channels analog input (14bits); 2 channels analog output (12bits); current/voltage


selectable

XC-E4DA (-H)

4 channels analog output (12bits); current/voltage selectable

XC-E6PT-P

-100 ~350 , 6 channels Pt100 temperature signal sampling, 0.1 degree precision,
built-in PID function

XC-E6TC-P

0 ~1000 , 6 channels K type thermocouple temperature sampling module, 0.1 degree


precision, include PID operation

XC-E6TCA-P

0 ~1300 , 6 channels thermocouple temperature sampling module, 0.1 degree


precision, include PID operation

XC-3AD4PT2DA

3 channels current input (14 bits), 4 channels PT100 temperature input and 2 channels
voltage output (10 bits)

XC-E2AD2PT2DA

2 channels current input (16 bits), 2 channels PT100 temperature input and 2 channels
voltage output (10 bits)

XC-E2WT

0~10mV, 2 channels pressure sensor signal input, 16 bits high precision AD conversion

XC-4AD (-H)

4 channels analog input (14 bits), current/voltage selectable

XC-2DA (-H)

2 channels analog output (12 bits), current/voltage selectable

XC-EnXmY

N points digital input, m points digital output

Module configuration
XC series expansion modules can be connected to the right side of PLC:

Digital input, output terminal no. is octal number.


Analog input, output terminal no. is decimal number.
Up to 7 expansion modules and 1 BD board can be connected to the PLC.

1-2. Dimensions
Analog, temperature, pressure modules, 8/16 points I/O modules: (dimension: mm)

63
55

73.3

R2

TYPE:XC-E6PT-P
DATE:20060410
SN:0067032266

Xinje Electronic Co.,Ltd

PWR

94
102

24V

32 points I/O modules: (dimension: mm)

139
131

FG

COM

Y0

Y1

Y2

Y3

73.3

COM1 Y5
Y7
Y10
Y12
COM3 Y15
Y17
Y4
Y6
COM2 Y11
Y13
Y14
Y16

110
102
94

PORT2

PWR
RUN
ERR

0 1 2 3 4 5
6 7

24V

0V

Y20
Y22
COM5
Y25
Y27
Y30
Y32
COM7
Y35
Y37
COM4 Y21
Y23
Y24
Y26 COM6
Y31
Y33
Y34
Y36

3.5

TYPE:XC3-32R-E
DATE:20060410
SN:0067032266

XC-E32YR
PORT1

Xinje Electronic Co.,Ltd

0 1 2 3 4 5
6 7

1-3. Module part name and function

Name

Function

Power LED

The LED lights when the power supply is on

Module type

The type of expansion module

Expansion port

To connect the expansion module

Analog I/O terminals

To connect to analog input and output, the terminals are


knock-down

DIN rail pothook

To mount the module, pull down the pothook to take away the
module

Screw hole

Use M3 screw

Expansion cable

To connect the expansion module

1-4.

General specifications
Operating Environment

No corrosive gas

Ambient Temperature

0 ~60

Store Temperature

-20~70

Ambient Humidity

5~95%

Store Humidity

5~95%

Installation

Can be fixed with M3 screw or directly installed


on DIN46277 rail (width: 35mm)

Size

63mm102mm73.3mm

Label notes:

TYPE:XC-E6PT-P
DATE:20060410
SN:0067032266

TYPE: module type


DATE: out of factory date
SN: serial number
Manufacturer: Xinje Electronic Co., Ltd.

Xinje Electronic Co.,Ltd

1-5.

Installation

XC series expansion module can be connected to the right side of PLC. Fix the module on the
DIN46277 rail or with screw M3.
DIN46277 rail:

PWR

DIN rail pothook

The module can be mounted on the DIN46277 rail (width 35mm). Pull down the DIN rail pothook
to uninstall the module.
Direct installation: put the screw (M3) to fix the module.

Put the screw M3 into the hole.

Terminal wiring:
Y terminal
Y terminal dimension
B: Y outer dimension
d1: Outer diameter connecting to the wire
d2: Internal diameter (press the screw)
L: Whole length
Suitable dimension:
B: below 6mm L: below 13mm
d2: below 3.2mm

Wiring method
A. Cut off the power supply
B. Open the front cover

Terminal cover

C. Put the terminal of signal wire on the I/O terminal tightens the screw.

D. Close the I/O terminal cover


Notes:
1. Confirm the specification of the module
2. The scraps can not fall into the module when wiring
3. Before wiring, confirm the specifications of module and device again
4. Make sure the wire connection is firm, otherwise data incorrectness and circuit shorting will
happen
5. Cut the power before Installation and wiring

1-6. Set the module


Before using the expansion module, please configure the module in XCPpro software.
Next we will introduce the configuration steps. Take XC-E8AD as an example.
A. Open the XCPpro software, click module in the project menu:

B. Choose the module type and channel parameters in the following window:

1-7. PID Function


XC series PLC has two PID modes:
1. The PID control is inside expansion module. The PLC program writes the PID parameters
to the module, controls the ON/OFF of PID start/stop bit. The control period is 2s. This
mode is suitable for the object which has delay time such as temperature.
2. The PID control is inside PLC. The PLC program will control the PID auto-tune and get
the best PID parameters. This mode is more flexible and suitable for various objects such
as temperature, pressure, flow, liquid level
Brief introduction of PID function
Among XC series PLC special modules, digital input module (A/D module) and temperature
control module have PID control function which is widely used. There are only four parameters
(Kp, Ki, Kd and Diff) should be set.
PID control diagram:
+
Proportion
r(t) + e(t)
u(t)
c(t)
+
Object
Integral

Differential
+
coefficient

PID control system diagram

e(t) = r (t ) c ( t )
u(t) = Kp [ e ( t ) + 1/Tie(t)dt + TD de(t)/dt]

(1-1)
(1-2)

e(t) is offset, r(t) is setting value, c(t) is analog value, u(t) is control value;
Kp is proportion coefficient, Ti is integral coefficient, TD is differential coefficient.
PID Parameters
Kp P is proportion parameter, to control the offset of the system once it happens.
Ki I is integral parameter, to eliminate the static error, improve the no error degree of the
system.
Kd D is differential parameter, to control the signal changing trend, decrease the system
vibration.
Diff Control range, to do PID control in the defined range.
Death Death area, compare the current PID output to the former one, if the difference is less
than the death area value, the module will abandon the current PID value, send the last
value to the PLC.
Control characteristics
When the testing value is low than QD-Diff, controller output range is full scale; when the testing
value is larger than QD+Diff, the controller stops outputting; in the range of QD-Diff to QD+Diff,
PID control works.
The control curve of PID:

Each parameters reference value: Kp=20~100, Ki=5~20, Kd=200~700, DIFF=100~200.


PID auto-tune methods:
(1) Digital output. Control the duty ratio of transistor output. Such as XC-E6PT-P and

XC-E6TC-P.
(2) Analog input. Each analog input channel has setting value and PID parameters. It
transforms the PID output to analog output. Such as XC-4AD, XC-8AD, XC-4AD/2DA.
(3) Analog value transforms to digital output. Analog expansion module has PID output, but
not has digital output. The controlling object needs digital output. It needs to transform
the PID value to PLC duty ratio output. User has to set the PID parameters and make the
control program in this method. Next is an example.
M8000

MOV

ID1006

D1000

MUL

D1000

K200

D1100

DDIV

D1100

K4095

D1200

T200

T200

T200

D1200 D1200

K0

K200

Y3

ID1006 is PID output.


The module output PID value every 2s. The duty ratio = PID output value/4095. PID output
value is X (0X4095). The PLC controls the object through the duty ratio in 2s. PLC
outputs at 2X/4095s, PLC doesnt output at (2-2X/4095).
Notes:
For analog modules XC-E8AD, XC-E4AD, XC-E4AD2D,
1. PID control period is 2s, which is not suitable to fast changing object. Such as pressure,
liquid level, flow.
2. PID parameters should be set manually.
For analog modules XC-E6PT-P, XC-E6TC-P,
1. PID output value is duty ratio mode. It only controls the ON/OFF of solid state relay. It
cannot output analog signal. If the controlling object is valve opening or silicon control
angle, the PID cannot control them.
2. PID parameters need to be set manually.
Introduction of PLC PID instruction
For the following situations, the PID function of expansion module cannot meet the requirements.
The PID function of PLC (hardware version v3.1d and higher) is required.
1. The object which has fast changing speed, such as pressure, liquid level, flow and so on,
PID control period is less than 2s.
2. The temperature control needs high precision. It needs PID auto-tune to get the best PID
parameters.
3. The PID output needs analog signal such as valve opening, silicon angle.
Please refer to XC series PLC instruction manual for the details of PID instruction.

2. Analog input module XC-E8AD(-H)

2-1. Specification
XC-E8AD and XC-E8AD-H transform the analog value (current or voltage input) to digital value
and send to PLC registers.

C0
VI0

C1
VI1

C2
VI2

VI

C3

PWR

XC-E8AD

AI

AI0
C0

AI1
C1

AI2
C2

Analog input range


Max input range
Digital output range
PID control value
Resolution

AI3
C3

Items

Current input (0CH~3CH)

Voltage input (4CH~7CH)

0~5V, 0~10V

0~20mA, 4~20mA

15V

0~40mA

14 bits binary data


0~4095
1/16383(14Bit)

Integrate Precision

1%

Conversion speed

20ms per channel

Analog power
supply

VI3

14 bits high precision analog


input
8 channels analog input: The
first four channels are voltage
input (0~5V, 0~10V); The last
4 channels are current input
(0~20, 4~20mA)
As special function module of
XC, up to 7 models can be
connected.
PID function
XC-E8AD-H: the power of
analog and digital has isolation
circuit

DC24V10%,100mA

Installation

Can be fixed with screw M3 or directly installed on orbit of DIN46277


(width: 35mm)

Dimension

63mm102mm73.3mm

2-2. Terminals

24V

0V

.VI0

.
C0

AI0

C1

C0
AI1

VI1
C2

C1

AI2

VI2
.
C3

C2

VI3

C3

AI3

Channel

Terminal name

Signal name

CH0

VI0

VI0+ voltage input

C0

VI0- voltage input

VI1

VI1+ voltage input

C1

VI1- voltage input

VI2

VI2+ voltage input

C2

VI2- voltage input

VI3

VI3+ voltage input

C3

VI3- voltage input

AI0

AI0+current input

C0

AI0- current input

AI1

AI1+ current input

C1

AI1- current input

AI2

AI2+ current input

C2

AI2- current input

AI3

AI3+ current input

C3

AI3- current input

24V

+24Vpower supply

0V

Common terminal of power supply

CH1

CH2

CH3

CH4

CH5

CH6

CH7

2-3. I/O distribution


XC series analog expansion modules dont occupy I/O unit, the converted data is directly
transferred to PLC register. Each channel address:
I/O address list
Register address of expansion module 1:

Channel

AD signal

PID output
value

PID start/stop
control bit

Preset value

0CH

ID100

ID108

Y100

QD100

1CH

ID101

ID109

Y101

QD101

2CH

ID102

ID110

Y102

QD102

3CH

ID103

ID111

Y103

QD103

4CH

ID104

ID112

Y104

QD104

5CH

ID105

ID113

Y105

QD105

6CH

ID106

ID114

Y106

QD106

7CH

ID107

ID115

Y107

QD107

PID Parameters: Kp,


Ki, Kd, control range
Diff, dead range
Death

Kp: QD108
Ki: QD109
Kd: QD110
Diff: QD111
Death: QD112

Register address of expansion module 2:

Channel

AD signal

PID output
value

PID start/stop
control bit

Preset value

0CH

ID200

ID208

Y200

QD200

1CH

ID201

ID209

Y201

QD201

2CH

ID202

ID210

Y202

QD202

3CH

ID203

ID211

Y203

QD203

4CH

ID204

ID212

Y204

QD204

5CH

ID205

ID213

Y205

QD205

6CH

ID206

ID214

Y206

QD206

7CH

ID207

ID215

Y207

QD207

PID parameters: Kp,


Ki, Kd, control range
Diff, dead range
Death

Kp: QD208
Ki: QD209
Kd: QD210
Diff: QD211
Death: QD212

Register address of expansion module 3:

Channel

AD signal

PID output
value

PID start/stop
control bit

Preset value

0CH

ID300

ID308

Y300

QD300

1CH

ID301

ID309

Y301

QD301

2CH

ID302

ID310

Y302

QD302

3CH

ID303

ID311

Y303

QD303

4CH

ID304

ID312

Y304

QD304

5CH

ID305

ID313

Y305

QD305

6CH

ID306

ID314

Y306

QD306

7CH

ID307

ID315

Y307

QD307

Register address of expansion module 4:

PID parameters: Kp,


Ki, Kd, control range
Diff, dead range
Death

Kp: QD308
Ki: QD309
Kd: QD310
Diff: QD311
Death: QD312

Channel

AD signal

PID output
value

PID start/stop
control bit

Preset value

0CH

ID400

ID408

Y400

QD400

1CH

ID401

ID409

Y401

QD401

2CH

ID402

ID410

Y402

QD402

3CH

ID403

ID411

Y403

QD403

4CH

ID404

ID412

Y404

QD404

5CH

ID405

ID413

Y405

QD405

6CH

ID406

ID414

Y406

QD406

7CH

ID407

ID415

Y407

QD407

PID parameters: Kp,


Ki, Kd, control range
Diff, dead range
Death

Kp: QD408
Ki: QD409
Kd: QD410
Diff: QD411
Death: QD412

Register address of expansion module 5:

Channel

AD signal

PID output
value

PID start/stop
control bit

Preset value

0CH

ID500

ID508

Y500

QD500

1CH

ID501

ID509

Y501

QD501

2CH

ID502

ID510

Y502

QD502

3CH

ID503

ID511

Y503

QD503

4CH

ID504

ID512

Y504

QD504

5CH

ID505

ID513

Y505

QD505

6CH

ID506

ID514

Y506

QD506

7CH

ID507

ID515

Y507

QD507

PID parameters: Kp,


Ki, Kd, control range
Diff, dead range
Death

Kp: QD508
Ki: QD509
Kd: QD510
Diff: QD511
Death: QD512

Register address of expansion module 6:

Channel

AD signal

PID output
value

PID start/stop
control bit

Preset value

0CH

ID600

ID608

Y600

QD600

1CH

ID601

ID609

Y601

QD601

2CH

ID602

ID610

Y602

QD602

3CH

ID603

ID611

Y603

QD603

4CH

ID604

ID612

Y604

QD604

5CH

ID605

ID613

Y605

QD605

6CH

ID606

ID614

Y606

QD606

7CH

ID607

ID615

Y607

QD607

Register address of expansion module 7:

PID parameters: Kp,


Ki, Kd, control range
Diff, dead range
Death

Kp: QD608
Ki: QD609
Kd: QD510
Diff: QD611
Death: QD512

Channel

AD signal

PID output
value

PID start/stop
control bit

Preset value

0CH

ID700

ID708

Y700

QD700

1CH

ID701

ID709

Y701

QD701

2CH

ID702

ID710

Y702

QD702

3CH

ID703

ID711

Y703

QD703

4CH

ID704

ID712

Y704

QD704

5CH

ID705

ID713

Y705

QD705

6CH

ID706

ID714

Y706

QD706

7CH

ID707

ID715

Y707

QD707

PID parameters: Kp,


Ki, Kd, control range
Diff, dead range
Death

Kp: QD708
Ki: QD709
Kd: QD710
Diff: QD711
Death: QD712

Start signal (Y): when Y is 0, close PID control, when Y is 1, start PID control.

2-4. Working mode


There are two ways to set the working mode:
1. XCPpro software
2. FD registers of PLC
XCPpro software:
Open the XCPpro software, click configure/expansion module settings:

Set the model and channel parameters in the following window. Then click write to
PLC/ok.
For software version lower than v3.3, please restart the PLC after setting.

FD registers:
0CH~3CH channels have two modes to select: voltage 0~5V or 0~10V, 4CH~7CH channels have
two modes to select, current 0~20mA or 4~20mA.Set the modes through FD registers of PLC. See
the following table:

Module

Channel ID
0CH~3CH

4CH~7CH

1# module

FD8250

FD8251

2# module

FD8258

FD8259

3# module

FD8266

FD8267

4# module

FD8274

FD8275

5# module

FD8282

FD8283

6# module

FD8290

FD8291

7# module

FD8298

FD8299

Take 1# module as an example:


FD8250
HOOOO
0CH
1CH
2CH
3CH
FD8251
HOOOO
4CH
5CH
6CH
7CH

Note: As showed in the preceding table, each register set 4 channels mode, each register has 16
bits. From low bit to high bit, every 4 bits can set 1 channels mode.
Each bit definition is showed in the following table:
Register FD8250: (Module 1)

Channel 1
Bit7

Bit6

Channel 0

Bit5

00: 1/2 filter


01: not filter
10: 1/3 filter
11: 1/4 filter

Bit4
0: 0~10V
1: 0~5V

Bit3

Bit2

00: 1/2 filter


01: not filter
10: 1/3 filter
11: 1/4 filter

Channel 3

Bit15

Bit14

Bit1

Bit0
0: 0~10V
1: 0~5V

Channel 2

Bit13

00: 1/2 filter


01: not filter
10: 1/3 filter
11: 1/4 filter

Bit12
0: 0~10V
1: 0~5V

Bit11

Bit10

Bit9

00: 1/2 filter


01: not filter
10: 1/3 filter
11: 1/4 filter

Bit8
0:0~10V
1:0~5V

Register FD8251:
Channel 5
Bit7

Bit6

Channel 4

Bit5

00: 1/2 filter


01: not filter
10: 1/3 filter
11: 1/4 filter

Bit4
0:
0~20mA
1:
4~20mA

Bit3

Bit2

00: 1/2 filter


01: not filter
10: 1/3 filter
11: 1/4 filter

Bit15

Bit14

Bit0

0: 0~20mA
1: 4~20mA

Channel 7

00: 1/2 filter


01: not filter
10: 1/3 filter
11: 1/4 filter

Bit1

Channel 6

Bit13
-

Bit12
0:
0~20mA
1:
4~20mA

Bit11
00: 1/2 filter
01: not filter
10: 1/3 filter
11: 1/4 filter

Bit10

Bit9
-

Bit8
0: 0~20mA
1: 4~20mA

Example:
Set module 1 Channel No. 3, No.2, No.1, No.0 working mode to 0~10V, 0~5V, 0~10V, 0~5V, all
the four channels are not filter, data in FD8250 is 4545H
Set module 1 Channel No. 7, No.6, No.5, No.4 working mode to 0~20mA, 4~20mA, 0~20mA,
4~20mA, all the four channels are 1/2 filter, data in FD8251 is 0101H

2-5Exterior connection
Notes:
When connect external24V power, please use the 24V power of PLC to avoid interference.
To avoid interference, please use shield cable and single point ground for the shield layer.

Voltage input:

C0
VI0

C1
VI1

4CH

AI2

5CH

AI3

AI3+

AI2+

6CH

C3
VI3

C3

AI3-

C2

AI1+

AI1-

AI0+

AI0-

AI1
C1

AI2-

AI0

3CH

VI3-

VI2-

C2
VI2

Current input:
C0

3CH
VI3+

VI1-

2CH
VI2+

VI0-

1CH
VI1+

VI0+

0CH

2-6. AD conversion diagram


The relationship between analog value and digital value is shown as the following diagram:
Channel 0 ~ Channel 3 voltage mode:
0~5V analog input

0~10V analog input

+16383

+16383

digital

digital

analog

5v

analog

10v

Channel 4 ~ Channel 7 current mode:


0~20mA analog input

4~20mA analog input

+16383

+16383
digital

digital

analog

20mA

0 4mA

analog

20mA

2-7. Programming
Example 1:
Real-time read the data of the 8 channels (module 1)
M8000

MOV

ID100

D0

MOV

ID101

D1

MOV

ID102

D2

MOV

ID103

D3

MOV

ID104

D4

MOV

ID105

D5

MOV

ID106

D6

MOV

ID107

D7

END

M8000 is always ON coil, it is ON when PLC is running.


Send the data from channel 0~7 to PLC register D0~D7.
Then the data in D0~D7 is the AD conversion value of the 8 channels.
Example 2:
PLC gets the analog input value every 100ms, get the average value of the 20 analog input values,
abandon the earliest value, then the result is the filter value.
Hardware connection:

PLC

XC-E8AD module 1

C0

FG

COM

COM

X0

X1

X2

X3

X4

X5

X6

X7

X10

X11

X13

X12

X14

X15

VI0

C1
VI1

C2
VI2

C3
VI3

0 1 2 3 4 5
6 7
VI

PORT1

PORT2

PWR

XC-E8AD

PWR

XC3-24R-E

RUN

AI

ERR

0 1 2 3 4 5
6 7

24V

0V

COM0
B

Y0

COM1

Y1

COM2

Y2

Y3

Y5
Y4

Y6
COM3

AI0

Y10
Y7

Y11

C0

AI1
C1

AI2
C2

AI3
C3

M8012 is ON every 100ms. It can meet the requirements of getting the value every
100ms.

Get the analog input value of channel 0.


The latest analog input value is saved in D470, get 20 analog values and saved in
D530~D549.

Get the average value of the 20 values, save the result in D580. D580 is filter value.

Filter effect:

3. Analog input/output module XC-E4AD2DA(-H)

3-1. Specification
XC-E4AD2DA, XC-E4AD2DA-H transform the 4 channels analog value to digital value, 2
channels digital value to analog value, and send them to PLC.

AO0

C0

C1

VO0

AO1
VO1

AO

PWR

AI

VI0
C0

C1
AI0

AI1
VI1

VI2
C2

C3
AI2

AI3
VI3

Items

Analog input (AD)


Voltage input

Analog input bound

0~5V, 0~10V

Max input bound

DC 15V

Analog output bound

Analog output (DA)

Current input

Voltage output

0~20mA, 4~20mA

Current output
-

0~40mA

Digital input bound

4 channels 14 bits analog input and 2


channels 12 bits analog output
4 channels selectable voltage 0~5V,
0~10V, current 0~20mA, 4~20mA
input and 2 channels selectable
voltage 0~5V, 0~10V, current
0~20mA, 4~20mA output.
Up to 7 expansion modules can be
connected to the PLC
4 AD channels have PID function
XC-E4AD2DA-H: the power of
analog and digital has isolation
circuit. Current output is draw-off
current.

0~5V, 0~10V

0~20mA,

(Exterior
load
resistance
2K~1M)

(Exterior
load
resistance is less
than 500)

4~20mA

12 bits binary data0~4095

Digital output bound

14 bits binary data0~16383

Distinguish ratio

1/16383(14Bit); the converted data is


stored into PLC in the format of HEX
(14Bit)

1/4095(12Bit); the converted data is


stored into PLC with the format of HEX.
(12Bit)

PID control value

0~4095

Integrate precision

1%

Convert speed

20ms per channel

Power used by analog

DC24V10%,100mA

3ms per channel

Install format

Fixed with M3 screws or directly installed on orbit of DIN46277 (Width: 35mm)

Exterior size

63mm102mm73.3mm

3-2. Terminals
0V

24V
C0

VI0

.
AI0

Channel
CH0

CH1

CH2

CH3

CH0

CH1

.
C1

VI1

C0
A11

AO0
VO0
.

C1

VI2

C3

C2

AI2

VO1
VI3

AO1
AI3

Terminal name

Signal name

AI0

Current input

VI0

Voltage input

C0

CH0 common terminal of analog input

AI1

Current input

VI1

Voltage input

C1

CH1 common terminal of analog input

AI2

Current input

VI2

Voltage input

C2

CH2 common terminal of analog input

AI3

Current input

VI3

Voltage input

C3

CH3 common terminal of analog input

AO0

Current input

VO0

Voltage input

C0

CH0 common terminal of analog input

AO1

Current input

VO1

Voltage input

C1

CH1 common terminal of analog input

24V

+24V power supply

0V

Common terminal of power supply

3-3. The assignment of I/O address


XC series analog modules do not occupy I/O units; the converted data is directly transferred into
PLC register,

Address of module 1:
Channel

AD signal

PID output
value

PID start/stop
control bit

The set value

0CH

ID100

ID104

Y100

QD102

1CH

ID101

ID105

Y101

QD103

2CH

ID102

ID106

Y102

QD104

3CH

ID103

ID107

Y103

QD105

Channel

DA signal

0CH

QD100

1CH

QD101

PID start/stop
control bit

The set value

PID parameter: Kp,


Ki, Kd, control range
Diff, dead area Death
Kp: QD106
Ki: QD107
Kd: QD108
Diff: QD109
Death: QD110

Address of module 2:
Channel

AD

PID output
value

0CH

ID200

ID204

Y200

QD202

1CH

ID201

ID205

Y201

QD203

2CH

ID202

ID206

Y202

QD204

3CH

ID203

ID207

Y203

QD205

Channel

DA signal

0CH

QD200

1CH

QD201

PID start/stop
control bit

The set value

PID parameter: Kp,


Ki, Kd, control range
Diff, dead area Death
Kp: QD206
Ki: QD207
Kd: QD208
Diff: QD209
Death: QD210

Address of module 3:
Channel

AD signal

PID output
value

0CH

ID300

ID304

Y300

QD302

1CH

ID301

ID305

Y301

QD303

2CH

ID302

ID306

Y302

QD304

3CH

ID303

ID307

Y303

QD305

Channel

DA signal

0CH

QD300

1CH

QD301

PID parameter: Kp,


Ki, Kd, control range
Diff, dead area Death
Kp: QD306
Ki: QD307
Kd: QD308
Diff: QD309
Death: QD310

Address of module 4:
Channel

AD signal

PID output
value

PID start/stop
control bit

The set value

0CH

ID400

ID404

Y400

QD402

1CH

ID401

ID405

Y401

QD403

2CH

ID402

ID406

Y402

QD404

3CH

ID403

ID407

Y403

QD405

Channel

DA signal

0CH

QD400

1CH

QD401

PID start/stop
control bit

The set value

PID parameter: Kp,


Ki, Kd, control range
Diff, dead area Death
Kp: QD406
Ki: QD407
Kd: QD408
Diff: QD409
Death: QD410

Address of module 5:
Channel

AD signal

PID output
value

0CH

ID500

ID504

Y500

QD502

1CH

ID501

ID505

Y501

QD503

2CH

ID502

ID506

Y502

QD504

3CH

ID503

ID507

Y503

QD505

Channel

DA signal

0CH

QD500

1CH

QD501

PID start/stop
control bit

The set value

PID parameter: Kp,


Ki, Kd, control range
Diff, dead area Death
Kp: QD506
Ki: QD507
Kd: QD508
Diff: QD509
Death: QD510

Address of module 6:
Channel

AD signal

PID output
value

0CH

ID600

ID604

Y600

QD602

1CH

ID601

ID605

Y601

QD603

2CH

ID602

ID606

Y602

QD604

3CH

ID603

ID607

Y603

QD605

Channel

DA signal

0CH

QD600

1CH

QD601

PID parameter: Kp,


Ki, Kd, control range
Diff, dead area Death
Kp: QD606
Ki: QD607
Kd: QD608
Diff: QD609
Death: QD610

Address of module 7:
Channel

AD signal

PID output
value

PID start/stop
control bit

The set value

0CH

ID700

ID704

Y700

QD702

1CH

ID701

ID705

Y701

QD703

2CH

ID702

ID706

Y702

QD704

3CH

ID703

ID707

Y703

QD705

Channel

DA signal

0CH

QD700

1CH

QD701

PID parameter: Kp,


Ki, Kd, control range
Diff, dead area Death
Kp: QD706
Ki: QD707
Kd: QD708
Diff: QD709
Death: QD710

Description:
Start signal (Y): When Y is 0, close PID control; when Y is 1, start PID control.

3-4. Working mode


There are two ways to set the working mode:
1. XCPpro software
2. FD registers of PLC
XCPpro software:
Open the XCPpro software, click configure/expansion module settings:

Set the model and channel parameters in the following window. Then click write to
PLC/ok.
For software version lower than v3.3, please restart the PLC after setting.

FD registers:
The module has current and voltage mode. Current has choices of 0~20mA, 4~20mA; voltage has
choices of 0~5V, 0~10V. 0CH~3CH are analog input channels, 4CH~5CH are analog output
channels. These parameters can be set through PLC FD registers.

Module

Channel
0CH~3CH

4CH~5CH

Module 1

FD8250

FD8251 low byte

Module 2

FD8258

FD8259 low byte

Module 3

FD8266

FD8267 low byte

Module 4

FD8274

FD8275 low byte

Module 5

FD8282

FD8283 low byte

Module 6

FD8290

FD8291 low byte

Module 7

FD8298

FD8299 low byte

Take module 1 as an example


FD8250
HOOOO
0CH
1CH
2CH
3CH
FD8251
HOOOO
4CH
5CH

Note: As shown in the preceding table, every register set 4 channels mode, each register has 16
bits, from low to high, every 4 bits set 1 channel mode.
The setting method: (module 1)
Register FD8250:

Channel 1
Bit7

Bit6

Bit5

00: 1/2 filter


01: not filter
10: 1/3 filter
11: 1/4 filter

0: voltage
input
1: current
input

Channel 0
Bit4
0:0~10V
1:0~5V
0:0~20mA
1:4~20mA

Bit3

Bit2

00: 1/2 filter


01: not filter
10: 1/3 filter
11: 1/4 filter

0: voltage
input
1: current
input

Channel 3

Bit15

Bit14

00: 1/2 filter


01: not filter
10: 1/3 filter
11: 1/4 filter

Bit13
0: voltage
input
1: current
input

Bit1

Bit0
0:0~10V
1:0~5V
0:0~20mA
1:4~20mA

Channel 2

Bit12
0:0~10V
1:0~5V
0:0~20mA
1:4~20mA

Bit11

Bit10

00: 1/2 filter


01: not filter
10: 1/3 filter
11: 1/4 filter

Bit9
0: voltage
input
1: current
input

Bit8
0:0~10V
1:0~5V
0:0~20mA
1:4~20mA

Register FD8251 low byte:


Channel 5
Bit7
00: 1/2 filter
01: not filter
10: 1/3 filter
11: 1/4 filter

Bit6

Bit5
0: voltage
input
1: current
input

Channel 4
Bit4
0:0~10V
1:0~5V
0:0~20mA
1:4~20mA

Bit3
00: 1/2 filter
01: not filter
10: 1/3 filter
11: 1/4 filter

Bit2

Bit1
0: voltage
input
1: current
input

Bit0
0:0~10V
1:0~5V
0:0~20mA
1:4~20mA

Example: If set the working mode of module 1 channel 3, channel 2, channel 1, channel 0 to
0~20mA, 4~20mA, 0~10V, 0~5V, filters are all 1/2 filter, value in FD8250 is 2301H.

3-5Exterior connection
When make exterior connection, please read the following items:
When connect24V power, please choose 24V power of PLC to avoid interference.
To avoid interference, please use shield cable and single point ground for the shield layer.
XC-E4AD2DA: 0~20mA or 4~20mA current output need external 24V power supply, the
module control the current according to the value of QD. The module cannot produce current
by itself.
XC-E4AD2DA-H: 0~20mA or 4~20mA current output do not need external 24V power
supply, the module control the current according to the value of QD. The module current
output is draw-off current.

Voltage input

VI2-

VI1+

VI1-

VI0+

VI0-

0CH

VI2

1CH

C3

AI3

AI2

C2

VI3

VI3+

AI1
VI1

VI3-

C1
AI0

VI2+

VI0
C0

2CH

3CH

Voltage output

VO1-

VO0+

VO0-

VO1+

1CH

0CH

AO0

C0

C1

AO1
VO1

VO0

Current input

0CH

1CH

VI2

C3

2CH

AI3
VI3

AI3+

AI2

AI2+

C2

AI3-

AI1
VI1

AI1+

AI1-

AI0+

AI0-

C1
AI0

AI2-

VI0
C0

3CH

Current output

AO1-

AO0+

AO0-

AO0

C0

AO1+

1CH

0CH

C1

AO1
VO1

VO0

Note:
1. XC-E4AD2DA current output needs external 24V power supply.

2. XC-E4AD2DA-H current output wiring:

AO_+

R<500
C_

3-6. AD conversion diagram


The relationship between analog input and corresponding digital value:
0~5V analog input

0~10V analog input

+16383

+16383
digital

digital

5v

analog

0~20mA analog input

+16383

10v

analog

4~20mA analog input

+16383
dgital

digital

analog

0 4mA

20mA

20mA

analog

The relationship between input digital value and corresponding analog value:
0~5V analog output

0~10V analog output

10v

5v

analog

analog

digital

+4095

0~20mA analog output

digital

+4095

4~20mA analog output

20mA

20mA

analog

analog

4mA
0

digital

+4095

digital

+4095

Note: When input data exceeds 4095, analog output will stay at the max value of 5V, 10V or
20mA.

3-7. Programming

Example Real time read 4 channels data, write 2 channels data (take expansion 1 as an example)
M8000

MOV

ID100

D0

Write channel0 data into data register D0

MOV

ID101

D1

Write channel1 data into data register D1

MOV

ID102

D2

Write channel2 data into data register D2

MOV

ID103

D3

Write channel3 data into data register D3

MOV

D10

QD100

MOV

D11

QD101

END

Send the value of D10 to channel 0


Send the value of D11 to channel 1

4. Analog Input Module XC-E4AD(-H)

4-1. Specifications
XC-E4AD, XC-E4AD-H transform the analog input (current or voltage) to digital value and send
to PLC register.

24V

PWR

AI

VI0
C0

C1
AI0

AI1
VI1

VI2
C2

C3
AI2

AI3

4 channels 14 bits analog input:


voltage (0~5V, 0~10V), current
(0~20mA, 4~20mA) for choice
As expansion of XC series PLC,
up to 7 modules can be connected
to the PLC
4 channels A/D input have PID
function
XC-E4AD-H has isolation for the
power of analog and digital part

VI3

Analog Input (AD)

ITEMS

Analog Input Range


Maximum Input Range

Voltage Input

Current Input

DC 0~5V, 0~10V

DC 0~20mA, 4~20mA

DC 18V

DC 0~40mA

Digital Output Range

14 bits binary (0~16383)

Resolution

1/16383(14Bit); the convert data is stored in PLC in the form of Hex. (14Bit)

PID Output Value

0~K4095

Synthesis Precision

0.8%

Conversion Speed

20ms per channel

Power Supply

DC24V10%,100mA

Installation

Fix with M3 screw or install on DIN46277 guilder (Width: 35mm) directly

Dimension

63mm102mm73.3mm

4-2. Terminals

24V
C0

0V
VI0

Channel
CH0

CH1

CH2

CH3

.
AI0

.
C1

VI1

.
A11

C2

VI2

AI2

C3

VI3

AI3

Terminal name

Signal name

AI0

Current input

VI0

Voltage input

C0

CH0 common terminal

AI1

Current input

VI1

Voltage input

C1

CH1 common terminal

AI2

Current input

VI2

Voltage input

C2

CH2 common terminal

AI3

Current input

VI3

Voltage input

C3

CH3 common terminal

24V

+24V power supply

0V

Common terminal of power supply

4-3. I/O address assignment


XC series expansions do not occupy I/O units; the converted value is sent to PLC register directly.
Expansion module 1 address

Channel

AD Signal

PID Output
Value

PID Start/Stop
Control Bit

Preset Value

0CH

ID100

ID104

Y100

QD102

1CH

ID101

ID105

Y101

QD103

2CH

ID102

ID106

Y102

QD104

3CH

ID103

ID107

Y103

QD105

PID Parameters: Kp,


Ki,
Kd,
Control
Range Diff, Dead
Range Death
Kp------- QD106
Ki------- QD107
Kd------- QD108
Diff------ QD109
Death----QD110

Expansion module 2 address

Channel

AD Signal

PID Output
Value

PID Start/Stop
Control Bit

Preset Value

0CH

ID200

ID204

Y200

QD202

1CH

ID201

ID205

Y201

QD203

2CH

ID202

ID206

Y202

QD204

3CH

ID203

ID207

Y203

QD205

PID Start/Stop
Control Bit

Preset Value

PID Parameters: Kp,


Ki,
Kd,
Control
Range Diff, Dead
Range Death
Kp------- QD206
Ki------- QD207
Kd------- QD208
Diff------ QD209
Death----QD210

Expansion module 3 address

Channel

AD Signal

PID Output
Value

0CH

ID300

ID304

Y300

QD302

1CH

ID301

ID305

Y301

QD303

2CH

ID302

ID306

Y302

QD304

3CH

ID303

ID307

Y303

QD305

PID Parameters: Kp,


Ki,
Kd,
Control
Range Diff, Dead
Range Death
Kp------- QD306
Ki------- QD307
Kd------- QD308
Diff------ QD309
Death----QD310

Expansion module 4 address

Channel

AD Signal

PID Output
Value

PID Start/Stop
Control Bit

Preset Value

0CH

ID400

ID404

Y400

QD402

1CH

ID401

ID405

Y401

QD403

2CH

ID402

ID406

Y402

QD404

3CH

ID403

ID407

Y403

QD405

PID Start/Stop
Control Bit

Preset Value

PID Parameters: Kp,


Ki,
Kd,
Control
Range Diff, Dead
Range Death
Kp------- QD406
Ki------- QD407
Kd------- QD408
Diff------ QD409
Death----QD410

Expansion module 5 address

Channel

AD Signal

PID Output
Value

0CH

ID500

ID504

Y500

QD502

1CH

ID501

ID505

Y501

QD503

2CH

ID502

ID506

Y502

QD504

PID Parameters: Kp,


Ki,
Kd,
Control
Range Diff, Dead
Range Death
Kp------- QD506
Ki------- QD507
Kd------- QD508

3CH

ID503

ID507

Y503

QD505

Diff------ QD509
Death----QD510

Expansion module 6 address

Channel

AD Signal

PID Output
Value

PID Start/Stop
Control Bit

Preset Value

0CH

ID600

ID604

Y600

QD602

1CH

ID601

ID605

Y601

QD603

2CH

ID602

ID606

Y602

QD604

3CH

ID603

ID607

Y603

QD605

PID Parameters: Kp,


Ki,
Kd,
Control
Range Diff, Dead
Range Death
Kp------- QD606
Ki------- QD607
Kd------- QD608
Diff------ QD609
Death----QD610

Expansion module 7 address

Channel

AD Signal

PID Output
Value

PID Start/Stop
Control Bit

Preset Value

0CH

ID700

ID704

Y700

QD702

1CH

ID701

ID705

Y701

QD703

2CH

ID702

ID706

Y702

QD704

3CH

ID703

ID707

Y703

QD705

Description:
Start signal (Y): when Y is 0, close PID control, when Y is 1, start PID control

4-4. Working mode


There are two ways to set the working mode:
1. XCPpro software
2. FD registers of PLC
XCPpro software:
Open the XCPpro software, click configure/expansion module settings:

PID Parameters: Kp,


Ki,
Kd,
Control
Range Diff, Dead
Range Death
Kp------- QD706
Ki------- QD707
Kd------- QD708
Diff------ QD709
Death----QD710

Set the model and channel parameters in the following window. Then click write to
PLC/ok.
For software version lower than v3.3, please restart the PLC after setting.

FD registers:
The working mode can be voltage 0~5V, 0~10V or current 0~20mA, 4~20mA, set through FD
registers of PLC:
Module

Channels address
0CH~3CH

Module 1

FD8250

Module 2

FD8258

Module 3

FD8266

Module 4

FD8274

Module 5

FD8282

Module 6

FD8290

Module 7

FD8298

Take module 1 as an example


FD8250 H O O O O
0CH
1CH
2CH
3CH

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 FD8250:
Channel 1
Bit7

Bit6

Channel 0

Bit5

00: 1/2 filter


01: no filter
10: 1/3 filter
11: 1/4 filter

Bit4

Bit3

0: voltage
input

0:0~10V
1:0~5V

1: current
input

0:0~20mA
1:4~20mA

00: 1/2 filter


01: no filter
10: 1/3 filter
11: 1/4 filter

Channel 3
Bit15

Bit14

Bit1

Bit0

0: voltage
input

0:0~10V
1:0~5V

1: current
input

0:0~20mA
1:4~20mA

Channel 2

Bit13

00: 1/2 filter


01: no filter
10: 1/3 filter
11: 1/4 filter

Bit2

Bit12

Bit11

0: voltage
input

0:0~10V
1:0~5V

1: current
input

0:0~20mA
1:4~20mA

00: 1/2 filter


01: no filter
10: 1/3 filter
11: 1/4 filter

Bit10

Bit9

Bit8

0: voltage
input

0:0~10V
1:0~5V

1: current
input

0:0~20mA
1:4~20mA

Example: If set working mode to 0~20mA, 4~20mA, 0~10V, 0~5V of module 1 channel 3,
channel 2, channel 1, channel 0, filters are all 1/2 filter, the value in FD8250 is 2301H.

4-5. Exterior connection


When make external connection, please note the following items:
When connect external 24V power, please choose 24V power of PLC to avoid interference.
To avoid interference, please use shield cable and single-point ground with the shield layer.

Voltage input

0CH

1CH

VI2

C3
AI2

2CH

AI3
VI3

VI3+

VI2+

C2

VI3-

AI1
VI1

VI2-

VI1-

VI0+

VI0-

C1
AI0

VI1+

VI0
C0

3CH

Current input

VI2

C3

1CH

AI2+

2CH

AI3
VI3

AI3+

AI2

C2

AI1+

AI0+

AI1-

AI0-

0CH

AI1
VI1

AI3-

C1
AI0

AI2-

VI0
C0

3CH

4-6. AD conversion diagram


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

analog

5v

0~20mA analog input

10v

analog

4~20mA analog input

+16383

+16383
digital

digital

analog

20mA

0 4mA

analog

20mA

4-7. Programming

Example Real-time read the 4 channels data (take expansion 1 as an example)

Explanation:
M8000 is always ON coil, it is ON when PLC is running.
Send channel 0 data to PLC register D0,
Send channel 1 data to PLC register D1,
Send channel 2 data to PLC register D2,
Send channel 3 data to PLC register D3.

5. Analog output module XC-E4DA(-H)

5-1. Specification
XC-E4DA and XC-E4DA-H transform 12 bits digital value to current or voltage output.

AO0

C0

C1

VO0

AO1
VO1

AO

PWR

AO

C2

AO2

C3

VO2

AO3

VO3

Items

Voltage output

Analog output range

DC0~5V, 0~10V
(external load
2K~1M)

resistor

12 bits high precision analog


output
4 channels analog output: voltage
0~5V, 0~10V; current 0~20mA,
4~20mA
As special function module of
XC, 7 modules could be
connected to PLC.
XC-E4DA-H: the power of
analog and digital part is
isolation. Current output is
draw-off current.
Current output

is

DC0~20mA, 4~20mA
(external load resistor is less than 500
)

Digital input range

12 bits binary data

Distinguish Ratio

1/4096(12Bit); the converted data is stored into PLC with the format of
HEX

Integrate precision

0.8%

Convert speed

3ms per channel

Power
using

for

analog

DC 24V10%, 100mA

Install format

Can be fixed with M3 screws or directly installed on orbit of


DIN46277 (width: 35mm)

Exterior size

63mm102mm73.3mm

5-2. Terminals

24V

0V

C0

VO0

.
C2

Channel
CH0

CH1

CH2

CH3

VO2

AO0

C1
.

AO2

C3

VO1
VO3

AO1
AO3

Terminal name

Signal name

AO0

Current output

VO0

Voltage output

C0

CH0 common terminal

AO1

Current output

VO1

Voltage output

C1

CH1 common terminal

AO2

Current output

VO2

Voltage output

C2

CH2 common terminal

AO3

Current output

VO3

Voltage output

C3

CH3 common terminal

24V

+24V power supply

0V

Common terminal of power supply

5-3. I/O address assignment


XC series analog module does not occupy I/O space; the converted data is directly transferred into
PLC register. The PLC register corresponding to the channels are shown as the following:
Channel

Module 1

Module 2

Module 3

Module 4

Module 5

Module 6

Module 7

0CH

QD100

QD200

QD300

QD400

QD500

QD600

QD700

1CH

QD101

QD201

QD301

QD401

QD501

QD601

QD701

2CH

QD102

QD202

QD302

QD402

QD502

QD602

QD702

3CH

QD103

QD203

QD303

QD403

QD503

QD603

QD703

5-4. Working mode


There are two ways to set the working mode:
1. XCPpro software
2. FD registers of PLC
XCPpro software:
Open the XCPpro software, click configure/expansion module settings:

Set the model and channel parameters in the following window. Then click write to
PLC/ok.
For software version lower than v3.3, please restart the PLC after setting.

FD register
The module has two modes for choice: voltage 0~5V, 0~10V, current 0~20mA, 4~20mA. The
modes can be set through FD register of PLC.
Module

Channel address

Take expansion 1 as an example:


FD8250 H O O O O
0CH
1CH
2CH
3CH

0CH~3CH

Module 1

D8250

Module 2

D8258

Module 3

D8266

Module 4

D8274

Module 5

D8282

Module 6

D8290

Module 7

D8298

Every 4 bits of the register define the working mode of one channel. Every register set 4 channels
modes.
Take module 1 as an example:
Register FD8250:
Channel 1
Bit7

Bit6

Bit5

Channel 0
Bit4

0:Voltage
output

0:0~10V
1:0~5V

1:current
output

0:0~20mA
1:4~20mA

Bit3

Bit2

Channel 3

Bit15

Bit14

Bit13

Bit1

Bit0

0: Voltage
output

0:0~10V
1:0~5V

1:Current
output

0:0~20mA
1:4~20mA

Channel 2

Bit12

0: Voltage
output

0:0~10V
1:0~5V

1: current
output

0:0~20mA
1:4~20mA

Bit11

Bit10

Bit9

Bit8

0: Voltage
output

0:0~10V
1:0~5V

1: current
output

0:0~20mA
1:4~20mA

5-5. Exterior connection


When make exterior connection, please see the following items:
When XC-E4DA connects external 24V power, please use the 24V power of PLC to avoid
interference.
The current output of XC-E4DA needs 24V power supply, the module control the circuit
current according to QD value, the module cannot produce current by itself.
The current output of XC-E4DA-H doesnt need 24V power supply, the module control the
circuit current according to QD value, the output current is draw-off mode.
To avoid interference, please use shield cable and single point ground with the shield layer.

C3

VO2-

AO3
VO3

VO3+

AO1
VO1

VO0

AO2
VO2

VO3-

C1

C2

VO2+

AO0

C0

VO1+

VO1-

VO0-

VO0+

Voltage output

AO1+

C1

AO2

C3

VO2

AO3
VO3

AO1

Note:
1. XC-E4DA current output needs external 24V power supply.

AO3+

AO3-

VO1

AO2-

VO0

C2

AO2+

AO0

C0

AO1-

AO0-

AO0+

Current output

2. XC-E4DA-H current output wiring:

AO_+

R<500
C_

5-6. DA convert chart


The relationship between digital input and corresponding analog output is showed in the following
chart:
0~5V analog output

5v

0~10V analog output

10v
analog

analog

digital

+4095

0~20mA analog output

digital

+4095

4~20mA analog output

20mA

20mA

analog

analog

4mA

digital

+4095

digital

+4095

When the digital data exceed 4095, D/A analog output data will keep 5V, 10V or 20mA.

5-7. Programming
Example Real-time write data into 4 channels.
M8000

MOV

D10

QD100

Write data of D10 to channel 0

MOV

D11

QD101

Write data of D11 to channel 1

MOV

D12

QD102

Write data of D12 to channel 2

MOV

D13

QD103

Write data of D13 to channel 3

END

6. Analog output module XC-E2DA(-H)

6-1. Specifications
XC-E2DA and XC-E2DA-H transform 12 bits digital value to current or voltage output.

AO0

C0

C1

AO1
VO1

VO0

AO

PWR

AI

12 bits high precision analog


output
2 channels voltage (0~5V/0
~10V), current (0~20mA/4
~20 mA) output for choice.
As special function module
of XC series, up to 7
modules can be connected to
the PLC.
XC-E2DA-H: the power of
digital and analog part has
isolation. The current output
is draw-off current.

Items

Voltage output

Current output

Analog output

DC 0 to 5V, 0 to 10V
(external load resistor
2K~1M)

DC0 to 20mA, 4 to 20mA


(external load resistor is less
than 500)

Digital input

12 bits

Resolution

1/4095(12 bit); the cover data is stored into PLC in the


form of Hex

General precision

1%

Conversion speed

3ms per channel

Isolation

DC/AC convert, optical-coupling isolate

Power supply for analog using

DC24V10%,100mA

Installation

Fix with M3 screws or install on DIN46277 (width: 35)


leader directly

Dimension

63mm102mm73.3mm

6-2. Terminals

24V

0V

Channel
CH0

CH1

C0

VO0

AO0

C1
.

VO1

AO1

Terminal name

Signal name

AO0

Current output

VO0

Voltage output

C0

CH0 common terminal

AO1

Current output

VO1

Voltage output

C1

CH1 common terminal

24V

+24V power supply

0V

Common terminal of power supply

6-3. I/O address assignment


XC series analog modules dont occupy I/O units, the converted value is sent to PLC register
directly.
The PLC registers are shown as the following:
Channel

Module 1

Module 2

Module 3

Module 4

Module 5

Module 6

Module 7

0CH

QD100

QD200

QD300

QD400

QD500

QD600

QD700

1CH

QD101

QD201

QD301

QD401

QD501

QD601

QD701

6-4. Working mode


There are two ways to set the working mode:
1. XCPpro software
2. FD registers of PLC
XCPpro software:
Open the XCPpro software, click configure/expansion module settings:

Set the model and channel parameters in the following window. Then click write to
PLC/ok.
For software version lower than v3.3, please restart the PLC after setting.

FD registers:
The module output has voltage 0 ~ 5V, 0 ~ 10V, current 0 ~ 20mA, 4 ~ 20mA, set the modes
through the PLC internal special FLASH registers FD.
Module
Channels No.
0CH to 1CH
Module 1

D8250

Module 2

D8254

Module 3

D8258

Module 4

D8262

Module 5

D8264

Module 6

D8268

Module 7

D8272

Take module 1 as an example:


FD8250 H 0 0 0 0
0CH
1CH

Note: As shown in the preceding table, each register set 2 channels mode, each register has 16 bits,

from low bit to high bit, every 4 bits set 1 channel mode.
Take the first module as an example:
Register FD8250:
Channel 1
Bit7

Bit6

Channel 0

Bit5

Bit4

0:voltage
output

0:0 ~10V
1:0 ~ 5V

1:current
output

0:0~20mA
1:4~20mA

Bit3

Bit2

Bit1

Bit0

0:voltage
output

0:0 ~10V
1:0 ~ 5V

1:current
output

0:0~20mA
1:4~20mA

6-5. External connection


When make external connection, please note the following items:
When connect to external +24V power supply, please use 24V power supply of PLC to avoid
interference.
To avoid interference, please use shield cable, and single-point ground with the shield layer.
For XC-E2DA, the 0 ~20 mA /4 ~ 20mA current output need external 24V power supply. The
module doesnt generate current but adjust the circuit current according to the QD value.
For XC-E2DA-H, the 0 ~20 mA /4 ~ 20mA current output doesnt need external 24V power
supply. The module adjusts the circuit current according to the QD value. The output current
is draw-off current.
Note:
1. XC-E2DA current output is sink current, it needs external 24V power supply. The wiring
diagram:

2. XC-E2DA-H current output is draw-off current, it doesnt need external 24V power
supply. The wiring diagram:

AO_+

R<500
C_

6-6. DA conversion diagram


The relationship between digital input value and analog output value is shown as below:
When the input value is larger than 4095, D/A converted analog value will remain 5V, 10V or
20mA.
0~5V analog output

5v

0~10V analog output

10v
analog

analog

digital

+4095

0~20mA analog output

digital

+4095

4~20mA analog output

20mA

20mA

analog

analog

4mA
0

digital

+4095

digital

+4095

6-7. Programming
Real-time write data to 2 channels
M8000

MOV

D10

QD100

Write the value of D10 to channel 0

MOV

D11

QD101

Write the value of D11 to channel 1

END

7. Pt100 temperature control module XC-E6PT(-P)

7-1. Specification
XC-E6PT can collect the temperature signal from PT100 sensor. It doesnt have PID function.
XC-E6PT-P can collect the temperature signal from PT100 sensor, it has PID function.

C0M0

COM2
Y3
C0M1
Y5
Y1
Y2
Y4
Y0

PWR

AI

A0
C0

C1

A1

A2
C2

A3
C3

A5

A4
C4

C5

Item

Platinum thermal resistance input,


Pt100
6 channels input, 6 channels output
2 groups PID parameters (every 3
channels use one group of PID
parameters)
1mA constant current output, will
not be affected by the exterior
environment
Resolution is 0.1
As the special function module of
XC, 7 modules can be connected
to the PLC.

Content

Analog input signal

Pt100 platinum thermal-resistance

Temperature
measurement range

-100 ~500

Digital output bound

-1000~350016 bits with sign bit, binary

Control precision

0.5

Resolution

0.1

Integrate precision

1% (relative max value)

Conversion speed

20ms per channels

Analog power

DC24V10%50mA

Installation format

Fixed with M3 screws or directly installed on orbit of DIN46277


(Width: 35mm)

Dimension

63mm102mm73.3mm

Note:
1. Without signal input, the channel data will be 3500
2. Connect to Pt100 platinum thermal resistance according to actual requirements

7-2. Terminals
0V

24V
C0

A0

.
C1

COM0
.Y0

COM1 COM2
Y2
Y1
.

Y3

A1

A2

A4

C2

C3

A3

C4

Y4
C5

Y5
A5

Channel

Terminal name

Signal name

CH0

A0

0CH PT100 input

C0

0CH common terminal of PT100 input

A1

1CH PT100 input

C1

1CH common terminal of PT100 input

A2

2CH PT100 input

C2

2CH common terminal of PT100 input

A3

3CH PT100 input

C3

3CH common terminal of PT100 input

A4

4CH PT100 input

C4

4CH common terminal of PT100 input

A5

5CH PT100 input

C5

5CH common terminal of PT100 input

Y0

Channel 0 output

Y1

Channel 1 output

Y2

Channel 2 output

Y3

Channel 3 output

Y4

Channel 4 output

Y5

Channel 5 output

COM0

Common terminal of output

COM1

Common terminal of output

COM2

Common terminal of output

24V

+24V power supply

0V

Common terminal of power supply

CH1
CH2
CH3
CH4
CH5
-

7-3. I/O address assignment


XC series analog modules dont occupy I/O units; the converted data is directly transferred into
PLC register.
The PLC registers are shown as the following:

Module 1 address:
Channel

Real-time
temperature

Set
temperature

PID start/stop
bit

0CH

ID100

QD100

Y100

1CH

ID101

QD101

Y101

2CH

ID102

QD102

Y102

3CH

ID103

QD103

Y103

4CH

ID104

QD104

Y104

5CH

ID105

QD105

Y105

PID of first 3
channels

PID of last 3
channels

Kp-----QD106
Ki-----QD107
Kd-----QD108
Diff---QD109

Kp-----QD110
Ki-----QD111
Kd-----QD112
Diff---QD113

PID of first 3
channels

PID of last 3
channels

Kp-----QD206
Ki-----QD207
Kd-----QD208
Diff---QD209

Kp-----QD210
Ki-----QD211
Kd-----QD212
Diff---QD213

PID of first 3
channels

PID of last 3
channels

Kp-----QD306
Ki-----QD307
Kd-----QD308
Diff---QD309

Kp-----QD310
Ki-----QD311
Kd-----QD312
Diff---QD313

PID of first 3
channels

PID of last 3
channels

Kp-----QD406
Ki-----QD407
Kd-----QD408
Diff---QD409

Kp-----QD410
Ki-----QD411
Kd-----QD412
Diff---QD413

Module 2 address:
Channel

Real-time
temperature

Set
temperature

PID start/stop
bit

0CH

ID200

QD200

Y200

1CH

ID201

QD201

Y201

2CH

ID202

QD202

Y202

3CH

ID203

QD203

Y203

4CH

ID204

QD204

Y204

5CH

ID205

QD205

Y205

Module 3 address:
Channel

Real-time
temperature

Set
temperature

PID start/stop
bit

0CH

ID300

QD300

Y300

1CH

ID301

QD301

Y301

2CH

ID302

QD302

Y302

3CH

ID303

QD303

Y303

4CH

ID304

QD304

Y304

5CH

ID305

QD305

Y305

Module 4 address:
Channel

Real-time
temperature

Set
temperature

PID start/stop
bit

0CH

ID400

QD400

Y400

1CH

ID401

QD401

Y401

2CH

ID402

QD402

Y402

3CH

ID403

QD403

Y403

4CH

ID404

QD404

Y404

5CH

ID405

QD405

Y405

0CH

Real-time
temperature
ID500

Set
temperature
QD500

PID start/stop
bit
Y500

1CH

ID501

QD501

Y501

2CH

ID502

QD502

Y502

3CH

ID503

QD503

Y503

4CH

ID504

QD504

Y504

5CH

ID505

QD505

Y505

0CH

Real-time
temperature
ID600

Set
temperature
QD600

1CH

ID601

2CH

Module 5 address:
PID of the first 3
channels

PID of the last 3


channels

Kp-----QD506
Ki-----QD507
Kd-----QD508
Diff---QD509

Kp-----QD510
Ki-----QD511
Kd-----QD512
Diff---QD513

PID start/stop
bit
Y600

PID of the first 3


channels

PID of the last 3


channels

QD601

Y601

ID602

QD602

Y602

3CH

ID603

QD603

Y603

4CH

ID604

QD604

Y604

Kp-----QD606
Ki-----QD607
Kd-----QD608
Diff---QD609

Kp-----QD610
Ki-----QD611
Kd-----QD612
Diff---QD613

5CH

ID605

QD605

Y605

PID of the first 3


channels

PID of the last 3


channels

Kp-----QD706
Ki-----QD707
Kd-----QD708
Diff---QD709

Kp-----QD710
Ki-----QD711
Kd-----QD712
Diff---QD713

Channel

Module 6 address:
Channel

Module 7 address:

0CH

Real-time
temperature
ID700

Set
temperature
QD700

1CH

ID701

QD701

Y701

2CH

ID702

QD702

Y702

3CH

ID703

QD703

Y703

4CH

ID704

QD704

Y704

5CH

ID705

QD705

Y705

Channel

PID start/stop
Y700

Start signal (Y): When Y is 0, close PID control; when Y is 1, start PID control

7-4. Working mode


There are two ways to set the working mode:
1. XCPpro software
2. FD registers of PLC
XCPpro software:
Open the XCPpro software, click configure/expansion module settings:

Set the model and channel parameters in the following window. Then click write to
PLC/ok.
For software version lower than v3.3, please restart the PLC after setting.

FD registers:
Set the filter and control cycle through FD registers of PLC.

channel address
0CH~3CH

4CH~5CH

Module 1

FD8250

FD8251 low byte

Module 2

FD8258

FD8259 low byte

Module 3

FD8266

FD8267 low byte

Module 4

FD8274

FD8275 low byte

Take module 1 as an example:


FD8250
HOOOO
0CH
1CH
2CH
3CH

Module 5

FD8282

FD8283 low byte

FD8251

Module 6

FD8290

FD8291 low byte

Module 7

FD8298

FD8299 low byte

Module

HOOOO
4CH
5CH

Each FD register can set 4 channels parameters. Every 4 bits of the FD register can set one
channel parameters.
Take module 1 as an example:
Register FD8250:
Channel 2
Bit7

Bit6

Channel 1

Bit5

Bit4

0: 2s

1: 20s

001/2 filter
01no filter
101/3 filter
111/4 filter

Bit3

Bit14

Bit0

0: 2s

1: 20s

Bit9

Bit8

0: 2s

1: 20s

Bit1

Bit0

0: 2s

1: 20s

Channel 3

Bit13

Bit12

0: 2s

1: 20s

001/2 filter
01no filter
101/3 filter
111/4 filter

Bit1

001/2 filter
01no filter
101/3 filter
111/4 filter

Channel 4

Bit15

Bit2

Bit11

Bit10

001/2 filter
01no filter
101/3 filter
111/4 filter

Register FD8251:
Channel 5
Bit7
001/2 filter
01no filter
101/3 filter
111/4 filter

Bit6

Channel 4

Bit5

Bit4

0: 2s

1: 20s

Bit3
001/2 filter
01no filter
101/3 filter
111/4 filter

Bit2

Note:
1. When the product is out of factory, the default value is 0, the filter format is 1/2 filter.
2. Each channel parameters include filter mode and control cycle.

3. Control cycle: in the control cycle, PID function controls the temperature according to the
duty ratio which calculates through PID output value.

7-5. Exterior connection


About the external wiring, please see the following items:

When connect 24V power, please use 24V power on PLC main unit to avoid interference.
To avoid interference, please use shield cable to ground.

Input connection:

A2

C3

A3

C4

A4

C5

A5

PT100

C2

PT100

A1

PT100

C1

PT100

A0

PT100

PT100

C0

Output connection:
Output terminals: transistor output terminal please choose DC 5V~30V power supply.
Circuit insulation
PLC interior circuit and output transistor is optical insulation. Each public module is also
separated.
Response time
The time is less than 0.2ms from PLC driving (or cut) optical coupling device to transistor
ON/OFF.
Output current
Each point current is 0.15A to avoid over-heat.
Open circuit leakage current
Below 0.1mA

Power
Heating unit

SSR

PT100 input features:

3500
Digital
output

-100
-1000

Temperature
input

350

7-6. Programming
Example 1: Module 1, PID control for CH0
M8000

M0

END

MOV

K800

QD100

Set channel 0 temperature to 800 (80 C)

MOV

K30

QD106

Set channel 0 parameter Kp to 30

MOV

K5

QD107

Set channel 0 parameter Ki to 5

MOV

K50

QD108

Set channel 0 parameter Kd to 500

MOV

K150

QD109

Set channel 0 parameter Diff to 150


(PID control range is 650~950)

Y100

Start/stop channel 0 PID control

Example 2: XC-E6PT-P module 1, read the temperature of CH0 and CH1 then send to PLC
register D0 and D1, PID control for CH0.

Send temperature of CH0 and CH1 to D0 and D1

M8000

MOV

ID100

D0

MOV

ID101

D1

MOV

K500

QD100

Set value

M8002
Y100: PID start/stop bit

M0

Y100

Set PID parameters

M8002

END

MOV

K100

QD106

MOV

K20

QD107

MOV

K100

QD108

MOV

K100

QD109

8. K type thermocouple temperature control module XC-E6TC(-P)


8-1. Specification
XC-E6TC can collect the temperature but dont have PID function.
XC-E6TC-P can collect the temperature and have PID function.

C0M0

24V

C0M1
Y0

C0M2
Y1

Y3
Y2

Y5
Y4

PWR

AI

TC0+
TC1+
TC2+
TC3+
TC4+
TC5+
TC0TC1TC2TC3TC4TC5-

K type thermocouple sensor signal


input
6 channels input
2 groups PID parameters (every 3
channels have one group PID
parameters)
Built-in cold-terminal compensation
circuit
Resolution is 0.1
As special function module of XC , up
to 7 modules can be connected to PLC

Items

Content

Analog input signal

K type thermocouple

Temperature measurement range

0 ~1000

Digital output range

0~1000016 bits with sign bit, binary

Control precision

0.5

Resolution

0.1

Integrate precision

1% (relative max value)

Conversion speed

20ms per channel

Analog power

DC24V10%, 50mA

Install format

Fixed with M3 screws or directly installed on orbit of


DIN46277 (Width: 35mm)

Dimension

63mm102mm73.3mm

Note:
1. If no signal input, the channel data is 0
2. According to the actual requirement, connect to K type thermocouple
3. The cover of device which installs thermocouple should be connected to the ground.

8-2. Terminals
0V

24V
TCO-

COM0
.Y0

COM1 COM2
Y2
Y1
.

Y3

Y4

Y5

TC0+
TC1+
TC2+_ TC3+
TC4+
TC5+
TC1TC2TC3TC4TC5-

Channel

Terminal name

Signal name

CH0

TC0+

0CH thermocouple input +

TC0-

0CH thermocouple input -

TC1+

1CH thermocouple input +

TC1-

1CH thermocouple input -

TC2+

2CH thermocouple input +

TC2-

2CH thermocouple input -

TC3+

3CH thermocouple input +

TC3-

3CH thermocouple input -

TC4+

4CH thermocouple input +

TC4-

4CH thermocouple input -

TC5+

5CH thermocouple input +

TC5-

5CH thermocouple input -

Y0

0CH output

COM0

0CH common terminal of output

Y1

1CH output

COM1

1CH common terminal of output

Y2

2CH output

COM2

2CH common terminal of output

Y3

3CH output

COM3

3CH common terminal of output

Y4

4CH output

COM4

4CH common terminal of output

Y5

5CH output

COM5

5CH common terminal of output

24V

+24V power supply

0V

Common terminal of power supply

CH1
CH2
CH3
CH4
CH5
CH0
CH1
CH2
CH3
CH4
CH5
-

8-3. I/O address assignment


XC series analog modules dont occupy I/O units, the converted data is directly transferred into
PLC register. The register address:
Module 1:
Channel

Real-time
temperature

Set
temperature

PID start/stop
bit

0CH

ID100

QD100

Y100

1CH

ID101

QD101

Y101

2CH

ID102

QD102

Y102

3CH

ID103

QD103

Y103

4CH

ID104

QD104

Y104

5CH

ID105

QD105

Y105

Channel

Real-time
temperature

Set
temperature

PID start/stop
bit

0CH

ID200

QD200

Y200

1CH

ID201

QD201

Y201

2CH

ID202

QD202

Y202

3CH

ID203

QD203

Y203

4CH

ID204

QD204

Y204

5CH

ID205

QD205

Y205

Channel

Real-time
temperature

Set
temperature

PID start/stop
bit

0CH

ID300

QD300

Y300

1CH

ID301

QD301

Y301

2CH

ID302

QD302

Y302

3CH

ID303

QD303

Y303

4CH

ID304

QD304

Y304

5CH

ID305

QD305

Y305

PID of the first 3


channels

PID of the last 3


channels

Kp-----QD106
Ki-----QD107
Kd-----QD108
Diff---QD109

Kp-----QD110
Ki-----QD111
Kd-----QD112
Diff---QD113

PID of the first 3


channels

PID of the last 3


channels

Kp-----QD206
Ki-----QD207
Kd-----QD208
Diff---QD209

Kp-----QD210
Ki-----QD211
Kd-----QD212
Diff---QD213

PID of the first 3


channels

PID of the last 3


channels

Kp-----QD306
Ki-----QD307
Kd-----QD308
Diff---QD309

Kp-----QD310
Ki-----QD311
Kd-----QD312
Diff---QD313

Module 2:

Module 3:

Module 4:
Channel

Real-time
temperature

Set
temperature

PID start/stop
bit

PID of the first 3


channels

PID of the last 3


channels

0CH

ID400

QD400

Y400

1CH

ID401

QD401

Y401

Kp-----QD406
Ki-----QD407
Kd-----QD408
Diff---QD409

Kp-----QD410
Ki-----QD411
Kd-----QD412
Diff---QD413

2CH

ID402

QD402

Y402

3CH

ID403

QD403

Y403

4CH

ID404

QD404

Y404

5CH

ID405

QD405

Y405

Channel

Real-time
temperature

Set
temperature

PID start/stop
bit

PID of the first 3


channels

PID of the last 3


channels

0CH

ID500

QD500

Y500

1CH

ID501

QD501

Y501

Kp-----QD506
Ki-----QD507
Kd-----QD508
Diff---QD509

Kp-----QD510
Ki-----QD511
Kd-----QD512
Diff---QD513

2CH

ID502

QD502

Y502

3CH

ID503

QD503

Y503

4CH

ID504

QD504

Y504

5CH

ID505

QD505

Y505

0CH

Real-time
temperature
ID600

Set
temperature
QD600

PID start/stop
bit
Y600

PID of the first 3


channels

PID of the last 3


channels

1CH

ID601

QD601

Y601

ID602

QD602

Y602

3CH

ID603

QD603

Y603

Kp-----QD606
Ki-----QD607
Kd-----QD608
Diff---QD609

Kp-----QD610
Ki-----QD611
Kd-----QD612
Diff---QD613

2CH

4CH

ID604

QD604

Y604

5CH

ID605

QD605

Y605

Module 5:

Module 6:
Channel

Module 7:
Channel

Real-time
temperature

Set
temperature

PID start/stop bit

0CH

ID700

QD700

Y700

1CH

ID701

QD701

Y701

2CH

ID702

QD702

Y702

3CH

ID703

QD703

Y703

4CH

ID704

QD704

Y704

5CH

ID705

QD705

Y705

PID of the first 3


channels

PID of the last 3


channels

Kp-----QD706
Ki-----QD707
Kd-----QD708
Diff---QD709

Kp-----QD710
Ki-----QD711
Kd-----QD712
Diff---QD713

Description:
Start signal (Y): When Y is 0, close PID control; when Y is 1, start PID control.

8-4. Working mode


There are two ways to set the working mode:
1. XCPpro software
2. FD registers of PLC
XCPpro software:
Open the XCPpro software, click configure/expansion module settings:

Set the model and channel parameters in the following window. Then click write to
PLC/ok.
For software version lower than v3.3, please restart the PLC after setting.

FD registers:
Set the filter time and control cycle through FD registers of PLC:

Module

Channel address
0CH~3CH

4CH~5CH

Module 1

FD8250

FD8251 Low byte

Module 2

FD8258

FD8259 Low byte

Module 3
Module 4

FD8266
FD8274

FD8267 Low byte


FD8275 Low byte

Module 5

FD8282

FD8283 Low byte

Module 6

FD8290

FD8291 Low byte

Module 7

FD8298

FD8299 Low byte

Take module 1 as an example


FD8250
HOOOO
0CH
1CH
2CH
3CH
FD8251
HOOOO
4CH
5CH

Every 4 bits of the register define one channel working mode. Each bit definition is shown in the
following table:
Take module 1 as an example
Register FD8250:

Channel 1
Bit7

Bit6

Channel 0

Bit5

00: 1/2 filter


01: no filter
10: 1/3 filter
11: 1/4 filter

Bit4
0: 2s

1: 20s

Bit3

Bit14

Bit0
0: 2s

1: 20s

Channel 2

Bit13

00: 1/2 filter


01: no filter
10: 1/3 filter
11: 1/4 filter

Bit1

00: 1/2 filter


01: no filter
10: 1/3 filter
11: 1/4 filter

Channel 3
Bit15

Bit2

Bit12
0: 2s

1: 20s

Bit11

Bit10

Bit9

00: 1/2 filter


01: no filter
10: 1/3 filter
11: 1/4 filter

Bit8
0: 2s

1: 20s

Register FD8251:
Channel 5
Bit7

Bit6

Channel 4

Bit5

00: 1/2 filter


01: no filter
10: 1/3 filter
11: 1/4 filter

Bit4
0: 2s

1: 20s

Bit3

Bit2

00: 1/2 filter


01: no filter
10: 1/3 filter
11: 1/4 filter

Bit1
-

Bit0
0: 2s

1: 20s

Note:
1. When the product is out of factory, the default value is 0, the filter format is 1/2 filter.
2. Each channel parameters include filter mode and control cycle.
3. Control cycle: in the control cycle, PID function controls the temperature according to the
duty ratio which calculates through PID output value.

8-5. Exterior connection


About the exterior connection, please pay attention to the following items:

When connect to 24V power, please use the 24V power supply of PLC to avoid
interference.
To avoid interference, shielding measure is necessary for signal cables.

Input connection:

TC0+
TC1+
TC2+
TC3+
TC4+
TC5+
TC0TC1TC2TC3TC4TC5-

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 0.15A to avoid over-heating.
Open circuit leak current
Below 0.1mA.

Power supply
Heating unit

SSR

8-6. Programming
Example: programming for the first channel.
M8000

M0

MOV

K800

QD100

Set channel 0 value to 800 (80C)

MOV

K30

QD106

Set channel 0 parameter Kp to 30

MOV

K5

QD107

Set channel 0 parameter Ki to 5

MOV

K500

QD108

Set channel 0 parameter Kd to 500

MOV

K150

QD109

Set channel 0 parameter Diff to 150

Y100

Start / stop channel 0 PID

FEND

9. Thermocouple temperature control module XC-E6TCA-P

9-1. Specifications
XC-E6TCA-P (V4) and higher version has better noise immunity ability. XC-E6TCA-P is
temperature control module. As the expansion module of PLC, it has 6 channels temperature
signal input and support various types thermocouple. Each channel can auto-tune PID parameters
and communicate with PLC. So based on this module, you can build your temperature control
system with PLC, LCD screen and computer.

C0

AI0

C1

AI1

C2

AI2

C3

VO0

C4

VO1

PWR

A0

B0

C0

A1

B1

C1

A2

B2

C2

A3

B3

Support various types of thermocouple: K, J, S, E, N, T, R.


DC-DC power supply isolated design, enhance the noise
immunity ability of the system
Temperature display precision 0.1
Each channel has independent PID parameters
PID auto-tune under cooling, heating, transforming status
FROM and TO instructions to communicate with PLC,
enlarge the data storage space.
Up to 7 modules can be connected to the PLC

C3

Item

Specs

Temperature range

Type K: 0 1300Hardware version lower than V6 is


01000
Type S: 01700
Type E: 0600
Type N: 01200
Type B: 01800
Type T: 0400
Type J: 0800
Type R: 01700

Environment temperature

0 ~60

Conservation temperature

-20~70

Environment humidity

5~95%

Conservation humidity

5~95%

Temperature

signal

input

6 channels

Resolution

0.1

Integrated precision

0.1

Transform speed

20ms per channel

Installation

Fix the module with M3 screw or assemble it on DIN46227


rail

Outline dimension

63mm102mm73.3mm

Using requirements:

PLC: hardware version 3.1e and above

XCPpro software: version 3.1b and above

Temperature sensor type: thermocouple K, S, E, N, J, T, R

The measurement temperature should be higher than the module working temperature!

9-2. Terminals

24V
TCO-

0V

COM0
.Y0

COM1 COM2
Y2
Y1
.

Y3

Y4

Y5

TC0+
TC1+
TC2+_ TC3+
TC4+
TC5+
TC1TC2TC3TC4TC5-

Terminal

Explanation

Input terminals
(TC0+,TC0,,TC5+,TC5-)

6
channels

Output terminals
(Y0~Y5)

6
channels

Thermocouple signal input


Type K: 0 1300Hardware version lower than V6 is
01000
Type S: 01700
Type E: 0600
Type N: 01200
Type B: 01800
Type T: 0400
Type J: 0800
Type R: 01700
Analog output

Digital mode: range 0~4095

Digital output

Duty ratio mode: Y outputs when ON

9-3. Working mode


XC-E6TCA-P can connect many types of thermocouples. In order to set the mode, each type will
have an index no.
Index No.

Sensor type

There are two ways to set the working mode:


1. XCPpro software
2. FD registers of PLC
XCPpro software:
Open the XCPpro software, click configure/expansion module settings:

Set the model and channel parameters in the following window. Then click write to
PLC/ok.
For software version lower than v3.3, please restart the PLC after setting.

FD registers:
To choose the thermocouple type for each channel, you should set the data in FD8250 and
FD8251 of PLC.
FD8250:
channel 1
Bit7

Bit6

Bit5

channel 0
Bit4

Write the index NO.

Bit3

channel 3
Bit15

Bit14

Bit13

Bit2

Bit1

Bit0

Write the index NO.


channel 2
Bit12

Write the index NO.

Bit11

Bit10

Bit9

Bit8

Write the index NO.

FD8251:
channel 5

Bit7

Bit6

Bit5

channel 4
Bit4

Write the index NO.

Bit3

Bit2

Bit15

Bit14

Bit1

Bit0

Write the index NO.


/

Bit13

Bit12

Bit11

Bit10

Bit9

Bit8

For example: channel 0 is type S, channel 1 is type N, channel 5 is type E, so FD8250=31H,


FD8251=20H.

9-4. I/O address assignment


Parameters

Explanation
Channel

Ch0

Ch1

Ch5

Module 1

ID100

ID101

ID10

ID105

Module 2

ID200

ID201

ID20

ID205

ID00

ID01

ID0

ID05

Module 7

ID700

ID701

ID70

ID705

Module 1

X100

X101

X10

X105

Module 2

X200

X201

X20

X205

X00

X01

X0

X05

Module 7

X700

X701

X70

X705

Connection state

Module 1

X110

X111

X11

X115

of

Module 2

X210

X211

X21

X215

thermocouple(0 is

X10

X11

X1

X15

connection, 1 is

Module 7

X710

X711

X71

X715

Module 1

Y100

Y101

Y10

Y105

Module 2

Y200

Y201

Y20

Y205

Y00

Y01

Y0

Y05

Display
temperature
Unit: 0.1

PID output
( return to the X
input of PLC )

disconnection)

Enable signal

Module 7

Y700

Y701

Y70

Y705

auto-tune

Module 1

X120

X121

X12x

X125

error signal bit(0

Module 2

X220

X221

X22x

X225

is normal, 1 is

..

Xx20

Xx21

Xx2x

Xx25

error)

Module 7

X720

X721

X72x

X725

PID

Auto-tune triggered signal, start to auto-tune mode when set to 1


PID control bit

After auto-tune, PID parameters and temperature control period value are refreshed, the bit value
is cleared to be 0. The user can read the bit to know the state. 1 means auto-tune is ongoing. 0
means auto-tune has finished.
Digital quantity output range is 0~4095.

PID output

When the PID output is analog quantity (such as steam valve open degree or silicon-controlled

( The result )

conduction angle), the value can be transmitted to the analog quantity output module in order to
realize the control demand.

PID parameters
( P, I, D )
PID

The best PID parameters got from the PID auto-tune.


If the current PID parameters cannot meet the control requirements, users can set the experience
PID parameters to make the module work according to the user setting value.

calculation

PID arithmetic is effective in the range of T (setting temperature) Diff. In real temperature

range ( Diff )

control environment, when the temperature is lower than T- Diff, the PID output is the maximum

Unit: 0.1

value; when the temperature is higher than T+Diff, the PID output is the minimum value.

Temperature
difference value
Unit: 0.1

( sampling temperature value + temperature difference value ) / 10 = display temperature. At


the time the display temperature is the most close to the real temperature. This parameter is a
sign value with the unit of 0.1 , the value is retained when th power is cut off, the defaulted
value is 0.

Set temperature
Unit: 0.1

The target temperature of the control system. Range from 0~1000 , precision degree is 0.1 .

Temperature

The temperature control period range from 0.5 to 200 seconds, the minimum precision is 0.1

control period

second. The set value = real value 10. For example: if the real temperature control period is

Unit: 0.1s

0.5 seconds, user should set 5 seconds in the module.


If user realizes that the environment temperature is different from display temperature, they can
write the correct environment temperature into the module. Then the module will calculate the
temperature difference and save it.
Temperature difference = adjusting environment temperaturesampling temperature. Unit:

Adjusting

0.1. For example, under the caloric balance condition, users measured the environment

environment

temperature is 60 with mercury thermometer, but the display temperature is 55 ( sampling

temperature

temperature is 550 ), temperature difference is 0. At this time, users can set the parameter to be

Unit: 0.1

600, then the temperature difference is 50 ( 5 C ).


Display temperature = ( 550 + 50 ) / 10 = 60 C.
**Attention: when setting the adjusting environment temperature, make sure it is the same as
environment temperature. It is very important because the incorrect parameter will result in
mistake of calculating temperature difference and affect the display temperature.

auto-tune
range

output

The auto-tune output unit is percent. 100 means the duty ratio is 100% of the full-scale output,
80 means the duty ratio is 80% of the full-scale output.

9-5. Read and write address


When using the module, it needs to write and read the parameters; the parameter addresses are
shown as below:
1. The address of read instruction (FROM)
Address

Description

K0

PID control bit

K1

Ch0

PID output (the result)

K2

Ch1

PID output (the result)

K6

Ch5

K7

:
PID output (the result)
PID parameter P

K8

Ch0

K9

PID parameter I
PID parameter D

K10

PID parameter Diff

K11

PID parameter P

K12

Ch1

K13
K14

PID parameter I
PID parameter D
PID parameter Diff

K27

:
PID parameter P

K28

PID parameter I
Ch5

K29

PID parameter D

K30

PID parameter Diff

K31

Ch0

Temperature difference value

K32

Ch1

Temperature difference value

K36

Ch5

:
Temperature difference value

2. The address of write instruction (TO)


Address

Description

K0

PID control bit

K1

Ch0

Setting temperature

K2

Ch1

Setting temperature

:
K6

:
Ch5

K7
K8
K9

:
Setting temperature
PID parameter P

Ch0

PID parameter I
PID parameter D

K10

PID parameter Diff

K11

PID parameter P

K12

Ch1

K13
K14

PID parameter I
PID parameter D
PID parameter Diff

K27

PID parameter P

K28

PID parameter I
Ch5

K29

PID parameter D

K30

PID parameter Diff

K31

Ch0

Temperature control period

K32

Ch1

Temperature control period

K36

Ch5

Temperature control period

K37

Ch0

Adjusting environment temperature

K38

Ch1

Adjusting environment temperature

K42

Ch5

Adjusting environment temperature

K43

Ch0

Auto-tune output range

K44

Ch1

Auto-tune output range

K48

Ch5

Auto-tune output range

K49

Ch0

Temperature difference value

K50

Ch1

Temperature difference value

K54

Ch5

Temperature difference value

The module can save set temperature, PID parameters (P, I, D, Diff...), temperature difference
value, temperature control period, auto-tune output range, etc. The module will save the
parameters after auto-tune finished or user modify them.
The defaulted value of the parameters:
Parameter
Setting temperature ( 0.1C )

PID parameters

Defaulted value
CH0

CH1

CH2

CH3

CH4

CH5

40

40

40

40

40

40

1200

1200

1200

1200

1200

1200

300

300

300

300

300

300

Diff

10

10

10

10

10

10

20

20

20

20

20

20

Temperature control period


( unit: 0.1s )
Temperature difference

( Sign value )
Auto-tune output range

100

100

100

100

100

100

9-6. Working process and principle


The module work process is shown as below:
When the module power on, it reads the PID parameters, target temperature, temperature control
period, auto-tune output range. Even the module powers off and power on again, these parameters
are still there.

PID parameters set


by user

PID
parameters
modified by module
after auto-tune

Setting temperature, temperature


control period, temperature difference
value, auto-tune output range
( set value or defaulted value )

Write into Flash-ROM, read them


out when the module power on
After power on and read all the parameters, the module starts to collect the temperature. Then
write the target temperature, temperature control period, auto-tune output range into the module.
The module judges the enable signal of each channel, if the signal is ON, it starts the PID control
for the object.
Meanwhile, the module will judge if there is auto-tune trigger signal.
If the trigger signal is ON, when the rise edge coming, the auto-tune process will begin and the
state bit will be set ON; when the auto-tune process is completed, state bit and trigger signal will
be set OFF; then the module enter into PID control.
If the auto-tune trigger signal is not ON, the module will keep doing PID control.
Notes:
The module does PID control process according to PID parameters, target temperature,
temperature control period. If the temperature control period is 0, this channel will not output and
only collect temperature.
The control process chart is as below:

No
The module
power on

Collect
temperature

Channel
enable bit is
ON?
Yes
PID control

No

No
PID control bit is
ON?
Yes
Auto-tune control

Auto-tune process
ends,
auto-tune
control bit will be
set OFF

9-7. FROM and TO instruction


9-7-1. Explanation of the instruction
PLC can read and write parameters of XC-E6TCA-P via FROM and TO instruction.
The first module no. is K0.
1. Read instruction: FROM
This instruction can read the data from the module. It can divide into bit and word operation.
(1) word operation

Function: read the data of the module and save them in PLC register, object operand unit is word.
Operand explanation:

S1: target module number. Operand: K, TD, CD, D, FD.


S2: the data head address of the module. Operand: K, TD, CD, D, FD.
S3: the register quantity (how many words). Operand: K, TD, CD, D, FD.
D1: the register head address of the PLC.
(1) bit operation

Function: read the data of the module and save them in PLC coil, object operand unit is bit.
Operand explanation:
S1: target module number. Operand: K, TD, CD, D, FD.
S2: the data head address of the module. Operand: K, TD, CD, D, FD.
S3: the data quantity (how many bits). Operand: K, TD, CD, D, FD.
D1: the coil head address of the PLC. Operand: M, Dn.m.
2. Write instruction: TO
This instruction can write the data to the module. It can divide into bit and word operation.
(1) word operation

Function: write the data of PLC register to the module, object operand unit is word.
Operand explanation:
D1: target module number. Operand: K, TD, CD, D, FD.
D2: the head address of the module. Operand: K, TD, CD, D, FD.
D3: the register quantity (how many words ). Operand: K, TD, CD, D, FD.
S1: the register head address of the PLC.
(2) bit operation

Function: write the data of PLC coil to the module, object operand unit is bit.
Operand explanation:
D1: target module number. Operand: K, TD, CD, D, FD.
D2: the head address of the module. Operand: K, TD, CD, D, FD.
D3: the data quantity (how many bits ). Operand: K, TD, CD, D, FD.
S1: the coil head address of the PLC. Operand: M, Dn.m.

9-7-2. Application of the instruction


1. Set the target temperature
M1
TO

Explanation:
PLC register

K0

K1

K1

D0

module address

D0

K1

First save target temperature in D0, when set on M1, the data of D0 will write to module address K1( channel
0 set temperature ).
D0=200 means the target temperature is 200 C.
Operand meaning:
TO: write instruction
K0: the module number is 0
K1: the data address in the module
K1: write word quantity is 1 word
D0: the PLC register saved the data

2. Set the temperature control period


M1
TO

Explanation:
PLC register
D10

K0

K31

K1

D10

module address
K31

Write the temperature control period ( D10 ) to module channel 0 ( K31 ) when M1 is set on.
D10 = 25 means the temperature control period is 2.5 seconds.
Operand meaning:
TO: write instruction
K0: module number is 0
K31: the data address in the module
K1: word quantity is 1 word
D10: the PLC register saved the data

3. Auto-tune output range


M1
TO

Explanation:
PLC register

K0

K43

K1

D20

module address

D20

K43

Write the auto-tune output range ( D20 ) to module channel 0 ( K43 ) when M1 is set on.
D20 = 80 means the auto-tune output range is 80% of the full-scale.
Operand meaning:
TO: write instruction
K0: module number is 0
K43: the data address in the module
K1: write word quantity is 1 word
D20: the PLC register saved the data
4. Set on the PID control bit
M100
TO

Explanation:
PLC coil
M0
M1
M2
M3
M4
M5

K0

K0

K6

M0

module address
K0 bit 0
K0 bit 1
K0 bit 2
K0 bit 3
K0 bit 4
K0 bit 5

Write M0~M5 to the module address K0 when M100 is set on. If M0 = 1, start the auto-tune process of
channel 0. If M1 = 1, start the auto-tune process of channel 1......
Operand meaning:
TO: write instruction
K0: module number is 0
K0: the data address in the module
K6: the write bit quantity is 6 bits
M0: the head address of the data in the PLC.

5. Read the auto-tune state bit


M100

FROM
Explanation:
PLC coil

K0

K0

K6

M10

module address

M10
M11
M12
M13
M14
M15

K0 bit 0
K0 bit 1
K0 bit 2
K0 bit 3
K0 bit 4
K0 bit 5

Read PID control bit of every channel and save them in M10~M15. If M10 is ON, then channel 0 is doing
auto-tune; if M10 is OFF, the auto-tune process is completed or never begins. If M11 is ON, the channel 1 is
doing auto-tune.......
Operand meaning:
FROM: read instruction
K0: the module number is 0
K0: the data address in the module
K6: read bit quantity is 6 bits
M10: the head address of the data saved in the PLC
6. Read PID parameters
M100

FROM
Explanation:
PLC register
D30
D31
D32
D33

K0

K7

K4

D30

module address
K7
K8
K9
K10

read the PID parameters (channel 0) and save them in D30~D33 of the PLC.
D30 = P, D31 = I, D32 = D, D33 = Diff parameter.
Operand meaning:
FROM: read instruction
K0: the module number is 0
K7: the data address of the module
K4: read word quantity is 4 words
D30: the head address of the data saved in the PLC

7. Write the PID parameters


M100
TO

Explanation:
PLC register

K0

K27

K4

D40

module address

D40
D41
D42
D43

K27
K28
K29
K30

Users can save the PID parameters in D40~D43 then write them to the module channel 5.
Operand meaning:
TO: write instruction
K0: the module number is 0
K27: the data address in the module
K4: write word quantity is 4 words
D40: the head address of the data saved in the PLC
8. Open the enable bit
Explanation:
For module number one, channel 0~5 are corresponding to Y100~Y105; for module number two, channel 0~5
are corresponding to Y200~Y205....... So set on the corresponding enable bit to start the PID control for the
channel.
9. Read PID output
M100

FROM
Explanation:
PLC register
D50
D51
D52
D53
D54
D55

K0

K1

K6

D50

module address
K1
K2
K3
K4
K5
K6

During PID control process, users can read PID output of every channel and save them in D50~D55.
Operand meaning:
FROM: read instruction
K0: the module number is 0

K1: data address in the module


K6: read word quantity is 6 words
D50: the head address of data in the PLC

9-8. Programming
For this example, we will control 5 channels temperature by using XC-6TCA-P.
The whole control system includes TP series HMI, XC series PLC, XC-6TCA-P, K type thermocouple, heating
resistor and other devices. The system chart is shown as following:

PLC

HMI

K type thermocouple
XC-E6TCA-P

Heating resistor

Target object

The control processes are as the following:


1. Power on the XC-6TCA-P to read the current temperature, display them on the HMI.
2. Write the target temperature, turn on write target temperature button on the HMI, the value will be
written into XC-6TCA-P.
3. If user wants to modify the default PID parameters, input the PID value and turn on PID enable bit
button on the HMI, XC-6TCA-P will enter PID control process.
4. If XC-6TCA-P needs to auto-tune, turn on the auto-tune state bit then turn on auto-tune control bit on
the HMI to start the auto-tune process.
5. To monitor the auto-tune state bit, you can see if the auto-tune process is over.
6. Turn on read PID parameters to read the PID parameters of each channel.
7. If you want to adjust the ambient temperature, push the adjust ambient temperature button to enter the
adjustment screen.
First of all, set the thermocouple types in the XCPpro software. As the 0~4 channels are K type thermocouple,
set FD8250 to 1111H, FD8251 to 01H.
Next, please see the corresponding address of PLC and XC-6TCA-P.

PLC
M10-M14
M100-M104
D4000-D4004
D4050-D4069
D10-D14

XC-6TCA-P
K0
Y100-Y104
K1-K5
K7-K26
K37-K40

Remark
Self-study enable bit
0~4 channel PID enable bit
0~4 channel target temperature
0~4 channel P,I,D,DIFF values
0~4 channel adjustment temperature

The HMI screens are as the following:

M1

M100~M104

M10~M14

M2

M3

M6

M5

The ladder chart:

M1
TO

K0

D4000

Write channel 0~4 target temperature into


XC-6TCA-P address K1~K5

MOV

D4010 D4053

Move the value of D4010 to D4053, (channel 0 DIFF


value)

MOV

D4010 D4057

Move the value of D4010 to D4057, (channel 1 DIFF


value)

MOV

D4010 D4061

Move the value of D4010 to D4061, (channel 2 DIFF


value)

MOV

D4010 D4065

Move the value of D4010 to D4065, (channel 3 DIFF


value)

MOV

D4010 D4069

Move the value of D4010 to D4069, (channel 4 DIFF


value)

K7

K20 D4050

Write the value of D4050-D4069 into K7-K26,(channel


0~4 P,I,D,DIFF value)

K1

K5

M2

TO

K0

M5
FMOV

TO

K0

D4020

D10

K5

Write the value of D4020 to D10-D14, (ambient


temperature)

K5

D10

Write the value of D10-D14 to K37-K41, (channel

K37

0~4 adjust ambient temperature)


M6

S0
(
M10

M11

M12

M13

M14

S0
S )

M100
( S )

M101
( S )

Set on M6 to enter process S0

Set on M100 when M10 is on

Set on M101 when M11 is on

M102
( S )

Set on M102 when M12 is on

M103
( S )

Set on M103 when M13 is on

M104
( S )

Set on M104 when M14 is on

STL S0
S0

M4

T0
(

K5
)

Process S0 is on, delay 5ms

T0

M4
TO

K0

K0

M10

K5

M4
( S )

Write the value of M10~M14 to K0 (self-study trigger


bit)
M4 is self-study process sign bit

M4 M8013
FROM

K0

K0

M10 M11 M12 M13 M14

T1
(

T1

M10

K5

K5
)

M4
( R )

Read the value of K0 to M10~M14 every 1s, to see if


the self-study process has been finished.
If the self-study has been finished or never begun,
delay 5ms

After 5ms, reset M4.

S0
( R )

Reset process S0

K20 D4050

Read the P, I, D, DIFF value of channel 0~4

STLE
M3
FROM

K0

K7

M4 M8012

M100

M101

M102

M103

M104

Read the P, I, D, DIFF value every 100ms

Y100
(
)

Open channel 0 PID control bit

Y101
(
)

Open channel 1 PID control bit

Y102
(
)

Open channel 2 PID control bit

Y103
(
)

Open channel 3 PID control bit

Y104
(
)

Open channel 4 PID control bit

10. XC-E3AD4PT2DA

10-1. Specifications

C0

AI0

C1

AI1

C2

AI2

C3

VO0

C4

VO1

PWR

extend cable

A0

B0

C0

A1

B1

C1

A2

B2

C2

A3

B3

C3

ITEMS
Analog Input

3 channels 14 bits current input, 4


channels PT100 temperature input and
2 channels 10 bits voltage output
3 channels current 0~20mA, 4~20mA
input (selectable) and 2 channels
voltage
0~5V,
0~10V
output
(selectable), set via the software
Pt resistor signal input (PT100)
3 channels AD and 4 channels PT input,
have PID function
Up to 7 modules can be connected to
the PLC

Analog Current Input (AD)

Temperature Input
(PT)

Analog Voltage Output


(DA)

DC0~20mA4~20mA

PT100

-100~350

Temperature range

Maximum Output
range

DC0~40mA

Analog Output range

DC0~5V0~10V
External load resistor
(2K~1M)

Digital Input range

10 bits binary (0~1023)

-1000~3500

Digital Output range

1/16383(14Bits); the converted


data is saved into the PLC
(14Bits) in the form of Hex.

Resolution

PID Output Value

0.5
20ms per channel

for

1/1023(10Bits);
the
converted data is saved
into the PLC (10Bits) in
the form of Hex.
-

1%

Conversion Speed

Installation

0.1

0~4095

General Precision
Power Supply
Analog Using

14 bits binary (0~16383)

1%
3ms per channel

DC24V10%,100mA
Fix with M3 screws or install on DIN46277 (Width: 35mm) leader directly

Dimension

63mm102mm73.3mm

10-2. Terminals
0V

24V

B0

A0

C0
C0

AI0
A1

C1
B1

AI1
C1

C2
A2

AI2
B2

C3
.
C2

VO0
A3

C4
B3

VO1
C3

Channel

Terminal name

Signal name

0CH

AI0

0CH current input

C0

0CH common terminal of current input

AI1

1CH current input

C1

1CH common terminal of current input

AI2

2CH current input

C2

2CH common terminal of current input

A0

0CH temperature signal input

B0

C0

0CH input common terminal

A1

1CH temperature signal input

B1

C1

1CH input common terminal

A2

2CH temperature signal input

B2

C2

2CH input common terminal

A3

3CH temperature signal input

B3

C3

3CH input common terminal

VO0

0CH voltage output

C3

0CH common terminal of voltage output

VO1

1CH voltage output

C4

1CH common terminal of voltage output

24V

+24V power supply

0V

Common terminal of power supply

1CH
2CH
0CH

1CH

2CH

3CH

0CH
1CH
-

10-3. I/O address assignment


XC series analog modules do not occupy I/O units, the converted value is sent to PLC register directly.
The PLC register addresses are shown as the following:
Module 1 addresses:
Channel

AD Signal

PID Output
Value

PID start/stop
bit

Preset Value

0CH

ID100

ID107

Y100

QD102

1CH

ID101

ID108

Y101

QD103

2CH

ID102

ID109

Y102

QD104

Channel

PT100 Signal

PID Output
Value

PID start/stop
bit

Preset Value

3CH

ID103

ID110

Y103

QD105

4CH

ID104

ID111

Y104

QD106

5CH

ID105

ID112

Y105

QD107

6CH

ID106

ID113

Y106

QD108

Channel

DA Signal

0CH

QD100

1CH

QD101

PID parameter: Kp,


Ki, Kd, Diff, Death

Kp------- QD109
Ki------- QD110
Kd------- QD111
Diff------ QD112
Death---- QD113

Module 2 addresses:
Channel

AD Signal

PID Output
Value

PID start/stop
bit

Preset Value

0CH

ID200

ID207

Y200

QD202

1CH

ID201

ID208

Y201

QD203

2CH

ID202

ID209

Y202

QD204

Channel

PT Signal

PID Output
Value

PID start/stop
bit

Preset Value

3CH

ID203

ID210

Y203

QD205

4CH

ID204

ID211

Y204

QD206

5CH

ID205

ID212

Y205

QD207

6CH

ID206

ID213

Y206

QD208

Channel

DA Signal

0CH

QD200

1CH

QD201

PID parameter: Kp,


Ki, Kd, Diff, Death

Kp------- QD209
Ki------- QD210
Kd------- QD211
Diff------ QD212
Death---- QD213

Module 3 addresses:
Channel

AD Signal

PID Output
Value

PID start/stop
bit

Preset Value

0CH

ID300

ID307

Y300

QD302

1CH

ID301

ID308

Y301

QD303

2CH

ID302

ID309

Y302

QD304

Channel

PT Signal

PID Output
Value

PID start/stop
bit

Preset Value

3CH

ID303

ID310

Y303

QD305

4CH

ID304

ID311

Y304

QD306

5CH

ID305

ID312

Y305

QD307

6CH

ID306

ID313

Y306

QD308

Channel

DA Signal

0CH

QD300

1CH

QD301

PID parameter: Kp,


Ki, Kd, Diff, Death

Kp------- QD309
Ki------- QD310
Kd------- QD311
Diff------ QD312
Death---- QD313

Module 4 addresses:
Channel

AD Signal

PID Output
Value

PID start/stop
bit

Preset Value

0CH

ID400

ID407

Y400

QD402

1CH

ID401

ID408

Y401

QD403

2CH

ID402

ID409

Y402

QD404

Channel

PT Signal

PID Output
Value

PID start/stop
bit

Preset Value

3CH

ID403

ID410

Y403

QD405

4CH

ID404

ID411

Y404

QD406

5CH

ID405

ID412

Y405

QD407

6CH

ID406

ID413

Y406

QD408

Channel

DA Signal

0CH

QD400

1CH

QD401

PID parameter: Kp,


Ki, Kd, Diff, Death

Kp------- QD409
Ki------- QD410
Kd------- QD411
Diff------ QD412
Death---- QD413

Module 5 addresses:
Channel

AD Signal

PID Output
Value

PID start/stop
bit

Preset Value

0CH

ID500

ID507

Y500

QD502

1CH

ID501

ID508

Y501

QD503

2CH

ID502

ID509

Y502

QD504

Channel

PT Signal

PID Output
Value

PID start/stop
bit

Preset Value

3CH

ID503

ID510

Y503

QD505

4CH

ID504

ID511

Y504

QD506

5CH

ID505

ID512

Y505

QD507

6CH

ID506

ID513

Y506

QD508

Channel

DA Signal

0CH

QD500

1CH

QD501

PID parameter: Kp,


Ki, Kd, Diff, Death

Kp------- QD509
Ki------- QD510
Kd------- QD511
Diff------ QD512
Death---- QD513

Module 6 addresses:
Channel

AD Signal

PID Output
Value

PID start/stop
bit

Preset Value

0CH

ID600

ID607

Y600

QD602

1CH

ID601

ID608

Y601

QD603

2CH

ID602

ID609

Y602

QD604

Channel

PT Signal

PID Output
Value

PID start/stop
bit

Preset Value

3CH

ID603

ID610

Y603

QD605

4CH

ID604

ID611

Y604

QD606

5CH

ID605

ID612

Y605

QD607

6CH

ID606

ID613

Y606

QD608

Channel

DA Signal

0CH

QD600

1CH

QD601

PID parameter: Kp,


Ki, Kd, Diff, Death

Kp------- QD609
Ki------- QD610
Kd------- QD611
Diff------ QD612
Death---- QD613

Module 7 addresses:
Channel

AD Signal

PID Output
Value

PID start/stop
bit

Preset Value

0CH

ID700

ID707

Y700

QD702

1CH

ID701

ID708

Y701

QD703

2CH

ID702

ID709

Y702

QD704

PID parameter: Kp,


Ki, Kd, Diff, Death
Kp------- QD709
Ki------- QD710
Kd------- QD711

Channel

PT Signal

PID Output
Value

PID start/stop
bit

Preset Value

3CH

ID703

ID710

Y703

QD705

4CH

ID704

ID711

Y704

QD706

5CH

ID705

ID712

Y705

QD707

6CH

ID706

ID713

Y706

QD708

Channel

DA Signal

0CH

QD700

1CH

QD701

Diff------ QD712
Death---- QD713

Description:
Start signal (Y): when Y is 0, close PID control, when Y is 1, start PID control

10-4. Working mode


There are two ways to set the working mode:
1. XCPpro software
2. FD registers of PLC
XCPpro software:
Open the XCPpro software, click configure/expansion module settings:

Set the model and channel parameters in the following window. Then click write to PLC/ok.
For software version lower than v3.3, please restart the PLC after setting.

FD registers:
The working mode can be set through special FLASH data register FD of PLC.
Module

Register address

Module 1

FD8250 , FD8251, FD8252

Module 2

FD8258, FD8259, FD8260

Module 3

FD8266, FD8267, FD8268

Module 4

FD8274, FD8275, FD8276

Module 5

FD8282, FD8283, FD8284

Module 6

FD8290, FD8291, FD8292

Module 7

FD8298, FD8299, FD8270

Note: As shown in the preceding table, each


register defines 4 channels mode, each
register has 16 bits. From low bit to high
bit, every 4 bits separately set 4 channels
mode.

Each bit definition is shown in the following table:


Take module 1 as an example:

Take module 1 as an example:


FD8250 H O O O O
0CH (AD)
1CH (AD)
2CH (AD)
3CH (PT)
FD8251
HOOOO
4CH (PT)
5CH (PT)
6CH (PT)
0CH (DA)
FD8252 H O O O O
1CH (DA)

Register FD8250:
Input CH 1 (AD)
Bit7

Bit6

Input CH 0 (AD)

Bit5

00: 1/2 filter


01: no filter
10: 1/3 filter
11: 1/4 filter

Bit4
0:0~20mA
1:4~20mA

Bit3

Bit2

00: 1/2 filter


01: no filter
10: 1/3 filter
11: 1/4 filter

Input CH 3 (PT)
Bit15

Bit14

Bit0

0:0~20mA
1:4~20mA

Input CH 2 (AD)

Bit13

00: 1/2 filter


01: no filter
10: 1/3 filter
11: 1/4 filter

Bit1

Bit12

Bit11

Bit10

00: 1/2 filter


01: no filter
10: 1/3 filter
11: 1/4 filter

Bit9

Bit8

0:0~20mA
1:4~20mA

Low byte of register FD8251:


Input CH 5 (PT)
Bit7

Bit6

Input CH 4 (PT)

Bit5

00: 1/2 filter


01: no filter
10: 1/3 filter
11: 1/4 filter

Bit4

Bit3

Bit2

00: 1/2 filter


01: no filter
10: 1/3 filter
11: 1/4 filter

Output CH 0 (DA)
Bit15

Bit14

Bit1

Bit0

Input CH 6 (PT)

Bit13

Bit12

0 :0~10V
1 :0~5V

Bit11

Bit10

Bit9

00: 1/2 filter


01: no filter
10: 1/3 filter
11: 1/4 filter

Bit8

Low byte of register FD8252:


Bit7

Bit6

Output CH 1 (PT)
Bit5

Bit4

Bit3

Bit2

Bit1

Bit0

0 :0~10V
1 :0~5V

10-5. External Connection


Please note the following items:
When connect external 24V power supply, please use the 24V power supply of PLC to avoid
interference.
To avoid interference, please use shield cable, and single-point ground with the shield layer.
Temperature signal input:
.
C1

B1

A2

B2

C2

A3

C3

B3

PT100

A1

PT100

C0

PT100

B0

PT100

A0

C0

C1

AI1

C2

C3

C4

VO1+

VO0+

VO0

VO1-

AI2+

AI2

VO0-

AI2-

AI1+

AI0+

AI0

AI1-

0V

AI0-

24V+

Analog wiring:

VO1

10-6. AD conversion Diagram


The relationship between the analog input and the converted digital value is shown as below:
0~20mA analog input

4~20mA analog input

+16383

+16383
digital

digital

analog

0 4mA

20mA

analog

20mA

The relationship between the digital input and corresponding analog output is shown as below:
0~5V analog output

0~10V analog output

5v

10v
analog

analog

digital

+1023

digital

+1023

Note: When the output value is larger than 1023, D/A converted analog value will remain 5V or 10V
PT100 input features:
PT100 input

3500
Digital
output

-100
-1000

Temperature
input

350

10-7. Programming
Example: Real-time read the data of 7 channels, write data to 2 channels (take module 1 as an example)
M8000

MOV

ID100

D0

Send AD value of CH0 to data register D0

MOV

ID101

D1

Send AD value of CH1 to data register D1

MOV

ID102

D2

MOV

ID103

D3

MOV

ID104

D4

MOV

ID105

D5

MOV

ID106

D6

MOV

D10

QD100

MOV

D11

QD101

END

Send AD value of CH2 to data register D2


Send temperature value of CH3 to data register D3
Send temperature value of CH4 to data register D4
Send temperature value of CH5 to data register D5
Send temperature value of CH6 to data register D6
Write the value of D10 to output channel 0
Write the value of D11 to output channel 1

11. Analog and temperature module XC-E2AD2PT2DA

11-1. Specifications
XC-E2AD2PT2DA as the PID temperature control module, support 2-channel and 16-bit precise analog input,
2-channel PT100 temperature input, and 2-channel 10-bit precise analog output. This module integrates
2-channel of temperature input, has the function of PID auto-tune, independent PID parameters setting,
communication with PLC and so on. Based on this module, user can build a distributed temperature control
system with PLC, HMI and computer.

C0

AI0

C1

AI1

C2

AI2

C3

VO0

C4

VO1

PWR

A0

B0

C0

A1

B1

C1

A2

B2

C2

A3

B3

C3

Items

Analog inputAD
Current

020mA
420mA

Voltage

05V
010V

Analog input

Temperature range
Maximum input range

Analog output range

2-channel and 16-bit precise analog input, 2-channel PT100


temperature input, and 2-channel 10-bit precise analog output.
2-channel current(0~20mA,4~20mA) and voltage(0~5V,0~10V)
can be selected, set through XCPpro software.
2-channel AD and 2-channel PT input, PID function.
DC-DC power separating, enhance the anti-interference ability
of system.
Temperature precision is 0.01.
Set the PID parameters of each temperature channel
independently, has separate register address space.
Support PID real-time auto-tune. Allow the device auto-tune in
different conditions (Cold status, heating status, transition status
etc), then get the suitable PID parameters.
Exchanging data based on PLC communication instructions:
FROM and TO.
As the special function module of XC series, 7 modules can be
connected at most.

040mA

Temperature
inputPT

Analog voltage output


DA

PT100

-100~327

Voltage

010V05V

Current

020mA4
20mA

Digital input range

Digital output range

10 bits binary
0~1023

16 bits binary data


0~65535

-10000~32767

1/65535 (16Bit)

0.01

Resolution
PID output value

0~4095

General precision

0.01

for

1/1023(10Bit)
0.8%

2ms/1 channel

Power
supply
analog using

0.8%

Conversion speed

data

2ms/1 channel

DC24V10%100mA
Fixed with M3 screws or directly installed on orbit of DIN46277
(Width: 35mm)

Installation

Application environment

PLC: V3.1f and higher versions (Hardware version).


Programming software: XCPPro V3.1b and higher versions.
Temperature sensor: Platinum resistance PT100.

11-2. Terminals

24V
A0

0V
B0

Name

Input
terminals

AO0
C0

A1

B1

C1

AI0

CI0

VO1
VI1

CO1
AO1
AI1

CI1

Terminals
definition
B0B1
VI0VI1
AI0AI1

Output
terminals

VI0

VO0
CO0

VO0VO1
AO0AO1

Descriptions
Temperature
input channels
Analog input
channels
Analog output
channels

Analog input PT100 temperature sensor -100


327
Voltage
0~10V or 0~5V
Current

0~20mA or 4~20mA

Voltage

Digital valuerange0-1023

Current

Digital valuerange0-1023

The input wiring diagram of PT100 (Three-line):

B0
C0
(GND)

A0

The wiring method of regular PT100 resistor


(Three-line) can be distinguished according to the wire
color, two of the three wires with the same color should
be connected to B0 and C0, and the remaining terminal
should be connected to A0.

11-3. Data address description


11-3-1. Working mode definition
There are two ways to set the working mode (The results of the two ways are the same):
1 Set through the XCPpro software
2 Set through Flash register

XCPpro software:
Open the XCPpro softwareclick configure/expansion module settings:

Then select corresponding module and configuration information:

Choose the correct module and channel parameters.


After finishing configuration, please click write to plc, then click OK. The configurations will take effect
after downloading and running the program.
FD registers:
For XC-E2AD2PT2DA module, user can set the parameters through Flash register FD (special data register of
PLC):
Module

Register address

Module 1

FD8250

FD8251

Module 2

FD8258

FD8259

Module 3

FD8266

FD8267

Module 4

FD8274

FD8275

Module 5

FD8282

FD8283

Module 6

FD8290

FD8291

Module 7

FD8298

FD8299

Next we take module 1 as an example to show how to set the parameters:


Register FD8250:
Bit7

Bit15

Bit6

Bit14

PT CH 1
Bit5
-------AD CH 1
Bit13

Bit4

Bit12

Bit3

Bit11

Bit2

Bit10

PT CH 0
Bit1
-------AD CH 0
Bit9

Bit0

Bit8

0Voltage

00~10V
10~5V

0Voltage

00~10V
10~5V

1Current

00~20mA
14~20mA

1Current

00~20mA
14~20mA

Register FD8251:
Bit7

Bit6

DA CH 1
Bit5
0Voltage
1Current

Bit15

Bit14

Bit13
--------

Bit4

Bit3

Bit2

00~10V
10~5V
00~20mA
14~20mA
Remaining register bits
Bit12
Bit11 Bit10

DA CH 0
Bit1
0:Voltage
1:Current

Bit9
--------

Bit0
00~10V
10~5V
00~20mA
14~20mA
Bit8

For example: If XC-E2AD2PT2DA is module 2, and AD Channel 0 is voltage, range is 0~5V, AD Channel 1 is
default, DA Channel 0 is current, range is 4~20mA,CH 1 is default. Then, the value of register FD8250 and

FD8251 are shown as below:


Bit value
FD8250

15

14

13

12

11

10

The value of FD8250 is 512.

FD8251

15

14

13

12

11

10

Bit value
8
7
6

The value of FD8251 is 3.

11-3-2. Data address of module


The parameters of 2-channel temperature input and 2-channel analog input are shown as below:
Related
parameters

Current value

PID output

Descriptions
Channel

PT00.01 PT10.01 AD0

AD1

Module1
Module2

ID100
ID200

ID101
ID201

ID102
ID202

ID103
ID203

ID00

ID01

ID02

ID03

Module7

ID700

ID701

ID702

ID703

Module1

X100

X101

X102

X103

Module2

X200

X201

X202

X203

X00

X01

X02

X03

Module7

X700

X701

X702

X703

Channel
connection
/open circuit
testing 0 is
connected1 is
open circuit

Module1

X110

X111

X112

X113

Module2

X210

X211

X212

X213

X10

X11

X12

X13

Module7

X710

X711

X712

X713

PID auto-tune
error bit0 is
OK1 is
error

Module1

X120

X121

X122

X123

Module2

X220

X221

X222

X223

X20

X21

X22

X23

Module7

X720

X721

X722

X723

Module1

Y100

Y101

Y102

Y103

Module2

Y200

Y201

Y202

Y203

Y00

Y01

Y02

Y03

Module7

Y700

Y701

Y702

Y703

Enable signal

auto-tune PID
control bit

Auto-tune trigger signal, start auto-tune when set to 1.


After auto-tune, PID parameters and period value are refreshed, and clear the
auto-tune PID control bit automatically.

User also could read the status,1 means in the process of auto-tune,0 means no
auto-tune or auto-tune is finished
PID output
value
(operation
result)

Digital value output range: 04095


When the PID output value is analog control (Such as steam valve opening or
silicon controlled conduction angles), user can send the value to analog output
module to meet the control requests.

PID
parameters
value
(PID)

Get the best parameters through PID auto-tune.


If current PID parameters cant meet control requests, user can use experienced
PID parameters directly.
PID algorithm works in the range of Diff. For actual applications, if current value

PID operation
range
Diff

is lower than TSetting TDiff ,PID output is the maximum value; If current value is
higher than TSetting TDiff , PID output is the minimum value. (The units is
different according to channel type and setting range)

Offset value

Temperature
value setting
Temperature
control period
(unit:
0.1
second)

Actual value

Auto-tune
output
amplitude

(Sampling value+Offset value )/10 = Display value. Then the sampling value will
equal or close to actual value. This parameter is signed number, retentive after
power-off, default value is 0.(The units is different according to channel type and
setting range)
Target value of control system. The adjustment range of temperature control is
0~1000 , resolution is 0.01.
The adjustment range of control period is 0.5s~200s, minimum precision is 0.1
second. Set value = actual temperature control period 10. For example, set to 5 if
the temperature control period is 0.5 seconds.
If the actual value is different from the display value, user could write the actual
value into this parameter. After then, module will calculate the offset value and
save it.
Offset value =actual valuecurrent sampling value. (The units are different
according to channel type and setting range).
For example, user tests the ambient temperature is 60, the module display
temperature is 55. User set this parameter to 600, will be 50, then the display
temperature = (sampling value + )/10=60 .
**Caution: Please make sure the input actual value is correct, otherwise that will
affect the offset value, and then affect the display value.
Output value of auto-tune, the units is %, 80 means 80% output of the full scale.

The units of temperature acquisition and analog channels are different according to the channel style and range
configuration.
Channel
Temperature acquisition channel

Units
0.01
Voltage input

Analog channel
Current input

0~10V

1.510-4V

0~5V

7.610-5V

0~20mA

3.110-4mA
2.410-4mA

4~20mA

The parameters of 2-channel analog output:


Parameters

Analog output
value

Channel

Description
DA0
DA1

Module 1

QD100

QD101

Module 2

QD200

QD201

QD00

QD 01

Module 7

QD700

QD701

11-3-3. Address definition


The read/write parameters address:
1 Parameters address of FROM instruction (read parameters):
Address

Description

K0

Auto-tune PID control bit

K1

PID output value of channel PT0

K2

PID output value of channel PT1

K3

PID output value of channel AD0

K4

PID output value of channel AD1

K5

Channel PT0 PID parameter valueP

K6

Channel PT0 PID parameter valueI

K7

Channel PT0 PID parameter valueD

K8

Channel PT0 PID parameter valueDiff

K9
K10

Channel PT1 PID parameter valueP


Channel PT1 PID parameter valueI

K11

Channel PT1 PID parameter valueD

K12

Channel PT1 PID parameter valueDiff

K13

Channel AD0 PID parameter valueP

K14

Channel AD0 PID parameter valueI

K15

Channel AD0 PID parameter valueD

K16

Channel AD0 PID parameter valueDiff

K17

Channel AD1 PID parameter valueP

K18

Channel AD1 PID parameter valueI

K19

Channel AD1 PID parameter valueD

K20

Channel AD1 PID parameter valueDiff

K21

Channel PT0 temperature offset value

K22

Channel PT1 temperature offset value

K23

Channel AD0 offset value

K24

Channel AD1 offset value

2Parameters address of TO instruction (write parameters):


Address

Description

K0

Auto-tune PID control bit

K1

Heating/cooling choice bit

K2

Channel PT0 setting temperature value

K3

Channel PT1 setting temperature value

K4

Channel AD0 setting value

K5

Channel AD1 setting value

K6

Channel PT0 PID parameter valueP

K7

Channel PT0 PID parameter valueI

K8

Channel PT0 PID parameter valueD

K9

Channel PT0 PID parameter valueDiff

K10

Channel PT1 PID parameter valueP

K11

Channel PT1 PID parameter valueI

K12

Channel PT1 PID parameter valueD

K13

Channel PT1 PID parameter valueDiff

K14

Channel AD0 PID parameter valueP

K15

Channel AD0 PID parameter valueI

K16

Channel AD0 PID parameter valueD

K17

Channel AD0 PID parameter valueDiff

K18

Channel AD1 PID parameter valueP

K19

Channel AD1 PID parameter valueI

K20

Channel AD1 PID parameter valueD

K21

Channel AD1 PID parameter valueDiff

K22

Channel PT0 temperature control period

K23

Channel PT1 temperature control period

K24

Channel AD0 temperature control period

K25

Channel AD1 temperature control period

K26

Channel PT0 actual temperature value

K27

Channel PT1 actual temperature value

K28

Channel AD0 actual value

K29

Channel AD1 actual value

K30

Channel PT0 auto-tune output amplitude

K31

Channel PT1 auto-tune output amplitude

K32

Channel AD0 auto-tune output amplitude

K33

Channel AD1 auto-tune output amplitude

K34
K35
K36

Channel PT0 temperature offset value


Channel PT1 temperature offset value
Channel AD0 offset value

K37

Channel AD1 offset value

In addition, the module can save setting temperature, PID parameters (P, I, D, Diff), temperature offset value,
temperature control period, auto-tune output amplitude and other parameters. When the auto-tune end or user
change the parameters, the parameters will be saved; the module will take out the parameters and operate after
restart. The default values of parameters are shown as below:
Parameters name

Default value

Setting value

PID parameters

P
I
D
Diff

Temperature control period


(units 0.1s)
Offset value (signed number)
Auto-tune output amplitude

PT0
0
40
1200
300
10

PT1
0
40
1200
300
10

CH2
0
40
1200
300
10

CH3
0
40
1200
300
10

20

20

20

20

0
100

0
100

0
100

0
100

11-4. Read and Write instructions


11-4-1. Instructions description
PLC can read and write the parameters of XC-E2AD2PT2DA through FROM and TO instruction.
Caution: The module number of first module is K0.
1. Read instruction FROM
(1) Word operation
S1

M1
FROM

Kxxx

S2

Kxxx

S3

D1

Kxxx

Dxxx

Function: read the module parameters to PLC register, the operate unit is word.
Operand description:
S1: Target module number. Available operand: K,TD,CD,D,FD.
S2: Head address of the module. Available operand: K,TD,CD,D,FD.
S3: Read register quantity (Word quantity). Available operand: K,TD,CD,D,FD.
D1: The head address of PLC registers.

(2) Bit operation


S1

M1
FROM

Kxxx

S2

Kxxx

S3

D1

Kxxx

Mxxx

Function: read the module data to PLC address, the operate unit is bit.
Operand description
S1: Target module number. Available operand: K,TD,CD,D,FD.
S2: Read the first address of the module. Available operand: K,TD,CD,D,FD.
S3: Read data quantity (Bit quantity).Available operand: K,TD,CD,D,FD.
D1:The first address of PLC coil to receive the module data. Available operand: M,Dn,m.
2. Write instruction TO
1Word operation
M1
TO

D1

D2

Kxxx

Kxxx

D3

S1

Kxxx

Dxxx

Function: Write the data of PLC register to the module address, the units is word.
Operand description:
D1: Target module number. Available operand: K,TD,CD,D,FD.
D2: The first address of the module. Available operand: K,TD,CD,D,FD.
D3: Write in register quantity (Word quantity). Available operand: K,TD,CD,D,FD.
S1: The PLC registers first address.
2Bit operation
M1
TO

D1

D2

Kxxx

Kxxx

D3

S1

Kxxx

Mxxx

Function: Write PLC data to the module address, the operation unit is bit.
Operand description:
D1: Target module number. Available operand: K,TD,CD,D,FD.
D2: The first address of the module. Available operand: K,TD,CD,D,FD.
D3: Write in data quantity (Bit quantity). Available operand: K,TD,CD,D,FD.
S1: The PLC coil first address. Available operand: M,Dn,m.

11-4-2. Instruction applications


1. Set temperature
M1
TO

K0

K1

K1

D0

Description: Input the temperature value to D0, write the D0 data to module address K1 (PT0 setting
temperature). For instance, D0=2000, means the setting temperature is 20.00.
Operand definition
(1) TO
Write instruction
(2) K0
Module number: 0
(3) K1
Module address: 1
(4) K1
Word quantity to write in: 1
(5) D0
The PLC register: D0
2. Set temperature control period
M1
TO

K0

K22

K1

D10

Description: Input temperature control period to D10, write D10 data to module address K22 (temperature
control period of CH0). For instance, D10=25 means the temperature control period is 2.5s.
Operand definition
(1) TO
Write instruction
(2) K0
Module number: 0
(3) K22
Module address: 22
(4) K1
Write in word quantity: 1
(5) D10
PLC register address: D10
3. Auto-tune output amplitude
M1
TO

K0

K30

K1

D20

Description: Input auto-tune output amplitude to D20, write the D20 data to module address K30 (auto-tune
output amplitude of CH0). For instance, D20=80, means the output value of auto-tune is the 80% of maximum
output value.
Operand definition
(1) TO
Write instruction
(2) K0
Module number: 0
(3) K30
Module address: 30
(4) K1
Word quantity to write in: 1
(5) D20
The PLC register address: D20

4. Auto-tune PID control bit

M100
TO

K0

K0

K4

M0

Description: Set on coil M0~M3 before auto-tune, then start auto-tune after write the data into module address.
If in the process of auto-tune, set on the coil M0~M3 and write into module, the module will quit
auto-tune and start PID control according to PID parameters which set before.
For instance, Set M0 ON means Channel 0 will start to auto-tune.
Operand definition
(1) TO
Write instruction
(2) K0
Module number: 0
(3) K0
Module address: 0
(4) K4
Bit quantity to write in: 4
(5) M0
The coil address of PLC: M0M5.
5. Read auto-tune PID control bit
M100

FROM

K0

K0

K4

M10

Description: User can read the auto-tune status bit of module, and send back to M10~M13 of PLC. If one coil
is ON, means the corresponding channel is in the process of auto-tune, OFF means the auto-tune hasnt started
or already ended.
Operand definition:
(1) FROM Read instruction
(2) K0
Module number: 0
(3) K0
Module address: 0
(4) K4
Bit quantity to read: 4
(5) M10
PLC coil address: M10M13
6. Read PID parameters
M100

FROM

K0

K5

K4

D30

Description: User can read the PID parameters of module (PID parameters of CH0), send back to D30~D33 of
PLC. D30 is parameter P, D31 is parameter I, D32 is parameter D, D33 is parameter Diff.
Operand definition
(1) FROM Read instruction
(2) K0
Module number: 0
(3) K5
Module internal address: 5
(4) K4
Word quantity to read: 4
(5) D30
PLC register address: D30D33

7. Write PID parameters


M100
TO

K0

K6

K4

D40

Description: User can revise the PID parameters of module (PID parameters of CH5), set on the coil M100
after input the data to D40~D43 of PLC, the new PID parameters will be used by the module.
Operand definition
(1) TO
Write instruction
(2) K0
Module number: 0
(3) K6
Module address: 6
(4) K4
Word quantity to write in: 4
(5) D40
PLC register address: D40D43

8. Open enable channel bit


Description: Module 0: the corresponding enable bits of CH0~3 are Y100 Y103; Module 1: the
corresponding enable bits of CH0~3 are Y200Y203; the rest can be done in the same manner. Therefore, if
set on one enable bit, the corresponding channel will start to PID control.
9. Read PID output value
M100

FROM
Description: When module
D50~D53.
Operand definition:
(1) FROM
(2) K0
(3) K1
(4) K4
(5) D50

K0

K1

K4

D50

is in process of PID control, user can read PID output value to PLC registers

Read instruction
Module number: 0
Module address: 1
Byte quantity to read: 4
PLC register address: D50~ D55

11-5. External connection


1 The wiring diagram of 2-Channel temperature input:

22-Channel analog input, the connection mode of input terminal as below shows:
Voltage input mode as below shows:

Current input wiring:

32-Channel analog output wiring:


Voltage output mode:

Current output mode as below shows:

11-6. Analog/Digital conversion Diagram


2-Channel analog input, the relationship between analog value and digital value are shown as the following
diagram:
0~5V analog input

0~10V analog input

+65535

+65535

digital

digital

analog

0~20mA analog input

5v

analog

4~20mA analog input

10v

+65535

+65535

digital

digital

20mA

analog

0 4mA

analog

20mA

The relationship between the digital input and corresponding analog output are shown as the following
diagram:
0~5V analog output

0~10V analog output

10v

5v

analog

analog

digital

+1023

0~20mA analog output

digital

+1023

4~20mA analog output

20mA

20mA

analog

analog

4mA

digital

+1023

digital

+1023

11-7. Programming
The following is the example of XC-E2AD2PT2DA:
The control process diagram is shown as the following (channel 0):
Set temperature
Set temperature control period
Open enable bit

Open auto-tune PID


control bit

Set output amplitude

Set PID parameters


Read auto-tune PID

Read the final PID parameters

control bit

This example controls the temperature through HMI.


1Set on enable bit of Channel 0;
2Write the parameters into the module including setting temperature, temperature control period,
auto-tune output amplitude. Then, module starts to PID control.
3Set on the auto-tune PID control bit, the module starts to PID auto-tune.
4After auto-tune, the module starts to PID control; send the PID parameters to PLC registers.
Of course, the parameters can be set through HMI.
The address of PLC coil
and register
D0
D1

Module address

Description

K2

Channel 0 set temperature

K22

D3

K30

Channel 0 temperature control


period
Channel 0 output amplitude

D4

K6

Channel 0 set parameter P

D5

K7

Channel 0 set parameter I

D6

K8

Channel 0 set parameter D

D300

K9

Channel 0 set parameter Diff

D301

K5

Channel 0 read parameter P

D302

K6

Channel 0 read parameter I

D303

K7

Channel 0 read parameter D

M100

K8

Channel 0 read parameter Diff

K0

Channel 0 auto-tune PID control


bit

D2

Ladder chart:
M0
(

Y100
S )

Open the enable bit of channel 0

M1
TO

K0

K2

K1

D0

Write the data of D0 to K2 (channel 0 setting


temperature);

TO

K0

K22

K1

D1

Write the data of D1 to K22, (channel 0


temperature control period)

TO

K0

K30

K1

D2

Write the data of D2 to K30 (channel 0 output


amplitude)

TO

K0

K6

K4

D3

Write the data of D3,D4,D5,D6 to module address


K6,K7,K8,K9 (channel 0 output amplitude)

TO

K0

K0

K1

M100

Write the data of M100 to K0 (open the auto-tune


enable bit of channel 0)

M100

M200
S )

Set on M200

M200 M8012
FROM

K0

K0

K1

M10

Read K0 status to PLC coil M10 every 100ms


(channel 0 auto-tune state bit)

FROM

K0

K5

K4

D300

Read module data K5,K6,K7,K8 to PLC registers


D300,D301,D302,D303 (channel 0
PID
parameters.

M10

M200
R )

Reset M200.

12. Pressure testing module XC-E2WT

12-1. Specifications
XC-E2WT is the expansion module of XC series PLC. It can test 0~10mV voltage signal or pressure sensor
signal, transform the voltage signal to digital value.

C0M0
Y0

COM1
Y1

Can collect 2 channels pressure sensor signal


Test range: 0~10mV voltage signal
16 bits high precision AD transformation
Up to 7 modules can be connected to the PLC

PWR

0V
5V

S0S0+

0V
GND

5V

S1S1+

GND

Input range

DC 010mV

Resolution

1/6553516Bit

Integrated precision

0.8%

Transformation speed

20ms/channel

Power supply

DC24V10%100mA

Installation

Mount on DIN46277 rail (width 35mm) or fix with screw M3

Dimension

63mm102mm73.3mm

Working environment

No corrosive gas

Ambient temperature

0~60

Storage temperature

-20~70

Humidity

5~95%

12-2. Terminals

Channel

Terminal

Corresponding
sensor terminal

CH0

0V

U-

Pressure sensor power supply input -

5V

U+

Pressure sensor power supply input +

S0+

S+

Measure voltage +

S0-

S-

Measure voltage -

Y0

COM0

0V

U-

Pressure sensor power supply input -

5V

U+

Pressure sensor power supply input +

S1+

S+

Measure voltage +

S1-

S-

Measure voltage -

Y1

COM1

GND

Shield cable ground

24V

+24V power supply

0V

Common terminal of the power supply

CH1

Meaning

12-3. External connection


Pay attention:
1. Please use the 24V power supply on the PLC to avoid interference.
2. Please use shield cable and single-point ground.

Power supply wiring:

Power supply

C0M0
Y0

COM1
Y1

Connect to pressure sensor:


Pressure sensor: characteristic value below 2mV/V can connect to the module.

12-4. Weighing system


A typical weighing system:

The weighing system contains:


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.
XC-E2WT: can be used as an electronic assessment device, it gets the pressure sensor signal and makes
further assessment.

12-5. Module functions


XC-E2WT has the follow functions:
Adjust the pressure sensor
Collect the pressure sensor signal
Calculate the weight value
0~10mV voltage signal test
12-5-1. Pressure sensor introduction
The pressure sensor is based on resistance strain effect, see the following diagram:

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.
12-5-2. Adjust the weighing machine
Please adjust the weighing machine when use the module at the first time:
Steps:
Use Module 1 channel 0 as an example:
1. Make sure the module is connected to the weighing system.
2. Make the pressure sensor no-load, send ID104 (tare weight) to QD108. (or set QD108=0).
3. Make the pressure sensor full-load (or put some weight), send ID104 to QD110.
4. The adjustment is finished. The module will calculate the correct weight according to the no-load value
and full-load value.
5. If it needs to adjust other module or channel, the related flag bits are shown as below:

Module
NO.

Flag

#1

Y100

Channel 0 no-load value flag

Rising edge is effective

Y101

Channel 0 full-load value flag

Rising edge is effective

Y102

Channel 1 no-load value flag

Rising edge is effective

Y103

Channel 1 full-load value flag

Rising edge is effective

Y200

Channel 0 no-load value flag

Rising edge is effective

Y201

Channel 0 full-load value flag

Rising edge is effective

Y202

Channel 1 no-load value flag

Rising edge is effective

Y203

Channel 1 full-load value flag

Rising edge is effective

Y700

Channel 0 no-load value flag

Rising edge is effective

Y701

Channel 0 full-load value flag

Rising edge is effective

Y702

Channel 1 no-load value flag

Rising edge is effective

Y703

Channel 1 full-load value flag

Rising edge is effective

#2

#7

Meaning

Remark

Timing diagram when adjusting:

M0
PLC programming:
LDP M0
MOV ID104
QD108

QD108

No-load value ID104

M1
PLC programming:
LDP M1
MOV ID104 QD110

QD110

Full-load value ID104

12-5-3. Pressure measurement


Take module 1 channel 0 as an example:
Weighing unit setting
Write the unit value into register QD104~QD105 (weight occupies two registers) in the PLC program.
Suppose the object weight is 30KG, if the unit is KG, please write in 30, if the unit is G, and please write
in 30000.
Sampling time
User can increase the sampling time to obtain more accurate sampling value. The sampling time can be
set in QD112. The default value is 20.
After setting the parameters, start to weigh. The module will calculate the sensor signal and save the weight
value in ID100~ID101 (store in double word mode).
If user needs to set other module or channel, please see the following table.
Please see each module parameter setting address:
Module no.

1#

2#

....

7#

Register address

Meaning

Remark

QD100,QD101

Channel 1 no-load unit value

Double word

QD102,QD103

Channel 2 no-load unit value

Double word

QD104,QD105

Channel 1 full-load unit value

QD106,QD107

Channel 2 full-load unit value

QD108

Channel 1 no-load AD value

QD109

Channel 2 no-load AD value

QD110

Channel 1 full-load AD value

QD111

Channel 2 full-load AD value

QD112

Channel 1 sampling time

QD113

Channel 2 sampling time

QD200,QD201

Channel 1 no-load unit value

Double word

QD202,QD203

Channel 2 no-load unit value

Double word

QD204,QD205

Channel 1 full-load unit value

QD206,QD207

Channel 2 full-load unit value

QD208

Channel 1 no-load AD value

QD209

Channel 2 no-load AD value

QD210

Channel 1 full-load AD value

QD211

Channel 2 full-load AD value

QD212

Channel 1 sampling time

QD213

Channel 2 sampling time

....

.....

......

QD700,QD701

Channel 1 no-load unit value

Double word

QD702,QD703

Channel 2 no-load unit value

Double word

QD704,QD705

Channel 1 full-load unit value

QD706,QD707

Channel 2 full-load unit value

QD708

Channel 1 no-load AD value

QD709

Channel 2 no-load AD value

QD710

Channel 1 full-load AD value

QD711

Channel 2 full-load AD value

QD712

Channel 1 sampling time

QD713

Channel 2 sampling time

The final weight and middle value address:


Module No.
#1

#2

Address

Meaning

Remark

ID100,ID101

Channel 1 final weight value

Double word

ID102 ,ID103

Channel 2 final weight value

Double word

ID104

Channel 1 digital value of voltage

ID105

Channel 2 digital value of voltage

ID106

Channel 1 tare value

ID107

Channel 2 tare value

ID108

Channel 1 unit value

ID109

Channel 2 unit value

ID200,ID201

Channel 1 final weight value

Double word

ID202 ,ID203

Channel 2 final weight value

Double word

ID204

Channel 1 digital value of voltage

ID205

Channel 2 digital value of voltage

ID206

Channel 1 tare value

ID207

Channel 2 tare value

ID208

Channel 1 unit value

ID209

Channel 2 unit value

#7

ID700,ID701

Channel 1 final weight value

Double word

ID702 ,ID703

Channel 2 final weight value

Double word

ID704

Channel 1 digital value of voltage

ID705

Channel 2 digital value of voltage

ID706

Channel 1 tare value

ID707

Channel 2 tare value

ID708

Channel 1 unit value

ID709

Channel 2 unit value

12-6. AD conversion diagram


The relationship between voltage input and digital value:
0~10mV voltage input

+65535
digital

analog

12-7. Programming
Real-time read the data of channel 0 (module 1)
Program:

10mV

Adjust the weigh


Send ID104 to D4000 and D4002. It
only needs to adjust once. Next time
it no needs to adjust anymore.

Send the tare value (voltage) to


QD108 (set the no-load value)

Send the full-load value (voltage) to


QD110 (set the full-load value)

Get the final weight

Send D100 (weight unit) to


QD100-QD101
(tare
weight)
(normally set to 0)
Send D102 to QD104-QD105
D20~D21 is the final weight

13. I/O expansion module XC-EnXmY

13-1. Specifications
XC-EnXmY is the extension module of XC series, up to 7 XC-EnXmY modules can be connected to PLC.
This module has rich types, small size, and more I/O points which can meet more requirements.

COM

COM

X0

X1

X2

X3

X4

X5

X6

X7

0 1 2 3
4 5 6 7

RUN

XC-E8X8YR
Y

0 1 2 3
4 5 6 7

COM0

Y0

COM1

Y1

COM2

Y2

Y3

COM3

Y4

Y5

Y6

Y7

Module types
Model
NPN input
PNP input
XC-E8X
XC-E8PX
XC-E8YR
XC-E8YR
XC-E8YT
XC-E8YT
XC-E8X8YR
XC-E8PX8YR
XC-E8X8YT
XC-E8PX8YT
XC-E16X
XC-E16YR
XC-E16YT
XC-E16X16YR
XC-E32X
XC-E32YR

XC-E16PX
XC-E16YR
XC-E16YT
XC-E16PX16YR
XC-E32PX
XC-E32YR

Function description
8-channel digital input
8-channel relay output
8-channel transistor output
8-channel digital input, 8-channel relay output
8-channel digital input, 8-channel transistor output
16-channel digital input
16-channel relay output
16-channel transistor output
16-channel digital input, 16-channel relay output
32-channel digital input
32-channel relay output

Module Specifications
Items

Specifications

Input
voltage
supply)

(Power

DC24V10% (32 points I/O module is AC220V10%)

Application environment

No corrosive gas

Environment temperature

0~60

Environment humidity

5~95%

Installation

Fixed with M3 screws or directly installed on


(Width: 35mm)
63mm102mm73.3mm16 points, 8 points

Dimension

139mm102mm73.3mm32 points

13-2. Terminals
The terminals distributions of NPN and PNP input are the same.
1XC-E8X module:
0V

24V

COM

COM

X0

X1

X2

X3

X4

X5

X6

X7

2XC-E8YR,XC-E8YT module

COM0

Y0

COM1

Y1

COM2

Y2

Y3

COM3

Y4

Y5

Y6

Y7

3XC-8X8YR,XC-8X8YT module
0V

24V

COM0

Y0

COM
COM1

COM
Y1

X0
COM2

X1
Y2

X2
Y3

X3
COM3

X4
Y4

X5
Y5

X6
Y6

X7
Y7

4XC-16X module
0V

24V

COM

COM

COM
X10

COM
X0
X11

X12

X1
X13

X2
X14

X3
X15

X4
X16

X5

X6

X7

X17

5XC-16YR,XC-16YT module
COM0
COM4

COM1
Y10

COM5

Y1
Y11

COM2
COM6

Y2
Y12

Y3
Y13

6XC-16X16YR module

COM3
COM7

Y4
Y14

Y5
Y15

Y6
Y16

Y7
Y17

DIN46277 rail

L
24V

FG

0V

COM
COM0

COM
Y0

X0
Y1

X1

X2

Y2

Y3

X3
COM1

X4
Y4

X5
Y5

X6
Y6

X7
Y7

X10
COM2

X11
Y10

X12
Y11

X13
Y12

X14
Y13

X15
COM3

X16
Y14

X17
Y15

Y16

Y17

7XC-32X module
N

L
24V

FG

0V

COM
COM

COM
COM

X0
X20

X1
X21

X2
X22

X3
X23

X4
X24

X5
X25

X6
X26

X7
X27

X10
X30

X11
X31

X12
X32

X13
X33

X14
X34

X15

X16

X35

X17
X37

X36

8XC-32YR module
N

L
24V

FG

0V

Y0
COM0
COM4

Y20

Y1
Y21

Y2
Y22

Y3
Y23

COM1
Y5
Y7
Y10
Y12
COM3
Y15
Y17
Y4
Y6
COM2
Y11
Y13
Y14
Y16
COM5

Y24

Y25

Y26

Y27

COM6

Y30

Y31

Y32

Y33

COM7

Y34

Y35

Y36

Y37

Caution: Maybe the common terminal of each module is different from above pictures; please see the
label of actual objects.

13-3. I/O address assignment


XC series can expand 7 modules, the address of I/O terminals are shown as below:
(Caution: Take NPN type as an example, the terminals definition, address, suitable module of PNP are the
same as NPN
The definition of input terminals (Extension module 1):
Terminals
number

Address

Suitable modules

X0
X1
X2
X3
X4
X5

X100
X101
X102
X103
X104
X105

XC-E8XXC-E8X8YR/TXC-E16XXC-E16X16YR XC-E32X

X6
X7
X10
X11
X12
X13
X14
X15
X16
X17
X20
X21
X22
X23

X106
X107
X110
X111
X112
X113
X114
X115
X116
X117
X120
X121
X122
X123

XC-E8XXC-E8X8YR/TXC-E16XXC-E16X16YR XC-E32X
XC-E8XXC-E8X8YR/TXC-E16XXC-E16X16YR XC-E32X
XC-E16XXC-E16X16YR XC-E32X
XC-E16XXC-E16X16YR XC-E32X
XC-E16XXC-E16X16YR XC-E32X
XC-E16XXC-E16X16YR XC-E32X
XC-E16XXC-E16X16YR XC-E32X
XC-E16XXC-E16X16YR XC-E32X
XC-E16XXC-E16X16YR XC-E32X
XC-E16XXC-E16X16YR XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X

XC-E8XXC-E8X8YR/TXC-E16XXC-E16X16YR
XC-E8XXC-E8X8YR/TXC-E16XXC-E16X16YR
XC-E8XXC-E8X8YR/TXC-E16XXC-E16X16YR
XC-E8XXC-E8X8YR/TXC-E16XXC-E16X16YR
XC-E8XXC-E8X8YR/TXC-E16XXC-E16X16YR

XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X

X24
X25
X26
X27
X30
X31
X32

X124
X125
X126
X127
X130
X131
X132

XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X

X33
X34
X35
X36
X37

X133
X134
X135
X136
X137

XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X

The definition of output terminals (Extension module 1):


Terminals
number
Y0
Y1
Y2
Y3
Y4
Y5
Y6

Address

Suitable modules
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR

Y100
Y101
Y102
Y103
Y104
Y105
Y106

XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YR
XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YR
XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YR
XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YR
XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YR
XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YR
XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YR

Y7
Y10
Y11
Y12

Y107
Y110
Y111
Y112

Y13
Y14
Y15
Y16
Y17
Y20
Y21
Y22
Y23
X24
X25
Y26
Y27
Y30

Y113
Y114
Y115
Y116
Y117
Y120
Y121
Y122
Y123
Y124
Y125
Y126
Y127
Y130

XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YR XC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR

Y31
Y32
Y33
Y34
Y35
Y36
Y37

Y131
Y132
Y133
Y134
Y135
Y136
Y137

XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR

The definition of input terminals (Extension module 2):


Terminals
number
X0
X1
X2
X3
X4
X5
X6
X7
X10
X11
X12
X13

Address

Suitable modules

X200
X201
X202
X203
X204
X205
X206
X207
X210
X211
X212
X213

XC-E8XXC-E8X8YR /TXC-E16XXC-E16X16YR
XC-E8XXC-E8X8YR /TXC-E16XXC-E16X16YR
XC-E8XXC-E8X8YR /TXC-E16XXC-E16X16YR
XC-E8XXC-E8X8YR /TXC-E16XXC-E16X16YR
XC-E8XXC-E8X8YR /TXC-E16XXC-E16X16YR
XC-E8XXC-E8X8YR /TXC-E16XXC-E16X16YR
XC-E8XXC-E8X8YR /TXC-E16XXC-E16X16YR
XC-E8XXC-E8X8YR /TXC-E16XXC-E16X16YR
XC-E16XXC-E16X16YRXC-E32X
XC-E16XXC-E16X16YRXC-E32X
XC-E16XXC-E16X16YRXC-E32X
XC-E16XXC-E16X16YRXC-E32X

X14
X15
X16
X17
X20
X21
X22
X23
X24

X214
X215
X216
X217
X220
X221
X222
X223
X224

XC-E16XXC-E16X16YRXC-E32X
XC-E16XXC-E16X16YRXC-E32X
XC-E16XXC-E16X16YRXC-E32X
XC-E16XXC-E16X16YRXC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X

X25
X26
X27
X30
X31
X32
X33
X34
X35
X36
X37

X225
X226
X227
X230
X231
X232
X233
X234
X235
X236
X237

XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X

XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X

The definition of output terminals (Extension module 2):


Terminals
number
Y0
Y1
Y2
Y3
Y4
Y5

Address

Suitable modules

Y200
Y201
Y202
Y203
Y204
Y205

XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YRXC-E32YR
XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YRXC-E32YR
XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YRXC-E32YR
XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YRXC-E32YR
XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YRXC-E32YR
XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YRXC-E32YR

Y6
Y7
Y10
Y11
Y12
Y13

Y206
Y207
Y210
Y211
Y212
Y213

Y14
Y15
Y16
Y17
Y20
Y21
Y22
Y23
X24
X25
Y26
Y27
Y30
Y31
Y32
Y33
Y34
Y35

Y214
Y215
Y216
Y217
Y220
Y221
Y222
Y223
Y224
Y225
Y226
Y227
Y230
Y231
Y232
Y233
Y234
Y235

XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YRXC-E32YR
XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR

Y36
Y37

Y236
Y237

XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR

The input and output are 8-32 points, there are two output modes: Relay output and Transistor
output. The addresses of module N begin with Xn00 and Yn00.

The definition of input terminals (Extension module 7):


Terminals
number
X0
X1
X2
X3
X4
X5

Address

Suitable modules

X700
X701
X702
X703
X704
X705

XC-E8XXC-E8X8YR/TXC-E16XXC-E16X16YRXC-E32X
XC-E8XXC-E8X8YR/TXC-E16XXC-E16X16YRXC-E32X
XC-E8XXC-E8X8YR/TXC-E16XXC-E16X16YRXC-E32X
XC-E8XXC-E8X8YR/TXC-E16XXC-E16X16YRXC-E32X
XC-E8XXC-E8X8YR/TXC-E16XXC-E16X16YRXC-E32X
XC-E8XXC-E8X8YR/TXC-E16XXC-E16X16YRXC-E32X

X6
X7
X10
X11
X12
X13

X706
X707
X710
X711
X712
X713

X14
X15
X16
X17
X20
X21
X22
X23
X24
X25
X26
X27
X30
X31
X32
X33
X34
X35

X714
X715
X716
X717
X720
X721
X722
X723
X724
X725
X726
X727
X730
X731
X732
X733
X734
X735

XC-E8XXC-E8X8YR/TXC-E16XXC-E16X16YRXC-E32X
XC-E8XXC-E8X8YR/TXC-E16XXC-E16X16YRXC-E32X
XC-E16XXC-E16X16YRXC-E32X
XC-E16XXC-E16X16YRXC-E32X
XC-E16XXC-E16X16YRXC-E32X
XC-E16XXC-E16X16YRXC-E32X
XC-E16XXC-E16X16YRXC-E32X
XC-E16XXC-E16X16YRXC-E32X

X36
X37

X736
X737

XC-E16XXC-E16X16YRXC-E32X
XC-E16XXC-E16X16YRXC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X
XC-E32X

The definition of output terminals (Extension module 7):


Terminals
number
Y0
Y1
Y2
Y3
Y4
Y5

Address

Suitable modules

Y700
Y701
Y702
Y703
Y704
Y705

XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YRXC-E32YR
XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YRXC-E32YR
XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YRXC-E32YR
XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YRXC-E32YR
XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YRXC-E32YR
XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YRXC-E32YR

Y6
Y7
Y10
Y11
Y12
Y13

Y706
Y707
Y710
Y711
Y712
Y713

Y14
Y15
Y16
Y17
Y20
Y21
Y22
Y23
X24
X25
Y26
Y27
Y30
Y31
Y32
Y33
Y34
Y35

Y714
Y715
Y716
Y717
Y720
Y721
Y722
Y723
Y724
Y725
Y726
Y727
Y730
Y731
Y732
Y733
Y734
Y735

XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YRXC-E32YR
XC-E8YR/TXC-E8X8YR/TXC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR

Y36
Y37

Y736
Y737

XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E16YR/TXC-E16X16YRXC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR
XC-E32YR

13-4. External connection


1The input terminal connection diagram of XC-E8X8YR:

The output terminal connection diagram:

2The input terminal connection diagram of XC-E16PX:

3The output terminal connection diagram of XC-E16YR module:

The output terminal connection diagram of XC-E16YT module

13-5. Applications
The application example includes three devices: Xinje XC series PLC (slave station), expansion module
XC-E8X8YR and HMI TH765-MT.
The communication between XC-E8X8YR and TH765-MT (Xinje HMI):

FG

COM

COM

X0

X1

X2

X3

X4

X5

X6

X7

X10

X11

X12

X13

X14

X15

X16

X17

X20

X21

COM

COM

X1
X0

X3
X2

PWR

XC3-32R-E
PORT2

0 1 2 3 4 5
6 7

24V

0V

COM0

Y0

COM1

Y1

COM2

Y2

Y3

Y4

Y5

COM3

Y6

Y7

Y10

RUN

XC-E8X8YR

RUN
ERR

X7
X6

0 1 2 3
4 5 6 7

0 1 2 3 4 5
6 7

PORT1

X5
X4

0 1 2 3
4 5 6 7

COM4 Y13
Y15
Y11
Y12
Y14

COM0

Y0

COM1

Y1

COM2

Y2

Y3

COM3

Y4

Y5

Y6

Y7

THINGET
MODE: TH765-MT
S/ N: N20081028028
Xinje Electronic Co.,Ltd

24V 0V FG

1 2 34

12 34

Download

PLC

1 23 4 5

1 2 34 5

6 7 89

67 8 9

485485+

In this example, the HMI is the master station, read the input status of extension module to the HMI, writes the
coil status of HMI to the extension module.
1Hardware connection: Connect XC-E8X8YR with XC3-32R-E, connect AB terminals of XC3-32R-E to
AB terminals (PLC port) of TH765-MT.
Communication parameters setting of PLC:
Baud rate: 19200bps, Data bits: 8bits, Stop bits: 1bit, Parity: even, Modbus number: 1, restart the PLC after
setting.
Touchwin software settings for TH765-MT:
PLC port device: Modbus RTU (Panel is master), Baud rate: 19200bps, Databits: 8bits, Stopbits: 1bit, Parity:
even.
2Program application:
The corresponding relationship between expansion module address and HMI address:
HMI address
PSB500
PSB501

Expansion module
X100
Y100

Related MODBUS address


K16448
K18496

3HMI screen editing:


The screen of HMI:

Edit the status of X100:


Lamp X100: the Modbus address of expansion module coil X100 is 0x16448 (diagram A).
Function Button: copy the coil status of X100 to PSB500 when the button is pressed (diagram B).
Lamp PSB500: HMI internal coil address is PSB500. (diagram C)

Diagram A

Diagram B

Diagram C
Edit the status of PSB501:
Lamp PSB501: the HMI internal coil address is PSB501 (diagram D);
Function Button: copy the coil status of PSB501 to Y100 when the button is pressed (diagram E);
Lamp Y100: the Modbus address of expansion module coil Y100 is 0x18496 (diagram F).

Diagram D

Diagram E

Diagram F
After editing the HMI screen, download it to the HMI and start to work.

XINJE Electric Co., Ltd.


4th Floor, Building 7th, No.100
Dicui Rd, Wuxi, China
Tel: 86-0510-85134139
Fax: 86-0510-85111290
www.xinje.com
Email: [email protected]

You might also like