LIYAN LYPLC Ex1n4AD User manual

Foreword
♦This manual contains text, diagrams and explanations which will guide the reader in the correct installation and
operation of the Ex1n4AD Analog input block, It should be read and understood before attempting to install or use
the unit. If in doubt about the operation or use of Ex1n4AD Analog input block please consult Liyan Electric.
Introduction
The Ex1n4AD analog input block (hereafter referred to as “Ex1n4AD”) converts 4 points of analog input values
(voltage input, current input, temperature input) into digital values, and transfers them to the PLC main unit.
The Ex1n4AD can be connected to Ex1n, Ex2n Series PLC.
1) Analog inputs can be selected from the voltage input, the current input and the thermocouple input (temperature
input) by the input mode setting by the TO instruction given by the PLC main unit and the connection method.
2) The voltage input can be selected within the range from –10 to +10 V. The current input can be selected within
the range from +4 to +20 mA.
The thermocouple input can be selected among the K type, and J type. (The input characteristics cannot be
adjusted when the thermocouple input is used.)
3) The resolution is 5mV (20 V x 1/4,000) when the voltage input is used, 10.00 μA (40 mA x 1/8,000) when the
current input is used, and 0.1 °C when the thermocouple input is used.
External Dimensions
Dimension: mm
87
90
80
39.6
48
Terminal Signal: This module don’t occupy any I/O points and never perform wiring to terminals.
Ex1n32MR Ex1n8AD Ex1n16ER Ex1n8AD Ex1n32ER Ex1n4AD
X00-X17 not occupy points X20-X27 not occupy points X30-X37 not occupy points
Y00-Y17 K=0 Y20-Y27 K=1 Y30-Y37 K=2
Status indicator LED
Indication Description
PWR Lit while power is normally supplied to “24V” and “24G“ terminals of Ex1n4AD.
1

Ex1n4AD Wiring
24G
24V
Current input
+15V
Current input
I4
V4
C4
*3 Shielded cable
500
Ω
C3
I3
V3 Voltage input
*2
500
Ω
-15V
*
2
Ex1n4TC Wiring
Note:
1) To avoid effects of noise to make result is not accurate, please use cable with isolation and should be far away
high-voltage power supply.
2) To avoid electric shock or damage of product, turn off all power supply when performing wiring work.
Remark:
*1 Use a two-core, twisted, shielded cable for the analog input line, and separate it from other power lines or a lines
easily induced.
*2 If there is voltage ripple in the input or there is noise in the external wiring, connect a capacitor of approximately
0.1 to 0.47 μF, 25 V.
*3 For the current input, make sure to short-circuit the “VN+” terminal and the “IN+” terminal (N: input channel No.).
*4 Make sure to connect the terminal to the terminal of the PLC main unit to which Class D grounding (100
Ωor less) is performed.
*
Add 500Ω/0.5W resistance C2
V2 CH2
Voltage input C1
V1 CH1
DC/DC
V4-
V4+
•
•
V3-
V3+
V1+
V2-
V2+
V1-
24G
24V
CH1
CH2
Thermocouple
(K or J)
DC/DC +15V
-15V

3
Specifications
General specifications
Item Specifications
Ambient temperature
range 0 to +55 °C during operation, storage temperature: -20~70°C
Ambient humidity 35 to 85 % RH during operation (Dew condensation shall not be allowed.)
Noise resistance Noise voltage 1,000 Vp-p, noise width 1 μs.
Withstand voltage 500 V AC for 1 min
(between analog input terminal and each terminal of PLC main unit)
Insulation resistance DC500V / 5 MΩ
Operating
atmosphere Corrosive gas and many dusts shall not be detected.
Power supply specifications
Item Specifications
Interface driving
power supply 24 V DC±10%, 100 mA, supplied via terminal from outside
CPU driving power
supply 5 V DC, 50mA, supplied via extension cable from PLC main unit
Performance specifications
Item Specifications
Conversion speed When only voltage input and current input are used 500 μs x Number of used channels
Insulation method Photocoupler insulates analog input area from PLC.
DC/DC converter insulates power supply from analog I/O.
Number of occupied
I/O points Don’t occupy any I/O points
Applicable PLC Ex1n, Ex2n Series PLC, V1.40 or more

4
Buffer Memories (BFM) lists
BFM No. Description Initial value
#0 Input mode selection of CH1 to CH4. H000
#1 Reserved −
#2 Number of times of averaging of CH1 Setting range :1 to 8 times 8
#3 Number of times of averaging of CH2 Setting range :1 to 8 times 8
#4 Number of times of averaging of CH3 Setting range :1 to 8 times 8
#5 Number of times of averaging of CH4 Setting range :1 to 8 times 8
#6 Reserved −
#7 Reserved −
#8 Reserved −
#9 Reserved −
#10 CH1 data (immediate data or average data) 0
#11 CH2 data (immediate data or average data) 0
#12 CH3 data (immediate data or average data) 0
#13 CH4 data (immediate data or average data) 0
#14 Reserved −
#15 Reserved −
#16 Reserved −
#17 Reserved −
#18 CH1 to CH4 start conversion enable bit selection H0000
…Reserved −
#22 Sets convenient functions (data addition, upper/lower limit value detection,
sudden change detection and peak value hold.) K1
#23 iat reference value 250
…Reserved −
#29 Error status K0
#30 Model code & Serial No. of Version K2050
#31 Reserved −
#32
Operating time 0 to 64,800 (s).
After that, 64,800 is kept.
Measurement starts when power is turned on, and measured value is reset
when power is turned off.
K0
#33 Reserved
… Reserved −
#37 Temperature module environment temperature (Centigrade)
#38 Temperature module environment temperature (Fahrenheit)
… Reserved −
#41-48 Reserved −
#51-58 Reserved −

5
… Reserved
#60 When value = 2561, force module to restart (V1.28 or more is effective) −
#61 CH1 addition data Setting range: -2,000 to +2,000
(validwhileBFM#22b0isON) K0
#62 CH2 addition data Setting range: -2,000 to +2,000
(validwhileBFM#22b0isON) K0
#63 CH3 addition data Setting range: -2,000 to +2,000
(validwhileBFM#22b0isON)
K0
#64 CH4 addition data Setting range: -2,000 to +2,000
(validwhileBFM#22b0isON) K0
#65 Reserved −
#66 Reserved −
#67 Reserved −
#68 Reserved −
… Reserved −
#71 CH1 lower limit value error set value (valid while BFM #22 b1 is ON) Minimum digital value
inside input range
#72 CH2 lower limit value error set value (valid while BFM #22 b1 is ON) Minimum digital value
inside input range
#73 CH3 lower limit value error set value (valid while BFM #22 b1 is ON) Minimum digital value
inside input range
#74 CH4 lower limit value error set value (valid while BFM #22 b1 is ON) Minimum digital value
inside input range
#75 Reserved −
#76 Reserved −
#77 Reserved −
#78 Reserved −
…Reserved −
#81 CH1 upper limit value error set value (valid while BFM #22 b1 is ON) Maximum digital value
inside input range
#82 CH2 upper limit value error set value (valid while BFM #22 b1 is ON) Maximum digital value
inside input range
#83 CH3 upper limit value error set value (valid while BFM #22 b1 is ON) Maximum digital value
inside input range
#84 CH4 upper limit value error set value (valid while BFM #22 b1 is ON) Maximum digital value
inside input range
#85 Reserved −
#86 Reserved −
#87 Reserved −
#88 Reserved −
…Reserved −

6
#101 CH1 peak value (minimum value) (valid while BFM #22 b3 is ON)
#102 CH2 peak value (minimum value) (valid while BFM #22 b3 is ON)
#103 CH3 peak value (minimum value) (valid while BFM #22 b3 is ON)
#104 CH4 peak value (minimum value) (valid while BFM #22 b3 is ON)
#105 Reserved
#106 Reserved
#107 Reserved
#108 Reserved
#109 Peak value (minimum value) reset flag K0
#110 Unusable
#111 CH1 peak value (maximum value) (valid while BFM #22 b3 is ON)
#112 CH2 peak value (maximum value) (valid while BFM #22 b3 is ON)
#113 CH3 peak value (maximum value) (valid while BFM #22 b3 is ON)
#114 CH4 peak value (maximum value) (valid while BFM #22 b3 is ON)
#115 Reserved
#116 Reserved
#117 Reserved
#118 Reserved
#119 Peak value (maximum value) reset flag K0
…Reserved −
#148 Count scan times(Circular counter 0-65536)
…Reserved −
#180 K Type Thermocouple, temperature coefficient α
#181 J Type Thermocouple, temperature coefficient α
#182 T Type Thermocouple, temperature coefficient α
… Reserved
#192-199 CH1 data history
#200-207 CH2 data history
#208-215 CH3 data history
#216-223 CH4 data history
#224-231 Reserved
#232-239 Reserved
#240-247 Reserved
#248-255 Reserved

Details of buffer memories
1 BFM #0, #1: Input mode selection
The input mode by writing a numeric value to BFM #0 and BFM#1 to assign CH1 to CH4 operation mode to BFM#0.
In the input mode specification, each BFM is expressed in a 4-digit hexadecimal code, and each channel No. is
assigned to each digit.
BFM#0
HOOOO
CH1
CH2
CH3
CH4
O=0: Voltage input mode (-10 to +10V), resolution (20V x 1/32,000)
O=1: Voltage input mode (-10 to +10V), resolution (20V x 1/8,000)
O=2: Voltage input mode, analog value direct display (-10,000 to +10,000), resolution (20V x 1/20,000)
O=3: Current input mode (4 to 20mA), resolution (16mAx 1/8,000)
O=4: Current input mode (4 to 20mA), resolution (16mAx 1/4,000)
O=5: Current input mode, analog value direct display (4,000 to 20,000), resolution 2.00 μA
O=6: Current input mode (-20 to 20mA), resolution (40mAx 1/16,000)
O=7: Current input mode (-20 to 20mA), resolution (40mAx 1/8,000)
O=8: Current input mode, analog value direct display (-20,000 to +20,000), resolution (40mA x 1/40,000)
O=9: Thermocouple input mode, K type, Celsius display (-100 to +1,200°C), resolution 0.1°C
O=A: Thermocouple input mode, J type, Celsius display (-100 to +600°C), resolution 0.1°C
O=B: Thermocouple input mode, T type, Celsius display (-100 to +350°C), resolution 0.1°C
O=C: Thermocouple input mode, K type, Fahrenheit display (-148 to +1,832°F), resolution 0.1°F
O=D: Thermocouple input mode, J type, Fahrenheit display (-148 to +1,112°F), resolution 0.1°F
O=E: Thermocouple input mode, T type, Fahrenheit display (-148 to +662°F), resolution 0.1°F
2 BFM #2 TO BFM #5: Number of times of averaging
When using BFM #10 to #13 as the average data, write the number of times of averaging to BFM #2 to BFM #5.
The setting range of the number of times of averaging is 1 to 8. If select the immediate data, value of BFM#2 to
BFM#5 is 1.
3 BFM #10 to BFM #13: Analog data
TheA/D conversion data of each channel is written to BFM #10 to BFM #13.
You can select the immediate (current value) data or the average data by setting the number of times of averaging
(BFM #2 to BFM # 5).
4 BFM #18: Bxxxxxxxxnnnnnnnn
Bit No. b15 to b18 b7 b6 b5 b4 b3 b2 b1 b0
n=0 Reserved Reserved Reserved Reserved Reserved CH4 disable CH3 disable CH2 disable CH1 disable
n=1 Reserved Reserved Reserved Reserved Reserved CH4 enable CH3 enable CH2 enable CH1 enable
5 BFM #22: Sets convenient functions
The functions described below are assigned to b0 to b3 of BFM #22. When a bit is set to ON, the assigned function
becomes valid.
b0 : Data addition function
When this bit set to ON, the measured value will add addition value and stored into BFM#10~BFM#13.
7

8
b1 : Upper / lower limit value detection function
Reserved
b2 : Reserved
b3 : When this bit set to ON, peak value will be stored into BFM#101~BFM#104, BFM#111~BFM#114.
6 BFM#30: Model code
Fixed value : “K2xxx”。Xxx is version code

Standard I/O Characteristics
0. Voltage input, -10 to +10V, 20V x 1/32,000
9
2. Voltage input, direct display (-10,000 to +10,000)
4. Current input, 4 to 20mA, 16mA x 1/4,000
6. Current input, -20 to +20mA, 40mAx 1/16,000
1. Voltage input, -10 to +10V, 20V x 1/8,000
3. Current input, 4 to 20mA, 16mA x 1/8,000
5. Current input, direct display (4,000 to 20,000)
7. Current input, -20 to +20mA, 40mAx 1/8,000
Approx. +16,320
Approx. -16,320
-16,000
16,000
10
-10
Input
voltage
(V)
Digital value
Approx.
-10.2V
Approx.
+10.2V
Approx. -10,200
Approx. +10,200
-10,000
10,000
10
-10
Input
voltage
(V)
Digital value
Approx.
-10.2V
Approx.
+10.2V
Approx. +4,080
Approx. -4,080
-4,000
4,000
10
-10
Input
voltage
(V)
Digital value
Approx.
-10.2V
Approx.
+10.2V
20
0
8,000
4 Input current
(mA)
Digital value
20
0
4,000
4 Input current
(mA)
Digital value
20
0
20,000
4 Input current
(mA)
Digital value
4,000
200
8,000
-20
Input
current
(
mA
)
Digital value
-8,000
200
4,000
-20
Input
current
(
mA
)
Digital value
-4,000
4AD 4AD
4AD
4AD4AD
4AD
4AD 4AD

9. Thermocouple input, K type, Celsius
8. Current input, direct display (-20,000 to +20,000)
10
A. Thermocouple input, J type, Celsius
C. Thermocouple input, K type, Fahrenheit
E. Thermocouple input, T type, Fahrenheit
B. Thermocouple input, T type, Celsius
D. Thermocouple input, J type, Fahrenheit
200
20,000
-20
Input
current
(
mA
)
Digital value
-20,000 -1,000
01,000
Input
temperature
(
°C
)
Digital value
10,000
-100
-1,000
0 600
Input
temperature
(
°C
)
Digital value
6,000
-100
-1,480
0 1,832
Input
temperature
(
°F
)
Digital value
18,320
-148
-1,480
0 662
Input
temperature
(
°F
)
Digital value
6,620
-148
-1,000
0350
Input
temperature
(
°C
)
Digital value
3,500
-100
-1,480
0 1,112
Input
temperature
(
°F
)
Digital value
11,120
-148
4AD 4TC
4TC
4TC 4TC
4TC 4TC

FROM/TO Instruction
FROM Instruction
FNC(78) 16 bits: FROM(P) - - - - - - - - - - - - - - - - - - - - - - - - 9 steps EX EX1S EX1N EX2N
D FROM P
32 bits: (D)FROM(P) - - - - - - - - - - - - - - - - - - - - -17 steps
Operands: [D.]
K.H. KnX KnY KnM KnS T C D V,Z
Operands: m1 = 0 ~ 7 no. of special module
m2.= 0 ~ 32767 no. of buffer memory (BFM)
n.= 1 ~ 31 no. of read (when D, n=1~15)
X00 m1. m2. [D.] n.
FROM P K1 K29 K4M0 K1
module no BFM# destination read no.
♦When X00 ON, the buffer memory of special module BFM#29 to be read out and stored into M00~M15.
<< Special Device Module Number m1>>
CPU I / O module no.0 I / O
11
♦The BFM is the memory address of special module.
♦The number of special module is address to NO.0~NO.7 and beginning with the one closest to the CPU unit.
♦The special module can up to 8 maximum, and no occupy i/o points.
TO instruction
FNC(79) 16 bits: TO(P) - - - - - - - - - - - - - - - - - - - - - - - - - - 9 steps EX EX1S EX1N EX2N
D TO P
32 bits: (D)TO(P) - - - - - - - - - - - - - - - - - - - - - - - 17 steps
Operands: [S.]
K.H. KnX KnY KnM KnS T C D V,Z
Operands: m1=0~7 no.ofspecialmodule
m2.= 0 ~ 32767 no. of buffer memory (BFM)
n.=1~ 31 no. of write (when D, n=1~15)
X00 m1. m2. [S.] n.
TO P K1 K12 D0 K1
module no BFM# destination write no
X00~X07
Y00~Y07 X10~X17
Y10~Y17 X20~X27
Y20~Y27
K = 0
♦When X00 ON, the content of D0 to be write into the buffer memory BFM#12 of the special module NO.1
♦If used pulse command can decrement cycle time.
<< Number of Read n >>
PLC BFM
16 bits and n=4
D 100
D 101
D 102
D 103
BFM #16
BFM #17
BFM
#
1
8
BFM #19
BFMPLC
32 bits and n=2
BFM #16
BFM #17
BFM
#
1
8
BFM #19
D 100
D 101
D 102
D 103

Configuration of Hardware
EXPLC main unit Ex1n4AD Ex1n4TC
Example program
M8002
[TO K0 K0 H2222 K1 ] select 4AD CH1-CH4 voltage mode
[TO K1 K0 HC9C9 K1 ]
12
M8002
[TO K0 K18 H000F K1 ] enable 4AD CH1-CH4
[TO K1 K18 H000F K1 ] enable 4TC CH1-CH4
M8002
[FROM K0 K30 D830 K1 ] read version code
[FROM K1 K30 D930 K1 ] read version code
M8000
[FROM K0 K10 D810 K4 ] read 4AD current measurement value
[FROM K1 K10 D910 K4 ] read 4TC current measurement value
M1000
[TO K1 K180 K415 K1 ] modify thermocouple (K Type) to 0.415mv/10°C
[TO K1 K181 K550 K1 ] modify thermocouple (J Type) to 0.550mv/10°C
[TO K1 K182 K500 K1 ] modify thermocouple (T Type) to 0.500mv/10°C
[ END ]
select CH1,CH3 of 4TC to K Type thermocouple(°C)
select CH2,CH4 of 4TC to K Type thermocouple(°F)

LIYAN PROGRAMMABLE LOGIC CONTROLLER
LIYAN ELECTRIC INDUSTRIAL LTD.
TEL : 886 - 4 – 25613700
Ex1n4AD-edoc0511v128b FAX : 886 - 4 – 25613408
Website : http://www.liyanplc.com
E – mail : [email protected]
This manual suits for next models
1
Table of contents