Delta DVP-ES2 Operation Manual
Hide thumbs Also See for DVP-ES2:
Table of Contents

Advertisement

Quick Links

Digitized Automation for a Changing World
DVP-ES2 / EX2 / EC5 / SS2 / SA2 / SX2 / SE & TP
Operation Manual - Programming
www.deltaww.com

Advertisement

Table of Contents
loading

Summary of Contents for Delta DVP-ES2

  • Page 1 Digitized Automation for a Changing World DVP-ES2 / EX2 / EC5 / SS2 / SA2 / SX2 / SE & TP Operation Manual - Programming www.deltaww.com...
  • Page 2 DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual Programming Revision History I s s u e D e s c r i p t i o n o f C h a n g e s D a t e T h e f i r s t e d i t i o n i s i s s u e d .
  • Page 3 I s s u e D e s c r i p t i o n o f C h a n g e s D a t e C h a p t e r 3 . 8 D e t a i l e d I n s t r u c t i o n E x p l a n a t i o n : I n c r e a s e e x p l a n a t i o n s o f D S PA i n s t r u c t i o n , a n d a d d f l o a t i n g - p o i n t c o n t a c t t y p e c o m p a r i s o n i n s t r u c t i o n s F L D = , F L D >...
  • Page 4 I s s u e D e s c r i p t i o n o f C h a n g e s D a t e 7 . A p p e n d i x C i s a d d e d . 1 .
  • Page 5 I s s u e D e s c r i p t i o n o f C h a n g e s D a t e C R # 2 7 i s a d d e d , a n d t h e d e s c r i p t i o n s o f C R # 8 7 ~ C R 1 0 3 a r e u p d a t e d .
  • Page 6 I s s u e D e s c r i p t i o n o f C h a n g e s D a t e 4 . S e c t i o n 2 . 1 2 : u p d a t e d s u p p o r t i n g m o d u l e s f o r h a r d w a r e h i g h - s p e e d c o u n t e r s .
  • Page 7 I s s u e D e s c r i p t i o n o f C h a n g e s D a t e 3 . S e c t i o n 2 . 1 2 : u p d a t e d t h e s o f t w a r e h i g h s p e e d c o u n t e r s a n d t h e m a x i m u m f r e q u e n c y o f h a r d w a r e h i g h s p e e d c o u n t e r s C 2 4 a n d C 2 5 0 .
  • Page 8 I s s u e D e s c r i p t i o n o f C h a n g e s D a t e C 4 3 0 t o C 4 3 8 . A d d e d n e w e r r o r c o d e s C 4 1 C , C 4 2 1 t o C 4 2 6 , C 4 5 1 t o C 4 5 3 , a n d C 4 6 1 t o C 4 6 5 1 2 .
  • Page 9 I s s u e D e s c r i p t i o n o f C h a n g e s D a t e P L C C P U t o E S 2 a n d E X 2 s e r i e s P L C C P U i n s e c t i o n F 1 , a d d e d t h e g e n e r a l s p e c i f i c a t i o n f o r S A 2 , S S 2 , S X 2 a n d S E s e r i e s P L C C P U i n s e c t i o n F 2 a n d a d d e d t h e g e n e r a l s p e c i f i c a t i o n f o r T P...
  • Page 10 I s s u e D e s c r i p t i o n o f C h a n g e s D a t e 7 . A d d e d E C 5 S e r i e s p r o d u c t i n f o r m a t i o n i n s e c t i o n s f r o m 3 .
  • Page 11 DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual Programming Contents 1 PLC Concepts PLC Scan Method ..................1-2 Current Flow ....................1-3 NO Contact, NC Contact ................1-3 PLC Registers and Relays ................1-3 Ladder Logic Symbols ................1-3 1.5.1 Creating a PLC Ladder Program ............. 1-5 1.5.2 LD / LDI (Load NO contact / Load NC contact) ....... 1-6 1.5.3...
  • Page 12 3.6.19 Contact Type Comparison Instructions ........3-560 3.6.20 Specific Bit Control Instructions ........... 3-588 3.6.21 Floating-Point Contact Type Comparison Instructions ....3-598 3.6.22 Delta Special CANopen Communication Instructions ....3-602 3.6.23 Module Instructions ..............3-659 4 Communications Communication Ports ................4-2 Communication Protocol ASCII mode ............
  • Page 13 4.5.1 Command Code: 01, Read Status of Contact (Input point X is not included) ..................4-13 4.5.2 Command Code: 02, Read Status of Contact (Input point X is included) ..................4-14 4.5.3 Command Code: 03, Read Content of Register (T, C, D) ....4-15 4.5.4 Command Code: 05, Force ON/OFF single contact ......
  • Page 14 Appendix A Installing the USB Driver in Windows 7 ............ A-2 Installing the USB in Windows 8 .............. A-4 Installing the USB Driver in Windows 10 ..........A-7 Notes on Utilizing USB Communication ........... A-9 Appendix B Specifications for an Ethernet PLC/Module ..........B-2 Ethernet Control Registers ...............
  • Page 15 D.1.3 Current consumption of a special input/output module (+24VDC)D-3 D.1.4 Current consumption of a left-side high-speed special module (+24VDC) ................D-4 D.1.5 Calculating the maximum current consumed by a system ... D-4 Appendix E DVP Series Slim Type Special Modules ........... E-2 Connections of a Slim Type Special Module (Work alone) .......
  • Page 16 T h e D V P s e r i e s P L C s a r e l i s t e d b e l o w. S e r i e s M o d e l n a m e D V P 1 6 E S 2 0 0 R , D V P 1 6 E S 2 0 0 T , D V P 2 4 E S 2 0 0 R , D V P 2 4 E S 2 0 0 T , D V P 3 2 E S 2 0 0 R , D V P 3 2 E S 2 0 0 T , D V P 3 2 E S 2 1 1 T , D V P 4 0 E S 2 0 0 R , D V P 4 0 E S 2 0 0 T , D V P 6 0 E S 2 0 0 R , D V P 6 0 E S 2 0 0 T ,...
  • Page 17 PLC Concepts This chapter introduces basic and advanced concepts of ladder logic, which is the mostly adopted programming language of PLC. Users familiar with the PLC concepts can move to the next chapter for further programming concepts. However, for users not familiar with the operating principles of PLC, please refer to this chapter to get a full understanding of PLC concepts.
  • Page 18 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g PLC Scan Method PLC utilizes a standard scan method when evaluating user program.
  • Page 19 1 . P L C C o n c e p ts Current Flow Ladder logic follows a left to right principle. In the example below, the current flows through paths started from either X0 or X3. Reverse Current When a current flows from right to left, which makes a reverse current logic, an error will be detected when compiling the program.
  • Page 20 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Bit, word or double word memory used for counting and has coil, contact and register in it.
  • Page 21 1 . P L C C o n c e p ts Ladder Diagram Explanation Instruction Available Devices Structure Multiple output branches None Output coil Y, M, S Step ladder Basic instructions and API Basic / Application instructions. Please refer to instruction chapter 3 Instruction Set Inverse logic...
  • Page 22 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 1.5.2 LD / LDI (Load NO contact / Load NC contact) LD or LDI starts a row or block LD instruction...
  • Page 23 1 . P L C C o n c e p ts 1.5.9 ORB (Connect block in parallel) ORB instruction connects a block in parallel with another block ORB instruction 1.5.10 MPS / MRD / MPP (Branch instructions) These instructions provide a method to create multiplexed output branches based on current result stored by MPS instruction.
  • Page 24 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g previous step is completed, therefore it forms a sequential control process similar to SFC (Sequential Function Chart) mode.
  • Page 25 1 . P L C C o n c e p ts Conversion between Ladder Diagram and Instruction List Mode Ladder Diagram Instruction block block Block in series block Block in parallel The output AN I continues based on status of Multiple outputs Start of step ladder...
  • Page 26 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Fuzzy Syntax Generally, the ladder diagram programming is conducted according to the “up to down and left to right”...
  • Page 27 1 . P L C C o n c e p ts Block combination should be made on top of the circuit. Parallel connection with empty device is not allowed.. Parallel connection with empty device is not allowed. No device in the middle block. Devices and blocks in series should be horizontally aligned Label P0 should be at the first row of the...
  • Page 28 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Example 2: When a device is to be connected to a block, connect the device to upper row for omitting ORB instruction...
  • Page 29 1 . P L C C o n c e p ts Example 5: Correct the circuit of reverse current. The pointed reverse current loops are modified on the right.  LOO P1 rev er se c urrent LOOP1 Example 6: Correct the circuit of reverse current.
  • Page 30 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Start first Stop First circuit while SET which is lower than RST forms a Start First circuit.
  • Page 31 1 . P L C C o n c e p ts Example 8 - Oscillating Circuit An oscillating circuit with cycle ΔT+ΔT In the first scan, Y1 turns on. In the second scan, Y1 turns off due to the reversed state of contact Y1.
  • Page 32 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Example 13 - Output delay circuit The output delay circuit is composed of two timers executing delay actions.
  • Page 33 1 . P L C C o n c e p ts Timing Diagram: Vertical Light Yellow 25 Sec Green 5 Sec 5 Sec Horizontal Light Yellow Green 25 Sec 5 Sec 5 Sec SFC Figure: M1002 K350 K250 M1013 K250 M1013 K350...
  • Page 34 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Ladder Diagram: M1002 ZRST...
  • Page 35 1 . P L C C o n c e p ts WPLSoft programming (SFC mode) SFC logic Internal Ladder Logic LAD-0 LAD-0 M1002 ZRST S127 Transfer condition 1 TRANS* M1013 Transfer condition 4 TRANS* TRANS* TRANS* TRANS* TRANS* TRANS* TRANS* Transfer condition 7 TRANS*...
  • Page 36 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g MEMO 1 - 2 0...
  • Page 37 Programming Concepts DVP-ES2/EX2/EC5/SS/SA2/SX2/SE is a programmable logic controller spanning an I/O range of 10–256 I/O points (SS2/SA2/SX2/SE: 512 points). PLC can control a wide variety of devices to solve your automation needs. PLC monitors inputs and modifies outputs as controlled by the user program. User program provides features such as boolean logic, counting, timing, complex math operations, and communications to other communicating products.
  • Page 38 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g ES2/EX2/EC5 Memory Map Specifications Control Method...
  • Page 39 2 . P r o g r a m m i n g C o n c e p t s Specifications D0~D407, 408 words, (*1) General D600~D999, 400 words, (*1) D3920~D9999, 6080 words, (*1) D408~D599, 192 words, (*2) Latched D2000~D3919, 1920 words, (*2) Data Total...
  • Page 40 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 8.
  • Page 41 2 . P r o g r a m m i n g C o n c e p t s SS2 Memory Map Specifications Control Method Stored program, cyclic scan system Batch processing method (when END instruction is I/O Processing Method executed) Execution Speed LD instructions –...
  • Page 42 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Specifications D0~D407, 408 words, (*1) General...
  • Page 43 2 . P r o g r a m m i n g C o n c e p t s SA2/SX2 Memory Map Specifications Control Method Stored program, cyclic scan system Batch processing method (when END instruction is I/O Processing Method executed) Execution Speed LD instructions –...
  • Page 44 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Specifications D0~D407, 408 words, (*1) General...
  • Page 45 2 . P r o g r a m m i n g C o n c e p t s 6. If an SA2/SX2 series MPU is connected to a right-side special module, and M1183 is Off, the range of data registers can be used. Every special module connected to an SA2/SX2 series MPU occupies ten data registers.
  • Page 46 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g SE Memory Map Specifications Control Method...
  • Page 47 2 . P r o g r a m m i n g C o n c e p t s Specifications D0~D407, 408 words, (*1) D600~D999, 400 words, (*1) General D3920~D9799, 5880 words, (*1) D10000~D11999, 2000 words, (*1) D408~D599, 192 words, (*2) Latched D2000~D3919, 1920 words, (*2) Data...
  • Page 48 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Status and Allocation of Latched Memory Clear all Clear all...
  • Page 49 2 . P r o g r a m m i n g C o n c e p t s PLC Bits, Nibbles, Bytes, Words, etc For different control purposes, there are five types of values inside DVP-PLC for executing the operations.
  • Page 50 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Exception: If K is used with an X/Y/M/S device, a nibble device, a byte device, a word device, or a double word device will be formed.
  • Page 51 2 . P r o g r a m m i n g C o n c e p t s M Relay The types and functions of special auxiliary relays (special M) are listed in the table below. Care should be taken that some devices of the same No.
  • Page 52 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g STOP Special Latch...
  • Page 53 2 . P r o g r a m m i n g C o n c e p t s STOP Special Latch Function Attrib. Default    STOP comparison will stop immediately and M1091 = ON. Indicating pointer error. When the pointer M1092 Pr exceeds the comparison range, M1092 ○...
  • Page 54 ON: binary floating point; OFF: decimal integer M1167 16-bit mode for HKY input ○ ○ ○ ○ M1168 Designating work mode of SMOV ○ ○ ○ ○ Enable the communication instruction for M1177 ○ ○ ○ ○ Delta VFD series inverter. 2 - 1 8...
  • Page 55 2 . P r o g r a m m i n g C o n c e p t s STOP Special Latch Function Attrib. Default    STOP ON: VFD-A (Default), OFF: other models of VFD M1178 Enable knob VR0 ╳...
  • Page 56 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g STOP Special Latch...
  • Page 57 2 . P r o g r a m m i n g C o n c e p t s STOP Special Latch Function Attrib. Default    STOP For I000 / I001, reverse interrupt trigger M1280* ○ ○...
  • Page 58 Auto-reset Y1 when high speed pulse ES2/ M1348 ○ ○ ○ output is completed When M1349 is ON, the CANopen ES2- M1349 function is enabled. (Only for DVP-ES2- ╳ ╳ ╳ M1350* Enable PLC LINK ○ ○ ○ ○ M1351* Enable auto mode on PLC LINK ○...
  • Page 59 2 . P r o g r a m m i n g C o n c e p t s STOP Special Latch Function Attrib. Default    STOP Activation status of connection ID#14 on M1373* ○ ○ ○...
  • Page 60 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g STOP Special Latch...
  • Page 61 EtherNet/IP upper/lower byte ES2- M1551 arrangement , OFF: Little-endian; ON: 26SE ╳ ╳ Big-endian The absolute position of Delta ASDA-A2 ES2/ V2.6 M1580 servo is read successfully by means of V2.4 OFF EX2: ╳ V1.4 the instruction DABSR.
  • Page 62 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g STOP Special Latch...
  • Page 63 2 . P r o g r a m m i n g C o n c e p t s STOP Special Latch Function Attrib. Default    STOP D1990 and D1991 for the fixed slope of Y3. (ON: Enable; OFF: Disable) Available for ES2/EX2: V3.28, ES2-E: V1.00, 12SA2/SX2: V2.82, SS2: V3.24, SE: V2.00, 28SA2: V2.90.
  • Page 64 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g STOP Special Latch...
  • Page 65 2 . P r o g r a m m i n g C o n c e p t s STOP Special Latch Function Attrib. Default    STOP ES2- M1668 Drive #5 heartbeat error ╳ ╳ ╳ V3.49 ES2- M1669...
  • Page 66 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 2.10 T (Timer) The units of the timer are 1ms, 10ms and 100ms and the counting method is counting up.
  • Page 67 2 . P r o g r a m m i n g C o n c e p t s 2.11 C (Counter) Counters will increment their present count value when input signals are triggered from OFFON. 16 bits 32 bits counters counters Type...
  • Page 68 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g When X0 = ON, RST instruction resets C0.
  • Page 69 2 . P r o g r a m m i n g C o n c e p t s 2.12 High-speed Counters There are two types of high speed counters provided including Software High Speed Counter (SHSC) and Hardware High Speed Counter (HHSC). The same Input point (X) can be designated with only one high speed counter.
  • Page 70 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Note: 1.
  • Page 71 K4 or other value (Quadruple frequency) (Default) 7. DVP-ES2/DVP-SS2 series PLCs whose firmware version is 2.80 or above support the single frequency mode. DVP-SA2/DVP-SX2 series PLCs whose firmware version is 2.00 support the single frequency mode. The other PLCs support the three modes.
  • Page 72 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Example: C235 C235...
  • Page 73 2 . P r o g r a m m i n g C o n c e p t s count up count down C247 present value Y0, C247 contact AB-phase input high-speed counter: Example: M1002 M1002 D1022 K2 D1022 C251 C251 DCNT...
  • Page 74 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 2.13 Special Data Register The types and functions of special registers (special D) are listed in the table below.
  • Page 75 2 . P r o g r a m m i n g C o n c e p t s STOP Special Latch Content Attrib. Default    STOP 1. Delay time setting for data response when PLC is SLAVE in COM2 / COM3 RS- 485 communication.
  • Page 76 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g STOP Special Latch...
  • Page 77 2 . P r o g r a m m i n g C o n c e p t s STOP Special Latch Content Attrib. Default    STOP Number of pulses for ramp-down operation D1133 ○ ○ ○...
  • Page 78 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g STOP Special Latch...
  • Page 79 2 . P r o g r a m m i n g C o n c e p t s STOP Special Latch Content Attrib. Default    STOP Set value for COM3 (RS-485) data receiving time-out (Unit: 1ms, min. 50ms, value smaller than 50ms will be regarded ES2/ D1252...
  • Page 80 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g STOP Special Latch...
  • Page 81 2 . P r o g r a m m i n g C o n c e p t s STOP Special Latch Content Attrib. Default    STOP D1388 ID of the 3 left side module ╳ ╳...
  • Page 82 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g STOP Special Latch...
  • Page 83 2 . P r o g r a m m i n g C o n c e p t s STOP Special Latch Content Attrib. Default    STOP connection ID#14 Data length to be written for PLC LINK D1464* ○...
  • Page 84 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g STOP Special Latch...
  • Page 85 2 . P r o g r a m m i n g C o n c e p t s STOP Special Latch Content Attrib. Default    STOP M1611 to enable this function. Or you can with PLC Link via this register. Set the maximum frequency of the ramp up/down for the fixed slope of Y1 in D1988 (Low word).
  • Page 86 Record the STEP that error occurs ES2-C: D6002 duringCANopen communication on Delta ╳ ╳ ╳ V2.8 Servo The PR command of the Delta CANopen ES2-C: D6008 ╳ ╳ ╳ communication axis 1 from the Delta servo V2.8 PR command of the Delta CANopen...
  • Page 87 2 . P r o g r a m m i n g C o n c e p t s STOP Special Latch Content Attrib. Default    STOP The DO state of the Delta CANopen ES2-C: D6030 ╳ ╳ ╳ communication axis 7 from the Delta servo V2.8 The DO state of the Delta CANopen ES2-C: D6031 ╳...
  • Page 88 (It is only applicable to DVP-ES2-C series MPUs. If DVP-ES2-C V3.24 (or above) is turned from OFF to ON, the value in D9998 will be H’0. If DVP-ES2-C V3.26 (or above) is turned from OFF to ON, the value in D9998 will be H’FFFF.) Showing the CAN baud rate K1: 20K;...
  • Page 89 2 . P r o g r a m m i n g C o n c e p t s 2.15 Nest Level Pointer [N], Pointer [P], Interrupt Pointer [I] The control point of Master control nested N0~N7, 8 points master control nested Pointer The location point of CJ,...
  • Page 90 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g CALL Call subroutine P** FEND...
  • Page 91 2 . P r o g r a m m i n g C o n c e p t s 4. Communication interrupt I140: Communication instruction RS (COM1 RS-232) can be designated to send interrupt request when specific charcters are received. Interrupt I140 and specific characters is set to low byte of D1167.
  • Page 92 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 2.16 Applications of Special M Relays and D Registers Function Group PLC Operation Flag...
  • Page 93 2 . P r o g r a m m i n g C o n c e p t s Function Group Program Capacity Number D1002 Contents: This register holds the program capacity of the PLC. SS2: 7,920 steps (Word) ES2 / EX2 / EC5 / SA2 / SX2 / SE series: 15,872 steps (Word) Function Group Syntax Check...
  • Page 94 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Function Group High-speed Timer Number...
  • Page 95 2 . P r o g r a m m i n g C o n c e p t s 3. When the power of PLC goes from “OFF” to “ON”, the content of D1020 is set to 10 automatically.
  • Page 96 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 1.
  • Page 97: Contents

    2 . P r o g r a m m i n g C o n c e p t s Function Group COM Port Function Port COM1 COM2 COM3 Item Communication format D1036 D1120 D1109 Number Communication setting holding M1138 M1120 M1136 ASCII/RTU mode M1139 M1143 M1320...
  • Page 98 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Content Select the 1 end bit...
  • Page 99 2. If the PLC is powered OFF then ON again in STOP status, the modified communication format on COM1~COM3 will be reset to default communication format (9600, 7, E, 1). Definitions of the pins in COM1: (It is suggested that users should use the Delta communication cable UC-MS030-01A.) 3000 50 ±...
  • Page 100 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Function Group Enable SPD function Number...
  • Page 101 2 . P r o g r a m m i n g C o n c e p t s Function Group Fixed scan time Number M1039, D1039 Contents: 1. When M1039 is ON, program scan time is determined by D1039. When program execution is completed, next scan will be activated only when the fixed scan time is reached.
  • Page 102 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Device Function If D1062 is ON, the average value is the current value.
  • Page 103 2 . P r o g r a m m i n g C o n c e p t s PT100 NI100 PT1000 NI1000 Code Voltage: Voltage: Voltage: Current: Description -10 V~+10 V -5 V~+5 V +1 V~+5 V -20 mA~+20 mA Code Current:...
  • Page 104 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g DMOV K100000 DMOV...
  • Page 105 2 . P r o g r a m m i n g C o n c e p t s Function Group Program Execution Error Number M1067~M1068, D1067~D1068 Contents: Device Explanation Latched STOP→RUN RUN→STOP M1067 Program execution error None Clear Unchanged M1068...
  • Page 106 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Function Group Stores Value of High-speed Counter when Interrupt Occurs Number...
  • Page 107 2 . P r o g r a m m i n g C o n c e p t s Function Group ID of right side modules on ES2/EX2/SS2/SA2/SX2/SE Number D1320~ D1327 Contents: When right side modules are connected on ES2/EX2, the ID of each I/O module will be stored in D1320~D1327 in connection order.
  • Page 108 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Function Group Mapping function of SA2/SX2/SE for left-side high-speed special modules Number...
  • Page 109 2 . P r o g r a m m i n g C o n c e p t s Function Group Output clear signals when ZRN is completed Number M1346 Contents: When M1346 = ON, PLC will output clear signals when ZRN is completed. The clear signals to Y0, Y1 will be sent by Y4 for 20ms, and the clear signals to Y2, Y3 will be sent by Y5 for 20ms.
  • Page 110 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Starting address of the Connection to be read, written or connected.* D1363 D1423 D1364 D1424 D1365 D1425 D1366 D1426 D1367 D1427 D1368 D1428 D1369 D1429 D1370 D1430 M1355 = ON, Connection status is user-defined.
  • Page 111 2 . P r o g r a m m i n g C o n c e p t s 5. Special D and special M corresponding to Connection ID9~ID16: (M1353 = ON, access available for up to 50 words) (DVP-12SE V1.6 and DVP-26SE V2.0 supports 100 words at most.) MASTER PLC CONNECTION...
  • Page 112 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Writing complete on PLC LINK connection ID#17-24 (System resets to OFF after writing is complete on one module.) M1504 M1505...
  • Page 113 2 . P r o g r a m m i n g C o n c e p t s of Slaves. All the station number of the connection IDs should not be the same as the station number of the Master PLC, which is set up in D1121/D1255. d) When both M1353 and M1356 are ON, the station number of connection ID1~ID16 can be specified by the user in D1900~D1915 of Master PLC.
  • Page 114 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g ...
  • Page 115 2 . P r o g r a m m i n g C o n c e p t s When PLC LINK is enabled, D1432 starts to store the times of polling. When D1431 = D1432, PLC LINK stops and M1352 is reset. When M1352 is set ON again, PLC will start the polling according to times set in D1431 automatically.
  • Page 116 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 13.
  • Page 117 2 . P r o g r a m m i n g C o n c e p t s 14. Example 1: Connect 1 Master and 2 Slaves by RS-485 and exchange 16 data between Master and Slaves through PLC LINK a) Write the ladder diagram program into Master PLC (ID#17) M1002 D1121...
  • Page 118 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Master PLC Preset value Slave PLC...
  • Page 119 (For example, the external interrupt or SPD will not be enabled after the frequency detection function is enabled.) 7. DVP-ES2/EX2 series PLCs (exclusive of DVP-ES2-E series PLCs) whose firmware version is 3.22 (or above), ES2-C (V3.68), SA2 (V3.02) and DVP-SX2 (V2.66) or later versions support this function.
  • Page 120 D device. 3. DVP-ES2/EX2/SS2 series PLCs whose firmware version is 3.28 (or above), and DVP- SA2/SX2 series PLCs whose firmware version is 2.82 (or above) support this function.
  • Page 121 2 . P r o g r a m m i n g C o n c e p t s If the PLC detects that the external 24V voltage is unstable, the error LED Function Group flashes Number M1019 Contents: 1.
  • Page 122 Instruction Set This chapter explains all of the instructions which are used with DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE as well as detailed information concerning the usage of the instructions. Table of Contents 3.1 Basic Instructions (without API numbers) ................3-3 3.2 Explanations to Basic Instructions ..................3-4 3.3 Pointers ...........................
  • Page 123 3.6.18 Contact Type Logic Operation Instructions ............3-556 3.6.19 Contact Type Comparison Instructions ..............3-560 3.6.20 Specific Bit Control Instructions ................3-588 3.6.21 Floating-Point Contact Type Comparison Instructions ......... 3-598 3.6.22 Delta Special CANopen Communication Instructions ........... 3-602 3.6.23 Module Instructions ....................3-659 3 - 2...
  • Page 124 3 . I n s t r u c t i o n S e t 3.1 Basic Instructions (without API numbers) Execution speed (us) Instruction Function Operand Steps ES2/EX2/EC5 /SS2SA2/SX2 Load NO contact X, Y, M, S, T, C 0.76 0.64 Load NC contact...
  • Page 125 The LD instruction is used to load NO contact which connects to left side bus line or starts a new block of program connecting in series or parallel connection. DVP-ES2/EX2 (V3.20), DVP-SS2 (V3.00), DVP-SA2 (V2.60), DVP-SE (V1.20), DVP-SX2 (V2.40), DVP-EC5 (V1.00) or later versions support the operands X, Y, M, and S. These operands can be qualified by E or F.
  • Page 126 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Program steps Controllers ES2/EX2/ X, Y, M, S, T, C Load NC contact Explanations: The LDI instruction is used to load NC contact which connects to left side bus line or starts a new block of program connecting in series or parallel connection.
  • Page 127 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 128 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Program steps Controllers ES2/EX2/ Connect NC contact X, Y, M, S, T, C in series Explanations: The ANI instruction is used to connect NC contact in series. Refer to instruction LD for more information on the supported firmware versions for each modules.
  • Page 129 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 130 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Program steps Controllers ES2/EX2/ Connect NC contact X, Y, M, S, T, C in parallel Explanations: The ORI instruction is used to connect NC contact in parallel. Refer to instruction LD for more information on the supported firmware versions for each modules.
  • Page 131 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Controllers Mnemonic Function...
  • Page 132 3 . I n s t r u c t i o n S e t Mnemonic Function Program steps Controllers ES2/EX2/ Connect a block in parallel Explanations: The ORB instruction is used to connect a circuit block to the preceding block in parallel. Generally, the circuit block to be connected in parallel consists of several contacts which form a serial connection structure.
  • Page 133 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Function Program steps...
  • Page 134 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Program steps Controllers ES2/EX2/ Y, M, S Output coil Explanations: Output the program evaluation results before OUT instruction to the designated device. Refer to instruction LD for more information on the supported firmware versions for each modules.
  • Page 135 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 136 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Program steps Controllers ES2/EX2/ Y, M, S, T, C, D, E, Resets contacts, registers or coils Explanations: Device status when RST instruction is driven: Device Status S, Y, M...
  • Page 137 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function Program steps...
  • Page 138 3 . I n s t r u c t i o n S e t Reset N0 nest level Load NO contact X10 Enable N0 nest level Load NO contact X11 Drive coil Y10 Reset N0 nest level Mnemonic Function Program steps Controllers...
  • Page 139 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Function Program steps...
  • Page 140 3 . I n s t r u c t i o n S e t Mnemonic Function Program steps Controllers ES2/EX2/ Positive contact to Negative contact Explanation: When the conditions preceding PN command change from true to false, PN command (works as contact A) will be ON for a scan cycle.
  • Page 141 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 3.3 Pointers Mnemonic Operands...
  • Page 142 3 . I n s t r u c t i o n S e t 3.4 Interrupt Pointers Mnemonic Function Program steps Controllers ES2/EX2/ Interrupt program pointer Explanations: An interruption program has to start with a interruption pointer (I□□□) and ends with API 03 IRET. I instruction has to be used with API 03 IRET, API 04 EI, and API 05 DI.
  • Page 143 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 3.5 Application Programming Instructions PLC instructions are provided with a unique mnemonic name to make it easy to remember instructions.
  • Page 144 3 . I n s t r u c t i o n S e t Mnemonic : Indicates the name and the function of the instruction Operand : The parameter setting for the instruction Source: if there are more than one source is required, it will be indicated as S ...etc.
  • Page 145 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Explanation of the format of application instruction Op er and s F un ctio n...
  • Page 146 3 . I n s t r u c t i o n S e t Pulse execution instruction When X0 goes from OFF to ON, MOVP instruction will be executed once and the MOVP instruction will not be executed again in the scan period Continuous execution instruction When X1=ON, the MOV instruction can be...
  • Page 147 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g K1 (4 bits) 0~15 K1 (4 bits)
  • Page 148 3 . I n s t r u c t i o n S e t Device Explanation M1067 When operational errors occur, M1067 = ON. D1067 displays the error code. D1067 D1069 displays the address where the error occurs. Other errors occurring will D1069 update the contents in D1067 and D1069.
  • Page 149 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Numeric Values Devices indicates ON/OFF status are called bit devices, e.g.
  • Page 150 3 . I n s t r u c t i o n S e t Floating Point Operation The operations in DVP-PLC are conducted in BIN integers. When the integer performs division, e.g. 40 ÷ 3 = 13, the remainder will be 1. When the integer performs square root operations, the decimal point will be left out.
  • Page 151 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g use registers (D1, D0) for storing a binary floating point value as below: D1(b15~b0) D0(b15~b0)
  • Page 152 3 . I n s t r u c t i o n S e t Index register E, F The index registers are 16-bit registers. There are 16 devices including E0 ~ E7 and F0 ~ F7.  E and F index registers are 16-bit data registers which can be read and written.
  • Page 153 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 3.6 Detailed Instruction Explanation 3.6.1 Loop Control Mnemonic...
  • Page 154 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ Conditional Jump Range Program Steps P0~P255 CJ, CJP: 3 steps PULSE 16-bit 32-bit ES2/EX2 ES2/EX2 ES2/EX2 /EC5 /EC5 /EC5 Operands: S: The destination pointer P of the conditional jump.
  • Page 155 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program example 1: When X0 = ON, the program will skip from address 0 to N (Pointer P1) automatically and keep on executing.
  • Page 156 3 . I n s t r u c t i o n S e t When the instruction MC is executed, the previous state of the switch contact is put onto the top of the stack inside the PLC. The stack is controlled by the PLC, and can not be changed by users.
  • Page 157 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Y1 is a dual output.
  • Page 158 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ CALL Call Subroutine Valid Range Program Steps P0~P255 CALL, CALLP: 3 steps PULSE 16-bit 32-bit ES2/EX2 ES2/EX2 ES2/EX2 /EC5 /EC5 /EC5 Operands:...
  • Page 159 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Function Controllers...
  • Page 160 3 . I n s t r u c t i o n S e t 6. The execution of subroutines will go backwards to the subroutine of upper level until SRET instruction in P10 subroutine is executed. After this program execution will return to the main program.
  • Page 161 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Function Controllers...
  • Page 162 3 . I n s t r u c t i o n S e t Mnemonic Function Controllers ES2/EX2/ Disable Interrupt Descriptions Program Steps No contact to drive the instruction is required. DI: 1 step DI instruction disables PLC to accept interrupts. When the special auxiliary relay M1050 ~ M1059 for disabling interruption is driven, the corresponding interruption request will not be executed even in the range...
  • Page 163 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g b) High-speed counter interrupts: 8 points including I010, I020, I030, I040, I050, I060, I070, and I080.
  • Page 164 3 . I n s t r u c t i o n S e t Enabled interrupt Disabled interrupt Enabled interrupt FEND I 101 Interrupt subroutine A IRET I 201 Interrupt subroutine B IRET 3 - 4 3...
  • Page 165 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Function Controllers...
  • Page 166 3 . I n s t r u c t i o n S e t CALL Instruction Program Flow The program flow when X0=off, The program flow X1=off when X0=Off, X1=On. Main program CALL Main program FEND Main program FEND Command CALL subroutine SRET...
  • Page 167 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Function Controllers...
  • Page 168 3 . I n s t r u c t i o n S e t Program example: If the program scan time is over 300ms, users can divide the program into 2 parts. Insert the WDT instruction in between, making scan time of the first half and second half of the program being less than 200ms.
  • Page 169 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 170 3 . I n s t r u c t i o n S e t Program example 1: After program A has been executed for 3 times, it will resume its execution after NEXT instruction. Program B will be executed for 4 times whenever program A is executed once. Therefore, program B will be executed 3 ×...
  • Page 171 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program example 3: Users can adopt CJ instruction to skip a specified FOR ~ NEXT loop.
  • Page 172 3 . I n s t r u c t i o n S e t 3.6.2 Transmission Comparison Mnemonic Applicable to STEPS PULSE Function 16 bits 32 bits SX2 16-bit 32-bit DCMP Compare      DZCP Zone compare ...
  • Page 173 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 174 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ Zone Compare Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F ZCP, ZCPP: 9 steps DZCP, DZCPP: 17 steps PULSE 16-bit...
  • Page 175 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 176 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ Shift SMOV Move Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F SMOV, SMOVP: 11 step PULSE 16-bit 32-bit...
  • Page 177 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g M1001 M1168 SMOV...
  • Page 178 3 . I n s t r u c t i o n S e t Program example 3: 1. This instruction can be used to combine the DIP switches connected to the input terminals without continuous numbers. 2. Move the 2 digits of the right DIP switch (X27~X20) to the 2 digits of D2, and the 1 digit of the DIP switch (X33~X30) to the 1 digit of D1.
  • Page 179 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 180 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ BMOV Block Move Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F BMOV, BMOVP: 7 steps PULSE 16-bit 32-bit...
  • Page 181 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program example 3: In order to prevent the error which results from the overlap between the source devices and the destination devices, the data is transferred in the following way.
  • Page 182 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ FMOV Fill Move Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F FMOV, FMOVP: 7 steps DFMOV, DFMOVP: 13 steps PULSE...
  • Page 183 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 184 3 . I n s t r u c t i o n S e t 4. When X0 = ON and M1303 = ON, the high 8 bits and the low 8 bits in D0 are exchanged, the high 8 bits and the low 8 bits in D1 are exchanged., and the high 8 bits and the low 8 bits in D2 are exchanged.
  • Page 185 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 186 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ Convert BCD to BIN Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F BIN, BINP: 5 steps DBIN, DBINP: 9 steps PULSE 16-bit...
  • Page 187 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 4-digit DIP switch in BCD format 4-digit BCD value Using BIN instruction to store...
  • Page 188 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 $MOV Transferring a string Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F $MOV, $MOVP: 5~12 steps PULSE 16-bit...
  • Page 189 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g When 16#00 appears in the low byte, the execution of the instruction is as follows.
  • Page 190 3 . I n s t r u c t i o n S e t When S overlaps D and the device number of S is less than the device number of D, the transfer of the data to D starts form the ending code 16#00. Be fo re th e ins tru c tion is e xe c ut e d : b 15 ~ b 8 b 15 ~ b 8...
  • Page 191 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Example 2 Suppose the data in S is the string “12345”...
  • Page 192 3 . I n s t r u c t i o n S e t Example 3 When the data in S is not a string and the ending code 16#00 appears in the low byte, the execution of the instruction is as follows. The operand S: Device High byte...
  • Page 193 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Example 4 When the data in S is not a string and the ending code 16#00 appears in the high byte, the execution of the instruction is as follows.
  • Page 194 3 . I n s t r u c t i o n S e t Example 5 When S overlaps D, and the device number of S is less than the device number of D, the transfer of the data to D starts from the ending code 16#00. The value in S will not be overwritten. The operand S: Device High byte...
  • Page 195 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 3.6.3 Four Arithmetic Operations Mnemonic Applicable to...
  • Page 196 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ Addition Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F ADD, ADDP: 7 steps DADD, DADDP: 13 steps PULSE 16-bit...
  • Page 197 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 32-bit instruction: 1.
  • Page 198 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ Subtraction Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F SUB, SUBP: 7 steps DSUB, DSUBP: 13 steps PULSE 16-bit...
  • Page 199 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 200 3 . I n s t r u c t i o n S e t 32-bit value x 32-bit value = 64-bit value If D is specified with a word device, it can specify K1~K8 to store a 32-bit result. Users can use 2 consecutive 32-bit registers to store 64-bit data.
  • Page 201 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 202 3 . I n s t r u c t i o n S e t Program Example: When X0 = ON, D0 will be divided by D10 and the quotient will be stored in D20 and remainder in D21. ON/OFF of the MSB indicates the positive/negative status of the result value.. 3 - 8 1...
  • Page 203 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 204 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ Decrement Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DEC, DECP: 3 steps DDEC, DDECP: 5 steps PULSE 16-bit...
  • Page 205 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 206 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ DAND Logical DWord AND Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DAND, DANDP: 13 steps PULSE 16-bit 32-bit...
  • Page 207 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 208 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ Logical DWord OR Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DOR, DORP: 13 steps PULSE 16-bit 32-bit...
  • Page 209 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 210 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ DXOR Logical DWord XOR Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DXOR, DXORP: 13 steps PULSE 16-bit 32-bit...
  • Page 211 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 212 3 . I n s t r u c t i o n S e t d) D4 is then able to remain positive. Detailed explanations on negative value and its absolute value 1. MSB = 0 indicates the value is positive while MSB = 1 indicates the value is negative. 2.
  • Page 213 3. If the sign bit is 0, it represents a positive value. If the sign bit is 1, it represents a negative value. 4. The models which are supported are DVP-ES2/EX2 v. 3.22, DVP-SS2 v. 3.20, DVP-SA2/SX2 v. 2.66, and DVP-SE v.1.60 (and above).
  • Page 214 3 . I n s t r u c t i o n S e t Program Example 1: The 16-bit value K100 in D0 is multiplied by the 16-bit value K200 in D10, and the product is stored in D20. Whether the product is a positive value or a negative value depends on the leftmost bit (bit 15) in D20.
  • Page 215 3. If the divisor is 0, the instruction will not be executed, M1067 and M1068 will be ON, and the error code in D1067 will be H0E19. 4. The models which are supported are DVP-ES2/EX2 v. 3.22, DVP-SS2 v. 3.20, DVP-SA2/SX2 v. 2.66, and DVP-SE v. 1.60 (and above).
  • Page 216 3 . I n s t r u c t i o n S e t Program Example 1: When X0 is ON, the dividend K103 in D0 is divided by the divisor K5 in D10, and the quotient is stored in D20.
  • Page 217 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 3.6.4 Rotation and Displacement Mnemonic Applicable to...
  • Page 218 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ Rotation Right Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F ROR, RORP: 5 steps DROR, DRORP: 9 steps PULSE 16-bit...
  • Page 219 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 220 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ Rotation Right with Carry Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F RCR, RCRP: 5 steps DRCR, DRCRP: 9 steps PULSE 16-bit...
  • Page 221 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 222 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SFTR Bit Shift Right Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F SFTR, SFTRP: 9 steps PULSE 16-bit 32-bit...
  • Page 223 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 224 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ WSFR Word Shift Right Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F WSFR, WSFRP: 9 steps PULSE 16-bit 32-bit...
  • Page 225 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 2: 1.
  • Page 226 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ WSFL Word Shift Left Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F WSFL, WSFLP: 9 steps PULSE 16-bit 32-bit...
  • Page 227 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 228 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SFRD Shift Register Read Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F SFRD, SFRDP: 7 steps PULSE 16-bit 32-bit...
  • Page 229 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 3.6.5 Data Processing Mnemonic Applicable to...
  • Page 230 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ ZRST Zone Reset Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F ZRST, ZRSTP: 5 steps PULSE 16-bit 32-bit...
  • Page 231 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Points to note: 1.
  • Page 232 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ DECO Decode Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DECO, DECOP: 7 steps PULSE 16-bit 32-bit...
  • Page 233 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 2: 1.
  • Page 234 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ ENCO Encode Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DECO, DECOP: 7 steps PULSE 16-bit 32-bit...
  • Page 235 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 2: 1.
  • Page 236 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ Sum of Active bits Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F SUM, DSUMP: 5 steps DSUM, DSUMP: 9 steps PULSE 16-bit...
  • Page 237 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 238 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ MEAN Mean Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F MEAN, MEANP: 7 steps DMEAN, DMEANP: 13 steps PULSE...
  • Page 239 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 240 3 . I n s t r u c t i o n S e t Mnemonic Function Controllers ES2/EX2/ Annunciator Reset Descriptions Program Steps Instruction driven by contact is necessary. ANR, ANRP: 1 steps PULSE 16-bit 32-bit ES2/EX2 ES2/EX2 ES2/EX2 /EC5 /EC5...
  • Page 241 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g M1000 M1049 K100...
  • Page 242 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ Square Root Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F SQR, SQRP: 5 steps DSQR, DSQRP: 9 steps PULSE 16-bit...
  • Page 243 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 244 3 . I n s t r u c t i o n S e t M1002 M1081 DFLT Program Example 2: 1. When M1081 = ON, the source data is converted from floating point value to BIN integer. (Decimal ignored) 2.
  • Page 245 D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g M1000 D100 K2X0...
  • Page 246 3 . I n s t r u c t i o n S e t 3.6.6 High Speed Processing Mnemonic Applicable to STEPS PULSE Function 16 bits 32 bits SX2 16-bit 32-bit Refresh      REFF Refresh and filter adjust ...
  • Page 247 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 248 3 . I n s t r u c t i o n S e t A. Normally, PLC only refreshes pulse output when the pulse instruction is executed. You can use output pulse to check the pulse number but if the program is big, it may cause a bigger different result in such a long scan.
  • Page 249 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 4: For DVP-EX2/SX2 only: When X0 = ON and M1180 = ON, A/D signal in D1110~D1113 will be refreshed immediately regardless of the settings of operands D and n...
  • Page 250 3 . I n s t r u c t i o n S e t Controllers Mnemonic Operands Function ES2/EX2/ REFF Refresh and Filter Adjust Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F REFF, REFFP: 3 steps PULSE 16-bit 32-bit...
  • Page 251 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Points to note: Response time is ignored (no delay) when input points are occupied by external interrupts, high-speed counters or SPD instruction.
  • Page 252 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ Input Matrix Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F MTR: 9 steps PULSE 16-bit 32-bit...
  • Page 253 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g M1000 The figure below illustrates the external wiring of the 2-array matrix input loop constructed by X40 ~ X47 and Y40 ~ Y41.
  • Page 254 3 . I n s t r u c t i o n S e t Points to note: 1. Operand S must be a multiple of 10, e.g. 00, 10, 20, which means X0, X10… etc. and occupies 8 continuous devices. 2.
  • Page 255 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 256 3 . I n s t r u c t i o n S e t  Table of settings for the high-speed interrupts of the software counters and software comparators: Counter C232 C233 C234 C235 C236 C237 DHSCS High-speed I010 I050 I070...
  • Page 257 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g instruction uses C245 as high speed counter (group A) at the same time, PLC takes C243 as the source counter automatically and no syntax check error will be detected.
  • Page 258 3 . I n s t r u c t i o n S e t  Block diagram of hardware counters and comparators: H a rd w a re A x 4 c o m p a ra t o r S e t / re s e t I010 C o u nt...
  • Page 259 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 1: Set/reset M0 by applying software comparator M1000...
  • Page 260 3 . I n s t r u c t i o n S e t Program Example 3: Executes interrupt subroutine by applying software comparator. M1000 DCNT C235 K100 C235 DHSCS I010 K100 FEND M1000 I010 IRET  When value in C235 varies from 99 to100, interrupt subroutine triggered by I010 executes immediately to set Y0 ON.
  • Page 261 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g ...
  • Page 262 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 High Speed Counter HSCR Reset Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DHSCR: 13 steps PULSE 16-bit 32-bit...
  • Page 263 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 264 3 . I n s t r u c t i o n S e t  Block diagram of software counters and comparators: S o ft wa r e c o m p a ra t o r x 6 S o ft wa r e S e t / re s e t C o u nt e r 1...
  • Page 265 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g ...
  • Page 266 3 . I n s t r u c t i o n S e t Program Example 2: (Applying DHSZ instruction for performing ramp down operation) 1. C251 is AB-phase high speed counter. When X10 = ON, DHSZ compare the present value with K2000.
  • Page 267 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 268 3 . I n s t r u c t i o n S e t 6. If any of the X0~7 is used in SPD instruction, its associated high-speed counters or external interrupts cannot be used in this instruction or other instructions. The same input can only be used once at a time.
  • Page 269 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 270 3 . I n s t r u c t i o n S e t Pulse output flags: Output device Completed Flag M1029 M1030 M1102 M1103 Immediately M1078 M1079 M1104 M1105 pause 0.01~10Hz output M1190 M1191 M1192 M1193 a) M1029 = ON after Y0/Y1 (D1220=K1, pulse/Dir) output is completed. M1102 = ON after Y2/Y3 (D1221=K1, pulse/Dir) output is completed.
  • Page 271 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 4.
  • Page 272 3 . I n s t r u c t i o n S e t Program Example: 1. When X0 = ON, 200 pulses of 1kHz are generated from output Y0, after the pulse output has been completed, M1029 = ON to set Y20. 2.
  • Page 273 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g M1526: Auto reset Y4 when high speed pulse output completed.
  • Page 274 3 . I n s t r u c t i o n S e t Program Example 1: FEND M1000 I 001 M1347 DPLSY K1000 K1000 IRET M1000 I 101 M1524 DPLSY K1000 K1000 IRET Explanations: a) Whenever I001 is triggered, Y0 will output 1,000 pulses; whenever I101 is triggered, Y2 will output 1,000 pulses.
  • Page 275 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 276 3 . I n s t r u c t i o n S e t 3. Pulse output devices for operand D: Y0, Y1, Y2, Y3. For EC5, the available pulse output devices for operand D are Y0, Y2, Y4 and Y6. 4.
  • Page 277 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example: When X0 = ON, Y1 output the pulse as shown K1000...
  • Page 278 3 . I n s t r u c t i o n S e t D1339: High word of the present value of Y3 pulse output D1375: Low word of the present value of Y4 pulse output. D1376: High word of the present value of Y4 pulse output D1377: Low word of the present value of Y6 pulse output.
  • Page 279 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 280 3 . I n s t r u c t i o n S e t 7. When assigning Y0 and Y2 output mode as Pulse, i.e. D1220 = K0, D1221 = K0, the available range for S is 1~32,767 (16-bit instruction) and 1~2,147,483,647 (32-bit instruction). 8.
  • Page 281 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 16.
  • Page 282 3 . I n s t r u c t i o n S e t 6. When assigning Y0, Y2, Y4, Y6 output mode as Pulse, i.e. D1220 = K0, D1221 = K0, D1341 = K0, D1342 = K0), the available range for S is 1~32,767 (16-bit instruction) and 1~2,147,483,647 (32-bit instruction).
  • Page 283 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 14.
  • Page 284 3 . I n s t r u c t i o n S e t Explanations on associated flags and registers: 1. Description on associated flags: For M1029, M1030, M1102, M1103, M1078, M1079, M1104, M1105, M1538, M1539, M1540, M1541, M1347, M1348, M1524, M1525, please refer to PLSY instruction. M1108: Y0 pulse output pause (ramp down).
  • Page 285 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g D1235: Output pulse number for ramp-down stop when Y2 mark sensor receives signals (High word).
  • Page 286 3 . I n s t r u c t i o n S e t Program example 1: M1156 K10000 D1232 DMOV DPLSR K100000 K1000000 FEND M1000 I401 INCP IRET Explanations: When M0 is triggered, Y0 executes pulse output. If external interrupt is detected on X4, ...
  • Page 287 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g ...
  • Page 288 3 . I n s t r u c t i o n S e t Adding mask and alignment mark function for CH0 and CH1 Available for the followings  ES2/ 12SA2/ Series ES2-C ES2-E 12SE 26SE 28SA2 Firmware V3.28 V3.28 V1.00...
  • Page 289 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Alignment mark function can be done in the sections of ramp-up, rump-down and speed.
  • Page 290 3 . I n s t r u c t i o n S e t Available for the followings  ES2/ 12SA2/ Series ES2-C ES2-E 12SE 26SE 28SA2 Firmware V3.42 V3.48 V1.40 V2.86 V2.02 V1.2 V2.9 version Special D/M Devices Corresponding to the Marking and Masking Function ...
  • Page 291 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g device where stores pulse number for masking in the back for Y0-Y3 is less than 0 or equals to 0, it indicates the marking and masking functions in the back are disabled.
  • Page 292 3 . I n s t r u c t i o n S e t C. You can set number of deceleration pulses after marking to less than 0 (<0) and when marking is done, the output stopped immediately. See the Y0 example below.
  • Page 293 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 3.6.7 Handy Instructions Mnemonic Applicable to...
  • Page 294 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Initial State Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F IST: 7 steps PULSE 16-bit 32-bit...
  • Page 295 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 2: Robot arm control (by IST instruction): 1.
  • Page 296 3 . I n s t r u c t i o n S e t 5. Control panel Auto ON Power ON Zero return Auto OFF Power OFF Right Clip Ascend Step X32 Shift balls One cycle Zero return X31 operation X33 Left Release...
  • Page 297 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 8.
  • Page 298 3 . I n s t r u c t i o n S e t 9. Auto operation (Single step / One-cycle operation / continuous operation): a) SFC: M1041 M1044 3 - 1 7 7...
  • Page 299 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g b) Ladder Diagram: M1041 M1044 Enter auto operation mode...
  • Page 300 3 . I n s t r u c t i o n S e t Flag explanation: M1040: Disable step transition. When M1040 = ON, all motion of step points are disabled. 1. Manual operation mode: M1040 remains ON in manual mode. 2.
  • Page 301 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g D1040 ~ D1047 records 8 step numbers from the current ON step to the previous 7 ON steps.
  • Page 302 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Search a Data Stack Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F SER, SERP: 9 steps DSER, DSERP: 17 steps PULSE 16-bit...
  • Page 303 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 304 3 . I n s t r u c t i o n S e t 4. M10~ M13 = ON when the current value of C10 falls between lower and upper bounds. Lower-bound value Upper- bound value Current value of C10 Output D100= 40 D101 = 100...
  • Page 305 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g API Mnemonic Operands Function...
  • Page 306 3 . I n s t r u c t i o n S e t 5. When X0 turns from ON →OFF, C10 and C11 will all be reset to 0 and M10~M14 = OFF. When X0 turns ON again, this instruction will be executed again from the beginning. M1013 K100 INCD...
  • Page 307 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 308 3 . I n s t r u c t i o n S e t Program Example 2: 1. Use TMR instruction to write in 10 groups of set time. 2. Write the set values into D100 ~ D109 in advance 3.
  • Page 309 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 310 3 . I n s t r u c t i o n S e t 6. Apply a NC contact Y3 after the drive contact X20, and Y1, Y2 will form a flashing circuit output. When X20 turns OFF, Y0, Y1 and Y3 = OFF and the content of T10 will be reset. STMR 5 sec 5 sec 3 - 1 8 9...
  • Page 311 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 312 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Ramp variable RAMP Value Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F RAMP: 9 steps DRAMP: 17 steps PULSE 16-bit...
  • Page 313 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g If X20 = ON, n scans n scans...
  • Page 314 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Data Transform and Move Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DTM: 9 steps PULSE 16-bit 32-bit...
  • Page 315 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Proportional value calculation function of multi-point areas (16-bit values) Available for SEV1.0, ES2/EX2 V2.4, SA2/SX2 V2.0, SS2 V2.2 Proportional value calculation function of multi-point areas (32-bit values)
  • Page 316 3 . I n s t r u c t i o n S e t Explanations on parameter settings of m operand: K0: With n = 4, transform 8-bit data into 16-bit data (Hi-byte, Lo-byte) in the following rule: Hi-byte Lo-byte Hi-byte Lo-byte ...
  • Page 317 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g K4: With n = 3, transform 8-bit HEX data into ASCII data (higher 4 bits, lower 4 bits) in the following rule: Hi-byte Lo-byte...
  • Page 318 3 . I n s t r u c t i o n S e t K5: With n = 3, transform 8-bit HEX data into ASCII data (lower 4 bits, higher 4 bits) in the following rule: Hi-byte Lo-byte Hi-byte Lo-byte L L...
  • Page 319 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g K8: Transform 8-bit GPS data into 32-bit floating point data in the following rule: Hi-byte Lo-byte Hi-byte Lo-byte...
  • Page 320 3 . I n s t r u c t i o n S e t 2. Assume the data of source device is set up as below: Total Pulses Total Time Ramp-up Time Ramp-down Time D0, D1 K10000 K200 3.
  • Page 321 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g S+1, S+2…..
  • Page 322 3 . I n s t r u c t i o n S e t S+4: the local time zone (integer format) S+5: to see if the daylight saving is enabled or not (integer format); 0: disabled S+6, S+7, S+8: the present year, month and date (integer format); you need to enter the last two digits of the year and the first two digits will be filled by PLC.
  • Page 323 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g K16: String combination Explanation: The system searches for the location of ETX (value 0x00) of the destination data string (lower 8...
  • Page 324 3 . I n s t r u c t i o n S e t The capture will be performed by the following rule: Hi-byte Lo-byte Hi-byte Lo-byte ‘a’ ‘a’ ‘b’ ‘b’ Hi-byte Lo-byte Hi-byte Lo-byte ‘a’ ‘a’ ‘c’ ‘c’...
  • Page 325 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g The conversion will be performed in the following rule: Hi-byte Lo-byte Hi-byte Lo-byte...
  • Page 326 3 . I n s t r u c t i o n S e t K30: Swap 16-bit data Swap the Bit data stored in S+0~S+(N-1) to D+0~D+(N-1). The movement of BIT SWAP: BIT15BIT0, BIT14BIT1, BIT13BIT2 and so on. Example: DTM D0 D10 K30 K8 D0 = 0x0001 D10 = 0x8000...
  • Page 327 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Adding one to the value stored in D100, after the execution of the DTM instruciton is complete.
  • Page 328 3 . I n s t r u c t i o n S e t Execute the instruciton DTM for 5 times to have the results: D0=K16 and values in D101~105 are K0. K33: Read the last written register to the D device (target value) (last in first out). Diminish the index value (S+0) by 1 and then read and store the data stored from S+[S+0] to the D device and put K0 to the source value S+[S+0].
  • Page 329 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Example: 1.
  • Page 330 3 . I n s t r u c t i o n S e t Note1: when the target index value (D+1) is less than 0, change D+1 to 0 and the actions of data copy and accumulation begin. When the target index value (D+1) is bigger than n-1, change D+1 to n;...
  • Page 331 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Note 1: When the value in S+1 is less than 1, it means there is no data to be read/moved and no action will be taken.
  • Page 332 3 . I n s t r u c t i o n S e t M100 M101 M102 M103 M104 M105 M106 M107 K36: Read the last written register to the D device (target value) (last in first out). Diminish the index value (S+0) by 1 and then read and store the data stored from S+[S+0] to the D device and put K0 to the source value S+[S+0].
  • Page 333 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 6.
  • Page 334 3 . I n s t r u c t i o n S e t Use the instruction to read the PLC product serial number. (suggested to use single trigger to activate the instruction) The followings can be read. 3 - 2 1 3...
  • Page 335 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 336 3 . I n s t r u c t i o n S e t Example table of data sort Columns of data: m Data Column Column Students English Math. Physics Chemistry (D0)1 (D5)90 (D10)75 (D15)66 (D20)79 (D1)2 (D6)55 (D11)65 (D16)54 (D21)63 (D2)3 (D7)80 (D12)98 (D17)89 (D22)90 (D3)4...
  • Page 337 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 1: (Sorting one-dimensional data) If X0 is On, the data specified will be sorted.
  • Page 338 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers Setting up to compare the ES2/EX2 SS2 SE SA2/ XCMP inputs of multiple work stations Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F XCMP: 11 steps PULSE...
  • Page 339 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g and S +6 (High word) are the result of rising-edge triggered number (32-bit).
  • Page 340 3 . I n s t r u c t i o n S e t Function Work station Work station Work station ‧‧‧ D+(n-1) Value of the head index ‧‧‧ (16-bit) D+(n+1) D+(2xn-1) Value tail index ‧‧‧ (16-bit) Compared counter result 1 D+2xn D+2xn+2 D+2xn+2(n-1)
  • Page 341 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g .
  • Page 342 3 . I n s t r u c t i o n S e t 18. The following models and firmware versions that support the XCMP and YOUT instructions. ES2/ 12SA2/ Model ES2-C ES2-E 12SE 26SE 28SA2 Firmware V3.60 V3.60 V3.00 V2.02...
  • Page 343 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 344 3 . I n s t r u c t i o n S e t The odd numbered head index values (for example 1, 3, 5,…) are the compared counter results for the object when entering. The even numbered head index values (for example 2, 4, 6,…) are the compared counter result of the object when leaving.
  • Page 345 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Device D D2003 D2004...
  • Page 346 3 . I n s t r u c t i o n S e t Compared counter result 2 of the object when entering K6600 K7620 K8630 (32-bit) Device D number D2024 D2026 D2028 Compared counter result 2 of the object when leaving K7050 K7980 K9020...
  • Page 347 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g The following table shows the state of the output point Y when the high-speed counter C251 reaching 6800.
  • Page 348 3 . I n s t r u c t i o n S e t The following table shows the state of the output point Y when the high-speed counter C251 reaching 8000. Output point Y number Output state Device D number D2000 D2001...
  • Page 349 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 3.6.8 External I/O Display Mnemonic Applicable to...
  • Page 350 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Ten key input Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F TKY: 7 steps DTKY: 13 steps PULSE 16-bit...
  • Page 351 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g number key BCD value 1-digit BCD code overflow...
  • Page 352 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Hexadecimal key input Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F HKY: 9 steps DHKY: 17 steps PULSE 16-bit...
  • Page 353 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 2.
  • Page 354 3 . I n s t r u c t i o n S e t External wiring: +24V PLC(Transistor output) Points to note: 1. When HKY instruction is executed, 8 scan cycles (matrix scan) are required for reading the input value successfully.
  • Page 355 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 356 3 . I n s t r u c t i o n S e t 3. Please use transistor output for Y20 ~ Y23. Every pin 1, 2, 4, 8 shall be connected to a diode (0.1A/50V) in series before connecting to the input terminals on PLC. Wiring diagram of DIP switch: DIP switches for BCD wiring...
  • Page 357 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 358 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 SEGL 7-segment with Latch Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F SEGL: 7 steps PULSE 16-bit 32-bit...
  • Page 359 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 2.
  • Page 360 3 . I n s t r u c t i o n S e t 5. Positive logic (negative polarity) output of BCD code BCD value Y output (BCD code) Signal output 6. Negative logic (Positive polarity) output of BCD code BCD value Y output (BCD code) Signal output...
  • Page 361 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 362 3 . I n s t r u c t i o n S e t ARWS Add / up Digit indication Move Move to right to left Minus / down 7-segment display for the 4-digit set value The 4 switches are used for moving the digits and modifying set values.
  • Page 363 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 364 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Print (ASCII Code Output) Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F PR: 5 steps PULSE 16-bit 32-bit...
  • Page 365 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 2: 1.
  • Page 366 3 . I n s t r u c t i o n S e t 3.6.9 Serial I/O Mnemonic Applicable to STEPS PULSE Function 16 bits 32 bits SS2 SA2 SX2 SE 16-bit 32-bit Read CR data from special FROM DFROM ...
  • Page 367 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 368 3 . I n s t r u c t i o n S e t Built-in network communication port 0~255 1~(256-m2) NOT recommended (for 26SE only) =108 indicates the parameter of the PLC CPU built-in network communication port. Refer to Appendix B.2 for more information on CR.
  • Page 369 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 370 3 . I n s t r u c t i o n S e t 3. FROM/TO instruction reads/writes 1 CR at a time. DFROM/DTO instruction reads/writes 2 CRs at a time. Upper 16-bit Lower 16-bit CR #10 CR #9 Specified CR number 4.
  • Page 371 8. If a Delta VFD series AC motor drive is used, the PLC provides the convenience instructions API 102 FWD, API 103 REV, API 104 STOP, API 105 RDST, and API 106 RSTEF. If a Delta ASD series servo drive is used, the PLC provides the convenience instruction API 206 ASDRW.
  • Page 372 3 . I n s t r u c t i o n S e t 9. Please refer to the points to note below for more information about the flags and the special data registers which are related to RS-485 communication instructions. 10.
  • Page 373 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 2: COM2 RS-485 Switching between 8-bit mode (M1161 = ON) and 16-bit mode (M1161 = OFF) 8-bit mode:...
  • Page 374 3 . I n s t r u c t i o n S e t M1001 M1161 D100 D120 Sending data: (PLC -> external equipment) D100L D100H D101L D101H ETX1 ETX2 Source data register, starting from the lower 8 bits of D100 length = 4 Receiving data: (External equipment ->...
  • Page 375 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 3: COM2 RS-485 Connect PLC to VFD-B series AC motor drives (AC motor drive in ASCII Mode;...
  • Page 376 D136 low ‘B’ 42 H LRC CHK 0 D136 high D137 low 3. The status of Delta VFD series inverters can also be accessed by handy instruction API 105 RDST instruction through COM2/COM3 on PLC. 3 - 2 5 5...
  • Page 377 CRC CHK Low D127 low 07 H CRC CHK High 3. The forward running function of Delta’s VFD series inverter can also be set by handy instruction API 102 FWD instruction through COM2/COM3 on PLC. 3 - 2 5 6...
  • Page 378 3 . I n s t r u c t i o n S e t Program Example 5: COM1 RS-232 1. Only 8-bit mode is supported. Communication format and speed are specified by lower 8 bits of D1036. 2. STX/ETX setting function (M1126/M1130/D1124~D1126) is not supported. 3.
  • Page 379 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Receving data: (External equipment→PLC) D120L D121L...
  • Page 380 3 . I n s t r u c t i o n S e t Sending data: (PLC→External equipment) D100L D101L D102L D103L Source data register, starting from lower 8 bits of D100 Length = 4 Receving data: (External equipment→PLC) D120L D121L D122L...
  • Page 381 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Explanations on the data devices D and flags M.
  • Page 382 3 . I n s t r u c t i o n S e t Settings for executing RS instruction: When the sending data length is 0, that indicates it is in the receiving mode. If the sending data length is not 0, it will send that specific length of data first and once the sending is complete, it will be in the receiving mode.
  • Page 383 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Points to note: 1.
  • Page 384 3 . I n s t r u c t i o n S e t Special register Function COM1 (RS-232) communication protocol. Refer to the following table in D1036 point 4 for protocol setting. The specific end word to be detected for RS instruction to execute an D1167 interruption request (I140) on COM1 (RS-232).
  • Page 385 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Flag Function Action...
  • Page 386 REV / STOP / RDST / RSTEF can also be applied. 8/16-bit mode. ON: 8-bit mode. OFF: 16-bit mode M1161 Supported communication instructions: RS Enable the communication instruction for Delta VFD series inverter. User sets ON: VFD-A (Default), OFF: other models of VFD M1177...
  • Page 387 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Special Function register...
  • Page 388 3 . I n s t r u c t i o n S e t Special Function register the data will be stored in D1256~D1295. Users can check the sent data in these registers. Supported communication instruction: MODRW For COM2 RS-485 MODRW instruction. D1296~D1311 store the converted hex data from D1070 ~ D1085 (ASCII).
  • Page 389 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Special register Function Delay time of data response when PLC is SLAVE in COM2, COM3...
  • Page 390 3 . I n s t r u c t i o n S e t COM1 COM2 COM3 Function Description D1295 D1089 Store the sent data of MODRD / MODWR / FWD / REV / STOP / RDST / RSTEF instruction D1099 M1313 M1124...
  • Page 391 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g COM1 COM2 COM3...
  • Page 392 3 . I n s t r u c t i o n S e t 6. When RS instruction is applied for communication between a PLC and peripheral devices, usually the STX (Start of the text) and the ETX (End of the text) have to be defined. User can use D1124~D1126 to set the STX and the ETX by means of COM2, or use the STX and the ETX defined by the PLC.
  • Page 393 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 9.
  • Page 394 3 . I n s t r u c t i o n S e t Function code: ‘0’ ‘1’: Reading several bit devices ‘0’ ‘2’: Reading several bit devices (read-only devices) ‘0’ ‘3’: Reading several word devices ‘0’ ‘4’: Reading several word devices (read-only devices) ‘0’...
  • Page 395 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Inquiry message: Response message: ‘7’...
  • Page 396 3 . I n s t r u c t i o n S e t Function code: 03 H: read contents from multiple registers 06 H: write one word into single register 10 H: write contents to multiple registers Data characters: The data sent by the user CRC checksum: Starting from Address and ending at Data Content.
  • Page 397 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Example program of RS-485 communication: M1002 Setting communication protocol 9600, 7, E, 1...
  • Page 398 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 PRUN Parallel Run Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F PRUN, PRUNP: 5 steps DPRUN, DPRUNP: 9 steps PULSE...
  • Page 399 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 400 3 . I n s t r u c t i o n S e t When n = 4, the bit structure will be as: D10=0123 H low byte high byte high byte low byte When n is 6, the bit structure will be as: D10 = H 0123 D11 = H 4567 0 0 1...
  • Page 401 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g D27 high byte D20 low byte “B”...
  • Page 402 3 . I n s t r u c t i o n S e t When n is 2, the bit structure will be as: D10=0123 H ASCII code of "2" in D20 is 32H ASCII code of "3" in D21 is 33H When n is 4, the bit structure will be as: D10 = H 0123 Converted to...
  • Page 403 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g “B”...
  • Page 404 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Convert ASCII to HEX Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F HEX, HEXP: 7 steps PULSE 16-bit 32-bit...
  • Page 405 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g ASCII code ASCII code conversion...
  • Page 406 3 . I n s t r u c t i o n S e t Program Example 2: M1161 = ON: 8-bit conversion. M1000 M1161 Assume: ASCII code ASCII code conversion conversion H 43 “C” H 39 “9” H 44 “D”...
  • Page 407 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g **CD H EF89 H AB45 H...
  • Page 408 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Check Code Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F CCD, CCDP: 7 steps PULSE 16-bit 32-bit...
  • Page 409 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 2: 1.
  • Page 410 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/ SS2 SA2 SX2 SE EX2/ VRRD Volume Read Type Bit Devices Word devices Program Steps Y M S H KnX KnY KnM KnS T E F VRRD, VRRDP: 5 steps PULSE 16-bit...
  • Page 411 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Controllers Mnemonic Operands...
  • Page 412 3 . I n s t r u c t i o n S e t VRSC DECO ON when VR graduation is 0 ON when VR graduation is 1 ON when VR graduation is 10 3 - 2 9 1...
  • Page 413 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 414 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 PID control Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F PID : 9 steps DPID: 17 steps PULSE 16-bit...
  • Page 415 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Points to note: There is no limitation on the times of using this instruction.
  • Page 416 It is suggested that the control mode should be used in a control environment which change more slowly. DVP-ES2/DVP-EX2/DVP-SS2/DVP-SA2/DVP-SX2 series PLCs whose version is 2.00 (or above), and Control mode DVP-SE series PLCs whose version is 1.00 (or above) are supported.
  • Page 417 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Device Function Setup Range...
  • Page 418 3 . I n s t r u c t i o n S e t Device No. Function Set-point range Explanation The proportion for Proportional gain (K 0~30,000 (%) magnifying/minifying the error between SV and PV. The proportion for magnifying/minifying the integral Integration gain (K 0~30,000 (%)
  • Page 419 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Device No.
  • Page 420 3 . I n s t r u c t i o n S e t operation is within dotted area G(s)  The equation above illustrates that this operation is different from a general PID operation on the application of the derivative value. To avoid the fault that the transient derivative value could be too big when a general PID instruction is first executed, our PID instruction monitors the derivative value of the PV.
  • Page 421 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g ...
  • Page 422 3 . I n s t r u c t i o n S e t disappear after the power is cut off. There is no guarantee that the adjusted parameters are suitable for every control requirement. Therefore, users can modify the adjusted parameters according to specific needs, but it is suggested to modify only K or K PID instruction has to be controlled with many parameters;...
  • Page 423 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Step1: Set K and K...
  • Page 424 3 . I n s t r u c t i o n S e t Example 5: Transition between the manual mode (K7) and the automatic mode (K5) If the setting of the PID parameters is complete, and the control mode is the manual mode (K7), the control curve will be as shown below.
  • Page 425 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Application 1: PID instruction in pressure control system.
  • Page 426 3 . I n s t r u c t i o n S e t Example program of SV ramp up function: M1002 > K-50 < > < D1116 Application 2: Speed control system and pressure control system work individually (use diagram of Example 2) Control purpose: After the speed control operates in open loop for a period of time, adding pressure control system (PID instruction) to perform a close loop control.
  • Page 427 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g M2=ON speed D1116...
  • Page 428 3 . I n s t r u c t i o n S e t example, the control environment is a heating oven. See the example program below. M1002 K4000 K400 D200 K800 M1013 FROM D204 D200 GPWM Results of initial auto-tuning Auto tuning area Auto tuning area PID control area...
  • Page 429 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Results of using adjusted parameters generated by initial auto-tuning function.
  • Page 430 3 . I n s t r u c t i o n S e t 3.6.10 Basic Instructions Mnemonic Applicable to STEPS PULSE Function 16 bits 32 bits SX2 16-bit 32-bit Rising-edge output     Rising–edge detection ...
  • Page 431 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 432 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Rising–edge detection operation Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F LDP: 3 steps PULSE 16-bit 32-bit...
  • Page 433 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 434 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 ANDP Rising-edge series connection Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F ANDP: 3 steps PULSE 16-bit 32-bit...
  • Page 435 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 436 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Rising-edge parallel connection Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F ORP: 3 steps PULSE 16-bit 32-bit...
  • Page 437 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 438 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Timer Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F TMR: 5 steps PULSE 16-bit 32-bit...
  • Page 439 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 440 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 DCNT 32-bit counter Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DCNT: 9 steps PULSE 16-bit 32-bit...
  • Page 441 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 442 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Falling-edge output Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F PLF: 3 steps PULSE 16-bit 32-bit...
  • Page 443 : Setting value (K0~K32,767, D0~D9,999)。 Explanations: 1. DVP-ES2/EX2 series PLCs whose version is 3.20/DVP-SS2 series PLCs whose version is 3.00/DVP-SA2 series PLCs whose version is 2.60/DVP-SE series PLCs whose version is 1.20/DVP-SX2 series PLCs whose version is v2.40 (or above) are supported.
  • Page 444 3 . I n s t r u c t i o n S e t 3.6.11 Communication Instructions Mnemonic Applicable to STEPS PULSE Function 16 bits 32 bits SX2 16-bit 32-bit 100 MODRD Read Modbus data    ...
  • Page 445 1. MODRD instruction supports COM2 (RS-485). 2. MODRD is an instruction exclusively for peripheral communication equipment in MODBUS ASCII/RTU mode. The built-in RS-485 communication ports in Delta VFD drives (except for VFD-A series) are all compatible with MODBUS communication format. MODRD can be used for communication (read data) of Delta drives.
  • Page 446 3 . I n s t r u c t i o n S e t Program Example 1: Communication between PLC and VFD-B series AC motor drives (ASCII Mode, M1143 = OFF) M1002 D1120 Set communication protocol as 9600, 8, E, 1 Retain communication protocol M1120 Set receiving time-out as 100ms...
  • Page 447 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Registers for received data (responding messages) Register Data...
  • Page 448 3 . I n s t r u c t i o n S e t Program Example 2: Communication between PLC and VFD-B series AC motor drive (RTU Mode, M1143= ON) M1002 Set communication protocol as 9600, 8, E, 1 D1120 Retain communication protocol M1120...
  • Page 449 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 3: 1.
  • Page 450 1. MODWR instruction supports COM2 (RS-485). 2. MODWR is an instruction exclusively for peripheral communication equipment in MODBUS ASCII/RTU mode. The built-in RS-485 communication ports in Delta VFD drives (except for VFD-A series) are all compatible with MODBUS communication format. MODRD can be used for communication (write data) of Delta drives.
  • Page 451 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 1: Communication between PLC and VFD-B series AC motor drives (ASCII Mode, M1143 = OFF) M1002...
  • Page 452 3 . I n s t r u c t i o n S e t Registers for received data (responding messages) Register Data Descriptions D1070 low ‘0’ 30 H ADR 1 D1070 high ‘1’ 31 H ADR 0 D1071 low ‘0’...
  • Page 453 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Registers for data to be sent (sending messages) Register Data...
  • Page 454 3 . I n s t r u c t i o n S e t M1002 Set communication protocol as 9600, 8, E, 1 D1120 Retain communication protocol M1120 Set communication timeout as 100ms K100 D1129 Sending request M1122 M1129 Retry when communication time-out occurs M1140...
  • Page 455 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 456 6. For detailed information of associated flags and special registers, please refer to RS instruction. 7. M1177 = OFF, only Delta VFD-A is supported and the definition of each operand is: a) S = Address of VFD-A.
  • Page 457 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example: COM2 (RS-485) 1.
  • Page 458 ‘0’ 30 H D1080 low ‘0’ 30 H 2. M1177 = ON, other Delta VFDs are supoported a) S = Address of VFD-A. Range of S : K0 ~ K255, when S is specified as K0, PLC will broadcast to all connected VFDs.
  • Page 459 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example: COM2 (RS-485) Communication between PLC and VFD-B series inverter (ASCII Mode, M1143 = OFF), Retry when communication time-out occurs.
  • Page 460 3 . I n s t r u c t i o n S e t Received data (responding messages) Data Descriptions ‘0’ 30 H ADR 1 ‘1’ 31 H ADR 0 ‘1’ 31 H CMD 1 ‘0’ 30 H CMD 0 ‘2’...
  • Page 461 3. M1177 has to be set up in advance for selecting the target model of VFD. When M1177 = OFF (Default), RDST instruction supports Delta’s VFD-A inverter. When M1177 = ON, the instruction supports other models of VFD inverters, e.g. VFD-B, VFD.
  • Page 462 3 . I n s t r u c t i o n S e t Feedback Explanation Data storage Nn = “00” Frequency command = ABC.D (Hz) Nn = “01” Output frequency = ABC.D (Hz) Nn = “02” Output current = ABC.D (A) PLC will automatically convert the ASCII characters ”ABCD”...
  • Page 463 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 8. M1177 = ON, other Delta VFDs are supoported...
  • Page 464 3 . I n s t r u c t i o n S e t Received data (responding messages) Data Descriptions ‘0’ 30 H ADR 1 ‘1’ 31 H ADR 0 ‘0’ 30 H CMD 1 ‘3’ 33 H CMD 0 ‘0’...
  • Page 465 6. For detailed information of associated flags and special registers, please refer to RS instruction. 7. M1177 = OFF, only Delta VFD-A is supported and the definition of each operand is: a) S = Address of VFD-A. Range of S : K0 ~ K31 b) n = Communication mode.
  • Page 466 3 . I n s t r u c t i o n S e t Program Example: COM2 (RS-485) Communication between PLC and VFD-B series AC motor drives (ASCII Mode, M1143 = OFF). Retry when communication time-out occurs. M1002 S e t u p communication protocol as D1120 9600, 7, E, 1...
  • Page 467 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Received data (responding messages) Data Descriptions...
  • Page 468 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 LRC checksum Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F LRC, LRCP: 7 steps PULSE 16-bit 32-bit...
  • Page 469 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example: Connect PLC to VFD series AC motor drive (ASCII mode, M1143 = OFF), (8-bit mode, M1161 = ON), Write the data to be sent into registers starting from D100 in advance for reading 6 data from...
  • Page 470 3 . I n s t r u c t i o n S e t The error checksum LRC CHK (0, 1) can be calculated by LRC instruction (8-bit mode, M1161 = ON). M1000 D101 D113 LRC checksum: 01 H + 03 H + 07 H + 08 H + 00 H + 06 H = 19 H. Operate 2’s complement on 19H and the result is E7H.
  • Page 471 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 472 3 . I n s t r u c t i o n S e t Program Example: Connect PLC to VFD series AC motor drive (RTU mode, M1143 = ON), (8-bit mode, M1161 = ON), Write the data to be sent (H1770) into address H0706 on VFD. M1002 Set communication protocol as D1120...
  • Page 473 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 474 3 . I n s t r u c t i o n S e t 4. When setting the function code to H’05, 0 in the operand D means to Reset bit and for other values in the operand D means to Set bit. 5.
  • Page 475 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 1: (The instruction is sent and received through the Ethernet port built in DVP-SE.) The IP address stored in D100 and D101 is 192.168.0.2, the communication port number stored in...
  • Page 476 Explanations: MODRW supports COM1 (RS-232), COM2 (RS-485), COM3 (RS-485). (COM3 is only applicable to DVP-ES2/EX2/SA2/SE, and is not applicable to DVP-ES2-C.) 2. S : Address of the device to be accessed. Range: K0~K254. The address specified by the function codes K1, K2, K3, K4, and K23 can not be K0.
  • Page 477 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 4.
  • Page 478 3 . I n s t r u c t i o n S e t Communication Communication Function code mode port H01/H02 H03/H04 COM1(RS-232) K 64 K 16 K 64 K 16 K 16 COM2(RS-485) K 64 K 16 K 64 K 16 K 16...
  • Page 479 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 1: COM2(RS-485), Function Code H02 (H01 is used the same as H02.) Function code K2 (H02): read multiple bit devices, up to 64 bits can be read.
  • Page 480 3 . I n s t r u c t i o n S e t Register Data Descriptions D1260 High ‘0’ 30 H D1261 Low ‘1’ 31 H D1261 High ‘0’ 30 H D1262 Low ‘E’ 45 H LRC CHK 1 Checksum: LRC CHK (0,1) D1262 High ‘8’...
  • Page 481 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Registers for received data (responding messages) Register Data...
  • Page 482 3 . I n s t r u c t i o n S e t M1002 D1109 Set communication protocol as 9600, 8, E,1 M1136 R e ta in c o m m u n ic a tion s e ttin g K100 D1252 S e t re c e iving tim e ou t a s 100ms...
  • Page 483 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g ...
  • Page 484 3 . I n s t r u c t i o n S e t Program Example 3: COM2 (RS-485), Function Code H03 (The function code H04 is the same as the function code H03.) Function code K3 (H03): read multiple Word devices. Up to 16 words can be read. For COM2 ASCII mode, only 8 words can be read.
  • Page 485 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Register Data Descriptions...
  • Page 486 3 . I n s t r u c t i o n S e t D13 low byte ‘0’ 30 H 0000 H PLC COM2 automatically D13 high byte ‘0’ 30 H Content of converts ASCII codes to hex D14 low byte ‘0’...
  • Page 487 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program example 4: COM1(RS-232) / COM3(RS-485), Function Code H03 (The function code H04 is the same as the function code H03.) Function code K3 (H03): read multiple Word devices, up to 16 words can be read.
  • Page 488 3 . I n s t r u c t i o n S e t ASCII mode (COM3: M1320 = OFF, COM1: M1139 = OFF): When X0 = ON, MODRW instruction executes the function specified by Function Code 03 PLC ...
  • Page 489 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program example 5: COM2(RS-485), Function Code H05 1.
  • Page 490 3 . I n s t r u c t i o n S e t Register Data Descriptions D1260 high byte ‘F’ 46 H D1261 low byte ‘0’ Low byte to be force ON/OFF D1261 high byte ‘0’ 30 H D1262 low byte ‘6’...
  • Page 491 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program example 6: COM1(RS-232) / COM3(RS-485), Function Code H05 Function Code K5 (H05): Force ON/OFF bit device.
  • Page 492 3 . I n s t r u c t i o n S e t RTU mode (COM3: M1320 = ON, COM1: M1139 = ON): When X0 = ON, MODRW instruction executes the function specified by Function Code 05 PLC1...
  • Page 493 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Register Data Descriptions...
  • Page 494 3 . I n s t r u c t i o n S e t Registers for received data (responding messages) Register Data Descriptions D1070 Low byte 01 H Address D1071 Low byte 06 H Function D1072 Low byte 20 H Data Address D1073 Low byte...
  • Page 495 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g ASCII mode (COM3: M1320 = OFF, COM1: M1139 = OFF): When X0 = ON, MODRW instruction executes the function specified by Function Code 06 PLC ...
  • Page 496 3 . I n s t r u c t i o n S e t ASCII mode (M1143 = OFF) When X0 = ON, MODRW instruction executes the function specified by Function Code H0F. PLC1  PLC2, PLC sends: “ 01 0F 0500 0010 02 3412 93 ” PLC2 ...
  • Page 497 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g RTU mode (M1143 = ON) When X0 = ON, MODRW instruction executes the function specified by Function Code H0F PLC1 ...
  • Page 498 3 . I n s t r u c t i o n S e t Program example 10: COM1 (RS-232) / COM3 (RS-485), Function Code H0F Function code K15 (H0F): write in multiple bit devices. Up to 64 bits can be written PLC1 connects to PLC2: (M1143 = OFF, ASCII mode), (M1143 = ON, RTU mode) PLC COM1/COM3 will not process the received data.
  • Page 499 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g ASCII mode (COM3: M1320 = OFF, COM1: M1139 = OFF): When X0 = ON, MODRW executes the function specified by Function Code H0F PLC1 ...
  • Page 500 3 . I n s t r u c t i o n S e t ASCII mode (M1143 = OFF) When X0 = ON, MODRW instruction executes the function specified by Function Code H10 PLC VFD-B, PLC transmits: “01 10 2000 0002 04 1770 0012 30” VFDPLC, PLC receives: “01 10 2000 0002 CD”...
  • Page 501 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g RTU mode (M1143 = ON) When X0 = ON, MODRW instruction executes the function specified by Function Code H10 PLC VFD-B,PLC transmits: “01 10 2000 0002 04 1770 0012 EE 0C”...
  • Page 502 3 . I n s t r u c t i o n S e t M1002 D1109 Set communication protocol as 9600,8,E,1 M1136 R e ta in c o m m u n ic a tio n s e ttin g Set communication t imeout as 100ms K100 D1252...
  • Page 503 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program example 13: COM2 (RS-485)), Function Code H17 Function code K23 (H17): Data is read from multiple word devices and data is written into multiple word devices.
  • Page 504 3 . I n s t r u c t i o n S e t Register Data Description D3000 Low byte ‘0’ 30 H ADR 1 D3000 High byte ‘1’ 31 H ADR 0 D3001 Low byte ‘1’ 31 H CMD 1 D3001 High byte ‘7’...
  • Page 505 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program example 14: COM1 (RS-232)/ COM3 (RS-485), Function Code H17 Function code K23 (H17): Data is read from multiple word devices and data is written into multiple word devices.
  • Page 506 3 . I n s t r u c t i o n S e t ASCII Mode (COM3: M1320=OFF; COM1: M1139=OFF): • When X0=ON, MODRW executes the function specified by the function ode H17. PLC-A PLC-B, PLC-A sends: “01 17 1100 0002 1000 0002 04 1770 0012 06” PLC-BPLC-A, PLC-A receives: “01 17 04 0100 1766 66”...
  • Page 507 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g API Mnemonic Operands Function...
  • Page 508 3 . I n s t r u c t i o n S e t For A2-type only Code Function Parameter Com. Addr. Read/Write data (Settings) manual. S: Range: K19(H13) JOG Operation P4-05 040AH 1~5000, 4999, 4998, 0 S: K1 = ON, Others = OFF Auxiliary Function K20(H14) P2-30...
  • Page 509 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program example 2: COM3(RS-485) 1.
  • Page 510 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers DMV communication DMVRW command Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DMVRW: 9 steps PULSE 16-bit 32-bit...
  • Page 511 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Number Description Remark...
  • Page 512 3 . I n s t r u c t i o n S e t functions as a source device at first, and then functions as a destination device when a reading command is executed. Note : If a communication combination command is used, S +1 and S +2 will be set by the PLC according to the communication combination command.
  • Page 513 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g The program in the PLC and the comments are shown below.
  • Page 514 3 . I n s t r u c t i o n S e t 2-6. If the DMV does not reply after the timeout period 100ms, the PLC will set D +2 (Y2) to On (a communication timeout occurs). 2-7.
  • Page 515 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 516 3 . I n s t r u c t i o n S e t Value Description of receiving mode Remark in S2 S2+1 After the sending is Client Mode complete, no receiving is Unused 0 cannot be set in the sending allowed and a completion data length S flag will be set to ON.
  • Page 517 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Server mode Sending specific The value in S...
  • Page 518 3 . I n s t r u c t i o n S e t The operand S and S specify source data registers and data length. For example:S specifies D150 and the value in S is 10. The instruction ETHRS will send 10 bytes of data, starting from the low byte in D150, D151, D152 and so on.
  • Page 519 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 12.
  • Page 520 3 . I n s t r u c t i o n S e t Description Error code H620D UDP Socket the length of sent data exceeds the range H620E UDP Socket the device where data are sent exceeds the range H620F UDP Socket illegal address for receiving data H6210...
  • Page 521 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 14.
  • Page 522 3 . I n s t r u c t i o n S e t M1196=OFF: Use ETHRS instruction to control the connection; when it is executed, the connection is established. Master/Slave mode; communication is working fine.  M1197 = ON, this indicates the communication is active. Make sure the TCP connection ...
  • Page 523 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example: (The command is sent and received through the Ethernet port built in DVP-SE.) This example uses DVP-SE series as the client, M0 to activate and UDP connection mode to send and receive data.
  • Page 524 3 . I n s t r u c t i o n S e t Program Example 2: (The command is sent and received through the Ethernet port built in DVP-SE.) This example uses DVP-SE series as the client, M2 to activate and TCP connection mode to send and receive data.
  • Page 525 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 2: (The command is sent and received through the Ethernet port built in DVP-SE and mode 3 and 4 are used in S2.) M1196...
  • Page 526 3 . I n s t r u c t i o n S e t 3.6.12 Floating Point Operation Mnemonics Applicable to STEPS PULSE Function 16 bits 32 bits SX2 16-bit 32-bit DECMP Floating point compare    ...
  • Page 527 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 528 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers Floating point zone ES2/EX2/ SS2 SA2 D EZCP P compare Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DEZCP, DEZCPP: 17 steps PULSE 16-bit...
  • Page 529 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 530 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Degree  Radian Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DRAD, DRADP: 9 steps PULSE 16-bit 32-bit...
  • Page 531 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 532 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 D EBCD P Float to scientific conversion Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DEBCD, DEBCDP: 9 steps PULSE 16-bit...
  • Page 533 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 534 3 . I n s t r u c t i o n S e t Program Example 2: 1. Use FLT instruction (API 49) to convert BIN integer into binary floating point value before performing floating point operation. The value to be converted must be BIN integer and use DEBIN instruction to convert the decimal floating point value into a binary one.
  • Page 535 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 536 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 ESUB Floating point subtraction Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DESUB, DESUBP: 13 steps PULSE 16-bit...
  • Page 537 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 538 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 EDIV Floating point division Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DEADD, DEADDP: 13 steps PULSE 16-bit...
  • Page 539 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 540 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Float natural logarithm operation Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DLN, DLNP: 9 steps PULSE 16-bit 32-bit...
  • Page 541 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 542 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 ESQR Floating point square root Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DESQR, DESQRP: 9 steps PULSE 16-bit...
  • Page 543 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 544 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Float to integer Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F INT, INTP: 5 steps DINT, DINTP: 9 steps PULSE 16-bit...
  • Page 545 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 546 3 . I n s t r u c t i o n S e t Program Example 2: M1018 = OFF, radian mode. Select the degree value from inputs X0 and X1 and convert it to RAD value for further sine operation. MOVP (K30 D10)
  • Page 547 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 548 3 . I n s t r u c t i o n S e t Program Example 2: M1018 = ON, degree mode. When X0 = ON, DCOS instruction performs cosine operation on the degree value (0°≦degree<360°) in (D1, D0) and stores the COS value in (D11, D10) in binary floating format..
  • Page 549 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 550 3 . I n s t r u c t i o n S e t Program Example 1: M1018 = OFF, radian mode. When X0 = ON, DTAN instruction performs tangent operation on the radian value in (D1, D0) and stores the TAN value in (D11, D10) in binary floating format. M1002 M1018 DTAN...
  • Page 551 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 552 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 ACOS Arc Cosine Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DACOS, DACOSP: 9 steps PULSE 16-bit...
  • Page 553 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 554 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 ADDR Floating point addition Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DADDR, DADDRP: 13 steps PULSE 16-bit...
  • Page 555 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 556 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers Floating point ES2/EX2/ SS2 SA2 MULR multiplication Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DMULR, DMULRP: 13 steps PULSE 16-bit...
  • Page 557 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 558 3 . I n s t r u c t i o n S e t 3.6.13 Additional Instruction Mnemonic Applicable to STEPS PULSE Function 16 bits 32 bits SS2 SA2 SX2 SE 16-bit 32-bit 143 DELAY Delay   ...
  • Page 559 S: Delay time, unit: 0.1ms (K1~K1000) Please see the explanation below for more information about the unit of a delay. Explanations: (The instruction can be used in DVP-ES2/EX2 series PLCs whose version is 3.00; DVP-SS2 series PLCs whose version is 2.80; DVP-SA2 series PLCs whose version is 2.40;...
  • Page 560 DELAY I001 IRET Program Example: (for DVP-ES2/EX2 series PLCs whose version is 3.20; EC5: V1.00; DVP-SS2 series PLCs whose version is 3.00; DVP-SA2 series PLCs whose version is 2.60; DVP-SX2 series PLCs whose veresion is 2.40; DVP-SE series PLCs whose version is 1.40 (and above)) When interrupt input X0 is triggered from OFF to ON, interrupt subroutine executes DELAY instruction first, therefore the program after DELAY instruction (X1 = ON, Y0 = ON…) will be delayed...
  • Page 561 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Points to note: 1.
  • Page 562 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 GPWM General PWM output Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F GPWM: 7 steps PULSE 16-bit 32-bit...
  • Page 563 4. There is no limit on the times of using FTC instruction, but Do not repeatedly use a designated operand in case an error may occur. 5. The models which are supported are DVP-ES2/EX2 v. 3.22, DVP-SA2/SX2 v. 2.66, and DVP-SE v. 1.60 (and above).
  • Page 564 3 . I n s t r u c t i o n S e t Remarks: 1. Setting of S Device No. Function Range Explanation If T is less than a scan time, PID instruction will be executed for a Sampling time (T 1 ~ 200 scan time.
  • Page 565 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Example 1: control diagram Fuzzy GPWM Program...
  • Page 566 3 . I n s t r u c t i o n S e t Experiment in an oven which can be heated up to 250°C. See below for the records of target and present temperatures. As shown in the diagram below, we can see that after 48 minutes, the ±...
  • Page 567 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Example 3: To speed up the speed to reach the target temperature, we correct the sampling time as 4 seconds (D12 = K40, D30 = K4,000).
  • Page 568 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 SWAP Byte swap Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F SWAP, SWAPP: 3 steps DSWAP, DSWAPP: 5 steps PULSE...
  • Page 569 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 570 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/ SA2 SX2 Writing the data into MEMW the file register Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F 7 steps The 32-bit instruction and DVP-SS2 are not supported.
  • Page 571 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 572 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Transfer Designated Bits Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F MVM, MVMP: 7 steps DMVM,DMVMP: 13 steps PULSE...
  • Page 573 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 574 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers SA2 SX2 GPS data receiving Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F GPS: 5 steps PULSE 16-bit 32-bit...
  • Page 575 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Content Range Format...
  • Page 576 3 . I n s t r u c t i o n S e t When receiving completed, M1314 = ON. When receiving failed, M1315 = ON. The received data will be stored in devices starting with D0. Content Content Hour East / West...
  • Page 577 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 578 3 . I n s t r u c t i o n S e t 3. Operand D occupies 8 consecutive word registers. The function of each device is as below: Content Range Format Note D + 0~1 Zenith 0 ~ 90 Float Horizontal=0...
  • Page 579 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program example: 1.
  • Page 580 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers Sum of multiple ES2/EX2/ SS2 SA2 WSUM devices Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F WSUM, WSUMP: 7 steps DWSUM, DWSUMP: 13 steps PULSE...
  • Page 581 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g (D1,D0) +(D3,D2) +(D5,D4) (D11,D10) (D1,D0)
  • Page 582 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 Proportional SCAL P /EC5 calculation Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F SCAL,SCLAP: 9 steps PULSE 16-bit 32-bit...
  • Page 583 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 1: Assume S = 500, S...
  • Page 584 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 Parameter proportional D SCLP P /EC5 calculation Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F SCLP, SCLPP: 7 steps DSCLP, DSCLPP: 13 steps PULSE...
  • Page 585 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g value) ×...
  • Page 586 3 . I n s t r u c t i o n S e t Destination value = 500 = 30 S =500 Source value Program Example 2: Assume source value S = 500, max. source value D0 = 3000, min. source value D1 = 200, max.
  • Page 587 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 3: Assume the source value S , D100 = F500, max.
  • Page 588 0. For example, if n is K8, bit0~7 have corresponding values, and bit8~15 are 0. 5. The 32-bit instruction supports DVP-ES2/EX2 version 3.0 and above, DVP-SS2 version 2.8 and above, DVP-SA2 version 2.6 and above, DVP-SX2 version 2.4 and above, and DVP-SE.
  • Page 589 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 9.
  • Page 590 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers SS2 SA2 SX2 SE Catch speed and CSFO proportional output Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F CSFO: 7 steps PULSE 16-bit 32-bit...
  • Page 591 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 6.
  • Page 592 3 . I n s t r u c t i o n S e t 3.6.14 Positioning Control Mnemonic Applicable to STEPS PULSE Function 16 bits 32 bits SX2 16-bit 32-bit DABSR Absolute position read     DZRN Zero return ...
  • Page 593 : Absolute position data (32-bit) read from servo (occupies 4 consecutive devices at most) Explanations: (The instruction can be used in DVP-ES2/EX2 series PLCs whose version is 3.00; DVP-SA2 series PLCs whose version is 2.40; DVP-SE series PLCs whose version is 1.20; DVP-SX2 series PLCs whose version is 2.20; DVP-SS2 series PLCs (and below).)
  • Page 594 MR-J2 servo drive is used. Please refer to the points above for more information about setting MITSUBISHI MR-J2 servo drive. If M1177 is On, Delta ASDA-A2 servo drive is used. Please refer to the points below for more information about settiing Delta ASDA-A2 servo drive.
  • Page 595 2.5 seconds for the instruciton to be executed. The time it takes for the instruction to be executed is affected by the scan time. Program Example: (for DVP-ES2/EX2 series PLCs whose version is 3.00; DVP-SA2 series PLCs whose version is 2.40; DVP-SE series PLCs whose version is 1.20;...
  • Page 596 1.40; DVP-SX2 series PLCs whose version is 2.40 (and above)) 1. When X7 = On, the absolute position data read from Delta ASDA-A2 servo will be stored in the registers D0~D3. The state of M1580 and the state of M1581 indicates whether the reading of the absolute position is successful.
  • Page 597 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Points to note: (Used with Mitsubishi MR-J2 Servo drive) Timing diagram of the operation of DABSR instruction: Servo ON...
  • Page 598 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Zero return Type Bit Devices Word Devices Program Steps H KnX KnY KnM KnS T F DZRN: 17 steps PULSE 16-bit 32-bit...
  • Page 599 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Channel CH0(Y0,Y1) CH1(Y2,Y3)
  • Page 600 3 . I n s t r u c t i o n S e t that the pulses are output in the positive direction. When D1312 is a negative value (the minimum value is -30000), it indicates that the pulses are output in the negative direction. For example, if D1312 is k-100, it means that DOG stops immediately after DOG leaves DOG switch and another 100 pulses will be output in the negative direction with JOG frequency.
  • Page 601 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g : Due to the lack of high-speed input for configuring the Z-phase function, the output of axes Y4 and Y6 does not support this function.
  • Page 602 3 . I n s t r u c t i o n S e t that the pulses are output in the positive direction. When D1312 is a negative value (the minimum value is -30000), it indicates that the pulses are output in the negative direction. For example, if D1312 is k-100, it means that DOG stops immediately after DOG leaves DOG switch and another 100 pulses will be output in the negative direction with JOG frequency.
  • Page 603 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g State 3: Current position at left side of zero point, pulse output in reverse, limit switch enabled.
  • Page 604 3 . I n s t r u c t i o n S e t State 5: Current position at right side of zero point, D1312=-2, M1308=Off, M1346=On. M1029 M1029 Freq. Freq. Target speed Target speed Jog speed Jog speed Time Time Z phase in...
  • Page 605 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 2: When M0 = ON, Y0 pulse output executes zero return with a frequency of 20kHz.
  • Page 606 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers Adjustable Speed Pulse ES2/EX2/ SS2 SA2 D PLSV Output Type Bit Devices Word Devices Program Steps H KnX KnY KnM KnS T F PLSV: 7 steps DPLSV: 13 steps PULSE...
  • Page 607 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 5.
  • Page 608 3 . I n s t r u c t i o n S e t API Mnemonic Operands Function Controllers Relative Position ES2/EX2/ SS2 SA2 DRVI Control Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DDRVI: 17 steps PULSE 16-bit 32-bit...
  • Page 609 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 9.
  • Page 610 3 . I n s t r u c t i o n S e t Explanations (Applicable to EC5 Series): 1. The instruction only supports the pulse output type: Pulse + Direction. 2. S is the number of pulses (relative positioning). Available range: -2,147,483,648 ~ +2,147,483,647.
  • Page 611 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g +3,000 Ramp up time Ramp down time...
  • Page 612 3 . I n s t r u c t i o n S e t M1305: Reverse Y1 pulse output direction in high speed pulse output instructions M1306: Reverse Y3 pulse output direction in high speed pulse output instructions M1347: Auto-reset Y0 when high speed pulse output completed M1524:...
  • Page 613 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 614 3 . I n s t r u c t i o n S e t In reverse direction pulse output, value in (D1031, D1330) and (D1336, D1337) decreases. D1343 (D1353) is the ramp up/down time (between start frequency and pulse output frequency) setting of CH0 (CH1).
  • Page 615 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example: When M10 = ON, DRVA instruction executes absolute positioning on Y0 at target position 20000, target frequency 2kHz.
  • Page 616 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers 2-Axis Relative Point to ES2/EX2 SS2 SA2 PPMR Point Motion Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DPPMR: 17 steps PULSE 16-bit 32-bit...
  • Page 617 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 8.
  • Page 618 3 . I n s t r u c t i o n S e t 2. Operation: When PLC runs and M0 = ON, PLC will start the first point-to-point motion by 100KHz. D0 will plus 1 whenever a point-to-point motion is completed and the second point-to-point motion will start to execute automatically.
  • Page 619 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 620 3 . I n s t r u c t i o n S e t 2. Steps: a) Set the four coordinates (-27000, -27000), (0, -55000), (27000, -27000) and (0,0) (as the figure above). Place them in the 32-bit registers (D200, D202), (D204, D206), (D208, D210), (D212, D214).
  • Page 621 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 622 3 . I n s t r u c t i o n S e t 6. Draw four 90° arcs as the figure below. When the direction signal is ON, the direction is positive(QI, QIV). When the direction signal is OFF, the direction is negative(QII, QIII).
  • Page 623 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g that the arc has to be a 90°...
  • Page 624 3 . I n s t r u c t i o n S e t 3. Operation: When PLC runs and M0 = ON, PLC will start the drawing of the first segment of the arc. D0 will plus 1 whenever a segment of arc is completed and the second segment of the arc will start to execute automatically.
  • Page 625 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 3.
  • Page 626 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers 2-Axis Absolute ES2/EX2 SS2 SA2 CIMA Position Arc Interpolation Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DCIMA: 17 steps PULSE 16-bit 32-bit...
  • Page 627 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 2.
  • Page 628 3 . I n s t r u c t i o n S e t 2. Steps: a) Find the max. and min. coordinates on X and Y axes (0,0), (26000,26000), (34000,18000), (8000,-8000) (as the figure above). Place them respectively in the 32-bit registers (D200,D202), (D204,D206), (D208,D210) and (D212,D214).
  • Page 629 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 630 3 . I n s t r u c t i o n S e t 3. Current executing segment can be monitored by D301. DPTPO D300 4. Timing diagram: (Hz ) F r eq u e nc y ( D15 7,D1 56 ) ..
  • Page 631 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 632 3 . I n s t r u c t i o n S e t direction signal output will be OFF only when the drive contact of the instruction is OFF, i.e. completion of pulse output will not reset Y1 or Y3. 5.
  • Page 633 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 3.
  • Page 634 3 . I n s t r u c t i o n S e t Program Example1: Immediate stop high-speed pulse output by external interrupt 1. Adopt X4 as the input for external interrupt and I401 (rising-edge trigger) as the interrupt pointer.
  • Page 635 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 2: Immediate stop high-speed pulse output by high speed counter 1.
  • Page 636 3 . I n s t r u c t i o n S e t 3. Observe the results of the first execution: a) The actual output number 50,600 – specified output number 50,000 = 600 b) 600 x (1/100Hz) = 6s (idle time) c) 3 seconds are too long.
  • Page 637 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g M1306: Reverse CH1 (Y2, Y3) pulse output direction.
  • Page 638 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers Variable speed pulse ES2/EX2 SS2 SA2 198 D VSPO output Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DVSPO: 17 steps PULSE 16-bit 32-bit...
  • Page 639 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Function Explanations: Pulse output diagram: Freq.
  • Page 640 3 . I n s t r u c t i o n S e t  2 shift: Assume t2 = 11kHz, internal frequency = 2kHz, gap time = 20ms Ramp-up steps of 2 shift: F re q . t2=11kHz 1kHz 2kHz...
  • Page 641 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g M1306 Reverse Y3 pulse output direction in high speed pulse output instructions M1538...
  • Page 642 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 Immediately change frequency Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DVSPO: 13 steps PULSE 16-bit 32-bit...
  • Page 643 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 2.
  • Page 644 3 . I n s t r u c t i o n S e t DMOVP K100000 D500 K1000 D502 D503 DVSPO K1000000 D502 D500 FEND M1000 I601 DMOV K50000 D500 K800 D502 D503 D502 DICF D500 IRET M1000 I701 D500 DMOV...
  • Page 645 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 3.6.15 Real Time Calendar Mnemonic Applicable to...
  • Page 646 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 TCMP P Time compare Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F TCMP, TCMPP: 11 steps PULSE 16-bit 32-bit...
  • Page 647 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 648 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 TADD Time addition Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F TADD, TADDP: 7 steps PULSE 16-bit 32-bit...
  • Page 649 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 650 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Time read Type Bit Devices Word devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F TRD, TRDP: 3 steps PULSE 16-bit 32-bit...
  • Page 651 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Points to note: There are two methods to correct built-in RTC: Correcting by API167 TWR instruction...
  • Page 652 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Time write Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F TWR, TWRP: 5 steps PULSE 16-bit 32-bit...
  • Page 653 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Year (2004) Day (Tuesday) Month (December)
  • Page 654 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 HOUR Hour meter Type Bit Devices Word devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F HOUR: 7 steps DHOUR: 13 steps PULSE 16-bit...
  • Page 655 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 2: In 32-bit instruction, when X0 = ON, Y10 will be ON and the timing will start.
  • Page 656 3 . I n s t r u c t i o n S e t 3.6.16 Gray Code Mnemonic Applicable to STEPS PULSE Function 16 bits 32 bits SX2 16-bit 32-bit DGRY BIN → Gray Code    ...
  • Page 657 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 658 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 GBIN Gray Code → BIN Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F GBIN, GBINP: 5 steps DGBIN, DGBINP: 9 steps PULSE 16-bit...
  • Page 659 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 3.6.17 Matrix Operation Mnemonic Applicable to...
  • Page 660 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 MAND Matrix AND Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F MAND, MANDP: 9 steps PULSE 16-bit 32-bit...
  • Page 661 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Points to note: 1.
  • Page 662 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 Matrix OR Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F MOR, MORP: 9 steps PULSE 16-bit 32-bit...
  • Page 663 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 664 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 MXNR Matrix XNR Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F MXNR, MXNRP: 9 steps PULSE 16-bit 32-bit...
  • Page 665 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 666 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 MCMP Matrix compare Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F MCMP, MCMPP: 9 steps PULSE 16-bit 32-bit...
  • Page 667 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example: When X0 goes from OFF to ON with M1090 = OFF (comparison starts from Pr), the search will start from the bit marked with “*”...
  • Page 668 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 MBRD Matrix bit read Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F MBRD, MBRDP: 7 steps PULSE 16-bit 32-bit...
  • Page 669 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Pointer Points to note: Associated flags and registers:...
  • Page 670 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 MBWR Matrix bit write Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F MBWR, MBWRP: 7 steps PULSE 16-bit 32-bit...
  • Page 671 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Before Execution M1096...
  • Page 672 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Matrix bit shift Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F MBS, MBSP: 7 steps PULSE 16-bit 32-bit...
  • Page 673 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g M1096 Before execution M1095...
  • Page 674 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Matrix bit rotate Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F MBR, MBRP: 7 steps PULSE 16-bit 32-bit...
  • Page 675 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Before execution M1095 M1097=0...
  • Page 676 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2/ SS2 SA2 Matrix bit status count Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F MBC, MBCP: 7 steps PULSE 16-bit 32-bit...
  • Page 677 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 3.6.18 Contact Type Logic Operation Mnemonic Applicable to...
  • Page 678 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 215~ Contact Type Logic Operation /EC5 Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F LD#: 5 steps DLD#: 9 steps PULSE 16-bit...
  • Page 679 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 680 3 . I n s t r u c t i o n S e t API Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 221~ Parallel Type Logic Operation /EC5 Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F OR#: 5 steps DOR#: 9 steps PULSE 16-bit...
  • Page 681 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 3.6.19 Contact Type Comparison Mnemonic Applicable to...
  • Page 682 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 224~ Contact Type Comparison LD※ /EC5 Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F LD※: 5 steps DLD※: 9 steps PULSE 16-bit...
  • Page 683 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 684 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 240~ Parallel Type Comparison OR※ /EC5 Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F OR※: 5 steps DOR※: 9 steps PULSE 16-bit...
  • Page 685 : Setting value (K0~K32,767, D0~D9,999)。 Explanations: DVP-ES2/EX2 series PLCs whose version is 3.20/DVP-SS2 series PLCs whose version is 3.00/DVP-SA2 series PLCs whose version is 2.60/DVP-SE series PLCs whose version is 1.20/DVP-SX2 series PLCs whose version is v2.40 (or above) are supported.
  • Page 686 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 BOUT Output Specified Bit of a Word Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F BOUT: 5 steps DBOUT: 9 steps PULSE 16-bit...
  • Page 687 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 688 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 BRST Reset Specified Bit of a Word Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F BRST: 5 steps DBRST: 9 steps PULSE 16-bit...
  • Page 689 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 690 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 BLDI Load NC Contact by Specified Bit Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F BLDI: 5 steps DBLDI: 9 steps PULSE 16-bit...
  • Page 691 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 692 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 Connect NC Contact in Series by BANI Specified Bit Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F BANI: 5 steps DBANI: 9 steps PULSE 16-bit...
  • Page 693 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 694 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 Connect NC Contact in Parallel BORI by Specified Bit Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F BORI: 5 steps DBORI: 9 steps PULSE 16-bit...
  • Page 695 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 696 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers Floating Point Contact Type ES2/EX2 SS2 SA2 281~ FAND※ Comparison AND※ Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F FAND※: 9 steps PULSE 16-bit 32-bit...
  • Page 697 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 698 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers DMV communication DMVRW command Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DMVRW: 9 steps PULSE 16-bit 32-bit...
  • Page 699 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Number Description Remark...
  • Page 700 3 . I n s t r u c t i o n S e t functions as a source device at first, and then functions as a destination device when a reading command is executed. Note : If a communication combination command is used, S +1 and S +2 will be set by the PLC according to the communication combination command.
  • Page 701 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g The program in the PLC and the comments are shown below.
  • Page 702 3 . I n s t r u c t i o n S e t 2-6. If the DMV does not reply after the timeout period 100ms, the PLC will set D +2 (Y2) to On (a communication timeout occurs). 2-7.
  • Page 703 : Source device 3 Explanations: 1. DVP-ES2/EX2 series PLCs whose version is 3.20/DVP-SS2 series PLCs whose version is 3.00/DVP-SA2 series PLCs whose version is 2.60/DVP-SE series PLCs whose version is 1.20/DVP-SX2 series PLCs whose version is 2.40 (or above) are supported.
  • Page 704 3 . I n s t r u c t i o n S e t Program Example: If the value in C10 is equal to K200 or K-200, Y20 will be On. If the value in D200 is less than or equal to K230, and is larger than or equal to K170, and X1 is On, Y21 will be On and latched.
  • Page 705 : Source device 3 Explanations: DVP-ES2/EX2 series PLCs whose version is 3.20/DVP-SS2 series PLCs whose version is 3.00/DVP-SA2 series PLCs whose version is 2.60/DVP-SE series PLCs whose version is 1.20/DVP-SX2 series PLCs whose version is 2.40 (or above) are supported.
  • Page 706 3 . I n s t r u c t i o n S e t Program Example: If X0 is On, and the present value in C10 is equal to K200 or K-200, Y20 will be On. If X1 is Off, and the value in D0 is not equal to K10 or K-10, Y21 will be On and latched. K200 K400 ANDZ=...
  • Page 707 : Source device 3 Explanations: DVP-ES2/EX2 series PLCs whose version is 3.20/DVP-SS2 series PLCs whose version is 3.00/DVP-SA2 series PLCs whose version is 2.60/DVP-SE series PLCs whose version is 1.20/DVP-SX2 series PLCs whose version is 2.40 (or above) are supported.
  • Page 708 3 . I n s t r u c t i o n S e t Program Example: If X2 and M30 are On, or the value in the 32-bit register (D101, D100) is larger than or equal to K100000, or is less than or equal to K-100000, M60 will be On. DORZ>= D100 K100000...
  • Page 709 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 3.6.20 Specific Bit Control Mnemonic Applicable to...
  • Page 710 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 BOUT Output Specified Bit of a Word /EC5 Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F BOUT: 5 steps DBOUT: 9 steps PULSE 16-bit...
  • Page 711 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 712 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 BRST Reset Specified Bit of a Word /EC5 Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F BRST: 5 steps DBRST: 9 steps PULSE 16-bit...
  • Page 713 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 714 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 BLDI Load NC Contact by Specified Bit /EC5 Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F BLDI: 5 steps DBLDI: 9 steps PULSE 16-bit...
  • Page 715 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 716 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 Connect NC Contact in Series by BANI /EC5 Specified Bit Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F BANI: 5 steps DBANI: 9 steps PULSE...
  • Page 717 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 718 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 Connect NC Contact in Parallel BORI /EC5 by Specified Bit Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F BORI: 5 steps DBORI: 9 steps PULSE...
  • Page 719 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 3.6.21 Floating-Point Contact Type Comparison Mnemonic Applicable to...
  • Page 720 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers Floating Point Contact Type ES2/EX2 SS2 SA2 275~ FLD※ /EC5 Comparison LD※ Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F FLD※: 9 steps PULSE 16-bit 32-bit...
  • Page 721 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 722 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers Floating Point Contact Type ES2/EX2 SS2 SA2 287~ FOR※ /EC5 Comparison OR※ Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F FOR※: 9 steps PULSE 16-bit 32-bit...
  • Page 723 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 3.6.22 Delta Special CANopen Communication Instructions...
  • Page 724 Number of station to be initialized Explanation Before executing the instruction, be sure to set M1614 to ON to enable Delta servo drive function. ASDA-A2 is available for DVP-ES2 with firmware V3.48 or later; for ASDA-A3, it is available for DVP-ES2 with firmware V3.60 or later.
  • Page 725 M1 61 5 Example of Communication with Delta servo ASDA Connect the ES2-C Series PLC to TAP-CN03 and an ASDA series with a CANopen communication cable as shown in the figure below.
  • Page 726 Power the servo off and back on again. g. Begin operation after the basic setting is complete. Download the sample program and set M1614 to ON to enable Delta servo drive function. The instruction initializes the servos at station addresses 1–3. When M1615 is ON, the initialization is complete.
  • Page 727 When the initialization is complete, the servo is in the PR mode. Do not make any communication control on servo P5-18. For more details on the servo parameters, refer to the Delta Servo Operation manual. 3 - 6 0 6...
  • Page 728 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2-C ASDON Driver ON and OFF ,S Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F ASDON: 5 steps PULSE 16-bit 32-bit...
  • Page 729 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Example 1: 1.
  • Page 730 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers Set acceleration time ES2-C CASD and deceleration time ,S ,S for driver Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F CASD: 7 steps PULSE 16-bit 32-bit...
  • Page 731 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Example 1 1.
  • Page 732 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers Servo relative position ES2-C 331 D DRVIC ,S ,S control Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DDRVIC: 13 steps PULSE 16-bit 32-bit...
  • Page 733 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 9.
  • Page 734 3 . I n s t r u c t i o n S e t Explanation of special flags (SM) and registers (SR) for ASDA CANopen communication instructions The following table shows special flags (SM) and registers (SR) related to ASDA CANopen communication.
  • Page 735 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g The following table shows how Delta servo parameters of axes correspond to special flags and registers in the CANopen communication.
  • Page 736 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers Servo absolute position ES2-C 332 D DRVAC ,S ,S control Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DDRVAC: 13 steps PULSE 16-bit 32-bit...
  • Page 737 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 9.
  • Page 738 3 . I n s t r u c t i o n S e t Example 2 1. Add one line to the program in Example 1. When the PLC runs and SM1648 is ON, the function is enabled for servo 1 to go back and forth. 2.
  • Page 739 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 740 3 . I n s t r u c t i o n S e t Example 1 1. When M0 changes from OFF to ON, the INITC instruction starts to initialize the servos at station addresses 1–3 (should be in a consecutive order) The station address must start at 1 and the following addresses cannot be skipped or reserved.
  • Page 741 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 742 3 . I n s t r u c t i o n S e t 10. When M1 changes from OFF to ON, the setting for servo is as below. Parameters Description CANopen address P5-04 (16bit) Homing mode H2504 P6-00 (32bit) Homing setting H2600...
  • Page 743 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g For firmware V3.48 or eariler versions: after finding the origin (Sensor or Z), the motor has to decelerate to stop.
  • Page 744 3 . I n s t r u c t i o n S e t For firmware V3.60 or later, you can use ZRNM instruction to set whether executing homing to the exact origin point or not (default is not coming back to the exact origin point). To the exact origin point: ...
  • Page 745 Explanation COPWL instruction is supported for firmware V3.60 or later. And it can work with CANopen DS301 mode and Delta special mode It is not available for pulse type instructions. Do not use pulse type contact. sets the station address within the range of 1~127. If the setting value exceeds the range (<...
  • Page 746 3 . I n s t r u c t i o n S e t For the index addresses and subindex addresses of Delta servo and AC motor drive, refer to the explanation of the COPRW instruction. In principle, the parameter values of Delta servo and AC motor drive are both16-bit or 32-bit values including floating point numbers.
  • Page 747 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Example 1.
  • Page 748 Para parameter. When CAN communication port is specified to work in Delta special driver mode, the value of Node can be 0 (for the broadcast function) and 1~8 which are for servo station addresses only.
  • Page 749 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 16#01 16#02 16#80...
  • Page 750 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers Self-defined ES2/ SA2/ ETHRS Ethernet ES2-E communication port Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F ETHRS: 13 steps PULSE 16-bit 32-bit...
  • Page 751 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Value Description of receiving mode...
  • Page 752 3 . I n s t r u c t i o n S e t Server mode Sending specific The value in S cannot be 0 in this communication data Invalid mode. The value exceeding the (SE: FW V1.95 or later and parameter range will be seen as the ES2E: FW V1.46 or later )
  • Page 753 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g The operand S and S specify source data registers and data length.
  • Page 754 3 . I n s t r u c t i o n S e t 12. Relative special flags and registers for the instruction ETHRS: Item Function Defaults StopRun Attributes ON: the connection of the self-defined Ethernet communication port is enabled. When the instruction ETHRS stops, the connection will still be kept.
  • Page 755 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Description Error code H620D...
  • Page 756 3 . I n s t r u c t i o n S e t 14. The already used communication ports are as below. Communication UDP/TCP Description Port Modbus TCP communication 44818 EtherNet/IP explicit message DHCP communication 2222 EtherNet/IP implicit message 44818 EtherNet/IP explicit message 20006...
  • Page 757 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g connection is ready or is waiting to be connected.
  • Page 758 3 . I n s t r u c t i o n S e t Program Example: (The command is sent and received through the Ethernet port built in DVP-SE.) This example uses DVP-SE series as the client, M0 to activate and UDP connection mode to send and receive data.
  • Page 759 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Program Example 2: (The command is sent and received through the Ethernet port built in DVP-SE.) This example uses DVP-SE series as the client, M2 to activate and TCP connection mode to send...
  • Page 760 3 . I n s t r u c t i o n S e t Program Example 2: (The command is sent and received through the Ethernet port built in DVP-SE and mode 3 and 4 are used in S2.) M1196 ...
  • Page 761 Explanation EMER instruction is supported for firmware V3.60 or later. And it can work with CANopen DS301 mode and Delta special mode. After receiving the Emergency message from the slave Node, the PLC will automatically store the data in the device that is specified by Dest and set the Ok flag to ON.
  • Page 762 3 . I n s t r u c t i o n S e t higher 8 bits. The storage format is shown as below. (E.g. Dest is D10, Len is 2 which is the number of messages stored in D5.) D device no.
  • Page 763 Completion flag Error flag Explanation ZRNM instruction is supported for firmware V3.60 or later. And it can work with Delta special mode. The INITC instruction must be complete before this instruction is executed. The value of Node is in the range of 1~8 (exclusive to servo node IDs). If the setting value exceeds the range, the PLC will not perform the action of the homing mode and set the Err flag to ON.
  • Page 764 3 . I n s t r u c t i o n S e t The setting value of Delta servo homing mode is a hex value. The value is defined as the format of 0xWZYX. See the explanation of respective codes as below.
  • Page 765 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 1 = Homing in the reverse direction;...
  • Page 766 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers User-defined CAN ES2-C SS2 SA2/ CANRS communication sending and receiving Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F CANRS: 11 steps PULSE 16-bit 32-bit...
  • Page 767 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g When 2.0B is selected, S (Lo-word) and S +1 (Hi-word) are both 29 bits of ID code.
  • Page 768 3 . I n s t r u c t i o n S e t Selecting 2.0B mode: (Here is the introduction of receiving data from 1 slaves. For other data, increase the number of D Response Data from Data from the second sequence the first slave...
  • Page 769 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 15.
  • Page 770 3 . I n s t r u c t i o n S e t 17. Here is the CAN BUS format and every bit of content for Msg. ID is explained as below. As 2.0A protocol is selected and the value of S is H0123, the Msg.
  • Page 771 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Step 3) LDP M0 ...
  • Page 772 3 . I n s t r u c t i o n S e t Example 2 System set: DVP12SA211T + DVPCOPM-SL Mode: Master mode (receiving data from all slaves after sending data in broadcast mode) Communication packets: PLC program design: Step 1) SET M1620 ...
  • Page 773 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Step 4) LD M0 ...
  • Page 774 3 . I n s t r u c t i o n S e t PLC program design: Step 1) SET M1620  2.0A protocol Step 2) RST M1621 and SET M1622  Slave mode; receiving data from all slaves, if the set ID is met, it responds to master.
  • Page 775 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Step 4) LD M0 ...
  • Page 776 Explanation 1. It is not available for pulse type instructions. Do not use pulse type contact. 2. For firmware V3.48 or later, it can work with Delta special mode. The range of S is 1–8. If the setting value is exceeding this range, an error occurs and M1067 will be set to ON, D1067 = 0x0E1A.
  • Page 777 5. For S and S , refer to the object dictionary in the Delta servo operation manual. 6. The definition of S is based on the request code. If the request code is H23, H2B or H2F, S acts as an initial device for the origin. If the request code is H40, S acts as an initial device for the target.
  • Page 778 3 . I n s t r u c t i o n S e t 10. Most of the parameters in Delta ASDA are displayed in the decimal format. You can convert the parameters into index addresses, see the example below. 0 is a fixed value for the sub index address.
  • Page 779 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 3 - 6 5 8...
  • Page 780 3 . I n s t r u c t i o n S e t 3.6.23 Module Instructions Mnemonic Applicable to STEPS PULSE Function SX2 16-bit 32-bit 16 bits 32 bits Setting output control parameters – – DPUCONF  of PU module –...
  • Page 781 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 782 3 . I n s t r u c t i o n S e t PU module name Axis 1 Axis 2 DVP02PU-E2 Y0 / Y1 Y2 / Y3 Mode sets the output mode of an output axis and the setting values are explained in the following table.
  • Page 783 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 100 ~ 200,000 A 32-bit MSpeed...
  • Page 784 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 Reading PU module output PUSTAT Module~ErrCode state Type Bit Devices Word devices Program Steps K H KnX KnY KnM KnS T C D E F PUSTAT: 17 steps (To be used in ISPSoft) Module Axis...
  • Page 785 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Execute is an read-only flag which means the output axis of the specified PU module is outputting or not.
  • Page 786 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 PU module pulse output PUPLS Module~ErrCode (no acceleration) Type Bit Devices Word devices Program Steps K H KnX KnY KnM KnS T C D E F DPUPLS: 29 steps (To be used in ISPSoft) Module Axis...
  • Page 787 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g TarSpeed sets the target output speed (Unit: Hz).
  • Page 788 3 . I n s t r u c t i o n S e t Programming Example: 1. When M0 is ON, the DPUCONF instruction for axis 1 is executed to modify the parameters by setting Mode to 1 (Pulse Y0 + direction Y1), SSpeed to 200Hz, Atime to 200ms, Dtime to 200ms and MSpeed to 100kHz.
  • Page 789 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 790 3 . I n s t r u c t i o n S e t TarSpeed sets the target output frequency (Unit: Hz). The frequency value is a positive signed 32-bit integer. When the value is less than 0, the instruction will automatically use 2’s complement to transform the value into a positive integer.
  • Page 791 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 11.
  • Page 792 3 . I n s t r u c t i o n S e t Programming Example: 1. When M0 is ON, the PUX instruction is executed to set the input parameters of DVP02PU-E2 module with “Axis 1, DOG, Rising-edge triggered” for input point X0, “Axis 1, Z phase, Rising-edge triggered”...
  • Page 793 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 3 - 6 7 2...
  • Page 794 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers Absolute addressing output of ES2/EX2 SS2 SA2 D PUDRA Module~ErrCode PU module (with acceleration and deceleration) Type Bit Devices Word devices Program Steps K H KnX KnY KnM KnS T C D E F DPUDRA: 29 steps (To be used in ISPSoft)
  • Page 795 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Programming Example: 1.
  • Page 796 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 D PUZRN Module~ErrCode PU module homing Type Bit Devices Word devices Program Steps K H KnX KnY KnM KnS T C D E F DPUZRN: 33 steps (To be used in ISPSoft) Module Axis...
  • Page 797 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Use matching input Mode Function...
  • Page 798 3 . I n s t r u c t i o n S e t TarSpeed sets the maximum output frequency for the homing. The setting value is a signed 32-bit value. When Mode value is between 1~8, the range of the setting value is -200,000 ~ -100 (Hz) and 100 ~ 200,000 (Hz).
  • Page 799 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 11.
  • Page 800 3 . I n s t r u c t i o n S e t Mode 1:The axis starts to go toward the negative direction and then stops after leaving the DOG point position Description of cases under mode 1 The motion starts in the negative direction.
  • Page 801 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mode 2:The axis starts to go toward the positive direction and then stops after leaving the DOG point position Description of cases under mode 2...
  • Page 802 3 . I n s t r u c t i o n S e t Mode 3:After Mode 1 is finished, seek the set number of Z phases. Description of cases under mode 3 The motion starts in the negative direction. As the DOG point is encountered, the axis starts to Case A decelerate until the JOG speed is reached and...
  • Page 803 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mode 4:After Mode 2 is finished, seek the set number of Z phases.
  • Page 804 3 . I n s t r u c t i o n S e t Mode 5:After Mode 1 is finished, output the offset position. Description of cases under mode 5 The motion starts in the negative direction. As the DOG point is encountered, the axis starts to Case A decelerate until the JOG speed is reached, and...
  • Page 805 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mode 6:After Mode 2 is finished, output the offset position.
  • Page 806 3 . I n s t r u c t i o n S e t Mode 7:After Mode 1 is finished, seek the set number of Z phases and then output the offset position. Description of cases under mode 7 The motion starts in the negative direction.
  • Page 807 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mode 8:After Mode 2 is finished, seek the set number of Z phases and then output the offset position.
  • Page 808 3 . I n s t r u c t i o n S e t ⑤ When counting to the N Z phase pulse, the first offset pulse output starts (positive direction: ⑥ When the N the value > 0 or negative direction: the value < 0). offset pulse output is completed, the axis stops immediately.
  • Page 809 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 810 3 . I n s t r u c t i o n S e t exceeds the maximum frequency, the instruction would be executed at the maximum frequency. But changing the speed would not change the direction. To change the direction, set the value of TarSpeed to 0 first and then modify the target speed.
  • Page 811 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Programming Example: 1.
  • Page 812 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 D PUMPG Module~ErrCode PU module MPG output Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F DPUMPG: 41 steps (To be used in ISPSoft) Module Axis...
  • Page 813 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g represent the axis1~axis2 output of the specified PU module respectively.
  • Page 814 3 . I n s t r u c t i o n S e t InMode sets the input mode of the encoder source and the frequency HYPERLINK "D:\\Manuals\\DVP\\ES2 Operation D:\Manuals\DVP\ES2 Operation Manual-Programming\\Editing\\multiplication" Manual-Programming\Editing\multiplication for counting. See the explanation of InMode value in the following table. Input Modes Value Input mode;...
  • Page 815 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Rate-value-based conversion, the output is still conducted at 50Hz.
  • Page 816 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers High-speed counter function ES2/EX2 SS2 SA2 D PUDCNT Module~ErrCode of PU module Type Bit Devices Word devices Program Steps K H KnX KnY KnM KnS T C D E F DPUCNT: 33 steps (To be used in ISPSoft) Module InMode...
  • Page 817 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Phase B leads phase A, indicating counting in the negative direction Input Modes Value...
  • Page 818 3 . I n s t r u c t i o n S e t The error codes that ErrCode shows are listed in the following table. Error code Description 16#1400 The module does not support the function. 16#1402 There is no response from the module;...
  • Page 819 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Operands Function...
  • Page 820 3 . I n s t r u c t i o n S e t XMode selects an input mode for input points. Setting values are explained in the following table: Setting in XMode DVP02PU-E2 General input (Default) Axis 1, Z phase, Rising-edge triggered Axis 2, Z phase, Rising-edge triggered Axis 1, Z phase, Falling-edge triggered Axis 2, Z phase, Falling-edge triggered...
  • Page 821 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g specified PU module or the PU module number is wrong or the output axis number is incorrect.
  • Page 822 3 . I n s t r u c t i o n S e t Mnemonic Operands Function Controllers ES2/EX2 SS2 SA2 Setting PU module software PULS P Module~ErrCode limits Type Bit Devices Word devices Program Steps K H KnX KnY KnM KnS T C D E F DPULS, DPULSP: 29 steps Module (To be used in ISPSoft)
  • Page 823 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Parameter Function Range...
  • Page 824: Table Of Contents

    Communications This chapter introduces information regarding the communications ports of the PLC. Through this chapter, the user can obtain a full understanding about PLC communication ports. Table of Contents 4.1 Communication Ports ......................4-2 4.2 Communication Protocol ASCII mode ................4-3 4.2.1 ADR (Communication Address) ................
  • Page 825: Communication Ports

    Communication Ports DVP-ES2/EX2/SA2/SE/SX2 offers 3 communication ports (COM1~COM3), and DVP-SS2/EC5 offers 2 COM ports (COM1~COM2). COM ports of the above models support DELTA Q-link communication format on HMI. Refresh rate of HMI can be increased by this function. COM1: RS-232 communication port. COM1 can be used as master or slave and is the major COM port for PLC programming.
  • Page 826: Communication Protocol Ascii Mode

    4 . C o m m u n i c a t i o n s Default communication settings for all COM ports: Modbus ASCII − − 7 data bits 1 stop bit − − Odd parity Baud rate: 9600 −...
  • Page 827: Cmd (Command Code) And Data

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 4.2.2 CMD (Command code) and DATA The content of access data depends on the command code.
  • Page 828: Lrc Chk (Checksum)

    4 . C o m m u n i c a t i o n s Field name ASCII Data Lo (T21) 30 32 Data Hi (T22) 30 30 Data Lo (T22) 30 33 Data Hi (T23) 30 30 Data Lo (T23) 30 34 Data Hi (T24) 30 30...
  • Page 829 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g exception response will return to the master device.
  • Page 830: Communication Protocol Rtu Mode

    4 . C o m m u n i c a t i o n s Communication Protocol RTU mode Communication Data Structure 9600 Baud rate), 8 data bits), EVEN Parity), 1 Start bit), 1 Stop bit) START No data input ≥ 10 ms Address Communication Address: the 8-bit binary address Command code...
  • Page 831: Crc Chk (Check Sum)

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g PLC→PC “...
  • Page 832 4 . C o m m u n i c a t i o n s obtained in the CRC register is the CRC checksum. Care should be taken when placing the LOW byte and HIGH byte of the obtained CRC checksum. Calculation example of the CRC Check using the C language: unsigned char* data ...
  • Page 833 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g An example of exception response of command code 01H and exception 02H: Sent message: Field Name...
  • Page 834: Plc Device Address

    4 . C o m m u n i c a t i o n s PLC Device Address Effective Range MODBUS Device Range ES2/EX2/ SA2/SE Address Address 000~255 000001~000256 0000~00FF 256~511 000257~000512 0100~01FF 000~1023 000~1023 512~767 000513~000768 0200~02FF 768~1023 000769~001024 0300~03FF 000~377 (Octal)
  • Page 835 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Effective Range MODBUS Device...
  • Page 836: Command Code

    4 . C o m m u n i c a t i o n s Command Code 4.5.1 Command Code: 01, Read Status of Contact (Input point X is not included) Number of Points (max) = 255 (Dec) = FF (Hex) Example:Read contacts T20~T56 from Slave ID#1 PC→PLC “:01 01 06 14 00 25 BF CR LF”...
  • Page 837: Command Code: 02, Read Status Of Contact (Input Point X Is Included)

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 4.5.2 Command Code: 02, Read Status of Contact (Input point X is included) Example: Read status of contact Y024~Y070 from Slave ID#01 PC→PLC “: 01 02 05 14 00 25 BF CR LF”...
  • Page 838: Command Code: 03, Read Content Of Register (T, C, D)

    4 . C o m m u n i c a t i o n s 4.5.3 Command Code: 03, Read Content of Register (T, C, D) Example: Read coils T20~T27 from Slave ID#01 PC→PLC “: 01 03 06 14 00 08 DA CR LF” Sent message: Field Name ASCII...
  • Page 839: Command Code: 05, Force On/Off Single Contact

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 4.5.4 Command Code: 05, Force ON/OFF single contact The Force data FF00 (Hex) indicates force ON the contact.
  • Page 840: Command Code: 06, Set Content Of Single Register

    4 . C o m m u n i c a t i o n s 4.5.5 Command Code: 06, Set content of single register Example: Set content of register T0: 12 34 (Hex) PC→PLC “: 01 06 06 00 12 34 AD CR LF” Sent message: Field Name ASCII...
  • Page 841: Command Code: 15, Force On/Off Multiple Contacts

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 4.5.6 Command Code: 15, Force ON/OFF multiple contacts Max contacts/coils available for Force ON/OFF: 255 Example: Set Coil Y007…Y000 = 1100 1101, Y011…Y010 = 01.
  • Page 842: Command Code: 16, Set Content Of Multiple Registers

    4 . C o m m u n i c a t i o n s 4.5.7 Command Code: 16, Set content of multiple registers Example: Set register T0 to 00 0A , T1 to 01 02 . PC→PLC “: 01 10 06 00 00 02 04 00 0A 01 02 D6 CR LF” Sent message: Field Name ASCII...
  • Page 843 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Memo 4 - 2 0...
  • Page 844 Sequential Function Chart This chapter provides information for programming in SFC mode. Table of Contents 5.1 Step Ladder Instruction [STL], [RET] ................5-2 5.2 Sequential Function Chart (SFC) ..................5-3 5.3 The Operation of STL Program ..................5-5 5.4 Points to Note for Designing a Step Ladder Program ..........5-12 5.5 Types of Sequences ......................
  • Page 845: Step Ladder Instruction [Stl], [Ret]

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Step Ladder Instruction [STL], [RET] Mnemonic Operands Function...
  • Page 846: Sequential Function Chart (Sfc)

    5 . S e q u e n t i a l F u n c t i o n C h a r t Sequential Function Chart (SFC) In the application of automation control, a seamless combination between electrical control and mechanical control is required for completing an automation process.
  • Page 847 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g General step.
  • Page 848: The Operation Of Stl Program

    5 . S e q u e n t i a l F u n c t i o n C h a r t The Operation of STL Program Step ladder diagram (STL) is a programming method for users to write a program which functions similar to SFC.
  • Page 849 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Example: When X0 = ON, S20 = ON,...
  • Page 850 5 . S e q u e n t i a l F u n c t i o n C h a r t Repeated usage of timer: See the opposite diagram. Timers can only be used repeatedly in non-adjacent steps. Transfer of Step Points: SET Sn and OUT Sn instructions are used to enable (or transfer to) another step.
  • Page 851 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g OUT Sn Used for returning to the initial step in the same step sequence.
  • Page 852 5 . S e q u e n t i a l F u n c t i o n C h a r t If M1014 is used, and M1040 is On, the steps in the same sequence will be cleared to Off. Ladder diagram: Driving the jumping of step Using OUT S24...
  • Page 853 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Basic Instructions Applicable in a Step LD/LDI/LDP/LDF Basic instruction...
  • Page 854 5 . S e q u e n t i a l F u n c t i o n C h a r t Other Points to Note: 1. The instruction used for transferring the step (SET S□ or OUT S□) are suggested to be executed after all the relevant outputs and actions in the current step are completed.
  • Page 855: Points To Note For Designing A Step Ladder Program

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Points to Note for Designing a Step Ladder Program 1.
  • Page 856 5 . S e q u e n t i a l F u n c t i o n C h a r t 9. Special auxiliary relays and special registers: For more details please refer to 5.6 IST Instruction.
  • Page 857: Types Of Sequences

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Types of Sequences Single Sequence: The basic type of sequence The first step in a step ladder diagram is called initial step, ranged as S0 ~ S9.
  • Page 858 5 . S e q u e n t i a l F u n c t i o n C h a r t 2. Step Jump a) The control power over the step is transferred to a certain step on top. b) The control power over the step is transferred to the step in another sequence.
  • Page 859 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Complicated Single Sequence: Includes simultaneous divergence, alternative divergence, simultaneous convergence and alternative convergence 1.
  • Page 860 5 . S e q u e n t i a l F u n c t i o n C h a r t 3. Structure of Simultaneous Convergence Consecutive STL instructions construct a simultaneous convergence structure. When the transition condition is true after continuous steps, the operation will be transferred to next step.
  • Page 861 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Example of alternative divergence &...
  • Page 862 5 . S e q u e n t i a l F u n c t i o n C h a r t Example of simultaneous divergence & simultaneous convergence: Step Ladder Diagram: SFC Diagram: M1002 M1002 ZRST S127 5 - 1 9...
  • Page 863 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Example of the simultaneous divergence &...
  • Page 864 5 . S e q u e n t i a l F u n c t i o n C h a r t Combination example 1: (Includes alternative divergence/convergence and simultaneous divergence/convergence) Step Ladder Diagram: M1002 ZRST S127 5 - 2 1...
  • Page 865 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g SFC Diagram: M1002 5 - 2 2...
  • Page 866 5 . S e q u e n t i a l F u n c t i o n C h a r t Combination example 2: (Includes alternative divergence/convergence and simultaneous divergence/convergence) Step Ladder Diagram: SFC Diagram: M1002 ZRST S127 M1002...
  • Page 867 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g SFC Diagram: M1002 5 - 2 4...
  • Page 868: Ist Instruction

    5 . S e q u e n t i a l F u n c t i o n C h a r t IST Instruction Controllers Mnemonic Operands Function ES2/EX2/ SS2 SA2 SX2 Initial State Type Bit Devices Word devices Program Steps S K H KnX KnY KnM KnS T C D E F IST: 7 steps...
  • Page 869 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 5.
  • Page 870 5 . S e q u e n t i a l F u n c t i o n C h a r t 5. Control panel Power ON Auto ON Zero return Auto OFF Power OFF Right Clip Ascend Step X32 Shift...
  • Page 871 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 8.
  • Page 872 5 . S e q u e n t i a l F u n c t i o n C h a r t 9. Auto operation (Single step / One-cycle operation / continuous operation): a) SFC: M1041 M1044 5 - 2 9...
  • Page 873 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g b) Ladder Diagram: M1041 M1044 Enter auto operation mode...
  • Page 874 Troubleshooting This chapter offers error code table and information for troubleshooting during PLC operation. Table of Contents 6.1 Common Problems and Solutions ..................6-2 6.2 Error code Table (Hex) ......................6-5 6.3 Error Detection Devices ......................6-9 6.4 Low Voltage Handling Procedures ..................6-10 6 - 1...
  • Page 875: Common Problems And Solutions

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Common Problems and Solutions The following tables list some common problems and troubleshooting procedures for the PLC system in the event of faulty operation.
  • Page 876 The SRAM (static random-access memory) of the PLC or other critical seconds and waits hardware component is out of order. The PLC CPU cannot read/write data, cannot execute any communication nor operation. Contact Delta technical for one second and support team or the distributors for further help.
  • Page 877 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Symptom Troubleshooting and Corrective Actions When there are no outputs, but the output indicator LEDs are ON,...
  • Page 878: Error Code Table (Hex)

    6 . Tr o u b l e s h o o t i n g Error code Table (Hex) After you write the program into the PLC, the illegal use of operands (devices) or incorrect syntax in the program will result in flashing of ERROR indicator and M1004 = ON. In this case, you can find out the cause of the error by checking the error code (hex) in special register D1004.
  • Page 879 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Error code Description Solution...
  • Page 880 6 . Tr o u b l e s h o o t i n g Error code Description Solution C40D Use I / P incorrectly IRET doesn’t follow by the last FEND instruction C40E SRET doesn’t follow by the last FEND instruction PLC program and data in parameters have not been C40F initialized...
  • Page 881 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Error code Description Solution...
  • Page 882: Error Detection Devices

    6 . Tr o u b l e s h o o t i n g Error Detection Devices Error Check Description Drop Latch STOP  RUN RUN  STOP Devices M1067 Program execution error flag None Reset Latch M1068 Execution error latch flag None Latch...
  • Page 883: Low Voltage Handling Procedures

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Low Voltage Handling Procedures The low voltage means When the 24 Vdc power supply is lower than 17.8 V (error margin: approximately 2%) and lasts for more than 10 ms.
  • Page 884 CANopen Function and Operation This chapter explains the functions of CANopen and the usage. Table of Contents 7.1 The Introduction of CANopen ..................... 7-2 7.1.1 The Description of the CANopen Functions .............. 7-2 7.1.2 The Input/Output Mapping Areas ................7-3 7.2 The Installation and the Network Topology ...............
  • Page 885: The Introduction Of Canopen

    OFF, the CANopen functions are disabled. In a master mode, the CANopen functions can support slave 1~slave 16.  The CANopen network configuration software for DVP-ES2-C is CANopen Builder. The CANopen station address and the communication rate are set by means of this software. The programming software for DVP-ES2-C is WPLSoft or ISPSoft.
  • Page 886: The Input/Output Mapping Areas

    If an error or an alarm occurs in DVP-ES2-C, the master is notified through the emergency. 7.1.2 The Input/Output Mapping Areas DVP-ES2-C as a master supports 16 slaves at most, and the slave node ID range from 1 to 16. The output mapping areas are D6250-D6476, and the input mapping areas are D6000-D6226.
  • Page 887: The Profile

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 7.2.2 The Profile 7.2.3 The CAN Interface and the Network Topology ...
  • Page 888 7 C AN o p e n F u n c t i o n a n d O p e r a t i o n The data frame format is shown below. The CAN nodes transmit the CAN messages to the network from left to right, as the data frame format below shows.
  • Page 889  The topology structure of the CANopen network 1) Users should use standard Delta cables when creating the CANopen network. These cables are the thick cable UC-DN01Z-01A (TAP-CB01), the thin cable UC-DN01Z-02A (TAP-CB02), and the thin cable UC-CMC010-01A (TAP-CB10). The communication cables should be away from the power cables.
  • Page 890 7 C AN o p e n F u n c t i o n a n d O p e r a t i o n Product Model Function DVPCOPM-SL is a module connected to the left side of an S series PLC.
  • Page 891 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Product Model Function...
  • Page 892: The Canopen Protocol

    7 C AN o p e n F u n c t i o n a n d O p e r a t i o n The CANopen Protocol 7.3.1 The Introduction of the CANopen Protocol The CAN (controller area network) fieldbus only defines the physical layer and the data link layer. (See the ISO11898 standard.) It does not define the application layer.
  • Page 893: The Canopen Communication Object

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 7.3.2 The CANopen Communication Object The CANopen communication protocol contains the following communication objects.
  • Page 894 7 C AN o p e n F u n c t i o n a n d O p e r a t i o n All the data in the PDO has to be mapped from the object dictionary. The following is an example of the PDO mapping.
  • Page 895 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g The format of the reply message: COB-ID Byte 0 Byte 1 Byte 2...
  • Page 896 7 C AN o p e n F u n c t i o n a n d O p e r a t i o n “reset communication” state. The relation between the communication object and the state is shown below. The communication object service can be executed only in a proper state.
  • Page 897 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Heartbeat consumer Heartbeat producer Receiving...
  • Page 898: The Predefined Connection Set

    7 C AN o p e n F u n c t i o n a n d O p e r a t i o n 7.3.3 The Predefined Connection Set In order to decrease the configuration workload of the network, CANopen defines a default identifier.
  • Page 899: Data Structure Of Sdo Request Message

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g 7.4.1 Data Structure of SDO Request Message Sending SDO through the ladder diagram can read or write the slave parameter.
  • Page 900 7 C AN o p e n F u n c t i o n a n d O p e r a t i o n Status code Explanation Error: Equipment to be sent messages is busy. Error: Illegal type Error: Incorrect node address Error message (See the error code for SDO response message) 0B~FF...
  • Page 901: Data Structure Of Nmt Message

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g ...
  • Page 902: Data Structure Of Emergency Request Message

    7 C AN o p e n F u n c t i o n a n d O p e r a t i o n Example 1: Stop slave of No. 3 through NMT  Request data: Request message PLC device High byte(Hex) Low byte(Hex)
  • Page 903: Example On Sending Sdo Through The Ladder Diagram

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g meantime, you should check if the data in Emergency message are correct.
  • Page 904 7 C AN o p e n F u n c t i o n a n d O p e r a t i o n DVP32ES2-C +24V X14 X15 RS-232 CAN+ CAN- Y0 Y1 ASDA-A2-xxxx-M TAP-CN03 CANopen CANopen ...
  • Page 905: Indicators And Troubleshooting

    Datum 2= 00 Indicators and Troubleshooting There are 6 LED indicators on DVP-ES2-C. Power indicator shows whether the power is normal, RUN and ERROR indicator display the state of running of internal program and COM3 displays the communication state of CANopen.
  • Page 906: Canopen Network Node State Display

    7.5.2 CANopen Network Node State Display  While the special auxiliary relay M1349 of DVP-ES2-C is ON, the CANopen function is enabled and D9980~D9998 will be used as the special registers as the table shows below. Special register...
  • Page 907 (Only applicable to DVP-ES2-C V3.26 (and above))  As a master, DVP-ES2-C supports maximum 16 slaves ranging from node 1 to node 16. D9998 can be used for monitoring the state of nodes from 1 to 16 in the network. And the 16 bits of D9998 corresponds to 16 slaves and the corresponding relations of them are shown below.
  • Page 908: Application Example

    Application Example DVP-ES2-C is used to control Delta A2 servo rotation and monitor the actual rotation speed of motor in real time. The principle of operation is to map the relevant parameters of servo drive to the corresponding PDO and read or write the relevant parameters of servo drive through the CAN bus to accomplish the control requirement.
  • Page 909 Setting CANopen Baud Rate and Node ID of DVP-ES2-C DVP-ES2-C uses the default setting values: Node ID: 17 and baud rate: 1Mbps. CANopen Node ID and baud rate of DVP-ES2-C are set up through CANopen Builder software. See the detailed operation steps below: 1) Open CANopen Builder software and then click menu “Setup”...
  • Page 910 Via PLC Port. The serial port of computer used for communication COM port COM1 with DVP-ES2-C. Address The communication address of DVP-ES2-C The communication rate between computer and Baud rate 9600 bps DVP-ES2-C Data bits The communication protocol between computer and...
  • Page 911 CANopen master. At that time, directly click “OK” to start the online scanning. 4) Click “Network”> “Master Parameter” and the following “Master configure…” dialog box appears. Item Explanation Default The node ID of DVP-ES2-C on the Node ID CANopen network Baud rate CANopen communication rate 1M bit/second...
  • Page 912 7 C AN o p e n F u n c t i o n a n d O p e r a t i o n 5) After the steps above are finished, the download will be performed as the figure shows below. Note: The new parameters after being downloaded will be effective unless DVP-ES2-C is re-powered.  Network Scanning: Scan the master and slave on the CANopen network by clicking menu “Network”>>”Online”.
  • Page 913 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g ...
  • Page 914 7 C AN o p e n F u n c t i o n a n d O p e r a t i o n PDO transmission type can be synchronous transmission and asynchronous transmission. In synchronous transmission, master will send out the SYNC message in the fixed cycle. The length of the cycle is set in master properties dialog box with the default value: 50ms.
  • Page 915 256r/min. See details in the following figure. Program explanation: While DVP-ES2-C is running for the first time, set the parameter P3-06 of servo drive to F.  When M0 turns from OFF to ON, write K256 to D6282 and then the value is written to P1-09 of servo parameter through RxPDO1.
  • Page 916: Object Dictionary

    7 C AN o p e n F u n c t i o n a n d O p e r a t i o n Object Dictionary The communication objects in the object dictionary are shown as below: Index Subindex Object name...
  • Page 917 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Index Subindex Object name...
  • Page 918 7 C AN o p e n F u n c t i o n a n d O p e r a t i o n Index Subindex Object name Data type Attribute Default value Number of valid H’00 Unsigned 8 bits subindex The first mapped...
  • Page 919 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Index Subindex Object name...
  • Page 920 7 C AN o p e n F u n c t i o n a n d O p e r a t i o n Index Subindex Object name Data type Attribute Default value H’1800 H’05 Timer Unsigned 16 bits TxPDO2 communication parameter...
  • Page 921 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Index Subindex Object name...
  • Page 922 7 C AN o p e n F u n c t i o n a n d O p e r a t i o n Index Subindex Object name Data type Attribute Default value The third mapped H’03 Unsigned 32 bits object H’1A02...
  • Page 923 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Index Subindex Object name...
  • Page 924 Appendix Installing a USB Driver in the PLC Contents A.1 Installing the USB Driver in Windows 7 ................. A-2 A.2 Installing the USB in Windows 8 ..................... A-4 A.3 Installing the USB Driver in Windows 10 ................A-7 A.4 Notes on Utilizing USB Communication ................A-9 A - 1...
  • Page 925: Installing The Usb Driver In Windows 7

    A.1 Installing the USB Driver in Windows 7 This section introduces the installation of the DELTA PLC USB driver in the computer. After the driver is installed, the USB interface can be used as the serial port (RS-232). Please use the standard USB cable.
  • Page 926 Ap p e n d i x A I n s ta l l i n g a U S B D r i ve r i n t h e P L C After the driver is installed, users can find the Delta PLC device and the communication port assigned to it in the Device Manger window.
  • Page 927: Installing The Usb In Windows 8

    Windows 8 driver signature enforcement provides a way to improve the security of the operating system by validating the integrity of a driver or system file each time it is loaded into memory. However since Delta PLC USB driver does not include the driver signature, this section will help users to disable driver signature enforcement functionality in Windows 8 to ensure a success Delta PLC USB installation.
  • Page 928 Ap p e n d i x A I n s ta l l i n g a U S B D r i ve r i n t h e P L C 【WIN】+【I】 on the keyboard to see the Setting interface. Click “Change PC Press the button settings”.
  • Page 929 “Restart” to restart the computer. Press “7” or “F7” to choose “Disable driver signature enforcement” and the system will direct you to the Windows 8 operating page. Users can then install the Delta PLC USB driver now. A - 6...
  • Page 930: Installing The Usb Driver In Windows 10

    Windows 10 driver signature enforcement provides a way to improve the security of the operating system by validating the integrity of a driver or system file each time it is loaded into memory. However since Delta PLC USB driver does not include the driver signature, this section will help users to disable driver signature enforcement functionality in Windows 10 to ensure a success Delta PLC USB installation.
  • Page 931 Press “7” or “F7” to choose “Disable driver signature enforcement” and the system will direct you to the Windows 10 operating page. Users can then install the Delta PLC USB driver now. For the installation of the USB driver, please refer to section A1 for more information.
  • Page 932: Notes On Utilizing Usb Communication

    Ap p e n d i x A I n s ta l l i n g a U S B D r i ve r i n t h e P L C A.4 Notes on Utilizing USB Communication ...
  • Page 933 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Memo A - 1 0...
  • Page 934 Appendix Setting and Using an Ethernet PLC/Module Contents Specifications for an Ethernet PLC/Module .............. B-2 Ethernet Control Registers ..................B-3 B.2.1 Station Addresses of Ethernet Modules ..............B-3 B.2.2 DVP-SE Series PLC (Ethernet PLC) ..............B-3 B.2.3 DVPEN01-SL (Left-side Ethernet Communication Module) ......... B-4 B.2.4 DVP-FEN01 (DVP-EH3 Series Ethernet Communication Card) ......
  • Page 935: Specifications For An Ethernet Plc/Module

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g B.1 Specifications for an Ethernet PLC/Module The specifications for a DVP series Ethernet port and the functions of a DVP series Ethernet port are listed below.
  • Page 936: Ethernet Control Registers

    Ap p e d n d i x B S e t t i n g a n d U s i n g a n E t h e r n e t P L C / M o d u l e B.2 Ethernet Control Registers B.2.1 Station Addresses of Ethernet Modules Ethernet port in...
  • Page 937: Dvpen01-Sl (Left-Side Ethernet Communication Module

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g CR number Attribute Register name...
  • Page 938 Ap p e d n d i x B S e t t i n g a n d U s i n g a n E t h e r n e t P L C / M o d u l e DVPEN01-SL Ethernet communication module CR number Attribute...
  • Page 939: Dvp-Fen01 (Dvp-Eh3 Series Ethernet Communication Card

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g DVPEN01-SL Ethernet communication module CR number Attribute...
  • Page 940 Ap p e d n d i x B S e t t i n g a n d U s i n g a n E t h e r n e t P L C / M o d u l e DVP-FEN01 Ethernet communication card CR number Attribute...
  • Page 941: Searching For An Ethernet Plc

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g B.3 Searching for an Ethernet PLC This section introduces how to search for and set an Ethernet PLC by DCISoft.
  • Page 942: Broadcast Search

    Ap p e d n d i x B S e t t i n g a n d U s i n g a n E t h e r n e t P L C / M o d u l e B.3.2 Broadcast Search (1) Click Search on the toolbar in DCISoft to search for all Delta Ethernet products on the network. The window on the left hand side shows the models found, and the window on the right hand side displays the device list of all models.
  • Page 943: Searching For A Model Specified

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g B.3.3 Searching for a Model Specified (1) Right-click Ethernet in the left hand side window, and click Configure to designate a model to be searched for.
  • Page 944: Searching By An Ip Address

    Ap p e d n d i x B S e t t i n g a n d U s i n g a n E t h e r n e t P L C / M o d u l e (3) A list of specified devices is in the window.
  • Page 945 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g (2) Click Search on the toolbar to start searching for the designated IP address.
  • Page 946: Data Exchange

    Quantity: A slave station can send 100 pieces of data at most and receive 100 pieces of data at most simultaneously. ※ If a device which is not a Delta PLC is connected, users can type a hexadecimal four-digit MODBUS absolute position in the Slave Device cell.
  • Page 947: Ethernet/Ip List

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g B.5 EtherNet/IP List EtherNet/IP is a communication protocol defined by ODVA, and is different from the Ethernet mentioned in the previous sections.
  • Page 948: Ethernet/Ip Objects Supported By Dvp-Se Series Plcs

    B.5.2 EtherNet/IP Objects Supported by DVP-SE / ES2-E Series PLCs (1) Identity Object (0x01) Instance: 0x01 Attribute Name Access Data Type Value 0x01 Vendor ID UINT (Delta Electronics, inc.) 14 (Programmable Logic 0x02 Device Type UINT Controller) 0x03 Product Code UINT Product code Device version; Display...
  • Page 949 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Output 0x6A 100 words...
  • Page 950 Ap p e d n d i x B S e t t i n g a n d U s i n g a n E t h e r n e t P L C / M o d u l e ES2-E &...
  • Page 951 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g (8) C counter DVP12SE: (0x68) Instance...
  • Page 952 Ap p e d n d i x B S e t t i n g a n d U s i n g a n E t h e r n e t P L C / M o d u l e DVP26SE: (0x352) Instance Attribute...
  • Page 953 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g (11) Ethernet Link Object (0xF6) Instance: 0x01 Attribute...
  • Page 954: Rtu Mapping

    Ap p e d n d i x B S e t t i n g a n d U s i n g a n E t h e r n e t P L C / M o d u l e B.6 RTU Mapping Users can connect the Delta network product DVPEN01-SL/DVP-SE/ES2-E to RTU-EN01 by means of RTU mapping. After the users finish setting mapping information, they can operate RTU-EN01 by means of corresponding bits (M devices) and registers (D devices) in DVPEN01-SL/DVP-SE/ES2-E instead of communication programs.
  • Page 955: Application Of The Rtu Mapping

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g for mapping, the maximum number of digital outputs used for mapping, the maximum number of registers used for mapping are described below.
  • Page 956 Ap p e d n d i x B S e t t i n g a n d U s i n g a n E t h e r n e t P L C / M o d u l e 3.
  • Page 957 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g MEMO B - 2 4...
  • Page 958 Appendix Inforamation about TP Series Text Panels Contents C.1 TP Memory Map ........................C-2 C.2 Special Data Register ......................C-4 C.2.1 PLC CPU Built-in Inputs and Outputs ..............C-12 C.3 Special Auxiliary Relay ...................... C-15 C.4 Instructions applicable to TP .................... C-25 C.4.1 Basic Instructions ....................
  • Page 959: Tp Memory Map

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g C.1 TP Memory Map Specifications Control Method...
  • Page 960 A p p e n d i x C I n f o r a m a t i o n a b o u t T P S e r i e s Te x t P a n e l s Specifications D1000~D1999, 1000 words, some are Special...
  • Page 961: Special Data Register

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g C.2 Special Data Register The types and functions of special registers (special D) are listed in the table below.
  • Page 962 A p p e n d i x C I n f o r a m a t i o n a b o u t T P S e r i e s Te x t P a n e l s STOP Special Latch...
  • Page 963 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g STOP Special Latch...
  • Page 964 A p p e n d i x C I n f o r a m a t i o n a b o u t T P S e r i e s Te x t P a n e l s STOP Special Latch...
  • Page 965 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g STOP Special Latch...
  • Page 966 A p p e n d i x C I n f o r a m a t i o n a b o u t T P S e r i e s Te x t P a n e l s STOP Special Latch...
  • Page 967 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g STOP Special Latch...
  • Page 968 A p p e n d i x C I n f o r a m a t i o n a b o u t T P S e r i e s Te x t P a n e l s STOP Special Latch...
  • Page 969: Plc Cpu Built-In Inputs And Outputs

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g STOP Special Latch...
  • Page 970 A p p e n d i x C I n f o r a m a t i o n a b o u t T P S e r i e s Te x t P a n e l s Special devices for TP analog ...
  • Page 971 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Wiring Analog / Temperature Terminals ...
  • Page 972: Special Auxiliary Relay

    A p p e n d i x C I n f o r a m a t i o n a b o u t T P S e r i e s Te x t P a n e l s C.3 Special Auxiliary Relay The types and functions of special auxiliary relays (special M) are listed in the table below.
  • Page 973 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g STOP Special Latch-...
  • Page 974 A p p e n d i x C I n f o r a m a t i o n a b o u t T P S e r i e s Te x t P a n e l s STOP Special Latch-...
  • Page 975 ON: binary floating point; OFF: decimal integer M1167 16-bit mode for HKY input M1168 Designating work mode of SMOV Enable the communication instruction for Delta VFD series M1177 inverter. ON: VFD-A (Default), OFF: other models of VFD M1200 C200 counting mode (ON: count down)
  • Page 976 A p p e n d i x C I n f o r a m a t i o n a b o u t T P S e r i e s Te x t P a n e l s STOP Special Latch-...
  • Page 977 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g STOP Special Latch-...
  • Page 978 A p p e n d i x C I n f o r a m a t i o n a b o u t T P S e r i e s Te x t P a n e l s STOP Special Latch-...
  • Page 979 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g STOP Special Latch-...
  • Page 980 A p p e n d i x C I n f o r a m a t i o n a b o u t T P S e r i e s Te x t P a n e l s STOP Special Latch-...
  • Page 981 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g STOP Special Latch-...
  • Page 982: Instructions Applicable To Tp

    A p p e n d i x C I n f o r a m a t i o n a b o u t T P S e r i e s Te x t P a n e l s C.4 Instructions applicable to TP The instructions which are applicable to TP are listed below.
  • Page 983 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Classification PULSE...
  • Page 984 A p p e n d i x C I n f o r a m a t i o n a b o u t T P S e r i e s Te x t P a n e l s Mnemonic Classification PULSE...
  • Page 985 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Classification PULSE...
  • Page 986 A p p e n d i x C I n f o r a m a t i o n a b o u t T P S e r i e s Te x t P a n e l s Mnemonic Classification PULSE...
  • Page 987: Additional Remarks On High-Speed Instructions

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Mnemonic Classification PULSE...
  • Page 988: Definitions Of Tp04P Communication Ports

    A p p e n d i x C I n f o r a m a t i o n a b o u t T P S e r i e s Te x t P a n e l s C.5 Definitions of TP04P Communication Ports TP04P-16TP1R/1T、TP04P-32TP1R/T、TP04P-22XA1R/T、TP04P-21EX1R/T ...
  • Page 989: Example Of Setting Up The Communication

    C.6 Example of Setting up the Communication C.6.1 Communication with AH/AS Series PLC The following uses AS Series PLC as a demonstration example. 1. Configuration diagram 2. Select a driver (DELTA Modbus ASCII or DELTA Modbus RTU) as required. C - 3 2...
  • Page 990 A p p e n d i x C I n f o r a m a t i o n a b o u t T P S e r i e s Te x t P a n e l s 3.
  • Page 991 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g MEMO C - 3 4...
  • Page 992 Appendix Introducing the Current Consumption of Slim PLCs/Extension Modules Contents D.1 Current Consumption of a Slim PLC/an Extension Module ..........D-2 D.1.1 Current supply and current consumption of a PLC (+24VDC) ......D-2 D.1.2 Current supply and current consumption of a digital input/output module (+24VDC) ..........................
  • Page 993: Current Consumption Of A Slim Plc/An Extension Module

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g D.1 Current Consumption of a Slim PLC/an Extension Module Users can calculate the maximum current consumed by the combination of a slim PLC and modules by means of the data in the table below.
  • Page 994: Current Consumption Of A Special Input/Output Module (+24Vdc

    A p p e n d i x D I n t r o d u c i n g t h e C u r r e n t C o n s u m p t i o n o f S l i m P L C s / E x t e n s i o n M o d u l e s D.1.2 Current supply and current consumption of a digital input/output module (+24VDC) Internal maximum current...
  • Page 995: Current Consumption Of A Left-Side High-Speed Special Module (+24Vdc

    D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A 2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g DT01-S PF01-S 02TKL-S...
  • Page 996 Appendix Communication of DVP Series Slim Type Special Modules Contents E.1 DVP Series Slim Type Special Modules ................. E-2 E.2 Connections of a Slim Type Special Module (Work alone) ..........E-2 E.3 Using WPL Editor ........................E-2 E - 1...
  • Page 997 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g E.1 DVP Series Slim Type Special Modules Series Modules...
  • Page 998 Ap p e n d i x E C o m m u n i c a t i o n o f D V P S e r i e s S l i m Ty p e Sp e c i a l M o d u l e s Step 2: Make sure the module is supplied with power and is connected to RS485 before setting.
  • Page 999 D V P - E S 2 / E X 2 / E C 5 / S S 2 / S A2 / S X 2 / S E & T P O p e r a t i o n M a n u a l - P r o g r a m m i n g Step 4: Double-click the CR that you need to modify.
  • Page 1000 Appendix General Specifications Contents ES2 and EX2 Series - General Specifications ................ F-2 SA2, SS2, SX2, SE Series - General Specifications .............. F-3 EC5 Series - General Specifications ..................F-4 TP Series - General Specifications ..................F-5 F - 1...

This manual is also suitable for:

Dvp-ex2Dvp-ec5Dvp-ss2Dvp-sa2Dvp-sx2Dvp-se ... Show all

Table of Contents