2.3 External wiring Note 1: Please isolate analog input and other power wiring. voltage input -10V~+10V http://www.delta.com.tw/products/plc.asp *5 DVP04AD-H Analog Input Module DVP-EH shielding cable*1 current input -20mA~+20mA shielding cable*1 *4 System Grounding The DC input power must be OFF before any maintenance. This is an OPEN-TYPE built-in DVP04AD-H, and the DVP04AD-H is certified to meet the safety requirements of IEC 61131-2 (UL 508) when installed in the enclosure to prevent 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, in order to prevent the hazard to users and the damage to the DVP04AD-H. Do not connect the AC power to any of the input/output terminals, or it may damage the DVP04AD-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 OFF. 2 , to prevent any electromagnetic noise. INTRODUCTION Model Explanation and Peripherals Thank you for choosing DELTA’s PLC DVP Series. The analog input module receives external 4-point analog signal input (voltage or current) and converts it into 14 bits digital signal. The Users can select input from voltage or current via wiring. Voltage input range is ±10V DC (resolution is 1.25 mV). Current input range is ±20 mA (resolution is 5 µA). Nameplate Explanation Connect to DVP-PLC MPU in series 04AD-H0T 4120001 Serial Number 3.2 Product Series S: for SS series MPU P: for EP series MPU H: for EH ser ies MPU Model type AD: Analog input module DA: Analog output module PT: Platinum temperatur e sensors(PT-100) TC: Thermocouple sensor s(Type J/K) XA: A/D , D/A Functions RT: Resistor Thermocouple HC: High speed count input module PU: single axis positioning unit Production week Production place (Taoyuan) Production Model 5. DIN rail clip Other Specification Max. Rated Consuming Power Environment Condition Spec. of Prevent Static Electricity Power Specification 24 VDC(20.4VDC~28.8VDC) ( –15%~+10%), 2W, supply from external power Environment Condition Follow the DVP-PLC MPU All places between terminals and ground comply with the spec. CR (Control Register) DVP04AD-H analog signal input module RS-485 CR Parameter Latched Register name No. address #0 H 4000 ○ R Model type #1 H 4001 ○ R/W Input mode setting #2 #3 #4 #5 #6 H 4002 H 4003 H 4004 H 4005 H 4006 ○ ○ ○ ○ ╳ R/W R/W R/W R/W R 6. Terminals #7 H 4007 ╳ R 7. Mounting hole #8 H 4008 ╳ R #9 H 4009 ╳ R #10 ~ #11 #12 H 400C ╳ R 8. Terminal layout 9. Mounting port to connect extension unit/extension module +15V AG -15V module and terminal of analog input module to system earth point and make system earth point be grounded or connects to machine cover. Note 5: If the noise interference from loaded wire input terminal is significant, please connect a capacitor with 0.1~0.47µF 25V for noise filtering. Warning: DO NOT wire to the No function terminal ●. Voltage input Current input 24 VDC(20.4VDC~28.8VDC) ( –15%〜+20%) 4 channel / each module ±10V ±20 mA ±8000 ±4000 14 bits(1LSB=1.25 mV) 13 bits (1LSB=5 µA) 200 KΩ or above 250Ω ±0.5% of full scale of 25℃(77℉) ±1% of full scale during 0~55℃ (32~131℉) 3 ms × channels It has isolation between digital area and analog area. There is no isolation among channels. ±15 V ±32 mA 2’s complementary of 16-bit, 13 Significant Bits Yes (CR#2~CR#5 can be set and setting range is K1~K4096) Upper and lower bound detection / channels Either in ASCII or in RTU mode, 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). Can’t use RS-485 if the connection to PLC MPU is in series. If DVP04AD-H modules are connected to MPU, the modules are numbered from 0 – 7. 0 is the closest and 7 is the furthest to the MPU. 8 modules is the max and they do not occupy any digital I/O points of the MPU. 4 Unit: mm 4. Indicator for power, error and run status DC/DC converter Production year (2004) Product Profile and Outline 1. DIN rail track (35mm) 2. Mounting hole for wire to connect extension unit/extension module 3. Model name Absolute input range Digital data format Average function Self diagnose function 20.4VDC ~ 28.8VDC -10V ~ +10V or -20mA ~+20mA 1.25mV or 5 A Model Explanation Input+O utput point 104.7K AG terminal of power Note 4: Please connect Function Specifications Analog/ Digital (4A/D) module Power supply voltage Analog input channel Analog input range Digital conversion range Resolution Input impedance Communication mode (RS-485) Model CH4 250 24+ 24- Isolation Method Software version of DVP04AD-H analog input module can be updated via RS-485 communication. 2.2 3.1 Response time Register, each register has 16-bit) in each module. VX.XX AG Note 2: If connect to current signal, please short out between V+ and I+ terminals. Note 3: If noise is significant, please connect FG to ground. STANDARD SPECIFICATIONS using instructions FROM / TO via DVP-PLC EH Series MPU program. There are 49 CR (Control Analog input/output module spec. 104.7K 104.7K 3 Overall accuracy Model Name Input power supply spec. CH1 Class 3 Grouning (100 or less) analog input module of DVP04AD-H series can read/write the data of analog input module by Barcode V+ I+ COM FG 104.7K 250 terminal of power module Please carefully read this instruction thoroughly prior to use the DVP04AD-H. 2.1 V+ I+ COM FG *3 WARNING Make sure that the DVP04AD-H is properly grounded CH4 *2 Instruction Sheet 1 CH1 CH1 average times CH2 average times CH3 average times CH4 average times average value of CH1 input signal average value of CH2 input signal average value of CH3 input signal average value of CH4 input signal Explanation b15 b14 b13 b12 b11 b10 b9 b8 b7 b5 b4 b3 System used. DVP04AD-H model code =H 400 Reserved CH4 CH3 CH2 Input mode setting: factory setting is H0000. Mode 0: input voltage mode (-10V~+10V). Mode 1: input voltage mode (-6V~+10V). Mode 2: input current mode (-12mA~+20mA) Mode 3: input current mode (-20mA~+20mA) Mode 4: none use. b2 b1 b0 CH1 The number of readings used for calculating “average” temperature on channels CH1~CH4. Setting range is K1~K4096 and factory setting is K10. Display average value of CH1~CH4 input signal Reserved present value of CH1 input signal b6 Display present value of CH1~CH2 input signal DVP04AD-H analog signal input module RS-485 CR Parameter Latched Register name No. address #13 H 400D ╳ R Present value of CH2 input signal #14 H 400E ╳ R Present value of CH3 input signal #15 H 400F ╳ R Present value of CH4 input signal #16 ~ #17 #18 H 4012 ○ R/W To adjust OFFSET value of CH1 #19 H 4013 ○ R/W To adjust OFFSET value of CH2 #20 H 4014 ○ R/W To adjust OFFSET value of CH3 #21 H 4015 ○ R/W To adjust OFFSET value of CH4 #22 ~ #23 #24 H 4018 ○ R/W To adjust GAIN value of CH1 #25 H 4019 ○ R/W To adjust GAIN value of CH2 #26 H 401A ○ R/W To adjust GAIN value of CH3 #27 H 401B ○ R/W To adjust GAIN value of CH4 #28 ~ #29 #30 H 401E ╳ R Error status Explanation b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 Display the present value of CH3~CH4 input signal Reserved Offset setting of CH1~CH4. Factory setting is K0 and unit is LSB. Voltage input: setting range is K-4000 ~K4000 Current input: setting range is K-4000 ~K4000 Reserved GAIN setting of CH1~CH4. Factory setting is K4000 and unit is LSB. Voltage input: setting range is K-3200 ~K16000. Current input: setting range is K-3200 ~K10400. Reserved The data register used to save all error status. Please refer to fault code chart for details. #31 H 401F ○ R/W Communication Setting RS-485 communication address. Setting range is 01~255 and factory setting address setting is K1 #32 H 4020 ○ R/W Communication baud It is used to set communication baud rate (4800, 9600, 19200, 38400, 57600, rate setting 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 #33 H 4021 ○ R/W Reset to factory b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 setting and set Reserved CH4 CH3 CH2 CH1 characteristics Factory setting is H0000. adjustable priority 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 4022 ○ 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 instruction or RS-485. W means can write data by using TO instruction or RS-485. LSB (Least Significant Bit): 1. Voltage input: 1LSB=10V/8000=2.5mV. 2. Current input: 1LSB=20mA/4000=5µA. Explanation: 1. CR#0: The content of CR#0 is model type, user can read the data from program to know if there is extension module. 2. CR#1: CR#1 is used to set 4 internal channels working mode of analog input module. Every channel has four modes to set and can be set individually. For example: if setting CH1 to mode 0 (b2~b0=000), CH2 to mode 1(b5~b3=001), CH3: mode2 (b8~b6=010), CH4: mode 3(b11~b9=011). It needs to set CR#1 to H0688 and the upper bit (b12~b15) will reserved. The factory setting of CR#1 is H0000. 3. CR#2 ~ CR#5: it is used to set average times of CH1~CH4. Setting range is K1~K4096 and factory setting is K10. 4. CR#6 to CR#9 are the average value that calculates according to the value that is set in CR#2~CR#5 (average time of CH1~CH4 input signal). For example, if CR#2 (the average times of CH1) is 10, it will calculate the average of CH1 input signal every 10 times. 5. CR#10, CR#11, CR#16, CR#17, CR#22, CR#23, CR#28, CR#29 reserved. 6. CR#12 ~ CR#15: display present value of CH1~CH4 input signal. 7. CR #18~ CR #21: the content is the value of adjusting OFFSET value of CH1~CH4 if analog input voltage or current is 0 after it transfers from analog to digital. Voltage setting range: -5V~+5V(-4000LSB~+4000LSB). Current setting range: -20mA~+20mA (-4000LSB~+4000LSB). 8. CR #24~ CR #27: means analog input voltage or current when conversion value from analog signal to digital is 4000. Voltage setting range: -4V~+20V(-3200LSB~+16000LSB). Current setting range: -16mA~+52mA(-3200LSB ~+10400LSB). But please be noticed GAIN VALUE – OFFSET VALUE = +800LSB~+12000LSB (voltage) or +800LSB~+6400LSB (current). When this value under this range, the resolution of the input signal will be thin and the variation of value will be larger. When this value exceeds this range, the resolution of input signal will be thick and the variation of value will be smaller. 9. CR#30 is the fault code. Please refer to the chart below. 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 Reserved 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 Instruction error K128(H80) 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. 10. CR#31: it is used to set RS-485 communication address. Setting range is 01~255 and factory setting is K1. 11. 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). 12. CR#33 is used to set the internal function priority, such as characteristic register. Output latched function will save output setting in the inner memory before power loss. 13. CR#34: software version. 14. CR#35~ CR#48: system used. 15. The corresponding parameters address H4000~H4030 of CR#0~CR#48 are provided for user to read/write data through 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 one WORD into register. 10H—write multiple WORD into registers. 5 M1002 0 -10V -6V -20mA GAIN: -12mA 0 4mA OFFSET -4000 K33 H0 K1 TO K0 K19 K400 K1 K0 K25 20mA GAIN Current input value when digital output is +4000. Setting range is -20 mA~+20 mA (-4000LSB ~ +4000LSB ) OFFSET: Current input value when digital output value is 0. Setting range is-16 mA ~+52 mA (-3200LSB ~ +10400LSB) GAIN-OFFSET: Setting range is +4mA ~ +32mA (800LSB~ +6400LSB) current input Using charts above to adjust A/D conversion characteristic curve of voltage input mode and current input 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 input: 1LSB=10V/8000=1.25mV. 2. current input: 1LSB=20mA/4000=5µA. 5.2. Program Example for Adjusting A/D Conversion Characteristics Curve Example 1: setting OFFSET value of CH1 to 0V(=K0LSB) and GAIN value of CH1 to 2.5V(=K2000LSB). M1002 TO K0 K1 H0 K1 TO K0 K33 H0 K1 X0 TO K0 K18 K0 K1 TO K0 K24 K2000 K1 Writing H0 to CR#1 of analog input module no. 0 and set CH1 to mode 0 (voltage input -10V~+10V) Writing H1 to CR#33 and allow to adjust characters of CH1~CH4. When X0 switches from Off to On, K0LSB of OFFSET value will be wrote in CR#18 and K2000LSB of GAIN value will be wrote in CR#24. Example 2: setting OFFSET value of CH2 to 2mA(=K400 LSB) and GAIN value of CH2 to 18 mA Writing H0 to CR#33 and allow to adjust characteristics of CH4. K3600 When X0 switches from Off to On, K400LSB of OFFSET value will be wrote in CR#19 and K3600LSB of GAIN value will be wrote in CR#25. K1 M1002 = H400 D0 = H400 D0 TO K0 K1 H3030 K1 TO K0 K2 K32 K2 FROM K0 K6 D20 K4 Explanation: Read the data of model type from extension module K0 and distinguish if the data is H400 (DVP04AD-H model type). If the model type is DVP04AD-H, M11 is on and the setting input mode is (CH1, CH3)= mode 0, (CH2, CH4)= mode 3. Set the number of times for average of CH1 and CH2 are K32. Read the input signal average value of CH1~CH4 (4 data) and saved into D20~D23. RELATED INSTRUCTIONS EXPLANATION API 78 D FROM P Read special module CR data Applicable model ES EP EH Bit device Word device 16-bit instruction (9 STEPS) X Y M S K H KnX KnY KnM KnS T C D E F Continuous Pulse FROM FROMP m1 ¼ ¼ execution execution m2 ¼ ¼ D ¼ ¼ ¼ ¼ ¼ ¼ ¼ ¼ 32-bit instruction (17 STEPS) n ¼ ¼ Continuous Pulse DFROM DFROMP Note: The usage range of operand m1 is 0~7. execution execution The usage range of operand m2: ES/EP: Flag: When M1083=On, it allows to 0-48, EH: 0-254. insert interrupt during The usage range of operand n: ES/EP: n= FROM/TO. 1~(49-m2), EH: 1~(255-m2). Refer to following for detail. ES series model doesn’t support pulse execution instruction (FROMP, DFROMP). Command Explanation (=K3600LSB) Program Example API 79 TO D : 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 one time. DVP-series PLC uses this instruction to read CR data of special module. : When assigning bit operand, K1~K4 are used for 16-bit and K5~K8 are used for 32-bit. Please refer the footnote below for the calculation of special module number. 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). Special module CR data write in P Bit device X Y M S Word device K ¼ ¼ ¼ ¼ H ¼ ¼ ¼ ¼ KnX KnY KnM KnS ¼ ¼ ¼ ¼ T C D E F ¼ ¼ ¼ ¼ ¼ Applicable model ES EP EH 16-bit instruction (9 STEPS) Continuous Pulse TO TOP execution execution 32-bit instruction (17 STEPS) Note: The usage range of operand m1 is 0~7. Continuous Pulse DTOP The usage range of operand m2: ES/EP: 0-48, DTO execution execution EH: 0-254. Flag: When M1083=On, it allows The usage range of operand n: ES/EP: n= to insert interrupt during 1~(49-m2), EH: 1~(255-m2). FROM/TO. For ES series, it doesn’t support pulse Refer to following for detail. execution instruction (TOP, DTOP) Command Explanation : the number of special module. of special module that will be wrote in. data number to write in one time. : the number of CR (Control Register) : the data to write in CR. : the DVP-series PLC uses this instruction 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 instruction 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 instruction 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 DTO K0 K2 D0 K1 Footnote END 7 The instruction will be executed when X0=On. The instruction won’t be executed when X0=Off and the content of previous reading data won’t change. X0 FROM K0 K24 D0 K2 m1 m2 S n INITIAL PLC START-UP Mode 2 of CR#1 GAIN = 20mA (4000LSB), OFFSET=4mA (800LSB). Mode 3 of CR#1 GAIN = 20mA (4000LSB), mode 2 OFFSET=0mA (0LSB). Digital output K0 When power is on, POWER LED will be lit and ERROR LED will be lit for 0.5 second. Normal run: 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 goes 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 instruction 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. Example: M1000 FROM K0 D0 K0 K1 Mode 0 of CR#1 GAIN=5V (4000LSB), OFFSET=0V (0LSB) mode 3 +4000 TO Writing H18 to CR#1 of analog input mode no. 0 and set CH2 to mode 3 (current input: -20 mA ~ +20mA) 1. 2. Mode 1 of CR#1 GAIN=6V (4800LSB), OFFSET=2V (1600LSB) GAIN: Voltage input value when digital output is 4000. Setting range is 5V 6V -4V~+20V (-3200LSB~ +16000LSB) 2V 10V OFFSET: Voltage input value when digital OFFSET GAIN output is 0. -4000 Setting range: -5V~+5V (-4000LSB ~ +4000LSB) GAIN-OFFSET: Setting range is +1V~+15V (+800LSB~ +12000LSB) -8000 Voltage input Current input mode: K1 Lamp display: mode 1 +4000 H18 6 Voltage input mode Digital output K1 TO 5.1 Adjust A/D Conversion Characteristic Curve mode 0 K0 X0 ADJUST A/D CONVERSION CHARACTERISTIC CURVE +8000 TO The rule of instruction 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 has included. If using FROM/TO instruction, the unit of read/write of CR is one number for one time. If using DFROM/DTO instruction, the unit of read/write of CR is two numbers in one time. Upper 16-bit Lower 16-bit CR #10 CR #9 Specified CR number (Access16-bit if n=2, or 32-bit if n=1. Same controlled registers are accessed). Specified device Specified CR Specified device Specified CR D0 D1 D2 CR #5 D0 D1 D2 CR #5 CR #6 CR #7 D3 D4 CR #8 CR #9 D3 D4 CR #8 CR #9 D5 CR #10 D5 CR #10 16-bit command when n=6 CR #6 CR #7 32-bit command when n=3 In ES series models, flag M1083 is not provided. When FROM/TO instruction is executed, all interrupts (including external or internal interrupt subroutines) will be disabled. All interrupts will be executed after completing FROM/TO instruction. Besides, FROM/TO instruction also can be executed in the interrupt subroutine. The function of the flag M1083 (FROM/TO mode exchange) provided in EP/EH series models: a. b. When M1083=Off, all interrupts (including external or internal interrupt subroutines) will be disabled when FROM/TO instruction is executed. The Interrupts will resumed after FROM/TO instruction complete. Please be advised FROM/TO instruction can be executed in the interrupt subroutine. When M1083=On, if an interrupt enable occurs while FROM/TO instruction are executing, the interrupt FROM/TO instruction will be blocked till the requested interrupt finish. Unlike M1080 off situation, FROM/TO instruction cannot be executed in the interrupt subroutine.