Delta DVP04DA-H Instruction Sheet

http://www.delta.com.tw/products/plc.asp
DVP-EH
DVP04DA-H
Analog Input Module
Instruction Sheet
Always read this manual thoroughly before using the DVP04DA-H.
The DC input power must be disconnected before any maintenance.
This is an OPEN-TYPE built-in DVP04DA-H, and the DVP04DA-H is certified to meet the safety
requirements of IEC 61131-2 (UL 508) when installed in the enclosure to avoid high temperature, high humidity, exceessive vibration, corrosive gases, liquids, airbome dust or metallic particles. Also, it is equipped with protective methods such as some special tool or key to open the enclosure, so as to avoid the hazard to users and the damage to the DVP04DA-H.
Do not connect the AC power to any of the input/output terminals, as it might cause damage to
the DVP04DA-H. Make sure that all the wiring is well conducted prior to power on.
Do not touch the internal circuit for at least 1 minute after the power supply is disconnected.
Make sure that the DVP04DA-H is properly grounded , to avoid any electromagnetic noise.
2 INTRODUCTION
2.1 Model Explanation and Peripherals
Thank you for choosing DELTA’s PLC DVP Series. The analog output module of DVP04DA-H
series can read/write the data of analog output module by using commands FROM / TO via
DVP-PLC EH Series MPU program. The analog output module receives 12-bit digital data of 4
groups from PLC MPU and transforms it into 4 points analog output signal (voltage or current).
DVP04DA-H analog output module can update software version by RS-485 communication.
Users can select output from voltage or current via wiring. Voltage output range is 0V ~ +10V DC
(resolution is 2.5 mV). Current output range is 0mA ~ 20mA (resolution is 5 µA).
Nameplate Explanation
20.4VDC ~ 28.8VDC
VX.XX
04DA-H0T4130001
0 ~ +10V or -0 ~+20mA
2.5mV or 5 A
Model Name
Input power supply spec.
Analog inp ut/output module spec.
Barcode
Model Explanation
Serial Number
Model
Product Series
Input+Output point
Model type
AD: Analog input module DA: Analog output module PT: Platinum temperature sensors(PT-100) TC: Thermocouple sensors(Type J/K)
S: for SS series MPU P: for EP series MPU H: for EH series MPU
Production week
Production place (Taoyuan)
Production year (2004)
Production Model
XA: A/D , D/A Functions RT: Resistor Thermocouple HC: High speed count input module PU: single axis positioning unit
2.2 Product Profile and Outline
Unit:mm
1. DIN rail location (35mm) 6. Terminals
2. Mounting hole to connect expansion unit/expansion module
7. Expansion hole of the expansion unit mounting pins
3. Model name 8. Terminal layout
4. Indicator LED for power, error and run state
9. Mounting port to connect expansion unit/expansion module
5. DIN rail clip
2.3 External wiring
V+ I+
COM
V+ I+
COM
24+ 24-
DC/DC
+15V
-15V
AG
FG
FG
CH1
CH1
0V~+10V
*2
*3
DC24V
CH2
CH2
AC drive, recorder, scale valve...
AC drive, recorder, scale valve...
voltage output
shielding cable *1
shielding cable *1
current output
converter
terminal of power module
system grounding
class 3 grounding (100 or less)
Note 1: Please isolate analog output and
other power wiring.
Note 2: If wave of input terminal of loaded is
too big that noise interferes wiring,
please connect capacitance with
0.1~0.47µF 25V.
Note 3: Please connect
terminal of
power module and
terminal of
analog output module to system
earth point and make system earth
point be grounding or connects to
machine cover.
Warning: DO NOT wire to the No function
terminal .
3 STANDARD SPECIFICATIONS
3.1 Specifications
Digital/Analog (4D/A) Module Voltage Output Current Output
Power Supply Voltage 24 VDC(20.4VDC~28.8VDC) ( –15%~+20%)
Analog Output Channel 4 channels / each module
Analog Output Range 0~10V 0~20 mA
Digital Data Range 0~4000 0~4000
Resolution 12 bits (1
LSB
=2.5 mV) 12 bits (1
LSB
=5 µA)
Output Impedance 0.5 or lower
Overall Accuracy
±0.5% of full scale of 25(77℉)
±1% of full scale during 0~55 (32~131℉)
Response Time
3 ms ×channels
Max. Output Current
20 mA(1KΩ~2MΩ)
Tolerance Carried Impedance
0〜500Ω
Digital Data Format 2’s complementary of 16-bit, 13 Significant Bits Isolation Method It has isolation between digital area and analog area. There is no
isolation among channels.
Protection
Voltage output has short circuit protection but short circuit for a long time may cause inner wiring damage and current output break.
Communication mode (RS-485)
Yes, there are ASCII/RTU modes, communication rate can be 4800 /9600 /19200 /38400 /57600 /115200. Communication format of ASCII mode is 7Bit, even bit, 1 stop bit (7 E 1). Communication format of RTU mode is 8Bit, even bit, 1 stop bit (8 E 1). When connecting to PLC MPU in series, RS-485 can’t be used.
Connect to DVP-PLC MPU in series
The input point of the first analog expansion unit it connects from the near to the distant is from 0 to 7. The Max. is 8 modules and it won’t waste digital I/O point.
3.2 Other Specification
Power Specification
Max. Rated Consuming Power
24 VDC (20.4VDC~28.8VDC) (–15%〜+20%), 2W, supply from external power
Environment Condition Environment Condition It is the same with DVP-PLC MPU. Spec. of Prevent Static Electricity (all places between terminal and grounding)
4 CR (Control Register)
DVP04DA-H Analog Output Module Explanation
CR No.
RS-485
Parameters
Address
Latched Register Name b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
#0 H 4032 ○ R Model type
System used, DVP04DA-H model code=H 0401
Reserved CH4 CH3 CH2 CH1 #1 H 4033 ○ R/W Output mode setting
Output mode setting: factory setting is H0000.
Mode 0: output voltage mode (0V~10V). Mode 1: output voltage mode (2V~10V). Mode 2: output current mode (4mA~20mA). Mode 3: output current mode (0mA~20mA). Mode 4: none use.
#2 ~ #5 Reserved
DVP04DA-H Analog Output Module Explanation
CR No.
RS-485
Parameters
Address
Latched Register Name b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
#6 H 4038 ○ R/W CH1 output value #7 H 4039 ○ R/W CH2 output value #8 H 403A ○ R/W CH3 output value #9 H 403B ○ R/W CH4 output value
The output setting range of channel CH1~CH4 is K0~K4000. Factory setting is K0
#10~#17 Reserved
#18 H 4044 ○ R/W To adjust OFFSET
value of CH1
#19 H 4045 ○ R/W To adjust OFFSET
value of CH2
#20 H 4046 ○ R/W To adjust OFFSET
value of CH3
#21 H 4047 ○ R/W To adjust OFFSET
value of CH4
It is used to set the OFFSET value of CH1~CH4. The setting range is K-2000~K2000. The factory setting is K0 and unit is LSB.
#22 ~ #23 Reserved
#24 H 404A ○ R/W To adjust GAIN
value of CH1
#25 H 404B ○ R/W To adjust GAIN
value of CH2
#26 H 404C ○ R/W To adjust GAIN
value of CH3
#27 H 404D ○ R/W To adjust GAIN
value of CH4
It is used to set the GAIN value of CH1~CH4. The setting range is K-1600~K8000. The factory setting is K2000 and unit is LSB.
#28~#29 Reserved #30 H 4050 ╳ R Error status It is the data register to save all error status. Please refer to fault code chart for detail. #31 H 4051 ○ R/W Communication
address setting
It is used to set RS-485 communication address. The setting range is from 01 to 255 and the factory setting is K1.
#32 H 4052 ○ R/W Communication
Baud Rate setting
It is used to set communication baud rate (4800, 9600, 19200, 38400, 57600, 115200bps). Communication format: ASCII mode is 7Bit, even bit, 1 stop bit (7 E 1). Communication format of RTU mode is 8Bit, even bit, 1 stop bit (8 E 1).
b0: 4800 bps (bit/sec). b1: 9600 bps (bit/sec). (factory setting) b2: 19200 bps (bit/sec). b3: 38400 bps (bit/sec). b4: 57600 bps (bit/sec). b5: 115200 bps (bit/sec). b6-b13: reserved. b14: exchange low and high byte of CRC check code (only for RTU mode) b15: ASCII / RTU mode selection
b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0
Reserved CH4 CH3 CH2 CH1
#33 H 4053 ○ R/W Reset to factory
setting and set characteristics adjustable priority
Factory setting H0000. Give CH1 setting for example:
1. When b0=0, user can set OFFSET and GAIN value of CH1 (CR#18, CR#24). When b0=1, inhibit user to adjust OFFSET and GAIN value of CH1 (CR#18, CR#24).
2. b1 means if characteristic register is latched. b1=0 (factory setting, latched), b1=1 (not latched).
3. When b2 is set to 1, all settings will reset to factory setting.
#34 H 4054 ○ R Software version. It is hexadecimal to display software version. For example: H 010A means 1.0A.
#35~#48 System used
means latched. means not latched.
R means can read data by using FROM command or RS-485. W means can write data by using TO command or RS-485. LSB (Least Significant Bit): 1. Voltage output: 1
LSB
=10V/8000=2.5mV. 2. Current output: 1
LSB
=20mA/4000=5µA.
Explanation:
1. The content of CR#0 is model type, user can read the data from program to know if there is expansion module.
2. CR#1 is used to set two inner channels working mode of analog output module. Every channel has four modes to set and can be set individually. For example: if setting CH1 to mode 2 (b2~b0=010), CH2 to mode 1(b5~b3=001). It needs to set CR#1 to H000A. The factory setting of CR#1 is H0000.
3. CR#2 ~ CR#5, CR#10 ~ CR#17, CR#22, CR#23, CR#28, CR#29 Reserved.
4. CR #6 ~ CR#9 display CH1~CH4 output signal. The setting range is K0~K4000. Factory setting is K0 and unit is LSB.
5. CR#18 ~ CR#21 means the value of adjusting OFFSET value of CH1~CH4. The factory setting is K0 and unit is LSB. If output value equal to 0 after calculating, the adjustable range of analog output voltage or current is -2000~+2000. Voltage adjustable range: -5V~+5V(-2000
LSB
~+2000
LSB
).
Current adjustable range: -10mA~+10mA (-2000
LSB
~+2000
LSB
).
6. CR#24 ~ CR#27 means the value of adjust GAIN value of CH1~CH4. The factory setting is K2000 and unit is LSB. If output value equal to 2000 after calculating, the adjustable range of analog output voltage or current is -1600~+8000. Voltage adjustable range: -4V~+20V(-1600
LSB
~+8000
LSB
).
Current adjustable range: -8mA ~+40mA (-1600
LSB
~+8000
LSB
).
But it needs to notice that GAIN VALUE – OFFSET VALUE = +400
LSB
~+6000
LSB
(voltage or
current). When
this value is under this range, the resolution of the output signal will be thin and the
variation of value will be larger. When this value exceeds this range, the resolution of output signal will be thick and the variation of value will be smaller.
7. CR#30 is fault code. Please refer to the following chart.
Fault Description
Content b15~b8 b7 b6 b5 b4 b3 b2 b1 b0
Power Source Abnormal
K1(H1) 0 0 0 0 0 0 0 1
Analog Input Value Error
K2(H2) 0 0 0 0 0 0 1 0
Setting Mode Error
K4(H4) 0 0 0 0 0 1 0 0
Offset/Gain Error
K8(H8) 0 0 0 0 1 0 0 0
Hardware Malfunction
K16(H10) 0 0 0 1 0 0 0 0
Digital Range Error
K32(H20) 0 0 1 0 0 0 0 0
Average Times Setting Error
K64(H40) 0 1 0 0 0 0 0 0
Command Error
K128(H80)
Reserved
1 0 0 0 0 0 0 0
Note: Each fault code will have corresponding bit (b0~b7). Two or more faults may happen at the same time. 0
means normal and 1 means having fault.
8. CR#31 is used to set RS-485 communication address. The setting range is from 01 to 255. The factory setting is K1.
9. CR#32 is used to set RS-485 communication baud rate: 4800, 9600, 19200, 38400, 57600, 115200 bps. b0: 4800bps. b1: 9600bps. (factory setting) b2: 19200bps. b3: 38400 bps. b4: 57600 bps. b5: 115200 bps. b6-b13: reserved. b14: exchange low and high byte of CRC check code. (only for RTU mode) b15=0: ASCII mode. b15=1: RTU mode. Communication format: ASCII mode is 7Bit, even bit, 1 stop bit (7 E 1). Communication format of RTU mode is 8Bit, even bit, 1 stop bit (8 E 1).
10. CR#33 is used to set the inner function priority. For example: characteristic register. Output latched
function will save output setting in the inner memory before power loss.
11. CR#34 is software version of model type.
12. CR#35~ CR#48 are used for system.
13. The corresponding parameters address H4032~H4063 of CR#0~CR#48 can provide user to
read/write data by RS-485.
A. Communication baud rate: 4800, 9600, 19200, 38400, 57600, 115200 bps. B. Communication format: ASCII mode is 7Bit, even bit, 1 stop bit (7 E 1). Communication
format of RTU mode is 8Bit, even bit, 1 stop bit (8 E 1).
C. Function code: 03H—read data from register. 06H—write a WORD into register. 10H—write
many WORDs into register.
5 ADJUST D/A CONVERSION CHARACTERISTIC CURVE
5.1 Adjust D/A Conversion Characteristic Curve
Voltage output mode
Mode 0 of CR#1: GAIN = 5V(2000
LSB
),
OFFSET=0V (0
LSB
)
Mode 1 of CR#1: GAIN = 6V(2400
LSB
),
OFFSET=2V (800
LSB
).
GAIN: The setting range of voltage output value when
digital input value is K2000 should be
-4V~+20V(-1600
LSB
~+8000
LSB
).
OFFSET: The setting range of voltage output value when
digital input value is K0 should be
-5V~+5V(-2000
LSB
~ +2000
LSB
).
0
+2000 +4000
2V
5V
6V
10V
OFFSET
GAIN
voltage output
Digital input
mode 0
mode 1
GAINOFFSET:
Setting range: +1V~+15V (+400
LSB
~ +6000
LSB
).
Current output mode
Mode 2 of CR#1: GAIN = 12mA(2400
LSB
),
OFFSET=4mA (800
LSB
).
Mode 3 of CR#1: GAIN = 10mA(2000
LSB
),
OFFSET=0mA (0
LSB
).
GAIN: The setting range of current output when digital
input value is K2000 should be -8mA~+40mA (-1600
LSB
~+8000
LSB
).
OFFSET: The setting range of current output when digital
input value is K0 should be -10mA ~+10mA (-2000
LSB
~+2000
LSB
).
0
+2000 +4000
20mA
OFFSET
GAIN
12mA 10mA
4mA
current output
digital input
mode 3
mode 2
GAINOFFSET:
Setting range: +2mA~+30mA (+400
LSB
~+6000
LSB
).
The above charts are D/A conversion characteristic curve of voltage output mode and current output mode. Users can adjust conversion characteristic curve by changing OFFSET values (CR#18~CR#21) and GAIN values (CR#24~CR#27) depend on application.
LSB(Least Significant Bit): 1.voltage output:1
LSB
=10V/4000=2.5mV. 2. current output:
1
LSB
=20mA/4000=5µA.
5.2 Program Example for Adjusting D/A Conversion Characteristics Curve
Example 1: Setting OFFSET value of CH1 to 0V(=K0
LSB
) and GAIN value is 2.5V(=K1000
LSB
).
X0
K1000
K24
H10 K1
K1
H0 K1
M1002
K33
K1
K1
K18
K0
TO
TO
TO
TO
K1
K1
K1
K1
Writing H10 into CR#1 of analog
output module#0. Setting CH1 to mode 0 (voltage output 0V~ +10V), and set CH2 to mode 2 (current output 4mA~+20mA).
Writing H0 into CR#33 and allow
CH1~CH4 to adjust characteristics.
When X0 switches from OFF to
ON, K0
LSB
of OFFSET value will be
wrote in CR#18 and K1000
LSB
of
GAIN value will be wrote in CR#24.
Example 2: Setting OFFSET value of CH2 to 2mA (=K400
LSB
) and GAIN value to 18 mA (=K3600
LSB
).
X0
K1
K1
H0 K1
M1002
K33
K1
K1
H18
K19
K25
K400
K3600
TO
TO
TO
TO
K1
K1
K1
K1
Writing H18 into CR#1 of analog
output module#0. Setting CH1 to mode 0 (voltage output 0V~+10V) and set CH2 to mode 3 (current output 0mA~ +20mA).
Writing H0 into CR#33 and allow to
adjust characteristic of CH1~CH4.
When X0 switches from OFF to
ON, K400
LSB
of OFFSET value will
be wrote in CR#19 and K3600
LSB
of
GAIN value will be wrote in CR#25.
6 INITIAL PLC START-UP
Lamp display
1. When power is on, POWER LED will be lit and ERROR LED will be lit for 0.5 second.
2. It is normal that POWER LED should be lit and ERROR LED should turn off. When power supply is lower than 19.5V, ERROR LED will blink continuously till the power supply is higher than 19.5V.
3. When it connects to PLC MPU in series, RUN LED on MPU will be lit and A/D LED or D/A LED should blink.
4. After receiving the first RS-485 command during controlling by RS-485, A/D LED or D/A LED should blink.
5. After converting, ERROR LED should blink if input or output exceeds upper bound or lower than lower bound.
Program example:
M0
K1
M1000
FROM
END
D0TOK0K1
D0CMP H401
INC D100
ADD D101 K5
LD= K4000 RST
H10
K2K6
M1
M1013
D101
D100 D100
LD=
K4000
RST
D101D101
K1 K1 K1
TO
M1
K1
D100
Explanation: Reading the data of model type from expansion module K1 and distinguish if the data is H0401
(DVP04DA-H model type).
D100 will increase K1 and D101 will increase K5 every second. When value of D100 and D101 attain to K4000, they will be reset to 0. If the model type is DVP04DA-H, M1 will be on and set the output mode: CH1 mode to 0, CH2 mode
to 2.
Writing output setting CR#6 and CR#7 to D100 and D101. Analog output will change with D100 and
D101 value.
7 COMMAND EXPLANATION
API
Adaptive model ES EP EH
78
D
FROM
P
Read special module CR data
Bit device Word device
X Y M S K H KnX KnY KnM KnS T C D E F m1 ¼ ¼ m2 ¼ ¼
D ¼ ¼ ¼ ¼ ¼ ¼ ¼ ¼
n ¼ ¼
Note: The usage range of operand m
1
is 0~7. The usage range of operand m2: ES/EP: 0-48, EH: 0-254. The usage range of operand n: ES/EP: n= 1~(49-m2), EH: 1~(255-m2).
ES series model doesn’t support pulse execution command (FROMP, DFROMP).
16-bit command (9 STEPS)
FROM
Continuous execution
FROMP
Pulse execution
32-bit command (17 STEPS)
DFROM
Continuous execution
DFROMP
Pulse execution
Flag: When M1083=On, it allows to
insert interrupt during FROM/TO. Refer to following for detail.
Command
Explanation
: the number for special module. : the number of CR (Control Register) of
special module that will be read.
: the location to save reading data. : the
data number of reading ONCE.
DVP-series PLC uses this command to read CR data of special module.
: When assigning bit operand, K1~K4 can be used for 16-bit and K5~K8 can be
used for 32-bit.
Please refer the following footnote for calculating of special module number.
Program Example
To read the content of CR#24 of special module#0 to D0 of PLC and to read the
content of CR#25 of special module#0 to D1 of PLC. It can read 2 data in one time
(n=2).
The command will be executed when X0=ON. The command won’t be executed when
X0=OFF and the content of previous reading data won’t change.
X0
FROM K0 K24 D0 K2
API
Adaptive model
ES EP EH
79
D
TO
P
Special module CR data write in
  
Bit device Word device
X Y M S K H KnX KnY KnM KnS T C D E F
m
1
¼ ¼
m
2
¼ ¼ S ¼ ¼ ¼ ¼ ¼ ¼ ¼ ¼ ¼ ¼ ¼ n ¼ ¼
Note: The usage range of operand m
1
is 0~7. The usage range of operand m2: ES/EP: 0-48, EH: 0-254. The usage range of operand n: ES/EP: 1~(49-m2), EH: 1~(255-m2).
For ES series, it doesn’t support pulse execution command (TOP, DTOP)
16-bit command (9 STEPS)
TO
Continuous execution
TOP
Pulse execution
32-bit command (17 STEPS)
DTO
Continuous execution
DTOP
Pulse execution
Flag: When M1083=On, it allows to
insert interrupt during FROM/TO. Refer to following for detail.
Command
Explanation
: the number of special module. : the number of CR (Control Register) of
special module that will be wrote in.
: the data to write in CR. : the data
number to write in one time.
DVP-series PLC uses this command to write data into CR of special module.
: When assigning bit operand, K1~K4 can be used for 16-bit and K5~K8 can be
used for 32-bit.
Program
Example
Using 32-bit command DTO, program will write D11 and D10 into CR#3 and CR#2 of
special module#0. It only writes a group of data in one time (n=1).
The command will be executed when X0=ON and it won’t be executed when
X0=OFF. The data that wrote in previous won’t have any change.
X0
K0 K2 D0DTO
K1
Footnote
The rule of command operand
m1: arrangement number of special module. The number of special module
that connects to PLC MPU. The numbering order of special module from the near to the distant of MPU is from 0 to 7. The maximum is 8 special modules and won’t occupy I/O point.
m2: the number of CR. Built-in 16-bit of 49 groups memory of special module
is called CR (Control Register). The number of CR uses decimal digital (#0~#48). All running status and setting values of special module have included.
If using FROM/TO command, the unit of read/write of CR is one number for
one time. If using DFROM/DTO command, the unit of read/write of CR is two numbers in one time.
CR #10 CR #9
Upper 16-bit
Lower 16-bit
Spec ified C R number
The number of transmission groups n. The meaning of n=2 of 16-bit
command and n=1 of 32-bit are the same.
D0
D1
D2
D3 D4
D5
CR #5
CR #6
CR #7
CR #8 CR #9
CR #10
D0
D1
D2
D3 D4
D5
CR #5
CR #6
CR #7
CR #8 CR #9
CR #10
Specified device
Speci fied C
R
Specified device
Speci fied CR
16-bit command when n=6
32-bit command when n=3
In ES series models, flag M1083 is not provided. When FROM/TO command is
executed, all interrupts (including external or internal interrupt subroutines) will be disabled. All interrupts will be executed after completing FROM/TO command. Besides, FROM/TO command also can be executed in the interrupt subroutine.
The function of the flag M1083 (FROM/TO mode exchange) provided in EP/EH
series models:
1. When M1083=Off, FROM/TO command is executed, all interrupts (including external or internal interrupt subroutines) will be disabled. All interrupts will be executed after completing FROM/TO command. Besides, FROM/TO command also can be executed in the interrupt subroutine.
2. When M1083=On, if an interrupt occurs while FROM/TO command has been programmed, FROM/TO command will be interruptted to execute the interrupt. However, FROM/TO command cannot be executed in the interrupt subroutine.
Loading...