Table of Contents Appendix A: Communication Function Explanation .........A-1 1. Instruction and Inspections ................................................1-1 1.1. Model Explanation and Peripherals ..........................1-1 1.2. Product Profile and Outline ........................................1-3 1.3. Model Numbers ...........................................................1-4 Appendix B: EC Declaration of Conformity .......................B-1 2. Standard Specifications ........................
1. Introduction and Inspections 1.1. Model Explanation and Peripherals Thank you for choosing DELTA’ s PLC DVP Series. The DVP Series has main processing units and extension units. The main processing units offer 14-60 points and the extension units offer 8-32 points. The maximum input/o utput can be extended up to 128 points. It also can be used on applications according to INPUT/OUTPUT points, power sources, output modules, digital/analog exchanges (A/D & D/A converter).
1.
1. Introduction and Inspections 1.2. Product Profile and Outline Fig. 1-1: Features of the DVP PLC 1 DIN rail clip 2 DIN rail (35mm) 10 3 11 12 I/O terminal cover 5 Direct mounting holes Programming port cover (RS-232) Extension port Output indicators Status indicators, POWER, RUN ERROR I/O terminal cover 13 I/O terminal nameplate panel 6 I/O terminals 14 I/O terminal nameplate panel 7 8 I/O terminals Input indicators 15 RS-485 Communication port 4 9 © DELTA ELECTRONICS, INC.
1. Introduction and Inspections 1.3.
1.
1.
1. Introduction and Inspections Ϩʳ Digital I/O Extension–01 (L-Type) Model Input Unit Power Point Type Output Unit Point Type None DVP16XM 01N 16 0 DVP16XN01R 0 16 DVP24XN01R 0 24 DVP24XP01R 16 8 Profile reference Relay DVP32XP01R 24VDC 16 DC Sink or Source 16 DVP16XN01T 0 16 DVP24XN01T 0 24 DVP24XP01T 16 8 DVP32XP01T 16 16 Transistor 1. Sink or Source connections. Please refer to Chapter 4 Installation and Wiring. 2.
1. Introduction and Inspections Ϩʳ Digital I/O Extension–11 (H-Type) Model Input Unit Power DVP08XM11N Point 8 DVP16XM 11N 16 0 DVP08XN11R 0 8 DVP16XN11R 0 16 DVP24XN11R 0 24 DVP08XP11R 4 4 DVP24XP11R DVP32XP11R DVP08XN11T 24VDC 16 16 0 Type Output Unit DC Sink or Source Point 0 Profile reference Type None Relay 8 16 8 DVP16XN11T 0 16 DVP24XN11T 0 24 DVP08XP11T 4 4 DVP24XP11T 16 8 DVP32XP11T 16 16 Transistor 1. Sink or Source connections.
1. Introduction and Inspections Ϩʳ Digital I/O Extension Units Model Input Unit Power Point Output Unit Type Point Type DVP08SM11N 8 0 None DVP08SN11R 0 8 Relay DVP08SN11T 0 8 Transistor DVP08SP11R 24VDC 4 DC Sink or Source Profile reference 4 Relay DVP16SP11R 8 8 DVP08SP11T 4 4 DVP16SP11T 8 8 Transistor ϨʳPlease refer to each user manual of extension model for the detail of SS special extension module.
2.
2. Standard Specifications Electric Specifications 1 DVP14ES00ϭ Model Item DVP24ES00ϭ DVP32ES00ϭ DVP60ES00ϭ DVP20EX00ϭ DVP14ES01ϭ DVP24ES01ϭ DVP32ES01ϭ DVP20EX11ϭ Power Supply Voltage / Fuse 100~240VAC (-15%~10%), 50/60Hz ± 5% / 2 A / 250VAC 24VDC (-15%~10%) / 2 A / 250VAC Input Power Operating Characteristics Maximum Power Loss Time 95-100VAC is needed to start the PLC. If the voltage drops to 70VAC or less, the PLC will stop. 10ms or less A minimum of 18VDC is needed to start the PLC.
2.
3. Special Devices 3.1.
3. Special Devices 3.2. Special Data Registers Ϩʳ PLC System Information D1000 Watchdog timer (WDT) value D 1001 DVP model no. + memory cap. /type D 1002 Program memory capacitor D 1003 D 1004 D 1005 D 1008 D 1010 D 1011 D 1012 D1020 D1021 D1022 D1025 D 1028 D 1029 D1030 D1031 D1032 D1033 D1038 Sum of program memory Error flag number System message Monitor the STEP position that occurs when timer time out Current scan time (unit: 0.1ms) Minimum scan time (unit: 0.1ms) Maximum scan time (unit: 0.
3. Special Devices Additional Information M: Read Only Relay, can work as a contact yet cannot work as an output coil. But M1131and M1132 are used for system, they can’ t work as a contact or a output coil. D: Read Only Register. Here are the descriptions of the special devices, also refer to chapters 6 and 7 for more details.
4. Installation and Wiring 4.1. Dimension and Terminals Dimensions Model MPU Dimensions DVP14ES00 R2/T2 (Including power supply) IN POWER RUN ERROR Digital I/O Extension Unit OUT DVP 0 1 2 3 4 5 6 0 1 7 2 3 4 5 DVP16XM11N (No power supply) © DELTA ELECTRONCIS, INC.
4. Installation and Wiring Model MPU (Including power supply) DVP24ES00 R2/T2 DVP32ES00 R2/T2 DVP20EX00 R2/T2 MPU DVP20EX11 R2/T2 Dimensions (No power supply) Digital I/O Extension Unit DVP24XP00 R/T DVP24XN00 R/T DVP32XP00 R/T (Including power supply) Digital I/O Extension Unit (No power supply) 4-2 DVP16XN11 R/T DVP24XN11 R/T DVP24XP11 R/T DVP32XP11 R/T © DELTA ELECTRONCIS, INC.
4. Installation and Wiring Model MPU Dimensions DVP60ES00 R2/T2 (Including power supply) S/S X22 X23 X0 X25 X24 X1 X2 X27 X26 X3 X4 X30 X5 X32 X31 X6 X7 IN POWER RUN ERROR 24G © DELTA ELECTRONCIS, INC.
4. Installation and Wiring Model MPU Dimensions DVP14ES01 R2/T2 (No power supply) IN 0 1 2 3 4 5 6 POWER RUN ERROR Digital I/O Extension Unit OUT DVP 0 1 7 2 3 4 5 DVP16XM01N (No power supply) 4-4 © DELTA ELECTRONCIS, INC.
4. Installation and Wiring Model MPU (No power supply) Dimensions DVP24ES01 R2/T2 DVP32ES01 R2/T2 IN POWER RUN ERROR Digital I/O Extension Unit (No power supply) OUT DVP 0 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17 0 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17 DVP16XN01 R/T DVP24XP01 R/T DVP24XN01 R/T DVP32XP01 R/T © DELTA ELECTRONCIS, INC.
4. Installation and Wiring Model Digital I/O Extension Unit Dimensions DVP08XM11N DVP08XN11 R/T DVP08XP11 R/T (No power supply) POWER LV 0 1 2 3 4 5 6 7 DVP Logic Progammable Controller MODEL : 4-6 © DELTA ELECTRONCIS, INC.
4. Installation and Wiring 4.2. Terminal Wiring Terminal Layouts of the Standard Function MPU What follows is a complete display of the terminal wiring for all the model types within the DVP Series; refer to locations 13 and 14 on Figure 1 -1 of 1.2 Product Profile and Outline for detail.
4.
4.
4. Installation and Wiring 4.3. PLC Mounting Arrangements and Wiring Notes The installation of the DVP products has been designed to be safe and easy. Whether the products associated with this manual are used as a system or individually, they must be installed in a suitable enclosure. The enclosure should be selected and installed in accordance to the local and national standards. PLC mounting arrangements PLC should be mounted on a vertical position.
4. Installation and Wiring Ϩʳ Direct mounting Using the specified dimensions and installing the DVP PLC directly on a vertical flat by M4 screws. Make sure you follow the installation guidelines to allow proper spacing from other components. Ϩʳ Parallel connection 1. I/O cables of digital I/O extension unit are easier to be interfered, therefore please keep the I/O cables away from the output cables and power cables at least a 50mm or more distance.
4. Installation and Wiring Wiring Notes The following guidelines provide general information on how to wire the I/O connections to DVP PLCs. Environment 1. DO NOT store the PLC in a dusty, smoky, or corrosive atmosphere. 2. DO NOT store the PLC in an environment with high temperature or high humidity. 3. DO NOT install PLC on a shelf or on an unstable surface. Construction 1.
4. Installation and Wiring 1. Cables terminating at a screw terminal of a DVP product should be fitted with insulated crimp terminals, see examples shown at left. Terminal screws should be tightened to between 5 and 8 kg- cmΰ4.3 and 6.9 in- lbsα. Screw terminals must be secure enough to prevent a loose connection from causing a malfunction. below 6.8 To suit M3.5 screw terminals below 6.8 2. DO NOT wire to the No function terminals. 3.
4. Installation and Wiring 4.4. Wiring Guidelines Power Input Wiring The following diagram shows various possible external power connections for DVP PLC. When wiring AC power, the ‘Live’ cable should be connected to the ‘ L’ terminal and the ‘ Neutral’ cable should be connected to the ‘ N’ terminal. When wiring DC power, the ‘ positive’ cable should be connected to the ‘ +’ terminal and the negative should be connected to the ‘-‘ terminal.
4. Installation and Wiring When DC voltage is supplied to the PLC, make sure the power is at terminals 24VDC and 0V (power range is 20VDC~26VDC). When voltage is lower than 17.5VDC, PLC will stop operating, all outputs will turn OFF and the ERROR LED will flash continuously. DC Input Type 20VDC~26VDC 24VDC OV +24V 2 4 G S/S X0 X1 X2 2.
4. Installation and Wiring 4. When the Momentary Power Loss Time is less than 10ms, the PLC will continue its operation without any interruption. When the Momentary Power Loss Time is longer than 10ms or the input voltage has dropped below minimum values, the PLC will stop its output. When the power returns the PLC will automatically resume operation. Recommended Wiring for Input Power and Safety Devices.
4. Installation and Wiring Input Point Wiring Prior to performing any wiring, always turn the power off. In some special circumstance, if the user needs to perform wiring to input points while power is on, always stop the PLC. Otherwise, output points may be activated and cause accidently damage to the systems. PLC Isolation Boundaries: PLC circuitry is divided into three main regions separated by isolation boundaries.
4. Installation and Wiring Practically Wiring DC Type Input Point Loop Equivalent Circuit Wiring Loop Voltage Activation Level External Resistance = Wire Resistance+Contact Resistance ΰDC Signal INα Rx SINK +24V 24VDC Ii Xn +5V 24G Vi C S/S +24V 24G X0 S/S X0 X1 X2 Sink Type Xn inputting State SINK Mode Rx = 0 ohm Logic 1 DC Type Input Point Loop Equipvalent Circuit Wiring Loop ΰDC Signal INα SOURCE +24V 24VDC Logic 0 +5V 13.5 V (2.6mA) 14.5 V (2.
4. Installation and Wiring Output Point Wiring DVP-**-**-**-R 1. There are three kinds of DVP-Series PLC outputs: Relay, SSR and Transistor. All relays used in DVP series PLC have passed the standard of IEC 947-5-1 under AC-15 (the rated current and voltage) specification for a cycle test of 6050 times. LOAD Y0 LED RY POWER C0 2. Be careful with the connection of the common terminals when wiring output terminals.
4. Installation and Wiring Ϩʳ Relay Output Wiring Methods 5 C0 Y0 Y 1 2 3 C1 Y 4 Y5 Y6 Y7 9 1 6 MC1 MC2 3 10 2 4 7 8 Surge absorbing diode: increases relay contact life Emergency stop: use an external switch Fuse: 5 to 10A for every 4 output points to protect the PLC’ s output circuit.
5. Initial PLC Start-Up Power Indication 1. The “ POWER ON” LED on the MPU and the Extension Unit will be lit if the power is on. Or if the LED is not lit, it is an indication that the PLC’ s 24VDC terminal is overloaded, and it is thus necessary to remove the wiring on terminals +24V and 24G, and to provide a 24VDC power supply for each terminal respectively. Moreover, if the ERROR LED blinks continuously, it suggests that the power supply of PLC (+24 V) is low. 2. The “ LOW V.
5.
6.
6. Basic Instructions The following instructions have API codes associated with them. When using the HPP, users may input API codes, or use the specified keys, TMR, CNT, and DCNT to generate their program. Table 6.1 API 96 97 97 Instructions TMR CNT DCNT Functions Operands 16-bit Timer T-K or T-D 4 16-bit Counter C-K or C-D (16-bit) 4 32-bit Counter C-K or C-D (32-bit) 6 When using an HPP, the items below may only be entered by their API codes.
6. Basic Instructions Contact Instructions Instruction LD / LDI Instruction Operands S0~S127 X0~X177 Y0~Y177 M0~M1279 T0~T127 C0~C127 C235~C254 LD is the contact A operation instruction and LDI is the contact B operation instruction. X0 S0~S127 X0~X177 Y0~Y177 M0~M1279 T0~T127 C0~C127 C235~C254 OR is the parallel connection instruction of one A contact and ORI is the parallel connection instruction of one B contact.
6. Basic Instructions Ladder Diagram ORB instruction performs the OR operation of block A and Block B, and uses it as an operation result. ORB performs parallel connection of circuit block with two or more contacts. For parallel connection of circuit blocks which have only one contact, OR and ORI are used and ORB is not required. The symbol of ORB is not a contact symbol but a connect symbol. X0 MPS LD MPS AND OUT MRD AND OUT MPP OUT END X1 Y1 X2 MRD ORB can be written consecutively up to 8 times.
6. Basic Instructions Instruction Operands Instruction S0~S127 X0~X177 Y0~Y177 M0~M1279 SET T0~T127 C0~C127 C235~C254 When the SET input turns on, the specified device is turned on. The specified device remains on even if the SET input turns off. The device can be turned off by the RST instruction.
6. Basic Instructions Master Control Instructions CNT C20 K100 Instruction When the operation result of the instructions preceding the CNT instruction remain on, counting is not performed. (It is not necessary to convert the count input into a pulse.) After the counter has counted out, the count value and the status of the contact will not change until the RST instruction is executed. A negative number (-32768~ -1) cannot be used as a set value.
6. Basic Instructions X0 X0 MC N0 ANDP X0 MC N1 ANDF X0 MCR N1 Instruction MCR N0 ORP / ORF Y1 X0 LDP / LDF Operands S0~S127 X0~X177 Y0~Y177 M0~M1279 Operands S0~S127 C0~C127 X0~X177 Y0~Y177 M0~M1279 T0~T127 C235~C254 Parallel connection command for the rising/falling-edge detection operation.
6. Basic Instructions X0 PLS M0 M0 M0 SET Y0 Other Instructions X0 one scan time Instruction Operands NOP Y0 None This is a no-operation instruction and has no effect on the previous operation. Instruction Operands S0~S127 PLF C0~C127 X0~X177 Y0~Y177 M0~M1279 T0~T127 C235~C254 PLF command: the falling-edge output command. When X0= ONШ OFF (the falling-edge is touched off), the PLF command will be executed, and M0 will send out one pulse. Length of this pulse is one scan time.
6. Basic Instructions Pointer P10 Y1 Interrupt Pointers (I) : Interrupt pointers are used as the label at the head of each interrupt program. Each interrupt program begins with an interrupt pointer and ends with the IRET instruction. Interrupt Service Routine Pointer FEND I 101 Y1 IRET Instruction INV Operands None Inverting the operation result and use the new data as an operation result. Y1 © DELTA ELECTRONICS, INC.
6. Basic Instructions Step Ladder Commands Symbols and functions: Command STL [Sn] Functions Step ladder diagram starts Symbol and devices Command Length: 1 Step Device [Sn]: S0~S127 Begins from S0~S9 Step S can not be repeated Sn S New Line S End of step ladder diagram RET RET RET (return command must be added at the end of STL) Command length: 1 Step Step point S RET command is used at the end of the step ladder diagram that begins with S0 to S9.
6. Basic Instructions S10 S Y10 X0 SET S12 S12 S When step point S10 and S12 transition simultaneously (S10 OFF, S12 ON, there is a delay for one scan time), and the output Y10 and Y11 will not be ON simultaneously. STL S10 Update Input/Output Execute Program Y11 Execute Program Execute Program Execute Program X1 SET S14 S10 Circuit Inactivate Y10 X00 S12 Y11 X01 Step Point Transition Commands SET Sn and Out Sn are for activating another step point.
6. Basic Instructions OUT Sn Return back to initial step point and step point jump up or jump down to the point that is not sequenced in order within the program or transitions to a different step ladder program. Once the status is shifted, outputs from all the previous motion status points will be deleted. In a step ladder program, return back to initial step point. Transition to a different step ladder program (begin with different initial step point).
6. Basic Instructions 2. Every subroutine of a step point is the same as a general ladder diagram, but there are some limitations to the commands. 1. Do not use MC/MCR commands in step points. 2. STL commands cannot be used in Sub-programs and Interrupt programs. 3. Try to avoid using CJ commands in the STL program, it will complicate the entire program. 3. It is always better to finish all commands before moving to the next step point.
6. Basic Instructions Example: Programming 1 (Excluding Step Ladder Instructions STL/RET) Using Instruction Coding Step Instruction 0 LD 1 OR 2 LD 3 ORI 4 ANB 5 OR 6 OUT 7 LDI 8 AND 9 LD 10 ANI 11 ORB 12 OUT 13 LD 14 MPS 15 AND 16 OUT 17 MRD 18 AND 19 OUT 20 MPP 21 AND 22 OUT 23 LDI 24 OUT 25 END 6-14 Using Ladder Diagram Coding X0 X1 X2 X3 X4 Y0 X0 X2 X4 X3 Y1 X0 X0 X2 X1 X3 X4 X0 X2 X4 X3 X0 X1 Y1 X2 X3 X4 X3 Y4 X4 Y5 Y2 Y3 X1 Y2 X2 Y3 Y0 Y4 Y5 END © DELTA ELECTRONCIS, INC.
6.
7. Application Instructions Application Instructions Structure 1. 2. Explanations: Many instructions may be divided into an instruction part and a device as follows: Instruction part : Indicates the function. Device : Indicates the data for use with that instruction. The application instructions structure may be largely classified as follows with the instruction part and device (s) combined: • Instruction part Retains the device status and mainly controls the program.
7. Application Instructions S : 1. 2. 32-bit DMOV Instruction Source data used for operation. Source data may be A: • Constant Specify the numeric value used for the operation. This value is set while the program is being written and cannot be changed when the program is running. • Bit device, word device Specify the device, which stores the data used for the operation. The data must be stored to the specified device before the operation is initiated.
7. Application Instructions 1. 16-bit instruction: K1 to 4 (4 to 16 points) • 32-bit data is stored using digit specification of K1 to 8 when it is stored in bit or in word devices. When there is digit specification on the source (S) side, the range of numeric values handled as source data are shown below. • Specified Number of Digits (16-bit Instruction) K1 K2 K3 K4 2.
7. Application Instructions Handling of Decimal D 1(b15 ~ b0) The internal operation of DVP PLC usually gets the value of BIN integer. When operating integer division, the decimal will be erased. For example: 40 Ί3=13, remainder is 1 and the decimal will be erased. But if using decimal operation, you can get decimal. The application commands relate to decimal point are shown in the following.
7.
7.
7.
7.
7.
7. Application Instructions 00 CJ ᅌP**ᅍ P 00 to P 63 Conditional jump X0 Call of subroutineP** CALL 20 Executes the program of specified pointer when the jump command is on. Executes the program of the next step when the jump command is off.
7. Application Instructions When interrupting a special auxiliary relay M1050 to M1053, the same interrupting request will not be activated. Interrupting cursor (I001 to I201) must be used after the FEND command. Program Example EI X0 Y1 DI FEND Any interrupt signal occuring between DI and EI instructions, is disabled until the processing between the DI and EI instructions is completed after which the interrupt program is run. WDT Resets the watchdog timer Resets the watchdog timer.
7. Application Instructions the CJ command. Up to four levels of nested FOR loops are allowed. For example, loop A operates 3 times but within this loop there is nested loop, B. For every completed cycle of loop A, the loop B will be completed executed 4 times. Therefore, the numbers of loop B operation will be 3 x 4=12 times (A x B).
7. Application Instructions Ϩʳ Program which executes the FOR to NEXT instructions when X7 is off. It does not execute the FOR to NEXT instructions when X7 is on.
7. Application Instructions command. Program Example 15 BMOV X0 MOV K10 Ϩʳ When X0 is Off, the content of D10 remain unchanged. If X0 turns On, the data of K10 is moved to D10 data register.
7. Application Instructions S Move the contents of to the n register, with this n register D -assigned obtained from counting the registers within the numbers. If the n-assigned points exceed the usage range of this device, only those that are within the effective range will be moved. Program Example X0 FMOV K10 D10 D Device 17 XCH D1 D2 D E F D1 Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ D2 Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Exchange the contents of and Ϩ with each other.
7. Application Instructions X0 BIN K1X0 and stores the subtraction result into the devi ce D10 D . Program Example Ϩʳ Program which converts the BCD data of X0 to X03 into BIN and stores the result into D10 when X10 turns on. D 20 ADD Device S1 S2 D Performs the addition of BIN data Bit device T C D E F S1 Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ S2 Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ D S1 and the BIN data stores the addition result into the device D .
7. Application Instructions 32-bit operation D +1 +1 b31.. b16 b15.. b00 +3 b31.. b16 b15.. b00 +2 +1 b63. b48 b47. b32 b31. b16 b15.
7. Application Instructions 32 bit operation Program Example Remainder Quotient +1 +1 b15. .b00 b15. .b00 +1 b15. .b00 b15. .b00 +3 X0 Ϩʳ When X0 = ON, the content of D0 will perform the addition of 1. D Quotient Remainder : Stored to the lower 32 bits. : Stored to the upper 32 bits. (Stored only in the case of a word device.
7. Application Instructions Program Example (16-bit) X0 D WAND D0 D2 28 WXOR Device b00 D 27 WOR WAND D2 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 Device Operand S2 D T C D E F S1 Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ S2 Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ D Performs the logical add of the 16-bit data of device S1 and the 16-bit data of device S2 per bit, and stores the result into the device D .
7. Application Instructions command, otherwise, it will keep going on and on. X0 ROR Program Example X0 D10 K4 Rotate to the right NEG D0 b15 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 * 4 bits After one rotation to the right b15 b0 Ϩʳ When X goes from OFFШON, every bit of the D0 contents will be countered (0 1, 1 0) and be added with 1, and will then be saved in the original register, D0. Ϩʳ This command could convert the negative BIN value to the positive number, and that is, to get its absolute value.
7. Application Instructions originally will then be moved to the carrying flag (CY) M1022. X0 ROL D10 K4 When X0 goes from OFFШON, the 16 bit data of D10, along with the attached carrying flag (M1022), will rotate 4 bits to the right, as shown in the diagram, and b3 that located at D10 originally will then be moved to the carrying flag M1022, and that the original contents of the carrying flag M1022 will be moved to the bit of b12.
7. Application Instructions When M, Y, S are assigned to serve as the bit operand, only K4 (16-bit) and K8 (32-bit) are effective, e.g. K4M0, K8Y0. Requirement: n2Љn1Љ512. Shifts Command Motion Explanation the right by to the right.
7. Application Instructions Program Example SFTL X0 M0 K16 K4 4 bits in one group shift to the left X3 Device X2 X1 X0 5 M15 M14 M13 M12 M11 M10 M9 M8 M7 M6 M5 M4 M3 M2 M1 M0 Operand S m 1 2 4 3 40 ZRST D1 Operand D2 Resets a range of device specified.
7. Application Instructions X10 When 3 is specified as effective bits, 8 points are occupied.
7. Application Instructions S , and have th is Count all the bits with “ 1” as its content within counted number saved in D . Program Example th Ϩʳ When X0=ON and that the 15 bit of D0 is “ 1” , M0=ON. Ϩʳ Once X0 is switched to OFF, M0 will stay at its previous ON/OFF status. D X0 SUM D0 D2 S Ϩʳ If the contents of these 16 bits are “ 0” , the “ Zero” flag signal M8020=ON.
7. Application Instructions S After getting the sqare root of the content of devi ce that designates, save it into the device that D designates. S can designate is positive number. If S The value that designates negative number, PLC will regard it as command operation error, M8067=On and this command won’ t be executed. Constant K and H will be converted to decimal of binary system in decimal operation so they don’ t need to use this command to convert. Program Example X10 D is 0, zero flag M1020=On.
7. Application Instructions M1000 FLT D10 D100 BIN K2X0 D200 FLT D200 D202 50 1 D 2 3 DEDIV K615 K10 n D300 4 DEDIV D100 D202 D400 5 DEMUL D400 D300 D30 D20 D40 7 DINT D n Input/Output refresh immediately X0, X10, Y0, Y10 K8, K16, H8, H10 The state of all PLC inputs and outputs will be refreshed after scanning to END. The state of inputs is read from external inputs to save in inputs memory. The output terminals send outputs memory to output device after END command.
7.
7.
7. Application Instructions S1 specified the frequency 10 ~ 10KHz . S1 specified the pulse width as t: 0 to 32767ms. 10KHz could be reached with single shaft, whereas 5KHz could be reached with dual shaft. S2 specified the pluses. 16-bit: 1 to 32767, 32-bit: 1 to 2147483647 S2 specified cycle as T: 1 to 32767ms D S1 Љ S2 . specified the output Y as output pulse, only Y01 is effective.
7.
7. Application Instructions Ϩʳ Once the S2 -set pulse waves are transmitted, the Y0 output will be completed and M1029 =ON, and the Y1 output will be cmpleted and M1030 =ON. Ϩʳ Number of times of the command usage For commands PLSY (DPLSY), PWM and PLSR (DPLSR), they could only be used once for each output.
7. Application Instructions Program Example Bit 16 bits Combination X10 SEGD D0 K2Y0 Ϩʳ Contents (0~F: 16 bits) of the lower 4 bits (b0~b3) of D0 will be decoded as readable in the 7-step display panel for output. The decoding results will be saved in K2Y0.
7. Application Instructions Note: The usage range of operand n is 0~7. Please refer to function specification chart for device usage range. SEGL command can be used twice in the program. Please refer to footnote for detail. S : display source device of 7-step display. D : start device of 7-step display scan output n : polarity setting of output signal and scan signal.
7. Application Instructions Footnote: +24V Positive Ϩʳ The version V4.9 or above of ES / EX / SS series has this command (SEGL). ON HIGH Theory1 Ϩʳ Version 4.9 of ES / EX / SS series has only a group of 4 digits of 7-step display and use 8 points to output. It only uses SEGL command one time in the program and the usage of n operand is n=0~3. Ϩʳ Scan time must be longer than 10ms when executing this command.
7. Application Instructions 78 FROM Device Operand m1 m2 D n Bit device X Read special module CR data Word device Y M S K H KnX KnY KnM KnS m1 Ϩ Ϩ m2 D Ϩ Ϩ T C D E Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ Ϩ n Note: The usage range of operand m1 is 0~7. The usage range of operand m2 is 0~35. The usage range of operand n is 36-m2. Please refer to function specification chart for each device usage range. m2 : the number of CR D : the (Control Register) of special module that will be read.
7. Application Instructions Ϩʳ The version 4.9 and above of ES / EX / SS series models support continuous execution commands (FROM, DFROM, TO, DTO). Other version won’ t support these commands. Ϩʳ 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.
7. Application Instructions 80 S RS Device Operand m D n Bit device X Data Communication Word device Y M S K H KnX KnY KnM KnS S m T C D E F Ϩ Ϩ Ϩ D Ϩ Ϩ n Ϩ Ϩ Ϩ Note: The usage range of operand m is 0~256.The usage range of operand n is 0~256.Please refer to function specification chart for every device usage range. S : start device of transmitting data. m : transmitting data group D : start device of receiving data. n : receiving data number. group numbers.
7. Application Instructions PLC will receive all data that transmits from external machine, including head code and tail code. Please pay attention when setting length n . Program Example 2: Ϩʳ 8 bits mode (M1161=ON) / 16 bits mode (M1161=OFF) switch: π8 bits modeρ: π16 bits modeρ: Head code and tail code of PLC transmission data will be set by using Head code and tail code of PLC transmitting data is set by using M1126 M1126 and M1130 according to D1124~D1126.
7. Application Instructions Program Example 3: Ϩʳ When PLC connects to VFD-B series AC drives (ASCII Mode, M1143=OFF), (16 bits Mode, M1161=OFF), it will transmit data to read 6 continuous data that start from VFD-B reference address H2101.
7.
7.
7. Application Instructions Special register Function Explanation Data response delay time setting when PLC MPU is slave. Time definition (0.1ms) PLC will convert ASCII data of D1070~D1085 to HEX D1050~D1055 and save hexadecimal data to D1050~D1055. Built-in RS-485 communication convenience command. This command will execute “ send” command and receiver will return messages when it D1070~D1085 receives. These messages will be saved at D1070~D1085.
7.
7.
7. Application Instructions START: Step 2: Exclusive OR the first 8-bit byte message command with the ES / EX / SS / EP series: keep none input signal to be greater or equal 16-bit CRC register of the lower bit, then save the result into to 10 ms. the CRC register.
7. Application Instructions For example: when the address of the drive is set as 01H, read 2 data 1. contents that exist successively within the register, as shown follows: the Timing chart of RS-485 communication program flag: Timing chart: address of the start register is 2102H.
7.
7.
7.
7. Application Instructions the previous data won’ t have any change. 88 PID S1 S2 Device Bit device Operand S3 D PID calculation X0 Word device X Y M S K H KnX KnY KnM KnS T C D S1 Ϩ S2 Ϩ S3 Ϩ D Ϩ E Note: S3 operand occupies continuous 6 devices. Please refer to function specification charts for usage range of each device. Please refer to footnote for the use time of PID command. S 1 : target value(SV). D : output value(MV). S 2 : present value(PV). S 3 : parameter.
7. Application Instructions 0~100 S 3 +3: Differential gainΰKD α 0: auto control direction S 3 +4: Action directionΰDirα1: forward action (SVШPV) 2: reserve action (PVШSV) deviation ( E ) 0~100, For example: if the range of deviation S 3 +5: range ( E ) is 5, output value MV of E between is 0. Ϩʳ PID operation has two operations, forward and reverse operation. The direction of operation is set by S 3 +4. Besides, the settings that have relation to PID operation is set by S 3 ~ S 3 +5.
7. Application Instructions Delta VFD-S series AC drive manual on fault information. n Control diagram: 1/S SV E + KI K + + P MV PV G(s) K The feedback data from peripherial equipment will be saved in D1070 to D1085. PLC will check the data after SAVE function is complete. If there is an error, then M1140 will be ON. Because the feedback data are all ASCII characters, PLC will convert the feedback data to value data and store them in D1050 to D1055. - - Data length,nЉ6.
7.
7. Application Instructions RSTEF is a drive reset instruction for the VFD-A series drive. M1002 MOV H0086 D1120 S1 Communication address: K00000 to K0031. SET M1120 n Command object, n=1 is for one drive, n=2 communicates to all drives connected. MOV K0100 D1129 X00 MODRD K1 M2101 K6 The feedback data from perpherial equipment will be saved in D1070 to D1089. If n=2, PLC will not receive any data. X01 SET M1122 Communication example: 1.
7.
7. Application Instructions D 110 S1 ECMP S2 Comparison of decimal of binary system D If you need to get the result of Њ, Љ, Ћ, you could get by series connection or parellet connection of M10~M12. Device Bit device Operand S1 Word device X Y M S K H K n X K nY KnM K nS T Ϩ Ϩ Ϩʳ When X0=On and execute DECMP command, one of M10~M12 will be On. When X0=Off and not to execute DECMP command, the state of M10~M12 will be in the state before X0= Off.
7. Application Instructions D and lower bound for comparison. If designated device is M0, it will auto occupy M0~ M2. The PLC decimal is operated by decimal of binary system. The DEBCD command is the specific command for converting from decimal of binary system to decimal of decimal system. Program Example X1 DEZCP D0 D10 designates.
7. Application Instructions S X0 designates to decimal of binary system and save the result in the register that D designates. MOVP K314 D0 K314 D0 [D1] 314 Ø 10 -2 DEBIN command is the specific command that used to convert the value from decimal of decimal system to decimal of binary system.
7. Application Instructions S 1 and S 2 can designate the same number register. In this situation, when using “ continuous” command the register will be added one time in the every scan during the condition contact is On. In general, it uses pulse execution command. (DEADDP). register that S 2 designates and save the result in the register that D designates. All process of subtraction uses the type of decimal of binary system.
7. Application Instructions Program Example D 122 EMUL S1 S2 D Multiplication of decimal of binary system DEMUL K1234 Device Bit device Operand S1 Word device X Y M S K H KnX KnY KnM KnS T C Ϩ Ϩ X2 S2 Ϩ Ϩ D S1 : multiplicand. D Ϩ E F Ϩ Ϩ S2 : multiplicator. D : product of multiplication. S 1 designates multiplied by the content The content of register that of register that S 2 designates and save the result in the register that D designates.
7. Application Instructions Ϩʳ When X1=On, the decimal of binary system (D1,D0) divided by the decimal of binary system (D11,D10) and save the remainder in (D21,D20). executed and flag M1067=On. Program Example X0 Program Example DESQR D0 D10 X2 DEDIV D0 K10 D10 Ϩʳ When X2=On, the decimal of binary system (D1, D0) ÷ K1234 (auto convert to decimal of binary system) and save the result in (D11, D10). Please refer to page 7-4 Handling of Decimal for detail.
7. Application Instructions The function of this command is opposite to API 49 (FLT). If the result after converting is 0, zero flag M1020=On. If there is any decimal discarded, M1021= On. If the result exceeds the following range, M1022=On.
7. Application Instructions D 131 COS S COS operation of decimal of binary system D Device Bit device Operand S Word device X Y M S K H K n X K nY KnM K nS T C D E F Ϩ D Ϩ S : designated RAD. RAD value that S D : the result of COS value. D S 132 TAN Device Bit device X Y M S and save in the register that D designates. Program Example K Word device H KnX KnY KnM KnS T C D Ϩ D Ϩ S : designated RAD value. S E F D : the result of TAN value. designates = angle ͪӸ/180.
7. Application Instructions 147 Device Operand S SWAP When X0=ON, swapping upper 8-bit and lower 8-bit of D11 and swapping upper 8-bit and lower 8-bit of D10. Swap upper and lower 8-bit Bit device X0 Word device X Y M S K H KnX KnY KnM KnS S Ϩ Ϩ Ϩ T C D E F Ϩ Ϩ Ϩ Ϩ Ϩ Note: When operand D is used with equipment F, it can only use 16-bit command. Please refer to function specification charts for usage range of each device.
7. Application Instructions S 1 : UNIT ADDRESS. The usage range is K0~K255. S 2 : FUNCTION CODE. For example: the command of AC drive or DVP-PLC to read many items is H03. Write command of AC drive or DVP-PLC is H06 and the command of write many items is H10. S 3 : device address that being read/write data, inner device address of connection device. If address is illegal to the assigned equipment, there will be fault code save in D1130 and at the same time, M1141 will be ON.
7. Application Instructions M1002 D1120 setting communication protocol 9600, 8, E, 1 MOV H87 SET M1120 Communication protocol latched MOV K100 D1129 K1 K6 setting communication time out 100ms X10 M1143 X0 MODRW connection read device many address K1 items data X1 receive M1123 compeleted SET M1122 H2000 data address H2000 D50 saving data register K12 read/write data length word transmit in transmission registers D1256~D1295.
7. Application Instructions Program Example 3: M1002 MOV Ϩʳ Function code K16(H10): write many WORD to register A. PLC connects to VFD-S AC drive (when M1143=OFF, ASCII Mode) Ϩʳ Ϩʳ Ϩʳ Ϩʳ Ϩʳ Ϩʳ B. PLC connects to VFD-S AC drive (when M1143=ON, RTU Mode) When in ASCII mode, users will save data that being wrote to AC drive in 12 continuous registers that start from D0 and designated by user in ASCII form. Data that AC drive return will save in registers D1070~D1076.
7. Application Instructions M1123 Receive completed Special register D1123 Remainder characters of received data M1124 Receive waiting message D1124 Start text definitionΰSTXα M1125 Receive status disable D1125 Definition of the first end characterΰETX1α M1126 STX/ETX system definition selection D1126 Definition of the second end characterΰETX2α D1129 Communication time out abnormal.
7. Application Instructions When the left most bit, MSB (the 16-bit command: b15, the 32-bit command: b31), from S1 and S2 is 1, this comparison value will be viewed as a negative value for comparison. If the 32-bit length counter (C235~) is put into this command for comparison, be sure to use the 32-bit command (DLDϠ). If the 16-bit command (LDϠ) is utilized, CPU will determine it as “ Program Error” , and the red “ ERROR” indicator on the MPU panel will be blinking, and the CPU will not berunning.
7. Application Instructions Motion Conditions of ANDϠ: API No.
7. Application Instructions API No. 16-bit command 32-bit command Continuity condition Discontinuity condition 244 ORІЇ DORІЇ S1 Ћ S2 S1 Ј S2 245 ORЉ DORЉ S1 Љ S2 S1 Ї S2 246 ORЊ DORЊ S1 Њ S2 S1 І S2 Program Example X1 Y0 OR X2 K20 C0 X3 Y1 DOR D10 K40000 Ϩʳ If X1=ON, or that the current value of counter C0 is equal to K20, Y0=ON. Ϩʳ If both X2 and X3 are “ ON” , or that the contents of the 32-bit registers D11 and D10 are greater or equal to K40,000, Y1=ON.
8. EX MPU and I/O Extension Units EX MPU EX MPU is a main processing unit with 4 analog inputs and 2 analog outputs. (Refer to Chapter 2 for detailed specifications), methods to be adopted are as follows: Ϩʳ Analog/Digital (A/D) Analog Input: Monotonicity with no miss code Overall Precision: Non-linearity: ±1% of full scale over temperature. Maximum error: ±1% of full scale of +10V and +20mA over temperature. Data format returned to the application program: Binary.
8. EX MPU and I/O Extension Units Analog Input 0V MCU 10V Conversion Sample time duration time 1ms 0.5ms Refresh 0.5ms K511 K0 Input characteristics: Third order Maximum transition frequency: 200Hz Conversion method: SAR (Successive Approximation Register) Operating modes: Self-scan *Please use a twisted pair shielded cable for the analog input/output, this cable should be wired away from powers lines or any other lines which induce noise.
8. EX MPU and I/O Extension Units 1. The analog input is received through a twisted pair shield cable. This cable should be wired separately from power line or any other lines that may i nduce electrical noise. 2. Connect the ground terminal on the DVP20EX-Series with the grounded terminal on the unit; use class 3 grounding on the unit. Either voltage or current input can be selected with your choice of input terminal.
8. EX MPU and I/O Extension Units *This unit may be damaged by input voltages in excess of ±15V or ±30mA. *If the voltage or current exceeds ±15V or ±30mA during the operation, it will then result in permanent damage to this unit. Users should pay special attention to avoid the above-mentioned incident. Ϩʳ Digital/Analog (D/A) Analog Output: Monotonicity with no miss code Overall Precision: Non-linearity: ±1% of full scale over temperature.
8. EX MPU and I/O Extension Units Overshoot : ±1% of full scale 1. The analog output is received through a twisted pair shield cable. This cable should be wired separately from power line or any other lines which may induce electrical noise. *No need for this device to be verified by the factory, and should any problem occurred, please return this device to the original factory or the agent.
8. EX MPU and I/O Extension Units Digital Input Digital Input Current output Voltage output There are two channels (CH0~CH1) that convert digital signals saved in D1116~D1117 and output analog signals on specified output terminals.
8. EX MPU and I/O Extension Units I/O Extension Units The DVP series provides different extension units with specific I/O (please refer to Section 1.1 for specifications). The total input and output points can extend to 256 points. If 256 points are exceeded, the ERROR LED of the MPU will flash.
8. EX MPU and I/O Extension Units I/O Extension Unit Parts and Labels 2XWSXW ,QSXW 7HUPLQDOV %$77(5< ,1 ([WHQVLRQ 3RUW 32:(5 581 (5525 ([WHQVLRQ 3RUW 287 56 1RW LQ XVH 2XWSXW ,QSXW 7HUPLQDOV Ϩʳ Status Indicator 1. POWER LED There is a Power indication LED on the front of the I/O extension unit. When power is on, the POWER LED will light up. If the I/O extension unit LED does not light up and the extension unit is AC power input, please conduct the following test.
8. EX MPU and I/O Extension Units Combined System 1. Power Terminal There are two types of power inputs: AC and DC. We can use the +24V output provided by the MPU and supply it to the serial extension units (assuming the DC power supply input is selected). The total current consumed by the extension units cannot exceed the capacity provided by the MPU. Please see the specifications.
8. EX MPU and I/O Extension Units Input / Output points numbering order No matter how many points the MPU has, the input of the first I/O extension unit will start from X20 and the output will start from Y20.
9. Troubleshooting and Fault Information Fault Indication From Panel Common Problems and Solutions: Ϩʳ POWER LED Indication There is a Power indication LED on the front of the MPU unit. When power is on, the POWER LED (Green) will light up. If the MPU unit LED does not light up when power is on, please remove the +24V wire and recheck the LED. If the LED is now ON, it means the DC power supply is overloaded and cannot be used. Please use another DC24V source.
9. Troubleshooting and Fault Information Ϩʳ Output Point LED Indication Output LED indicates if the output signals are ON or OFF. Please check the following items when the LED ON/OFF indication does not correspond to the commands. Output contacts may be melted and stuck together due to a short circuit or current overload. Check wiring and verify screws are tight.
9.
9. Troubleshooting and Fault Information Device D1067 Error Code 0E18 0E19 0E1A 0E1B Description BCD Conversion Error DIVISION (divisor=0) Operand bit device exceeds the usage range (including index register E, F) The value of square root is negative Periodic Inspection Preventive maintenance is required to operate this DVP series PLC in its optimal condition, and to ensure a long life. Be sure to observe the following precautions when selecting a mounting location.
10. Additional Special Devices and Instructions 10.1. New Special M and D Devices A-phase Double Frequency Select Function of High Speed Counter New Special Data Registers: The content value of data register, D1022 will load in the first scan time when PLC switches from STOP to RUN. Device No. D1022 D1022=K1 D1022=K2 D1022=K4 Function Description Use counting method of counter setting double frequency Select (normal frequency) mode Select (double frequency) mode Select (4 times frequency) mode 2.
10. Additional Special Devices and Instructions Index value + 0 1 2 3 4 5 6 3. 4. Function Description Starting frequency (SF) Gap frequency (GF) Target frequency (TF) Lower byte of total output pulse numbers amount Higher byte of total output pulse numbers amount Lower byte of total accel/decel interval output pulse numbers Higher byte of total accel/decel interval output pulse numbers These additional functions will not be executed if anyone of the limit conditions below is not compatible: 1.
10. Additional Special Devices and Instructions Hz Ϩʳ When PLC is running, each parameter setting is stored in the register assigned by D1104. 5K Ϩʳ When M1115 is in the status of acceleration/deceleration, pulse output will start. 4K 3K Ϩʳ M1116 is ON during the process of acceleration, M1117 is ON when desired speed attained and M1118 is ON during the process of deceleration. After the program is completed, M1119 is ON. 2K 1K t1 t2 t3 ms t4 Ϩʳ M1115 will not return automatically.
10. Additional Special Devices and Instructions M0 10.2. New Application Instructions The version V5.5 or above of ES / EX / SS series has the following new commands. RST M1081 DFLT D0 D10 DEXP D10 D20 DEBCD D 2 0 D30 M1 D 124 S EXP D Convert decimal of binary number system to perform exponent operation Device Bit device Word device X Y M S K H KnX KnY KnM KnS T Operand C D S Ϩ D Ϩ S : the source device for operation D : operation result device Take e =2.
10. Additional Special Devices and Instructions Only the positive value of the content of 32-bit data format to assign the D S is valid. Be sure to use register. Because using the S floating point format to perform the LN operation is necessary, has to be converted to the floating point value. Convert decimal of binary number system to perform logarithm operation D 126 LOG S1 S2 D D e =S => content value of D operand= lnS ; S is the assigned source data.
10. Additional Special Devices and Instructions Program example: M0 RST 128 DFLT D0 D10 DFLT D2 D12 Operand D10 D12 D20 M2 DEBCD D20 S1 POW S2 D Device Bit device M1 DLOG Convert decimal of binary number system to perform power operation D M1081 D30 Ϩʳ When M0 is ON, the data of (D0, D1) and (D2, D3) are converted to decimal of binary number system and the result are stored in the 32-bit register, (D10, D11) and (D12, D13).
10. Additional Special Devices and Instructions (Zero flag, Carry flag, Overflow flag are valid and Error flag M1067, M1068 read D1067, D1068) Program example: M0 RST M1081 DFLT D0 D10 DFLT D2 D12 DPOW D10 D12 DEBCD D20 D30 M1 D20 M2 Ϩʳ When M0 is ON, the data of (D0, D1) and (D2, D3) are converted to decimal of binary number system and the result are stored in the 32-bit register, (D10, D11) and (D12, D13).
Appendix A: Communication Function Explanation 1. Introduction Parity This chapter explains the details and the methods of DVP series PLC communication function. When DVP series PLC communication port is used for the communication protocol of slave, it can read and write the interior device of PLC to be the operation reference used for connecting the master and HMI (or other upper bit equipments) of PLC. 2. Version 4.7 (included) or less DVP-ES/EX/SS Version 5.1 (included) or more 3. Stop bit 4.
Appendix A: Communication Function Explanation 6. Command Code 8. Code Description 01 02 03 05 06 15 16 17 Read coil status Read input status Read data of hold register Force single coil output Change single register data Force multi coil output Change multi register data Response Slave ID 7.
Appendix B: EC Declaration of Conformity DELTA ELECTRONICS, INC.
Appendix B: EC Declaration of Conformity and Warranty DELTA ELECTRONICS,INC.