Page 2 - Publication History
DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual P r o g r a m m i n g Publication 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 F i r s t E d i t i o n T h e f i r s t e d i t i o n i s i s s u e d . 2 0 1 0 / 0 8 / 0 4 S e c o n d E d i t i o n 1 . C h a p t e r 2 . 8 M R e l a y : ...
Page 4 - Contents; P L C C o n c e p t s
i DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual Programming Contents 1 P L C C o n c e p t s 1.1 PLC Scan Method……………………………………………………………………………... 1-2 1.2 Current Flow……………………………………………………………………………………. 1-3 1.3 NO Contact, NC Contact……………………………………………………………………… 1-3 1.4 PLC Registers and Relays…………………………………...
Page 6 - i i i; Data Structure of EMERGENCY Request Message...................................; A p p e n d i x A
i i i 7.4 Sending SDO, NMT and Reading Emergency Message through the Ladder Diagram... 7-15 7.4.1 Data Structure of SDO Request Message………………………………………... 7-15 7.4.2 Data Structure of NMT Message…………………………………………………... 7-18 7.4.3 Data Structure of EMERGENCY Request Message…………………………….. 7-19 7.4.4 Exam...
Page 7 - i v; T h e D V P - E S 2 s e r i e s P L C s , t h e D V P - E S 2 - C s e r i e s P L C s , t h e D V P - E X 2 s e r i e s; S e r i e s
i v T h e D V P - E S 2 s e r i e s P L C s , t h e D V P - E S 2 - C s e r i e s P L C s , t h e D V P - E X 2 s e r i e s P L C s , t h e D V P - S S 2 s e r i e s P L C s , t h e D V P - S A 2 s e r i e s P L C s , t h e D V P - S X 2 s e r i e s P L C s , a n d t h e D V P - S E s e r i e s P L ...
Page 9 - PLC Concepts; Chapter Contents
1 - 1 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 prin...
Page 10 - PLC Scan Method; Scan input status; I np ut X; ry; Output; Output Y
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 1.1 PLC Scan Method PLC utilizes a standard scan method when evaluating user program. Scanning process: Scan input status Read the physical input status and store the data in internal memo...
Page 11 - . P L C C o n c e p t s; Scan time exception; Flow; Reverse Current
1 . P L C C o n c e p t s 1 - 3 Scan time exception PLC can process certain items faster than the scan time. Some of these items interrupts and halt the scan time to process the interrupt subroutine program. A direct I/O refresh instruction REF allows the PLC to access I/O immediately during user pr...
Page 12 - PLC Registers and Relays
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 4 1.4 PLC Registers and Relays Introduction to the basic internal devices in a PLC X (Input Relay) Bit memory represents the physical input points and receives external input signals. Devi...
Page 13 - Ladder Logic Symbols; Ladder Diagram
1 . P L C C o n c e p t s 1 - 5 1.5 Ladder Logic Symbols The following table displays list of WPLSoft symbols their description, command, and memory registers that are able to use the symbol. Ladder Diagram Structure Explanation Instruction Available Devices NO (Normally Open) contact / A contact LD...
Page 14 - TMR
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 6 Ladder Diagram Structure Explanation Instruction Available Devices Multiple output branches MPS MRD MPP None Output coil OUT Y, M, S S Step ladder STL S Basic / Application instruction - B...
Page 15 - OFF
1 . P L C C o n c e p t s 1 - 7 Execution order of the sample program: 1 LD X0 2 OR M0 3 AND X1 4 LD X3 AND M1 ORB 5 LD Y1 AND X4 6 LD T0 AND M3 ORB 7 ANB 8 OUT Y1 TMR T0 K10 1.5.2 LD / LDI (Load NO contact / Load NC contact) LD or LDI starts a row or block AN D b lo ck OR b lo ck LD i nstru ct i on...
Page 16 - with another device or block; AN B co mm an d; ORB instruction connects a block in parallel with another block; ORB in st ruct i on; stored by MPS instruction.
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 8 1.5.6 OR / ORI (Connect NO contact in parallel / Connect NC contact in parallel) OR (ORI) instruction connects a NO (NC) in parallel with another device or block. OR i n structi on OR i n ...
Page 17 - Branch; MPS
1 . P L C C o n c e p t s 1 - 9 Branch instruction Branch Symbol Description MPS ┬ Start of branches. Stores current result of program evaluation. Max. 8 MPS-MPP pairs can be applied MRD ├ Reads the stored current result from previous MPS MPP └ End of branches. Pops (reads then resets) the stored re...
Page 18 - RE T
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 0 e S 0 S2 1 S2 2 M 1 00 2i n i ti alp u ls e M 1 00 2 S E T S 0 S E T S 2 1 S S 0 S E T S 2 2 S S 2 1 S S 2 2 S 0 RE T 1.5.12 RET (Return) RET instruction has to be placed at the end of s...
Page 19 - Conversion between Ladder Diagram and Instruction List Mode; S T L S 0
1 . P L C C o n c e p t s 1 - 11 1.6 Conversion between Ladder Diagram and Instruction List Mode Ladder Diagram X 0 X2 X 1 X 1 M 1 C0 Y0 SE T S0 M 2 Y 0 M 0 X 1 0 Y 1 0 SE T S1 0 S0 S X 11 Y 11 SE T S11 S1 0 S SE T S1 2 SE T S1 3 X 1 2 Y 1 2 SE T S2 0 S 11 S X 1 3 S 0 RE T S 2 0 S S 1 2 S S1 3 S X0 ...
Page 20 - Syntax; Better method
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 2 1.7 Fuzzy Syntax Generally, the ladder diagram programming is conducted according to the “up to down and left to right” principle. However, some programming methods not following this pr...
Page 22 - Correcting Ladder Diagram
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 4 “Reverse current” exists 1.8 Correcting Ladder Diagram Example 1: Connect the block to the front for omitting ANB instruction because simplified program improves processing speed Instruc...
Page 24 - Basic Program Design Examples; If X2 is turned on, Y1 will be OFF. This is a Stop First circuit
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 6 Example 5: Correct the circuit of reverse current. The pointed reverse current loops are modified on the right. X 0 X 3 X 6 X 1 X 4 X 7 X 2 X 5 X 1 0 L OO P 1 re v er se c u rre n t Ö X0...
Page 25 - SET
1 . P L C C o n c e p t s 1 - 1 7 Example 2 - Start First latched circuit When X1 (START) = ON and X2 (STOP) = OFF, Y1 will be ON and latched. If X2 is turned ON, Y1 remains ON. This is a Start First circuit because START button has the control priority than STOP X2 Y1 X1 Y1 Example 3 - Latched circ...
Page 27 - Example 9 – Oscillating Circuit with Timer; An oscillating circuit with cycle nT+
1 . P L C C o n c e p t s 1 - 1 9 Example 9 – Oscillating Circuit with Timer An oscillating circuit with cycle nT+ Δ T T0 X0 TMR Y1 Y1 T0 Kn Y1 T T n X0 When X0 = ON, T0 starts timing (nT). Once the set time is reached, contact T0 = ON to enable Y1( Δ T). In next scan, Timer T0 is reset due to the r...
Page 28 - Example 13 - Output delay circuit; Timing extension circuit; CNT; The counting range of a 16-bit counter is 0 ~
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 0 Example 13 - Output delay circuit The output delay circuit is composed of two timers executing delay actions. No matter input X0 is ON or OFF, output Y4 will be delayed. T5 T5 TMR Y4 T6 ...
Page 29 - Vertical
1 . P L C C o n c e p t s 1 - 2 1 Example 16 - Traffic light control (Step Ladder Logic) Traffic light control Red light Yellow light Green light Green light blinking Vertical light Y0 Y1 Y2 Y2 Horizontal light Y20 Y21 Y22 Y22 Light Time 35 Sec 5 Sec 25 Sec 5 Sec Vertical Light HorizontalLight Timin...
Page 31 - SFC logic; ZRST; Transfer condition 1; Transfer condition 4
1 . P L C C o n c e p t s 1 - 2 3 WPLSoft programming (SFC mode) SFC logic Internal Ladder Logic LAD-0 S0 ZRST S1 27 M1 00 2 S0 SET Transfer condition 1 TRAN S* T0 S22 Y2 T2 TMR K5 0 M1 01 3 Transfer condition 4 TRAN S* T13 TRAN S* T13 TRAN S* T13 TRAN S* T13 TRAN S* T13 TRAN S* T13 TRAN S* T13 0 2 ...
Page 32 - MEMO
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 4 MEMO
Page 34 - Specifications
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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.1 ES2/EX2 Memory Map Specifications Control Method Stored program, cyclic scan system I/O Processing Method Batch processing method (when END instruction is executed) Execution Speed LD instru...
Page 35 - . P r o g r a m m i n g C o n c e p t s
2 . P r o g r a m m i n g C o n c e p t s Specifications C235~C242, 1 phase 1 input, 8 points, (*2) Soft- ware C232~C234, 2 phase 2 input, 3 points, (*2) C243~C244, 1 phase 1 input, 2 points, (*2) C245~C250, 1 phase 2 input, 6 points, (*2) 32bit high- speed count up/down Hard- ware C251~C254 2 phase...
Page 46 - Status and Allocation of Latched Memory; For AIO
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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.5 Status and Allocation of Latched Memory Memory type Power OFF=>ON STOP=>RUN Clear all Clear all RUN=>STOP non-latched Factory latched area area setting (M1032=ON) (M1031=ON) When M1...
Page 47 - Bit is the basic unit of a binary number system. Range is 0 or 1; D W; DVP-PLC appies decimal operation in situations below:
2 . P r o g r a m m i n g C o n c e p t s 2.6 PLC Bits, Nibbles, Bytes, Words, etc For different control purposes, there are five types of values inside DVP-PLC for executing the operations. Numeric Description Bit Bit is the basic unit of a binary number system. Range is 0 or 1 Consists of 4 consec...
Page 48 - Binary; Constant H
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g z Constant K: Decimal value in PLC operation is attached with an “K”, e.g. K100 indicates the value 100 in Decimal format. Exception: When constant K is used with bit devices X, Y, M, S, the val...
Page 49 - Relay
2 . P r o g r a m m i n g C o n c e p t s Binary Octal Decimal (K) BCD Hexadecimal (H) (BIN) (OCT) (DEC) (Binary Code Decimal) (HEX) Costant K, No. of registers M, S, T, C, D, E, F, P, I devices For PLC internal operation For DIP Switch and 7-segment display No. of X, Y relay Constant H 1101 15 13 0...
Page 63 - Accumulative Timer; Timers for Subroutines and Interrupts; Type General General
2 . P r o g r a m m i n g C o n c e p t s Accumulative Timer The timer executes once when the program reaches END instruction. When TMR instruction is executed, the timer coil will be ON when the current value reaches its preset value. For accumulative timers, current value will not be cleared when ...
Page 66 - Applicable Software High Speed Counters:
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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.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 ...
Page 67 - Applicable Hardware High Speed Counters:
2 . P r o g r a m m i n g C o n c e p t s Applicable Hardware High Speed Counters: 1-phase input 1-phase 2-input 2-phase 2-input C X C243 C244 C245 C246 C247 C248 C249 C250 C251 C252 C253 C254 X0 U U/D U/D U U A A X1 R Dir Dir D D B B X2 U U/D U/D A A X3 R Dir Dir B B X4 R R R X5 R R U: Count up A: ...
Page 69 - counting up
2 . P r o g r a m m i n g C o n c e p t s 1. X21 drives M1235 to determine counting direction (Up/Down) of C235. 2. When X20 = ON, RST instsruction executes and the current value in C235 will be cleared. Contact C235 will be OFF 3. When X22 = ON, C235 receives signals from X0 and counter will count ...
Page 70 - DCNT; MOV K2
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g X2 1 0 1 2 3 4 5 X2 0 6 7 6 5 4 3 X1 count up X0 count down C247presentvalue Y0, C247 contact AB-phase input high-speed counter: Example: LD M1002 C2 51 Y0 X2 1 C2 51 K5 DCNT C2 51 RS T X2 0 M1 ...
Page 71 - Counting up; Special Data Register; explanation please also refer to 2.13 in this chapter.
2 . P r o g r a m m i n g C o n c e p t s 0 1 2 3 4 5 X2 1 X2 0 6 3 0 1 2 3 4 5 A-phase X0 B-phase X1 C251 present value Y0, C251 contact Counting up Counting down 2.13 Special Data Register The types and functions of special registers (special D) are listed in the table below. Care should be taken ...
Page 83 - Low word; MOV
2 . P r o g r a m m i n g C o n c e p t s 2.14 E, F Index Registers Index registers are used as modifiers to indicate a specified device (word, double word) by defining an offset. Devices can be modified includes byte device (KnX, KnY, KnM, KnS, T, C, D) and bit device (X, Y, M, S). E, F registers c...
Page 84 - Nest Level Pointer N:; CJ
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g I000/I001(X0), I100/I101(X1), I200/I201(X2), I300/I301(X3), I400/I401(X4), I500/I501(X5), I600/I601(X6), I700/I701(X7), 8 points (01, rising-edge trigger External interrupt , 00, falling-edge tr...
Page 85 - CA LL; interrupt
2 . P r o g r a m m i n g C o n c e p t s Y0 X1 P2 CA LL X0 Y1 P* * 20 P2 FEND Y1 SR ET 24 (subroutine P2) subroutine Call subroutine P** subroutine return Interrupt pointer I: used with application instruction API 04 EI, API 05 DI, API 03 IRET. There are four types of interruption pointers. To inse...
Page 87 - Applications of Special M Relays and D Registers; PLC Operation Flag; These relays provide information of PLC operation in RUN status.; PLC is running; PLC RUN; Monitor Timer; Function Group
2 . P r o g r a m m i n g C o n c e p t s 2.16 Applications of Special M Relays and D Registers PLC Operation Flag Function Group M1000~M1003 Number Contents: These relays provide information of PLC operation in RUN status. M1000: NO contact for monitoring PLC status. M1000 remains “ON” when PLC is ...
Page 95 - Content; Example 1: Modifying COM1 communication format; Example 2: Modiying COM2 communication format
2 . P r o g r a m m i n g C o n c e p t s Content 0100(H4): 600 0101(H5): 1200 0110(H6): 2400 0111(H7): 4800 1000(H8): 9600 1001(H9): 19200 1010(HA): 38400 1011(HB): 57600 1100(HC): 115200 1101(HD): 500000 (COM2 / COM3) 1110(HE): 31250 (COM2 / COM3) b7 921000 (COM2 / COM3) 1111(HF): b8 Select start ...
Page 96 - Example 3: Modifying COM3 communication format; COM3 according to the value set in D1109; Example 4: RTU mode setting of COM1
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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: Modifying COM3 communication format 1. Add the below instructions on top of the program to modify the communication format of COM3. When PLC switches from STOP to RUN, the program wil...
Page 97 - Enable SPD function; execution process program.
2 . P r o g r a m m i n g C o n c e p t s Note: 1. The modified communication format will not be changed when PLC state turns from RUN to STOP. 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 (960...
Page 98 - MOV P
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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. By using PLC-Link, D1038 can be set to send next communication data with delay. Unit: 1 scan cycle. 0~10,000 adjustable Fixed scan time Function Group M1039, D1039 Number Contents: 1. When M1...
Page 99 - Device
2 . P r o g r a m m i n g C o n c e p t s 5. The analog output signals and ondi their corresp ng digital values: Model 20EX2/SX2 30EX2 Mode Voltage -10 V~+10 V -2000~+2000 -32000~+32000 +0 mA 0~+4000 +0~+32000 ~+20 mA + Current +4 mA 0~+40 00 ~+20 mA + 00 +0~+320 6. The descriptions of the special d...
Page 106 - available for only 16 words)
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 SLAVE SLAVE ID E ID 4 SLAV 6 SLAVE I VE ID 8 ID 1 SLAVE ID 2 3 SLAV E ID 5 SLAVE ID D 7 SLA Read out W Read out Wri in Write in Read out rite Read out W Write in rite in Read out Writ...
Page 107 - Spec
2 . P r o g r a m m i n g C o n c e p t s D1442 D1458 D1443 464 D1449 D1465 D1459 D1444 D1460 D1445 D1461 D1446 D1462 D1447 D1463 D1448 D1 Starting ref f the Sl acces erence o ave to be sed* D1363 D1423 D1364 1429 D1370 D1430 D1424 D1365 D1425 D1366 D1426 D1367 D1427 D1368 D1428 D1369 D M1355 = ON, ...
Page 112 - Operation flow chart:; Master and Slaves through PLC LINK
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g Operation flow chart: 10. Se t st ar ti n g re f er en ce of t h e S rea d: D1 35 5~D1 37 0 Se t da t a l e ng th f o r re ad in g f rom Sla ve PLC: D1 43 4~D1 44 9 C wi ll t ake d ef a ul t or ...
Page 117 - Instruction Set
3 - 1 Instruction Set This chapter explains all of the instructions that are used with DVP-ES2/EX2/SS2/ SA2/SX2/SE as well as detailed information concerning the usage of the instructions. Chapter Contents 3.1 Basic Instructions (without API numbers) ....................................................
Page 119 - . I n s t r u c t i o n S e t; Explanations to Basic Instructions
3 . I n s t r u c t i o n S e t 3 - 3 execution time could be longer due to a more complicated program, e.g. program contains multiple interruptions or high speed input/output. 3.2 Explanations to Basic Instructions Mnemonic Operands Function Program steps LD X, Y, M, S, T, C Load NO contact 1~3 Con...
Page 121 - ANB
3 . I n s t r u c t i o n S e t 3 - 5 Explanations: The ORI instruction is used to connect NC contact in parallel. Program example: Ladder diagram: X0 X1 Y1 Instruction: Operation: LD X0 Load NO contact X0 ORI X1 Connect NC contact X1 in parallel OUT Y1 Drive Y1 coil Mnemonic Function Program steps ...
Page 122 - SE
D V P - E S 2 / S A 2 / S S 2 / S A 2 / S X 2 / S E O p 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 Program example: Ladder diagram: X0 X2 Y1 X1 X3 ORB Bl ock A Bl ock B Instruction: Operation: LD X0 Load NO contact X0 ANI X1 Connect NC contact X1 in series LDI X2 Load NC contact X2 AND ...
Page 123 - EN D
3 . I n s t r u c t i o n S e t 3 - 7 Program example: Ladder diagram: X0 Y1 X1 M0 X2 Y2 EN D M PP M R D M PS Instruction: Operation: LD X0 Load NO contact X0 MPS Store current status AND X1 Connect NO contact X1 in series OUT Y1 Drive Y1 coil MRD Read the stored status AND X2 Connect NO contact X2 ...
Page 127 - Mnemonic Function Program; A scan cycle
3 . I n s t r u c t i o n S e t 3 - 11 Timing Diagram: A scan cycle M 0 Y 0 M 1 A scan cycle Mnemonic Function Program steps PN Positive contact to Negative contact 1 Controllers ES2/EX2 SS2 SA2 SE SX2 Explanation: When the conditions preceding PN command change from true to false, PN command (works...
Page 128 - Interrupt Pointers; EI
D V P - E S 2 / S A 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 2 3.3 Pointers Mnemonic Operands Function Program steps P P0~P255 Pointer 1 Controllers ES2/EX2 SS2 SA2 SE SX2 Explanation: Pointer P is used with API 00 CJ and API 01 CALL instructions. T...
Page 129 - IRET; Communication Interrupts:
3 . I n s t r u c t i o n S e t 3 - 1 3 : IRET Interruption return External interrupt: ES2 supports 8 external input interrupts: (I000/I001, X0), (I100/I101, X1), (I200/I201, X2), (I300/I301, X3), (I400/I401, X4), (I500/I501, X5), (I600/I601, X6) and (I700/I701, X7). (01, rising-edge trigger , 00, f...
Page 130 - Application Programming Instructions; Instruction
D V P - E S 2 / S A 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 4 3.5 Application Programming Instructions 1. PLC instructions are provided with a unique mnemonic name to make it easy to remember instructions. In the example below the API number given ...
Page 131 - M O V; Explanation of the format of application instruction
3 . I n s t r u c t i o n S e t 3 - 1 5 Source: if there are more than one source is required, it will be indicated as S 1 , S 2. ...etc. Destination: if there are more than one destination is required, it will be indicated as D 1 , D 2. ...etc. If the operand can only be constant K/H or a register,...
Page 132 - Continuous execution vs. Pulse execution; M O V P; Operands
D V P - E S 2 / S A 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 6 supports index E and F. A symbol “ * ” is given to device which can be used for this operand Steps occupied by the 16-bit/32-bit/pulse instruction Applicable PLC models for 16-bit/32-bit...
Page 133 - Kn values; Flags
3 . I n s t r u c t i o n S e t 3 - 1 7 1. X, Y, M, and S are defined as bit devices which indicate ON/OFF status. 2. 16-bit (or 32-bit) devices T, C, D, and registers E, F are defined as word devices. 3. “Kn” can be placed before bit devices X, Y, M and S to make it a word device for performing wor...
Page 134 - Limitations for times of using instructions
D V P - E S 2 / S A 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 8 X0 S E T M 0 M0 D S W X 1 0 Y 1 0 D 0 K 0 R S T M 0 M1 02 9 When X0 = ON, DSW will be enabled. When X0 = OFF, M0 is latched. M0 will be reset only when DSW instruction is completed to ac...
Page 135 - Limitation of synchronized execution; on the number of instruction to be executed in the same scan cycle.; Numeric Values
3 . I n s t r u c t i o n S e t 3 - 1 9 5. For counters C243, C245~C248, C251, C252, the total max times for using DHSCS, DHSCR and DHSZ instructions: 4. DHSZ takes up 2 times of the total available times. 6. For counters C244, C249, C250, C253, C254, the total max times for using DHSCS, DHSCR and D...
Page 136 - B I N; Assign Continuous Bit Numbers
D V P - E S 2 / S A 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 0 3. Transmit K1M0, K2M0, K3M0 to 16-bit registers. Only the valid bit data will be transmitted and the upper bits in the 16-bit register will all be filled with 0. The same rule applies w...
Page 137 - Binary Floating Point; ex ponent; Represent “23” in 32-bit floating point value; bits of exponent; Decimal Floating Point
3 . I n s t r u c t i o n S e t 3 - 2 1 Binary Floating Point DVP-PLC represents floating point value in 32 bits, following the IEEE754 standard: S ex ponent mant is sa 8- bi t 23-bit b3 1 Si gn bi t 0: po sit i ve1: ne ga ti ve b0 Equation ( ) 127 ; . 1 2 1 = × × − − B M B E S Therefore, the range ...
Page 139 - The opposite diagram E, F index register modification
3 . I n s t r u c t i o n S e t 3 - 2 3 M O V K 2 0 E 0 D 1 0 F 0 E 0 = 8 F 0 = 1 4 2 0 + 8 = 2 8 1 0 + 1 4 = 2 4 Tr a n s m i s s io n K 2 8 D 2 4 The opposite diagram E, F index register modification refers to the content in the operand changes with the contents in E and F. For example, E0 = 8 and...
Page 141 - Rotation and Displacement
3 . I n s t r u c t i o n S e t 3 - 2 5 Mnemonic Applicable to STEPS API 16 bits 32 bits PULSE Function ES2 EX2 SS2 SA2 SE SX2 16-bit 32-bit 23 DIV DDIV Division 7 13 24 INC DINC Increment 3 5 25 DEC DDEC Decrement 3 5 26 WAND DAND Logical Word AND 7 13 27 WOR DOR Logical Word OR 7 13 28 WXOR DXOR L...
Page 143 - Basic Instructions
3 . I n s t r u c t i o n S e t 3 - 2 7 Mnemonic Applicable to STEPS API 16 bits 32 bits PULSE Function ES2 EX2 SS2 SA2 SE SX2 16-bit 32-bit 76 ASC - - ASCII code conversion 11 - 77 PR - - Print (ASCII code output) 5 - Serial I/O Mnemonic Applicable to STEPS API 16 bits 32 bits PULSE Function ES2 EX...
Page 145 - Additional Instruction
3 . I n s t r u c t i o n S e t 3 - 2 9 Mnemonics Applicable to STEPS API 16 bits 32 bits PULSE Function ES2 EX2 SS2 SA2 SE 2 SX2 16-bit 32-bit 127 - DESQR Floating point square root - 9 128 - DPOW Floating point power operation - 13 129 INT DINT Float to integer 5 9 130 - DSIN Sine - 9 131 - DCOS C...
Page 147 - Gray Code
3 . I n s t r u c t i o n S e t 3 - 3 1 Mnemonic Applicable to STEPS API 16 bits 32 bits PULSE Function ES2 EX2 SS2 SA2 SE SX2 16-bit 32-bit 167 TWR - Time write 3 - 169 HOUR DHOUR - Hour meter 7 13 Gray Code Mnemonic Applicable to STEPS API 16 bits 32 bits PULSE Function ES2 EX2 SS2 SA2 SE SX2 16-b...
Page 149 - Floating-Point Contact Type Comparison
3 . I n s t r u c t i o n S e t 3 - 3 3 Mnemonic Applicable to STEPS API 16 bits 32 bits PULSE Function ES2 EX2 SS2 SA2 SE SX2 16-bit 32-bit 272 BANI DBANI - Connect NC contact in series by specified bit 5 9 273 BOR DBOR - Connect NO contact in parallel by specified bit 5 9 274 BORI DBORI - Connect ...
Page 158 - Detailed Instruction Explanation; API Mnemonic Operands; OP Range Program
D V P - E S 2 / S A 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 4 2 3.8 Detailed Instruction Explanation API Mnemonic Operands Function 00 CJ P Conditional Jump Controllers ES2/EX2 SS2 SA2 SE SX2 OP Range Program Steps P0~P255 CJ, CJP: 3 steps PULSE 16-b...
Page 163 - API Mnemonic
3 . I n s t r u c t i o n S e t 3 - 4 7 API Mnemonic Function 02 SRET Subroutine Return Controllers ES2/EX2 SS2 SA2 SE SX2 OP Descriptions Program Steps N/A No contact to drive the instruction is required Automatically returns program execution to the address after CALL instruction in O100. SRET: 1 ...
Page 168 - FEND; Controllers; OP Descriptions Program; No contact to drive the instruction is required.; end with the SRET instruction.
D V P - E S 2 / S A 2 / S S 2 / S A 2 / S X 2 / S E O p 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 2 API Mnemonic Function 06 FEND The End of The Main Program (First End) Controllers ES2/EX2 SS2 SA2 SE SX2 OP Descriptions Program Steps N/A No contact to drive the instruction is required...
Page 169 - CJ Instruction Program Flow
3 . I n s t r u c t i o n S e t 3 - 5 3 CJ Instruction Program Flow X1 CA LL P6 3 P0 P6 3 CJ P0 I 30 1 X0 0 The program flowwhen X0=off, X1=off Main program Main program Main program Interrupt subroutine Command CALL subroutine EI DI FEND FEND SRET I RET EN D The program flow when X0=Onprogram jumps...
Page 170 - CALL Instruction Program Flow
D V P - E S 2 / S A 2 / S S 2 / S A 2 / S X 2 / S E O p 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 4 CALL Instruction Program Flow X1 CA LL P6 3 P0 P6 3 CJ P0 I 30 1 X0 0 The program flowwhen X0=off, X1=off Main program Main program Main program Interrupt subroutine Command CALL subrout...
Page 171 - W D T
3 . I n s t r u c t i o n S e t 3 - 5 5 API Mnemonic Function 07 WDT P Watchdog Timer Refresh Controllers ES2/EX2 SS2 SA2 SE SX2 OP Descriptions Program Steps N/A WDT, WDTP: 1 step PULSE 16-bit 32-bit ES2/EX2 SS2 SA2 SE SX2 ES2/EX2 SS2 SA2 SE SX2 ES2/EX2 SS2 SA2 SE SX2 Explanations: 1. WDT instructi...
Page 174 - B will be executed 3 × 4 = 12 times in total.; F O R
D V P - E S 2 / S A 2 / S S 2 / S A 2 / S X 2 / S E O p 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 8 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 execut...
Page 175 - instruction executes to skip the most inner FOR ~ NEXT loop.
3 . I n s t r u c t i o n S e t 3 - 5 9 Program example 3: Users can adopt CJ instruction to skip a specified FOR ~ NEXT loop. When X1 = ON, CJ instruction executes to skip the most inner FOR ~ NEXT loop. X 0 T M R T 0 K 1 0 P 0 F O R K 4 X 1 0 0 X 0 I N C D 0 K 2 X 0 D 1 K 3 X 0 D 2 K 4 X 0 W D T D...
Page 176 - CMP
D V P - E S 2 / S A 2 / S S 2 / S A 2 / S X 2 / S E O p 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 0 API Mnemonic Operands Function 10 D CMP P Compare Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * * * * * * ...
Page 177 - ZCP
3 . I n s t r u c t i o n S e t 3 - 6 1 API Mnemonic Operands Function 11 D ZCP P Zone Compare Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * * * * * * * * * * * S 2 * * * * * * * * * * * S * * * * * * * * * * * D * * * Z...
Page 181 - of the decimal value in D10 start to move to the 3; of D20 remain unchanged after this instruction is executed.
3 . I n s t r u c t i o n S e t 3 - 6 5 Program example 1: 1. When M1168 = OFF (in BCD mode) and X0 = ON, the 4 th (thousand) and 3 rd (hundred) digit of the decimal value in D10 start to move to the 3 rd (hundred) and 2 nd (ten) digit of the decimal value in D20. 10 3 and 10 0 of D20 remain unchang...
Page 182 - without continuous numbers.; Use SMOV instruction to move the 1; digit of D1 to the 3; digit of D2 and combine the values
D V P - E S 2 / S A 2 / S S 2 / S A 2 / S X 2 / S E O p 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 6 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 (...
Page 183 - Symb ol b it
3 . I n s t r u c t i o n S e t 3 - 6 7 API Mnemonic Operands Function 14 D CML P Compliment Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * * * * * * * D * * * * * * * * CML, CMLP: 5 steps DCML, DCMLP: 9 steps PULSE...
Page 184 - BMOV
D V P - E S 2 / S A 2 / S S 2 / S A 2 / S X 2 / S E O p 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 API Mnemonic Operands Function 15 BMOV P Block Move Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * * ...
Page 185 - of; and
3 . I n s t r u c t i o n S e t 3 - 6 9 Program example 2: Assume the bit devices KnX, KnY, KnM and KnS are designated for moving, the number of digits of S and D has to be the same, i.e. their n has to be the same. M1 00 0 K1 M0 K1 Y0 K3 M0 M1 M2 M3 M4 M5 M6 M7 M8 M9 M1 0 n=3 M11 Y0 Y1 Y2 Y3 Y4 Y5 ...
Page 186 - FMOV
D V P - E S 2 / S A 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 7 0 API Mnemonic Operands Function 16 D FMOV P Fill Move Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * *...
Page 188 - B C D
D V P - E S 2 / S A 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 7 2 API Mnemonic Operands Function 18 D BCD P Convert BIN to BCD Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * *...
Page 189 - BCD
3 . I n s t r u c t i o n S e t 3 - 7 3 API Mnemonic Operands Function 19 D BIN P Convert BCD to BIN Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * * * * * D * * * * * * * * BIN, BINP: 5 steps DBIN, DBINP: 9 steps P...
Page 190 - -digit DIP switch in BCD format
D V P - E S 2 / S A 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 7 4 10 1 10 0 10 2 6 4 2 X37 X20 8 8 8 10 3 6 8 Y37 Y20 4-digit DIP switch in BCD format 4-digit BCD value Using BIN instruction to store the BIN value into D100 Using BCD instruction to con...
Page 194 - b1 5 is t he si gn bi t
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 7 8 API Mnemonic Operands Function 22 D MUL P Multiplication Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * * *...
Page 195 - positive/negative status of the operation result.; M U L
3 . I n s t r u c t i o n S e t 3 - 7 9 Program Example: The 16-bit D0 is multiplied by the 16-bit D10 and brings forth a 32-bit product. The higher 16 bits are stored in D21 and the lower 16-bit are stored in D20. ON/OFF of MSB indicates the positive/negative status of the operation result. X 0 M U...
Page 196 - Quotient; D I V
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 8 0 API Mnemonic Operands Function 23 D DIV P Division Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * * * * * *...
Page 199 - WAND; Before
3 . I n s t r u c t i o n S e t 3 - 8 3 API Mnemonic Operands Function 26 WAND P Logical Word AND Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * * * * * * * * * * * S 2 * * * * * * * * * * * D * * * * * * * * WAND, WANDP:...
Page 200 - D A N D
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 8 4 API Mnemonic Operands Function 26 DAND P Logical DWord AND Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * *...
Page 202 - D O R
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 8 6 API Mnemonic Operands Function 27 DOR P Logical DWord OR Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * * *...
Page 204 - D X O R
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 8 8 API Mnemonic Operands Function 28 DXOR P Logical DWord XOR Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * *...
Page 205 - BON
3 . I n s t r u c t i o n S e t 3 - 8 9 API Mnemonic Operands Function 29 D NEG P 2’s Complement (Negation) Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F D * * * * * * * * NEG, NEGP: 3 steps DNEG, DNEGP: 5 steps PULSE 16-bit 3...
Page 206 - Detailed explanations on negative value and its absolute value
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 9 0 X0 CMP D0 D2 M0 M0 SUB D0 D2 D4 M2 SUB D2 D0 D4 M1 Detailed explanations on negative value and its absolute value 1. MSB = 0 indicates the value is positive while MSB = 1 indicates the v...
Page 211 - SFTR
3 . I n s t r u c t i o n S e t 3 - 9 5 API Mnemonic Operands Function 34 SFTR P Bit Shift Right Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * D * * * n 1 * * n 2 * * SFTR, SFTRP: 9 steps PULSE 16-bit 32-bit ES2/EX2 ...
Page 213 - WSFRP
3 . I n s t r u c t i o n S e t 3 - 9 7 API Mnemonic Operands Function 36 WSFR P Word Shift Right Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * * * D * * * * * * n 1 * * n 2 * * WSFR, WSFRP: 9 steps PULSE 16-bit 32...
Page 215 - WSFLP
3 . I n s t r u c t i o n S e t 3 - 9 9 API Mnemonic Operands Function 37 WSFL P Word Shift Left Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * * * D * * * * * * n 1 * * n 2 * * WSFL, WSFLP: 9 steps PULSE 16-bit 32-...
Page 217 - SFRDP
3 . I n s t r u c t i o n S e t 3 - 1 0 1 API Mnemonic Operands Function 39 SFRD P Shift Register Read Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * * D * * * * * * * * n * * SFRD, SFRDP: 7 steps PULSE 16-bit 32-bi...
Page 220 - DE COP
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 0 4 API Mnemonic Operands Function 41 DECO P Decode Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * * * ...
Page 221 - retain their operation.
3 . I n s t r u c t i o n S e t 3 - 1 0 5 Program Example 2: 1. When D is used as a word device, n = 1 ~ 4. Errors will occur if n = 0 or n > 4. 2. When n = 4, the decoded data is 2 4 = 16 bits. 3. When X20 goes from OFF to ON, the data in D10 (b2 to b0) will be decoded and stored in D20 (b7 to b...
Page 222 - ENCOP; all be 0
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 0 6 API Mnemonic Operands Function 42 ENCO P Encode Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * * * ...
Page 223 - When X0 goes from OFF to ON, the 2; EN COP
3 . I n s t r u c t i o n S e t 3 - 1 0 7 Program Example 2: 1. When S is used as a word device, n = 1 ~ 4. Errors will occur if n = 0 or n > 4. 2. When n = 4, the decoded data is 2 4 = 16 bits data. 3. When X0 goes from OFF to ON, the 2 3 bits (b0 ~ b7) in D10 will be encoded and the result will...
Page 226 - MEAN
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 1 0 API Mnemonic Operands Function 45 D MEAN P Mean Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * * * ...
Page 227 - AN S
3 . I n s t r u c t i o n S e t 3 - 1 1 1 API Mnemonic Operands Function 46 ANS Timed Annunciator Set Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * m * D * ANS: 7 steps PULSE 16-bit 32-bit ES2/EX2 SS2 SA2 SE SX2 ES2/EX2 SS...
Page 228 - ANS
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 1 2 API Mnemonic Function 47 ANR P Annunciator Reset Controllers ES2/EX2 SS2 SA2 SE SX2 OP Descriptions Program Steps N/A Instruction driven by contact is necessary. ANR, ANRP: 1 steps PUL...
Page 229 - the product reaches the back position switch X3.
3 . I n s t r u c t i o n S e t 3 - 1 1 3 Y0 ANS T0 K100 S9 12 X2 X4 AN RP M1000 M104 9 Y1 ANS T1 K200 S9 20 X3 X0 Y0 X2 M104 8 Y2 Y0 X1 Y1 X3 Y1 1. M1048 and D1049 are valid only when M1049 = ON. 2. When Y0 = ON for more than 10 sec and the product fails to reach the front position X2, S912 = ON 3....
Page 230 - SQR
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 1 4 API Mnemonic Operands Function 48 D SQR P Square Root Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * D ...
Page 232 - Apply FLT instruction to complete the following operation; Bi na ry f l oa tin g po in t
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 1 6 M1 00 2 RS T M1 08 1 X2 0 FLT D0 D1 2 X2 1 DFLT D0 D2 0 Program Example 2: 1. When M1081 = ON, the source data is converted from floating point value to BIN integer. (Decimal ignored) ...
Page 233 - Save the result of K615
3 . I n s t r u c t i o n S e t 3 - 1 1 7 M1 00 0 FLT D1 0 D1 00 BI N K2 X0 D2 00 FLT D2 00 D2 02 DE DI V K6 15 K1 0 DE DI V D1 00 D2 02 DE MUL D4 00 D3 00 DE BCD D2 0 D3 0 DI NT D2 0 D4 0 D3 00 D4 00 D2 0 1 2 3 4 5 6 7 8 1. Covert D10 (BIN integer) to D101, D100 (floating point). 2. Covert the valu...
Page 234 - RE F
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 1 8 API Mnemonic Operands Function 50 REF P Refresh Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F D * * n * * REF,...
Page 235 - refreshed immediately regardless of the settings of operands
3 . I n s t r u c t i o n S e t 3 - 1 1 9 X0 RE F Y0 K4 Program Example 3: When X0 = ON, I/O points starting from X10 or Y4 will all be refreshed. X0 RE F X10 K8 X0 RE F Y4 K8 或 Program Example 4: For DVP-EX2/SX2 only: When X0 = ON and M1180 = ON, A/D signal in D1110~D1113 will be refreshed immediat...
Page 236 - RE FF
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 2 0 API Mnemonic Operands Function 51 REFF P Refresh and Filter Adjust Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E...
Page 238 - The wiring should be applied with MTR instruction.; Int e rn al re la ys; Re ad i nput s ig nal i n t he 1s t ar ray
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 2 2 M1 00 0 MT R X4 0 Y4 0 M1 0 K2 The figure below illustrates the external wiring of the 2-array matrix input loop constructed by X40 ~ X47 and Y40 ~ Y41. The 16 switches correspond to t...
Page 239 - occupies 8 continuous devices.
3 . I n s t r u c t i o n S e t 3 - 1 2 3 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. Operand D 1 should be a multiple of 10, i.e. 00, 10, 20, which means Y0, Y10… etc. and occupies n continuous devices 3. Op...
Page 241 - C o u nt va lu e
3 . I n s t r u c t i o n S e t 3 - 1 2 5 ¾ 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 interrupt I010 I050 I070 I010 I020 I030 High-speed comparator Set C232~C242 share 6 software comparato...
Page 242 - B x 4
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 2 6 ¾ If DCNT instruction enables C243 as high speed counter (group A) and DHSC/DHSC instruction uses C245 as high speed counter (group A) at the same time, PLC takes C243 as the source co...
Page 243 - Ti me
3 . I n s t r u c t i o n S e t 3 - 1 2 7 ¾ 6 comparators are available for software counters while 8 comparators are available for 2 groups of hardware counters ( 4 comparators for each group) ¾ Output timing of software comparator Æ count value equals to comparative value in both counting up/down ...
Page 249 - error will be detected on the instruction behind.
3 . I n s t r u c t i o n S e t 3 - 1 3 3 DHSZ instruction. Also, when DHSCS uses I070 or I080, comparators B3 and B4 are no longer available for DHSZ instruction. If comparators are used repeatedly, the syntax error will be detected on the instruction behind. ¾ For DVP-SE, if DHSZ instruction uses ...
Page 250 - Timing diagram; Hi g h sp ee d
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 3 4 Timing diagram 2 00 0 2 40 0 Sp ee d v ari ab le t ra nsmi ssi on de vice 0 X1 0 Y1 0 Y11 Y1 2 Hi g h sp ee d L ow spe ed Sto p Pre se nt va lue o f C2 51 0
Page 252 - S P D; D2 : Pre se nt va lu e
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 3 6 Max frequency SA2/SE/SX2: 100kHz SS2: 20kHz 5KHz. X1(X0/X1) of SA2/SE: 30kHz 10KHz 14. D occupies 5 consecutive registers, D + 1 and D store the results of previous pulse detection; D ...
Page 255 - output will start from the first pulse.; Out p ut Y0; M1102 = ON when Y2 pulse output is completed.
3 . I n s t r u c t i o n S e t 3 - 1 3 9 32. There is no limitation on the times of using this instruction, however the program allows only 4 instructions (PLSY, PWM, PLSR) to be executed at the same time. If Y1 is used for several high speed pulse output instructions, PLC will output according to ...
Page 257 - Program Example 1:; before next pulse output operation is triggered. .; delay of approx. 1 scan cycle every 1000 pulses.
3 . I n s t r u c t i o n S e t 3 - 1 4 1 Program Example 1: M1 00 0 EI FEND I 0 01 I RET M1 00 0 DP LSY K1 00 0 K1 00 0 Y2 I 1 01 I RET SET M1 52 4 END DP LSY K1 00 0 K1 00 0 Y0 SET M1 34 7 Explanations: a) Whenever I001 is triggered, Y0 will output 1,000 pulses; whenever I101 is triggered, Y2 will...
Page 259 - not the correct time width.; PWM; If M1116 is ON, the time unit of the pulse output through Y0 and Y2 is 1
3 . I n s t r u c t i o n S e t 3 - 1 4 3 46. When M1113 = ON, the unit of Y2 output pulse is 10 μ s, when M1113 = OFF, the unit is 100 μ s. (It is not applicable to DVP-SE.) 47. When M1113 = ON, the unit of Y2 output pulse is 100 μ s, when M1113 = OFF, the unit is 1ms. (It is only applicable to DVP...
Page 261 - Mode
3 . I n s t r u c t i o n S e t 3 - 1 4 5 API Mnemonic Operands Function 59 D PLSR Pulse Ramp Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * * * * * * * * * * * S 2 * * * * * * * * * * * S 3 * * * * * * * * * * * D * PLSR...
Page 263 - pulse output according to the driven order of these instructions.; PLSR; Explanations on associated flags and registers:
3 . I n s t r u c t i o n S e t 3 - 1 4 7 66. There is no limitation on the times of using this instruction in the program. However, only 4 instructions can be executed at the same scan time. When several pulse output instructions (PLSY, PWM, PLSR) use Y1 as the output device in the same scan cycle,...
Page 264 - Freq ue nc y; X4 ext ernal int err upt; Time
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 4 8 M1156: Enabling the mask and alignment mark function on I400/I401(X4) corresponding to Y0. M1257: Set the ramp up/down of Y0, Y2 to be “S curve.” ON = S curve. M1158: Enabling the mask...
Page 266 - flag M1108 and pulse output will resume.; F r e q u e n c y; process. Mask function setting method on Y2 is the same as Y0.
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 5 0 output will stop after 1,000,000 pulses are completed. When pulse output ramps down and stops after Mark is detected, M1538 will be ON to indicate the pause status. If users need to ...
Page 267 - performed before 50,000 pulses are achieved.
3 . I n s t r u c t i o n S e t 3 - 1 5 1 Explanations: When M0 is triggered, Y0 executes pulse output. When external interrupt is detected on X4 after 50,000 pulses, pulse output will perform ramp down process for 10,000 pulses and then stop. M1108 will be ON. If no interrupt is detected on X4, Y...
Page 268 - IST
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 5 2 API Mnemonic Operands Function 60 IST Initial State Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * D 1 ...
Page 270 - panel; S E T
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 5 4 86. Control panel X35 X36 X37 X20 X21 X22 X23 X24 X25 St e p X3 2 O ne c yc l eop er a t ion X3 3 Con t inu ou sop er a t ion X3 4 M anu al op er a t ion X3 0 Ze r o r e t ur n X31 Pow...
Page 271 - return; Rel ea se b al l s
3 . I n s t r u c t i o n S e t 3 - 1 5 5 89. Zero return mode: a) SFC: S 1 S 1 0 X 3 5 S 11 X 4 S 1 2 X 1 R S T Y 4 R S T Y 1 Y 0 R S T Y 2 Y 3 S E T M 1 0 4 3 R S T S 1 2 Rel ea se b al l s St o p l ow er in g r ob ot a rm Ra i se r ob ot a r m t o t heupp er-l i mit (X4 = ON) Sto p sh i ft i ng t...
Page 276 - SER
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 6 0 API Mnemonic Operands Function 61 D SER P Search a Data Stack Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S ...
Page 277 - ABSD
3 . I n s t r u c t i o n S e t 3 - 1 6 1 API Mnemonic Operands Function 62 D ABSD Absolute Drum Sequencer Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * * * * * * * S 2 * * * D * * * n * * ABSD: 9 steps DABSD: 17 steps P...
Page 280 - When X0 turns from ON; I NCD
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 6 4 122. 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. I NCD D1 00 ...
Page 281 - TTMR
3 . I n s t r u c t i o n S e t 3 - 1 6 5 API Mnemonic Operands Function 64 TTMR Teaching Timer Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F D * n * * TTMR: 5 steps PULSE 16-bit 32-bit ES2/EX2 SS2 SA2 SE SX2 ES2/EX2 SS2 SA2 S...
Page 283 - STMR
3 . I n s t r u c t i o n S e t 3 - 1 6 7 API Mnemonic Operands Function 65 STMR Special Timer Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * m * * D * * * STMR: 7 steps PULSE 16-bit 32-bit ES2/EX2 SS2 SA2 SE SX2 ES2/EX2 SS...
Page 285 - ALTP
3 . I n s t r u c t i o n S e t 3 - 1 6 9 API Mnemonic Operands Function 66 ALT P Alternate State Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F D * * * ALT, ALTP: 3 steps PULSE 16-bit 32-bit ES2/EX2 SS2 SA2 SE SX2 ES2/EX2 SS2 ...
Page 286 - RA MP
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 7 0 API Mnemonic Operands Function 67 D RAMP Ramp variable Value Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1...
Page 287 - n sca ns; S t a rt s i gn al
3 . I n s t r u c t i o n S e t 3 - 1 7 1 If X20 = ON, D1 0 D1 2 D11 D11 D1 2 D1 0 D1 0< D11 D1 0 >D11 n sca ns The sca n ti me s i s st o red i n D 13 n sca ns Points to note: The variation of the content in D12 according to ON/OFF state of M1026 (Ramp mode selection): X2 0 M 10 29 S t a rt s...
Page 290 - d c
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 7 4 K6: When n = 4, transform 8-bit ASCII data (higher 4 bits, lower 4 bits) into HEX data in the following rule: (ASCII value to be transformed includes 0 ~ 9 (0x30~0x39), A ~ F (0x41~0x4...
Page 293 - The combination will be performed in the following rule:
3 . I n s t r u c t i o n S e t 3 - 1 7 7 The combination will be performed in the following rule: ‘A’ ‘B’ ‘C’ ‘D’ Hi-byte Lo -byte ‘a’ ‘b’ ‘c’ Hi-byte Lo -byte 0x00 0x00 S+0 S+1 S+2 S+3 S+4 D+0 D+1 D+2 D+3 ‘a’ ‘b’ ‘c’ Hi-byte Lo -byte ‘A’ D+0 D+1 D+2 D+3 ‘B’ ‘C’ ‘D’ 0x00 D+4 D+5 D+6 D+7 ‘A’ ‘B’ ‘C’...
Page 295 - DTM; Program Example 2: K9
3 . I n s t r u c t i o n S e t 3 - 1 7 9 The conversion will be performed in the following rule: ‘1’ ‘2’ ‘3’ Hi-byte Lo -byte ‘.’ D+0 D+1 D+2 D+3 ‘4’ ‘5’ ‘6’ 0x00 D+4 D+5 D+6 D+7 123.45678 32-bit Flo ating value S+0S+1 n = k6 ‘1’ ‘2’ ‘3’ Hi-byte Lo -byte ‘.’ D+0 D+1 D+2 D+3 ‘4’ ‘5’ ‘6’ 0x00 D+4 D+5...
Page 297 - SORT
3 . I n s t r u c t i o n S e t 3 - 1 8 1 API Mnemonic Operands Function 69 D SORT Data sort Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * m 1 * * m 2 * * D * n * * * SORT: 11 steps DSORT: 21 steps PULSE 16-bit 32-bit ES2/...
Page 298 - Example table of data sort
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 8 2 Example table of data sort Columns of data: m 2 Data Column 1 2 3 4 5 Column Row Students No. English Math. Physics Chemistry 1 ( D0 ) 1 ( D5 ) 90 ( D10 ) 75 ( D15 ) 66 ( D20 ) 79 2 ( ...
Page 299 - TKY; ELC
3 . I n s t r u c t i o n S e t 3 - 1 8 3 API Mnemonic Operands Function 70 D TKY Ten key input Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * D 1 * * * * * * * * D 2 * * * TKY: 7 steps DTKY: 13 steps PULSE 16-bit 32-...
Page 300 - highest digit performs overflow.
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 8 4 0 1 2 3 4 5 6 7 8 9 D0 10 3 10 2 10 1 10 0 nu mb er k ey BCD va lu e 1- di gi t BCD co de BI N val ue ov erf l ow BC D va lu e 160. As shown in the timing diagram below, four keys conn...
Page 301 - HK Y
3 . I n s t r u c t i o n S e t 3 - 1 8 5 API Mnemonic Operands Function 71 D HKY Hexadecimal key input Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * D 1 * D 2 * * * * * D 3 * * * HKY: 9 steps DHKY: 17 steps PULSE 16-bit 3...
Page 303 - read incorrectly. In this case we suggest the following solutions:
3 . I n s t r u c t i o n S e t 3 - 1 8 7 174. External wiring: Y23 Y22 Y21 Y20 C X23 X22 X21 X20 S/S C D E F 8 9 A B 4 5 6 7 0 1 2 3 PL C(Tr an sis to r o ut p ut ) +2 4V 24 G Points to note: 175. When HKY instruction is executed, 8 scan cycles (matrix scan) are required for reading the input value...
Page 304 - DS W
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 8 8 API Mnemonic Operands Function 72 DSW DIP Switch Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * D 1 * D 2 *...
Page 305 - Wiring diagram of DIP switch:; P L C; until the current scan cycle of output terminals is completed..
3 . I n s t r u c t i o n S e t 3 - 1 8 9 182. 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: S/ S X20 X 21 X22 X23 X24 X25 X26 X27 Y23 Y22 Y21 Y20 C 1 ...
Page 306 - SEGD
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 9 0 API Mnemonic Operands Function 73 SEGD P 7-segment decoder Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * *...
Page 307 - SEGL
3 . I n s t r u c t i o n S e t 3 - 1 9 1 API Mnemonic Operands Function 74 SEGL 7-segment with Latch Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * * * * * * * D * n * * SEGL: 7 steps PULSE 16-bit 32-bit ES2/EX2 SS...
Page 309 - On; VCC; BCD value
3 . I n s t r u c t i o n S e t 3 - 1 9 3 On P L C VCC Y Pull-up resistor Signal output Drive Y 199. Positive logic (negative polarity) output of BCD code BCD value Y output (BCD code) Signal output b 3 b 2 b 1 b 0 8 4 2 1 A B C D 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 1 0 0 0 1 1 1 1 0 0 0 1 0 0 0 1 0 1 1 0...
Page 310 - designated by the setting of
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 9 4 ’ + ’: Positive logic (Negative polarity) output ‘ - ’: Negative logic (Positive polarity) output 203. The polarity of PLC transistor output and the polarity of the 7-segment display i...
Page 314 - PR
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 9 8 API Mnemonic Operands Function 77 PR Print (ASCII Code Output) Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S...
Page 315 - A B C D; after will not be processed.; X2 0: d ri ve sig na l
3 . I n s t r u c t i o n S e t 3 - 1 9 9 T T T A B C D H X2 0 s ta rt si gn al Y2 0~Y27 d at a Y3 0 sca n signa l Y3 1 bei ng exe cu te d T : s can tim e(ms) Program Example 2: 1. PR instruction supports ASCII data output of 8-bit data string when M1027 = OFF. When M1027 = ON, the PR instruction is...
Page 316 - FROM
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 0 0 API Mnemonic Operands Function 78 D FROM P Read CR data from Special Modules Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM K...
Page 317 - DTO
3 . I n s t r u c t i o n S e t 3 - 2 0 1 API Mnemonic Operands Function 79 D TO P Write CR data into Special Modules Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F m 1 * * * m 2 * * * S * * * n * * * TO, TOP: 9 steps DTO, DTOP...
Page 318 - Speci fie d de vice
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 0 2 CR # 10 CR # 9 Up pe r 1 6-b i t Lo we r 1 6-b i t Sp eci f ie d CR nu mbe r 4. n : Number of data to be written at a time. n = 2 in 16-bit instruction has the same operation results a...
Page 320 - byte will be ignored and low byte will be received and transmitted.
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 0 4 3. When data receiving is completed, M1123 will automatically be ON. When data processing on the received data is completed, M1123 has to be reset (OFF) and the PLC will be ready for c...
Page 321 - therefore, care should be taken on the setting of operand; STX; therefore, care should be taken on the setting of operand
3 . I n s t r u c t i o n S e t 3 - 2 0 5 Receiving data: (External equipment -> PLC) D1 20 L D1 22 L D1 23 L D1 24 L D1 25 L D1 26 L D1 21 L Registers for received data, starting from the lower 8 bitsof D120 length = 7 STX ETX1 ETX2 3. The STX and ETX of external equipments will be received by P...
Page 325 - instruction API 102 FWD instruction through COM2/COM3 on PLC.
3 . I n s t r u c t i o n S e t 3 - 2 0 9 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. Program Example 5: COM1 RS-232 1. Only 8-bit mode is supported. Communication format and speed are specified...
Page 327 - Registers for r; Flag
3 . I n s t r u c t i o n S e t 3 - 2 11 Sending data: (PLC → External equipment) D1 00 L D1 01 L D1 02 L D1 03 L Source data register, starting fromlower 8 bits of D100 Length = 4 Receving data: (External equipment → PLC) D1 20 L D1 22 L D1 23L D1 24L D1 25 L D126 L D1 21 L Registers for r starting...
Page 331 - Special register
3 . I n s t r u c t i o n S e t 3 - 2 1 5 Special register Function D1070~D1085 Feedback data (ASCII) of Modbus communication. When PLC’s RS-485 communication instruction receives feedback signals, the data will be saved in the registers D1070~D1085 and then converted into Hex in other registers. RS...
Page 335 - Function Description
3 . I n s t r u c t i o n S e t 3 - 2 1 9 COM1 COM2 COM3 Function Description - M1141 - MODRD/MODWR/MODRW parameter error (Exception Code exists in received data) Exception Code is stored in D1130 - M1142 - Data receiving error of VFD-A handy instructions (FWD/REV/STOP/RDST/RSTEF) - D1130 - COM2 (RS...
Page 336 - Value
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 2 0 6. When RS instruction is applied for communication between PLC and peripheral devices on COM2 RS-485, usually STX (Start of the text) and ETX (End of the text) have to be set into com...
Page 339 - Field Name
3 . I n s t r u c t i o n S e t 3 - 2 2 3 Field Name Descriptions Address Communication address: n 8-bit binary Function Function code: n 8-bit binary DATA (n-1) ……. DATA 0 Data: n × 8-bit data CRC CHK Low CRC CHK High CRC checksum: 16-bit CRC consists of 2 8-bit binary data END Refer to the followi...
Page 342 - No change; PRUN; These two devices will not be transmitted
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 2 6 API Mnemonic Operands Function 81 D PRUN P Parallel Run Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * D ...
Page 343 - ASCI
3 . I n s t r u c t i o n S e t 3 - 2 2 7 API Mnemonic Operands Function 82 ASCI P Convert Hex to ASCII Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * * * * * D * * * * * * n * * ASCI, ASCIP: 7 steps PULSE 16-bit 32...
Page 346 - No
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 3 0 4. When n is 2, the bit structure will be as: 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 2 3 D1 0=0 12 3 H 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 1 1 0 0 1 3 3 3 2 1 0 0 0 1 0 0 0 0 ASCI I cod e...
Page 347 - “4” “B” “A” “9” “8” “F” “E” “D”
3 . I n s t r u c t i o n S e t 3 - 2 3 1 n D K9 K10 K11 K12 K13 K14 K15 K16 D20 “B” “A” “9” “8” “F” “E” “D” “C” D21 “4” “B” “A” “9” “8” “F” “E” “D” D22 “5” “4” “B” “A” “9” “8” “F” “E” D23 “6” “5” “4” “B” “A” “9” “8” “F” D24 “7” “6” “5” “4” “B” “A” “9” “8” D25 “0” “7” “6” “5” “4” “B” “A” “9” D26 “1”...
Page 348 - HE X
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 3 2 PULSE 16-bit 32-bit ES2/EX2 SS2 SA2 SE SX2 ES2/EX2 SS2 SA2 SE SX2 ES2/EX2 SS2 SA2 SE SX2 Operands: S : Source device D : Destination device n : number of bytes to be converted ( n = 1~...
Page 349 - 4H D
3 . I n s t r u c t i o n S e t 3 - 2 3 3 4. When n = 4, the bit structure will be as: 0 1 0 0 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 0 0 0 1 0 0 1 1 1 1 0 1 1 1 1 0 1 1 1 C D E F D 1 0 D 2 0 D 2 1 4 4H D 4 6H F 4 3H C 4 5H E 5. When n = 1 ~ 16: D n D13 D12 D11 D10 1 ***C H 2 **CD H 3 *CD...
Page 351 - CCD; Parity
3 . I n s t r u c t i o n S e t 3 - 2 3 5 API Mnemonic Operands Function 84 CCD P Check Code Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * * * D * * * * * n * * * CCD, CCDP: 7 steps PULSE 16-bit 32-bit ES2/EX2 SS2 ...
Page 352 - checksum is stored in D100 while the parity bits are stored in D101.; P arity
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 3 6 Program Example 2: 1. M1161 = ON, 8-bit conversion. 2. When X0 = ON, 6 bytes from low byte of D0 to low byte of D5 will be summed up, and the checksum is stored in D100 while the parit...
Page 354 - VRS C; VR SC
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 3 8 API Mnemonic Operands Function 86 VRSC P Volume Scale Read Controllers ES2EX2 SS2 SA2 SX2 SE Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * ...
Page 355 - ABS
3 . I n s t r u c t i o n S e t 3 - 2 3 9 API Mnemonic Operands Function 87 D ABS P Absolute Value Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F D * * * * * * * * ABS, ABSP: 3 steps DABS, DABSP: 5 steps PULSE 16-bit 32-bit ES2...
Page 356 - PID; Sca n cycl e
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 4 0 API Mnemonic Operands Function 88 D PID PID control Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * S 2 * ...
Page 362 - MV; PV; P I D; op er at i on is wi t hi n do t te d are a
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 4 6 y PID equation for control mode k0~k2: ( ) ( ) ( ) S t PV K S t E K t E K MV D I P * 1 * * + + = where MV : Output value P K : Proprotional gain ( ) t E : Error value PV (t) : Present ...
Page 363 - Application 3; P I D o p e r a t io n i s w i t h i n d o t t e d a r e a; dt
3 . I n s t r u c t i o n S e t 3 - 2 4 7 2. When control mode ( S 3 +4) is selected as K3 and K4: y The equation is exclusively for temperature control will be modified as: ( ) ( ) ( ) ⎥ ⎦ ⎤ ⎢ ⎣ ⎡ + ⎟ ⎠ ⎞ ⎜ ⎝ ⎛ + = S t E K S t E K t E K MV D I P * 1 1 1 , where ( ) ( ) ( ) t PV - t SV t E = y Contr...
Page 364 - Notes and suggestion:
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 4 8 Where ( ) ( ) ( ) t PV - t SV t E = y Control diagram: G ( s ) S 1 /S 1 /T I T D + + + P I D o p e r a t io n i s w i t h i n d o t t e d a r e a P + K Notes and suggestion: 1. S 3 + 3...
Page 367 - Example program of SV ramp up function:
3 . I n s t r u c t i o n S e t 3 - 2 5 1 P I D M V D 5 SV PV D 1 D 111 0 0 5 11 0 5 11 0 V 1 0 V 0 rp m rp m 3 0 0 0 D 111 6 0 2 5 5 0 V 5 V Wave A Wave B pressure meter PressureSV (D0) Set value ramp up MV converted to speed Voltage converted to SV Speed converted to voltage AC motor drive 28 0 0 ...
Page 368 - Application 1; into this control. See the control diagram below.; Part of the example program:
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 5 2 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...
Page 369 - Using auto-tuning for temperature control
3 . I n s t r u c t i o n S e t 3 - 2 5 3 Application 3: Using auto-tuning for temperature control Control purpose: Calculating optimal parameter of PID instruction for temperature control Control properties: Users may not be familiar with a new temperature environment. In this case, selecting auto-...
Page 370 - Results of initial auto-tuning
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 5 4 Results of initial auto-tuning A ut o t u ni ng a reaS 3 +4 = k3 PID contr ol are aS 3 +4 = k4 A ut o t u ni ng a reaS 3 +4 = k3 PID contr ol are aS 3 +4 = k4 Results of using adjusted...
Page 371 - 0°C to 100°C and obtain the result below.
3 . I n s t r u c t i o n S e t 3 - 2 5 5 From the figure above, we can see that the temperature control after auto-tuning is working fine and it spent only approximately 20 minutes for the control. Next, we modify the target temperature from 80°C to 100°C and obtain the result below. From the resul...
Page 372 - PLS
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 5 6 API Mnemonic Operands Function 89 PLS Rising-edge output Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * P...
Page 383 - PL F
3 . I n s t r u c t i o n S e t 3 - 2 6 7 API Mnemonic Operands Function 99 PLF Falling-edge output Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * PLF: 3 steps PULSE 16-bit 32-bit ES2/EX2 SS2 SA2 SE SX2 ES2/EX2 SS2 SA2 SE...
Page 385 - PLC; Register; Starting data address
3 . I n s t r u c t i o n S e t 3 - 2 6 9 Program Example 1: Communication between PLC and VFD-B series AC motor drives (ASCII Mode, M1143 = OFF) MOV D112 0 H8 7 M1 002 SET M11 20 M11 27 Receivingcompleted Set communication protocol as 9600, 8, E, 1 Retain communication protocol Set receiving time-o...
Page 393 - occurs
3 . I n s t r u c t i o n S e t 3 - 2 7 7 Program Example 3: 1. In the communication between PLC and VFD-B series AC motor drive (ASCII Mode, M1143 = OFF), executes Retry when communication time-out, data receiving error or parameter error occurs 2. When X0 = ON, PLC will write data H1770 (K6000) in...
Page 395 - be enabled in advance for obtaining correct operation.; Retain communication protocol
3 . I n s t r u c t i o n S e t 3 - 2 7 9 5. If rising-edge (LDP, ANDP, ORP) or falling-edge (LDF, ANDF, ORF) contacts are used before FWD, REV, STOP instructions, sending request flags M1122 (COM2) / M1316 (COM3) has to be enabled in advance for obtaining correct operation. 6. For detailed informat...
Page 397 - Data
3 . I n s t r u c t i o n S e t 3 - 2 8 1 In STOP instruction: operand n is reserved. d) When Forward JOG is selected in FWR instruction, set value in S 2 is invalid. If users need to modify the JOG frequency, please refer to manuals of specific VFDs. Program Example: COM2 (RS-485) Communication bet...
Page 404 - Data address
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 8 8 M1 00 2 MOV H8 6 D112 0 SET M11 20 MOV K1 00 D112 9 RS T M11 27 M11 27 X0 RS TEF K1 K0 SET M11 22 M11 29 X0 Processing received data Receiving completed Communication instruction setti...
Page 407 - Register Data
3 . I n s t r u c t i o n S e t 3 - 2 9 1 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 address H0708 on VFD. MOV D112 0 H8 6 M1 00 2 SET M1...
Page 410 - CRC
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 9 4 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. M1 00 2 MOV H8 ...
Page 411 - DE CMP
3 . I n s t r u c t i o n S e t 3 - 2 9 5 API Mnemonic Operands Function 110 D ECMP P Floating point compare Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * * * S 2 * * * D * * * DECMP, DECMPP: 13 steps PULSE 16-bit 32-bit...
Page 412 - DE ZCP
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 9 6 API Mnemonic Operands Function 111 D EZCP P Floating point zone compare Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T ...
Page 414 - DRAD
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 9 8 API Mnemonic Operands Function 116 D RAD P Degree Radian Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * *...
Page 415 - DD EG; binary floating point
3 . I n s t r u c t i o n S e t 3 - 2 9 9 API Mnemonic Operands Function 117 D DEG P Radian Degree Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * D * DDEG, DDEGP: 9 steps PULSE 16-bit 32-bit ES2/EX2 SS2 SA2 SE SX2 ES2/E...
Page 427 - DE SQR
3 . I n s t r u c t i o n S e t 3 - 3 11 API Mnemonic Operands Function 127 D ESQR P Floating point square root Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * D * DESQR, DESQRP: 9 steps PULSE 16-bit 32-bit ES2/EX2 SS2 S...
Page 430 - I NT
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 1 4 API Mnemonic Operands Function 129 D INT P Float to integer Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * ...
Page 432 - value for further sine operation.; Bi nary f l oat in g point; b in ary f lo at i ng poi nt; degree
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 1 6 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. D 1 0 F LT M1 000 D 1 4 K 3 1 4 1 5 9...
Page 433 - COS val ue
3 . I n s t r u c t i o n S e t 3 - 3 1 7 API Mnemonic Operands Function 131 D COS P Cosine Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * D * DCOS, DCOSP: 9 steps PULSE 16-bit 32-bit ES2/EX2 SS2 SA2 SE SX2 ES2/EX2 SS2 ...
Page 434 - Degree value
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 1 8 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 (D...
Page 437 - D A S I N
3 . I n s t r u c t i o n S e t 3 - 3 2 1 API Mnemonic Operands Function 133 D ASIN P Arc Sine Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * D * DASIN, DASINP: 9 steps PULSE 16-bit 32-bit ES2/EX2 SS2 SA2 SE SX2 ES2/EX2...
Page 439 - D A C O S
3 . I n s t r u c t i o n S e t 3 - 3 2 3 API Mnemonic Operands Function 134 D ACOS P Arc Cosine Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * D * DACOS, DACOSP: 9 steps PULSE 16-bit 32-bit ES2/EX2 SS2 SA2 SE SX2 ES2/E...
Page 441 - D ATA N; ATAN v al ue
3 . I n s t r u c t i o n S e t 3 - 3 2 5 API Mnemonic Operands Function 135 D ATAN P Arc Tangent Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * D * DATAN, DATANP: 9 steps PULSE 16-bit 32-bit ES2/EX2 SS2 SA2 SE SX2 ES2/...
Page 443 - GPWM
3 . I n s t r u c t i o n S e t 3 - 3 2 7 API Mnemonic Operands Function 144 GPWM General PWM output Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * S 2 * D * * * GPWM: 7 steps PULSE 16-bit 32-bit ES2/EX2 SS2 SA2 SE SX2 ES...
Page 444 - S WA P P; H i g h B y te
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 2 8 API Mnemonic Operands Function 147 D SWAP P Byte swap Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * ...
Page 445 - MEMR
3 . I n s t r u c t i o n S e t 3 - 3 2 9 API Mnemonic Operands Function 148 MEMR P Reading the data from the file register Controllers ES2/ EX2 SS2 SA2 SX2 SE Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F m * * * D * n * * * 7 steps The 32-bit instruction and ...
Page 449 - and converted into; Registers for data to be sent (sending messages)
3 . I n s t r u c t i o n S e t 3 - 3 3 3 3. In ASCII or RTU mode, when PLC’s COM2 sends out data, the data will be stored in D1256~D1295. The feedback data will be stored in registers starting with S and converted into D1296~D1311 in Hex automatically. 4. Take the connection between PLC1 (PLC COM2)...
Page 454 - Data Address
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 3 8 3. Take the connection between PLC (PLC COM2) and VFD-B for example, the tables below explains the status when PLC reads status of VFD-B. (M1143 = OFF, ASCII Mode) (M1143 = ON, RTU Mod...
Page 458 - Se t co mmu n ica ti o n ti me o u t as 1 0 0m s; RTU m o de : Th e r e ce iv ed d at a is st o re d in r eg is te r s st a rt ing f ro m D 0
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 4 2 H 8 7 M OV M 10 02 D 110 9 SE T M 11 36 K1 00 M OV D 1 25 2 M OD R W K 3 K 1 X0 H 2 10 0 D 0 K 6 Connecti on device address: K1 Function code: Read multiple words K3 Data address: H 2 ...
Page 460 - High byte to be force ON/OFF
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 4 4 H 8 7 M OV M 10 02 D 112 0 SE T M 11 20 K1 00 M OV D 112 9 R S T M 11 27 M OD R W K 5 K1 X 0 H 0 50 0 D 0 K 1 Function Code K5 : Force ON/OFF bit device Reserved Force ON status (Set F...
Page 466 - M1314: receiving completed flag
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 5 0 5. M1316 → M1312: sending request 6. M1318 → M1314: receiving completed flag H 8 7 M OV M 10 02 D 110 9 S ET M 11 36 K1 00 M OV D 1 25 2 M OD R W K 6 K1 X 0 H 2 00 0 D 5 0 K1 Connectio...
Page 471 - PLC COM2 ASCII mode, only 8 words can be written.; data
3 . I n s t r u c t i o n S e t 3 - 3 5 5 Program Example 11: COM2 (RS-485), Function Code H10 1. Function code K16 (H10): Write in multiple Word devices. Up to 16 Words can be written. For PLC COM2 ASCII mode, only 8 words can be written. 2. For ASCII or RTU mode, PLC COM2 stores the data to be sen...
Page 475 - RA ND
3 . I n s t r u c t i o n S e t 3 - 3 5 9 API Mnemonic Operands Function 154 D RAND P Random number Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * * * * * * * * * * * S 2 * * * * * * * * * * * D * * * * * * * * RAND, RAND...
Page 476 - SERVO AMP
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 6 0 API Mnemonic Operands Function 155 D ABSR Absolute position read Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F...
Page 477 - will also turn OFF and the operation will be disabled.
3 . I n s t r u c t i o n S e t 3 - 3 6 1 6. Please use NO contact as the drive contact of DABSR instruction. If the drive contact is OFF during the execution of DABSR, the instruction will be stopped and errors will occur on read data. 7. If the drive contact of DABSR instruction turns OFF after th...
Page 478 - to API 159 DRVA instruction.; CR
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 6 2 4. When DABSR instruciton executes, servo ON (SON) and ABS data transmission mode are driven for output. 5. By “transmission ready” and “ABS request” signals, users can confirm the tra...
Page 483 - DZRN
3 . I n s t r u c t i o n S e t 3 - 3 6 7 State 5: Current position at right side of zero point, D1312=-2, M1308=Off, M1346=On. Ta rg et speed Time Freq. X4 Start Meet DOG Left DOG On Off Jog spe ed On Off M1029 Y4 Off On X2 2 nd Z p hase in Ta rg et speed Time Freq. X4 Start Meet DOG Left DOG On Of...
Page 487 - in API 59 PLSR instruction.; DDRVI; Operation of relative positioning:; R am p up t im e; Registers for setting ramp up/down time and start/end frequency:; Pu lse o ut put fre qu en cy
3 . I n s t r u c t i o n S e t 3 - 3 7 1 11. Ramp-down time of CH0 and CH1 can be particularly modified by using (M1534, D1348) and (M1535, D1349). When M1534 / M1535 = ON, CH0 / CH1 ramp-down time is specified by D1348 / D1349. 12. If M1078 / M1104 = ON during instruction execution, Y0 / Y2 will p...
Page 491 - CH1 set in; DRVA; Operation of absolute positioning:; Ze r o p oin t
3 . I n s t r u c t i o n S e t 3 - 3 7 5 10. M1305 and M1306 can change the output direction of CH0 / CH1 set in D 2 . When S is “-“, D 2 will be ON, however, if M1305/M1306 is set ON before instruction executes, D 2 will be OFF during execution of instruction.. 11. Ramp-down time of CH0 and CH1 ca...
Page 492 - Pu lse o utpu t fre qu en cy; Points to note
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 7 6 2. Registers for setting ramp up/down time and start/end frequency: z Output Y0: Def au lt : 1 00ms Y0 (D1 34 3) Y0(D1 34 0) Y0 (D134 0) M in : 6Hz Mi n: 6 Hz Y0(D134 3) Ra mp- upsl op...
Page 493 - TCMP
3 . I n s t r u c t i o n S e t 3 - 3 7 7 API Mnemonic Operands Function 160 TCMP P Time compare Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * * * * * * * * * * * S 2 * * * * * * * * * * * S 3 * * * * * * * * * * * S * *...
Page 495 - TADD
3 . I n s t r u c t i o n S e t 3 - 3 7 9 API Mnemonic Operands Function 162 TADD P Time addition Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * * * S 2 * * * D * * * TADD, TADDP: 7 steps PULSE 16-bit 32-bit ES2/EX2 SS2 S...
Page 496 - TSUB
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 8 0 API Mnemonic Operands Function 163 TSUB P Time subtraction Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 *...
Page 498 - TRD
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 8 2 API Mnemonic Operands Function 166 TRD P Time read Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F D * * * TRD, ...
Page 500 - TWRP
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 8 4 API Mnemonic Operands Function 167 TWR P Time write Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * TWR,...
Page 502 - MVM
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 8 6 API Mnemonic Operands Function 168 D MVM P Transfer Designated Bits Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D ...
Page 503 - HOUR
3 . I n s t r u c t i o n S e t 3 - 3 8 7 API Mnemonic Operands Function 169 D HOUR Hour meter Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * * * * * * * D 1 * D 2 * * * HOUR: 7 steps DHOUR: 13 steps PULSE 16-bit 32...
Page 505 - GRY
3 . I n s t r u c t i o n S e t 3 - 3 8 9 API Mnemonic Operands Function 170 D GRY P BIN → Gray Code Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * * * * * * * D * * * * * * * * GRY, GRYP: 5 steps DGRY, DGRYP: 9 ste...
Page 506 - GBIN
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 O p 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 9 0 API Mnemonic Operands Function 171 D GBIN P Gray Code → BIN Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * ...
Page 507 - D A D D R
3 . I n s t r u c t i o n S e t 3 - 3 9 1 API Mnemonic Operands Function 172 D ADDR P Floating point addition Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * S 2 * D * DADDR, DADDRP: 13 steps PULSE 16-bit 32-bit ES2/EX2 SS...
Page 508 - DADDR
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 O p 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 9 2 X0 DADDR D0 D2 D1 0
Page 509 - D S U B R
3 . I n s t r u c t i o n S e t 3 - 3 9 3 API Mnemonic Operands Function 173 D SUBR P Floating point subtraction Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * S 2 * D * DSUBR: 13 steps PULSE 16-bit 32-bit ES2/EX2 SS2 SA2...
Page 510 - DSU BR
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 O p 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 9 4 X0 DSU BR D0 D2 D1 0
Page 511 - D M U L R
3 . I n s t r u c t i o n S e t 3 - 3 9 5 API Mnemonic Operands Function 174 D MULR P Floating point multiplication Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * S 2 * D * DMULR, DMULRP: 13 steps PULSE 16-bit 32-bit ES2/...
Page 512 - DMU LR
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 O p 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 9 6 X1 D0 D1 0 D2 0 DMU LR
Page 513 - D D I V R; DDI VR
3 . I n s t r u c t i o n S e t 3 - 3 9 7 API Mnemonic Operands Function 175 D DIVR P Floating point division Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * S 2 * D * DDIVR: 13 steps PULSE 16-bit 32-bit ES2/EX2 SS2 SA2 SE...
Page 514 - MMOV
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 O p 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 9 8 API Mnemonic Operands Function 176 MMOV P 16-bit → 32-bit Conversion Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S...
Page 516 - GPS data valid / invalid
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 O p 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 - 4 0 0 No. Content Range Format Note D + 2 Second 0 ~ 59 Word D + 3~4 Latitude 0 ~ 90 Float Unit: dd.mmmmmm D + 5 North / South 0 or 1 Word 0(+) Æ North, 1(-) Æ South D + 6~7 Longitude 0 ~ 180 Floa...
Page 521 - DS PA
3 . I n s t r u c t i o n S e t 3 - 4 0 5 Program example: 1. Input parameters starting from D4000: 2009/3/23/(y/m/d),10:10:30, Δ t = 0, Local time zone = +8, Longitude/Latitude = +119.192345 East, +24.593456 North, Elevation = 132.2M, Pressure = 820m, MAT = 15.0 ℃ , Slope = 0 degree, Azimuth = -10 ...
Page 522 - W S U M
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 O p 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 - 4 0 6 API Mnemonic Operands Function 179 D WSUM P Sum of multiple devices Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S ...
Page 523 - MAND
3 . I n s t r u c t i o n S e t 3 - 4 0 7 API Mnemonic Operands Function 180 MAND P Matrix AND Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * * * * * * * S 2 * * * * * * * D * * * * * * n * * * MAND, MANDP: 9 steps PULSE ...
Page 524 - Left; Fill “0” into the blank in R0(C
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 O p 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 - 4 0 8 Points to note: 1. A matrix consists of more than 1 consecutive 16-bit registers. The number of registers is indicated as the matrix length (n). A matrix contains 16 × n bits (points) and th...
Page 525 - MOR
3 . I n s t r u c t i o n S e t 3 - 4 0 9 API Mnemonic Operands Function 181 MOR P Matrix OR Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * * * * * * * S 2 * * * * * * * D * * * * * * n * * * MOR, MORP: 9 steps PULSE 16-b...
Page 526 - MXOR
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 O p 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 - 4 1 0 API Mnemonic Operands Function 182 MXOR P Matrix XOR Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * * * * * * *...
Page 527 - MXNR; MXN R
3 . I n s t r u c t i o n S e t 3 - 4 11 API Mnemonic Operands Function 183 MXNR P Matrix XNR Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * * * * * * * S 2 * * * * * * * D * * * * * * n * * * MXNR, MXNRP: 9 steps PULSE 1...
Page 528 - MI NV; MINV
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 O p 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 - 4 1 2 API Mnemonic Operands Function 184 MINV P Matrix inverse Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * *...
Page 530 - MCM PP; MCMP; Associated flags and registers:
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 O p 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 - 4 1 4 o D20 = 45, M1091 = ON, M1089 = OFF. p D20 = 47, M1091 = OFF, M1089 = ON (comparison proceeds to he last bit) q D20 = 1, M1091 = ON, = OFF. X0 MCM PP D0 D1 0 D20 K3 b0 1 0 1 1 0 0 0 1 0 0 0 ...
Page 531 - MBRDP
3 . I n s t r u c t i o n S e t 3 - 4 1 5 API Mnemonic Operands Function 186 MBRD P Matrix bit read Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * * * n * * * D * * * * * * * * MBRD, MBRDP: 7 steps PULSE 16-bit 32-b...
Page 533 - MBWRP
3 . I n s t r u c t i o n S e t 3 - 4 1 7 API Mnemonic Operands Function 187 MBWR P Matrix bit write Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * * * n * * * D * * * * * * * * MBWR, MBWRP: 7 steps PULSE 16-bit 32-...
Page 537 - MBRP
3 . I n s t r u c t i o n S e t 3 - 4 2 1 API Mnemonic Operands Function 189 MBR P Matrix bit rotate Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * * * D * * * * * * n * * * MBR, MBRP: 7 steps PULSE 16-bit 32-bit ES...
Page 538 - MBR P; Before execution
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 O p 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 - 4 2 2 Before execution After rotation to the left 1 B0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 0 b 15 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 1 0 1 0 1 0 ...
Page 539 - MBC
3 . I n s t r u c t i o n S e t 3 - 4 2 3 API Mnemonic Operands Function 190 MBC P Matrix bit status count Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * * * n * * * D * * * * * * * * MBC, MBCP: 7 steps PULSE 16-bit...
Page 541 - not higher than 3kHz.
3 . I n s t r u c t i o n S e t 3 - 4 2 5 8. For pulse output with ramp-up/down section, if only 1 axis is specified with pulse output number, i.e. another axis is 0, the pulse output will only be performed on the axis with output pulse number. However, if the output pulse number is less than 20 in ...
Page 545 - Fi g u re 1; ts; Fi g u re 2
3 . I n s t r u c t i o n S e t 3 - 4 2 9 API Mnemonic Operands Function 193 D CIMR 2-Axis Relative Position Arc Interpolation Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * * * S 2 * * * S * D * DCIMR: 17 steps PULSE 16-...
Page 547 - that the arc has to be a 90
3 . I n s t r u c t i o n S e t 3 - 4 3 1 that the arc has to be a 90 ° arc, i.e. the numbers of output pulses in X and Y axes can be different. 13. There are no settings of start frequency and ramp-up/down time. 14. There is no limitation on the number of times for using the instruction. However, a...
Page 549 - Description of associated flags and registers:
3 . I n s t r u c t i o n S e t 3 - 4 3 3 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. The operation pattern repeats un...
Page 551 - b) Select “draw clockwise arc” and default “motion time” (
3 . I n s t r u c t i o n S e t 3 - 4 3 5 above). Place them in the 32-bit registers (D200, D202), (D204, D206), (D208, D210), (D212, D214). b) Select “draw clockwise arc” and default “motion time” ( S = D100 = K0) c) RUN the PLC. Set ON M0 to start the drawing of the ellipse. D2 14 M1 02 9 DCI MA Y...
Page 556 - instruction for details.; Close Loop Explanations:; feedback pulses or external interruption signals.
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 O p 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 - 4 4 0 4. D can only designate Y0 (Direction signal output: Y1) or Y2 (Direction signal output: Y3). The direction signal output will be OFF only when the drive contact of the instruction is OFF, i...
Page 557 - Fr e que nc y; Principles for adjusting the completion time of positioning:
3 . I n s t r u c t i o n S e t 3 - 4 4 1 Fr e que nc y Tim ePul se N um be r H ig h s pe ed co un ter re ce i v es t a rg et nu mb er o f f e ed bac ks or Ex t er na l int e r r upt oc cu r s Tar ge t f r eq ue nc y St a r t / en d fr eq ue nc y Ra m p - u p ti m e Hi g h sp ee d t im e Ra m p- d o...
Page 558 - Immediate stop high-speed pulse output by high speed counter
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 O p 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 - 4 4 2 MOV MOV MOV K1 00 K1 00 K1 00 D0 M1 00 2 D113 1 D1 34 3 D1 34 8 SET DMOV K0 D1 03 0 EI F END I RET END DCLL M X4 K5 00 00 K1 00 00 0 Y0 I NC M1 53 4 M0 M1 00 0 I 40 1 MOV K1 00 D1 34 0 MOV K...
Page 559 - Assume the first execution results are as below:; Observe the results of the first execution:
3 . I n s t r u c t i o n S e t 3 - 4 4 3 MOV MOV MOV K1 00 K6 00 D0 M1 00 2 D113 1 D1348 SET DMOV K0 D1030 EI FEND I RET END DC LL M C2 43 K5 00 00 K1 00 00 0 Y0 I NC M153 4 M0 M1 00 0 I01 0 K2 00 D1340 MOV D1 34 3 MOV K3 00 D1 34 3 DMOV K0 C243 DC NT C2 43 K9 99 9 DH SCS C2 43 K5 00 00 I 01 0 2. A...
Page 560 - S p e ci f i e d n u m b er o f o u t p ut pu l s es : 5 0 ,5 0 0; Observe the results of the second execution:
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 O p 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 - 4 4 4 10 0KHz D 13 40 D13 48 D13 43 C 24 3 =K50 00 0 60 0m s Fr e que nc y Y0 ou t pu t s t ops Tim ePul se nu m ber S p e ci f i e d n u m b er o f o u t p ut pu l s es : 5 0 ,5 0 0 A ct u a l n ...
Page 561 - Enable ramp-down time setting on Y0. Has to be used with D1348
3 . I n s t r u c t i o n S e t 3 - 4 4 5 reset after CH0 (Y0, Y1) pulse output is completed. M1524 Auto-reset CH1 (Y2, Y3) when high speed pulse output completed. M524 will be reset after CH1 (Y2, Y3) pulse output is completed. M1534 Enable ramp-down time setting on Y0. Has to be used with D1348 M1...
Page 563 - Function Explanations:
3 . I n s t r u c t i o n S e t 3 - 4 4 7 Function Explanations: Pulse output diagram: Freq . Ti me t 1 t 2 t 3 g1 g2 g3 S 2 Pu lse n umb er 1. Definitions: t1 Æ target frequency of 1 st shift t2 Æ target frequency of 2 nd shift t3 Æ target frequency of 3 rd shift g1 Æ ramp-up time of 1 st shift g2 ...
Page 564 - Chan ge t o t 3; For program examples please refer to API 199
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 O p 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 - 4 4 8 2 nd shift: Assume t2 = 11kHz, internal frequency = 2kHz, gap time = 20ms Ramp-up steps of 2 nd shift: Freq. Time 2k Hz t 2=11 kHz 2 0 m s g2 = 40 ms 2 0 ms 2 0 m s 1kHz 2k Hz t 1= 6 kHz ...
Page 567 - The timing diagram is as below:; I nte rru pt
3 . I n s t r u c t i o n S e t 3 - 4 5 1 F r e q. Ti me G ap f re q. Del ayed b y pro gra m sca n cycl e Gapt im e Gapt im e Ch ange t a rget f req. Act u al t i ming o f changi ng 2. If users change the target frequency by applying DICF instruction in insterupt subroutines, the actual changing tim...
Page 570 - Mi n. dest inat ion val ue; De sti nati on val ue; Sour ce value
D V P - E S 2 / S X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 4 5 4 API Mnemonic Operands Function 202 SCAL P Proportional calculation Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E...
Page 571 - result of proportional calculation will be stored in D0.; result of proportional calculation will be stored in D10..; S C A L; please use SCLP instruction for the calculation.
3 . I n s t r u c t i o n S e t 3 - 4 5 5 Program Example 1: 1. Assume S 1 = 500, S 2 = 168 and S 3 = -4. When X0 = ON, SCAL instruction executes and the result of proportional calculation will be stored in D0. 2. Equation: D0 = (500 × 168 ) ÷ 1000 + (-4) = 80 X0 S C A L K 5 0 0 K 1 6 8 K - 4 D 0 D ...
Page 573 - Substitute the above parameters into
3 . I n s t r u c t i o n S e t 3 - 4 5 7 6. Substitute the above parameters into y = kx + b and the operation instruction can be obtained. y = kx + b = D = k S 1 + b = slope × S 1 + offset = slope × S 1 + min. destination value – min. source value × slope = slope × ( S 1 – min. source value) + min....
Page 574 - Assume source value; Dest i na ti on va lu e
D V P - E S 2 / S X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 4 5 8 D 0 S =5 00 1 = 30 = 50 0 So urce va lu e De st i na ti o n va l ue Program Example 2: 1. Assume source value S 1 = 500, max. source value D0 = 3000, min. source value D1 = 200, max. d...
Page 577 - . If the data length is less than 16 bits or 32 bits,; CMP T
3 . I n s t r u c t i o n S e t 3 - 4 6 1 9. The 16-bit comparison values used in the 16-bit instruction are signed values. The comparison values used in the 32-bit instruction are 32-bit signed values (M1162=OFF), or floating-point numbers (M1162=ON). 10. The 16-bit data or 32-bit data is written i...
Page 583 - +0 as K1 for the speed range 1Hz~1KHz, K10 for the speed range; C S F O
3 . I n s t r u c t i o n S e t 3 - 4 6 7 6. S 1 +0 specifies the sampling times. The set value of sampling times is recommended to be bigger when the input speed increases, so as to achieve a higher accuracy for speed catching. For example, set S 1 +0 as K1 for the speed range 1Hz~1KHz, K10 for the...
Page 584 - L D
D V P - E S 2 / S X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 4 6 8 API Mnemonic Operands Function 215~ 217 D LD# Contact Type Logic Operation Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS...
Page 585 - AN D
3 . I n s t r u c t i o n S e t 3 - 4 6 9 API Mnemonic Operands Function 218~ 220 D AND# Serial Type Logic Operation Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S 1 * * * * * * * * * * * S 2 * * * * * * * * * * * AND#: 5 ste...
Page 586 - OR
D V P - E S 2 / S X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 4 7 0 API Mnemonic Operands Function 221~ 223 D O R # Parallel Type Logic Operation Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM ...
Page 594 - BL DI
D V P - E S 2 / S X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 4 7 8 API Mnemonic Operands Function 270 D BLDI Load NC Contact by Specified Bit Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS...
Page 595 - BAND
3 . I n s t r u c t i o n S e t 3 - 4 7 9 API Mnemonic Operands Function 271 D BAND Connect NO Contact in Series by Specified Bit Controllers ES2/EX2 SS2 SA2 SE SX2 Bit Devices Word devices Program Steps Type OP X Y M S K H KnX KnY KnM KnS T C D E F S * * * * * * n * * * * * * * * * * * BAND: 5 step...
Page 604 - Ports
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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.1 Communication Ports DVP-ES2/EX2/SA2/SE/SX2 offers 3 communication ports (COM1~COM3), and DVP-SS2 offers 2 COM ports (COM1~COM2). COM ports of the above models support DELTA Q-link communicat...
Page 605 - . C o m m u n i c a t i o n s; Communication Protocol ASCII mode
4 . C o m m u n i c a t i o n s − 7 data bits − 1 stop bit − Even parity − Baud rate: 9600 4.2 Communication Protocol ASCII mode Communication Data Structure 9600 (Baud rate), 7 (data bits), Even (Parity), 1 (Start bit), 1 (Stop bit) Field name Content Explanation Start bit STX Start bit ‘:’ (3AH) A...
Page 609 - Exception; Communication Protocol RTU mode
4 . C o m m u n i c a t i o n s Exception code: Explanation: 01 Illegal command code: The command code received in the command message is invalid for PLC. 02 Illegal device address: The device address received in the command message is invalid for PLC. 03 Illegal device content: The data received in...
Page 614 - Applicable to DVP-SE
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 Device Range ES2/EX2 SS2 MODBUS Address SA2/SE Address SX2 200~255 200~255 401793~401903 (Odd address valid) 0700~076F D 000~255 1000~10FF D 256~511 1100~11FF D 512~767 1200~12FF...
Page 615 - Code
4 . C o m m u n i c a t i o n s 4.5 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” Sent message: Field Name ASCII STX : Sl...
Page 623 - Sequential Function Chart; This chapter provides information for programming in SFC mode.
Sequential Function Chart This chapter provides information for programming in SFC mode. Chapter Contents 5.1 Step Ladder Instruction [STL], [RET] ............................................................................... 5-2 5.2 Sequential Function Chart (SFC) ....................................
Page 625 - . S e q u e n t i a l F u n c t i o n C h a r t
5 . S e q u e n t i a l F u n c t i o n C h a r t action and the transition from one step to another generally requires some transition criteria (condition). The action of the previous step finishes as long as all criteria is true. When next step begins, the action of previous step will be cleared. ...
Page 626 - The Operation of STL Program; and can be translated into the ladder diagram opposite.
D V P - E S 2 E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 jump. Used for a step to jump to another non-adjacent step. (Jumping up/down to non-adjacent steps in the same sequence, returning to initial step, or jumping among different sequences.) Tran...
Page 627 - Actions of Step Points:
5 . S e q u e n t i a l F u n c t i o n C h a r t Actions of Step Points: STL program is composed of many step points, and each step point represents a single task in the STL control process. To perform a sequential control result, every step point needs to do 3 actions. 1. Drive output coils 2. Des...
Page 628 - Repeated usage of timer:; Transfer of Step Points:; OUT Sn
D V P - E S 2 E X 2 / S S 2 / S A 2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g of output coils should be avoided. The No. of output coil used by a step should also avoid being used when the step ladder diagram returns to a general ladder diagram. Repeated usage of timer: See...
Page 629 - Using OUT S0; RET; Cautions for Driving Output Point:
5 . S e q u e n t i a l F u n c t i o n C h a r t c Returning to the initial step in the same sequence. d Jumping up/down to non-adjacent steps in the same sequence. SFC: Ladder diagram: S0 S2 1 S2 4 S2 5 X7 X2 OUT OUT S2 4 S2 1 S S0 S S2 3 S X2 S2 4 S S2 5 S S0 X7 RET Using OUT S24 Using OUT S0 S25...
Page 630 - MPP; Other Points to Note:
D V P - E S 2 E X 2 / S S 2 / S A 2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g STL diagram. However, there are restrictions on some of the instructions. Care should be taken when using the instructions listed in the table below. Basic Instructions Applicable in a Step Basic ...
Page 631 - R E T; Points to Note for Designing a Step Ladder Program; OUT
5 . S e q u e n t i a l F u n c t i o n C h a r t S E T Y 0 S1 0 S S2 0 S Y 2 S 2 0 Y 1 S E T Y 0 S1 0 S S20 S Y 2 S 2 0 Y 1 2. As indicated in the below diagram, make sure to connect RET instruction directly after the step point rather than the NO or NC contact. S 0 S2 0 S R E T X1 S 0 S2 0 S R E T...
Page 633 - Types of Sequences; The basic type of sequence; Step Ladder Diagram; S F C d i a gr am
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.5 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. The steps following the initial step are general steps numbered as S10 ~ S1023. When IST instruction...
Page 634 - Complicated Single Sequence:
D V P - E S 2 E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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. Step Jump a) The control power over the step is transferred to a certain step on top. S 0 S 2 1 S 4 2 S 4 3 OUT OUT b) The control power over the step is transferred to the step in another sequ...
Page 636 - Ladder diagram of simultaneous convergence:; SFC diagram of simultaneous convergence:; SFC diagram of alternative convergence:
D V P - E S 2 E X 2 / S S 2 / S A 2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g In simultaneous convergence, only when all sequences are completed will the transfer be allowed. Ladder diagram of simultaneous convergence: X2 S E T S 5 0 S S40 S S41 S S4 2 SFC diagram of simult...
Page 637 - Example of alternative divergence & alternative convergence:; Step
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 alternative divergence & alternative convergence: Step Ladder Diagram: SFC Diagram: M1 00 2 Z RS T S 0 S 1 2 7 S E T S 1 S E T S 2 0 Y 0 S E T S 3 0 Y 1 S E T S 4 0 Y 2 E N D X0 S1 S S2 0 S X1 S3 0 S X2 S4 0 S X3 S E T S 3 1 X4 S E T S...
Page 638 - Example of simultaneous divergence & simultaneous convergence:
D V P - E S 2 E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 simultaneous divergence & simultaneous convergence: Step Ladder Diagram: SFC Diagram: M1 00 2 Z R S T S 0 S 1 2 7 S E T S 3 S E T S 2 0 Y 0 S E T S 3 0 Y 1 S E T S 4 0 Y 2 E N D X0 ...
Page 640 - Step Ladder Diagram:
D V P - E S 2 E X 2 / S S 2 / S A 2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g Combination example 1: (Includes alternative divergence/convergence and simultaneous divergence/convergence) Step Ladder Diagram: S 1 2 7 M1 00 2 Z R S T S 0 S E T S 0 Y 1 S E T S 3 0 Y 2 S E T S ...
Page 642 - Restrictions on Divergence Sequence:; are maximum 8 diverged steps S30 ~ S37 after step S20.
D V P - E S 2 E X 2 / S S 2 / S A 2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g Combination example 2: (Includes alternative divergence/convergence and simultaneous divergence/convergence) Step Ladder Diagram: SFC Diagram: S 1 2 7 M1 00 2 Z R S T S 0 S E T S 0 S E T S 3 0 Y 0...
Page 647 - Re l ea se b al l s
5 . S e q u e n t i a l F u n c t i o n C h a r t 8. Zero return mode: a) SFC: S 1 S 1 0 X 3 5 S 11 X 4 S 1 2 X 1 R S T Y 4 R S T Y 1 Y 0 R S T Y 2 Y 3 S E T M 1 0 4 3 R S T S 1 2 Re l ea se b al l s St o p l ow er in g r ob ot a rm Ra i se r ob ot a r m t o t heupp er-l i mit (X4 = ON) Sto p sh i f...
Page 651 - Troubleshooting
Troubleshooting This chapter offers error code table and information for troubleshooting during PLC operation. Chapter Contents 6.1 Common Problems and Solutions .......................................................................................... 6-2 6.2 Error code Table (Hex) ...................
Page 652 - Common Problems and Solutions
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 2 6.1 Common Problems and Solutions The following tables list some common problems and troubleshooting procedures for the PLC system in the event of faulty operation. System Operation Sympto...
Page 653 - . T r o u b l e s h o o t i n g
6 . T r o u b l e s h o o t i n g 6 - 3 Symptom Troubleshooting and Corrective Actions Diagnosing Input Malfunction When input indicator LEDs are OFF, 1. Check the wiring of the input devices. 2. Check that the power is properly supplied to the input terminals. 3. If the power is properly supplied t...
Page 656 - Error Detection Devices
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 6 Error code Description Action C40B MC / MCR does not begin from N0 or discontinuously C40C MC / MCR corresponding value N is different C40D Use I / P incorrectly C40E IRET doesn’t follow b...
Page 657 - CANopen Function and Operation; This chapter explains the functions of CANopen and the usage.
7 - 1 CANopen Function and Operation This chapter explains the functions of CANopen and the usage. Chapter Contents 7.1 The Introduction of CANopen .............................................................................................. 7- 2 7. 1 .1 The Description of the CANopen Functions ......
Page 658 - The Introduction of CANopen; The Description of the CANopen Functions
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 7.1 The Introduction of CANopen ¾ Due to the simple wiring, immediate communication, strong debugging ability, stable communication, and low cost, the CANopen network is widely used in fie...
Page 659 - C A N 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 Installation and the Network Topology
7 C A N 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 Storage Data type 64-bit LINT ULINT LREAL LWORD ¾ If the CAN port functions as a slave, it has the following functions. It supports the standard CANopen protocol DS301 V4.02. It supports the NMT (network management object) service. ...
Page 660 - SG; The CAN signal and the data frame format; Dominant
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 7.2.2 The Profile 7.2.3 The CAN Interface and the Network Topology ¾ The pins of COM3 (CAN interface) Pin Description CAN+ CAN-H CAN- CAN-L SG Signal ground W h i t e ( C A N _ H ) B l u e...
Page 661 - The CAN network endpoint and the topology structure
7 C A N 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 - 5 ¾ The CAN network endpoint and the topology structure In order to make the CAN communication more stable, the two endpoints of the CAN network are connected to 120 ohm terminal resistors. The topology structure of the CAN network is illus...
Page 662 - ) The limitation on the length of the CANopen network; Product
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 6 1) Users should use standard Delta cables when creating the CANopen network. These cables are the thick cable TAP-CB01, the thin cable TAP-CB02, and the thin cable TAP-CB10. The communicat...
Page 664 - meter; The CANopen Protocol; The Introduction of the CANopen Protocol
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 8 Product Model Function TAP-CN03 It is the CANopen network topology distribution box which carries a 120 ohm resistor. Users can enable the resistor through the switch. TAP-CBO3 TAP-CBO5 TA...
Page 665 - The object dictionary; There are two kinds of uses for PDOs.; Communication profile CiA DS-301; OSI first layer
7 C A N 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 - 9 ¾ The object dictionary CANopen uses an object-based way to define a standard device. Every device is represented by a set of objects, and can be visited by the network. The model of the CANopen device is illustrated below. As the figure ...
Page 670 - The broadcast object in the predefined connection setting
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 - 1 4 Boot-up services After the slave completes the initialization and enters the pre-operational state, it transmits the Boot-up message. ¾ Other predefined CANopen communication objects (...
Page 671 - Sending SDO, NMT and Reading Emergency Message through the
7 C A N 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 - 1 5 ¾ The corresponding object in the predefined connection set Object Function code COB-ID Index of the communication parameter Emergency 0001 129 (81h)–255 (FFh) 1014h, 1015h PDO1 (TX) 0011 385 (181h)–511 (1FFh) 1800h PDO1 (RX) 0100 513 (...
Page 677 - Response message; C AN open
7 C A N 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 - 2 1 Emergency response data Response message PLC device High byte Low byte D6000 ReqID=01 Status code =01 D6001 Reserved =0 Size =2A (Hex) D6002 Message header Type =04 Node ID =02 D6003 Total number of data =1 Number of data stored =1 D6...
Page 680 - CANopen Network Node State Display
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 4 LED indicator Description How to deal with The red light flashes. There are syntax error existing in the program written to PLC or the PLC device or instruction is out of the allowed ran...
Page 683 - Example; PC
7 C A N 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 - 2 7 Code Indication How to correct F4 BUS-OFF state is detected. Check if CANopen bus cables are properly connected and ensure that all the node devices run at the same baud rate before re-powering. FB The sending buffer in DVP-ES2-C is ful...
Page 685 - Item
7 C A N 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 - 2 9 Item Explanation Default COM port The serial port of computer used for communication with DVP-ES2-C. COM1 Address The communication address of DVP-ES2-C 01 Baud rate The communication rate between computer and DVP-ES2-C 9600 bps Data bi...
Page 689 - Transmission Type
7 C A N 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 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 w...
Page 690 - Data transmission on; command is set as 256r/min. See details in the following figure.; Program explanation:
D V P - E S 2 / E X 2 / S S 2 / S A 2 / S X 2 / S E O p 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 4 3> After the above setting is finished, double click the master, select ASDA-A2 Drive, and click “ > ” to move A2 to the right list and download the configured data. The mapping re...
Page 691 - Dictionary
7 C A N 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 5 7.7 Object Dictionary The communication objects in the object dictionary are shown as below: Index Subindex Object name Data type Attribute Default value H’1000 H’00 Device type Unsigned 32 bits R 0x00000000 H’1001 H’00 Error register U...
Page 699 - Appendix; An introduction of installing the USB driver in the PLC
Appendix An introduction of installing the USB driver in the PLC Contents A.1 Installing the USB Driver .........................................................................................................A-2 A - 1
Page 700 - A.1 Installing the USB Driver
D V P - E S 2 E X 2 / S S 2 / S A 2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g A.1 Installing the USB Driver 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 ...
Page 701 - A p p e d n d i x A; After the driver is installed, users can find the; Delta PLC; device and the communication port; Device Manger; window. The usage of this device is the same as that of
A p p e d n d i x A After the driver is installed, users can find the Delta PLC device and the communication port assigned to it in the Device Manger window. The usage of this device is the same as that of RS-232. A - 3