Delta DVP-ES2 Operation Manual Download Page 11

D V P - E S 2 / E X 2 / S S 2 / S A2 / S X 2 / S E & T P   O p e r a t i o n   M a n u a l   -   P r o g r a m m i n g  

1.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 
memory. 

Evaluate user program 

Evaluate the user program with data stored in internal memory. 
Program scanning starts from up to down and left to right until 
reaching the end of the program. 

Refresh the outputs 

Write the evaluated data to the physical outputs 

 

X0

Y0

Y0

M0

Input X

Input terminal

Store to  memory

Input signal memory

De
vi

ce
Me

m

o

ry

Read X0 status from memory

 

Write Y0 state into

Read Y0 state from memory

Write M0 state into

Output

Program

Input signal

Output

Output Y

Output terminal

Output latched memory

 

Input signal: 

PLC reads the ON/OFF status of each input and 
stores the status into memory before evaluating 
the user program. 
Once the external input status is stored into 
internal memory, any change at the external 
inputs will not be updated until next scan cycle 
starts.  

Program: 

PLC executes instructions in user program from 
top to down and left to right then stores the 
evaluated data into internal memory. Some of this 
memory is latched.  

Output: 

When END command is reached the program 
evaluation is complete. The output memory is 
transferred to the external physical outputs.    

 
Scan time 

The duration of the full scan cycle (read, evaluate, write) is called “scan time.” With more I/O or 
longer program, scan time becomes longer.  

Read 

scan time 

PLC measures its own scan time and stores the value (0.1ms) in register 
D1010, minimum scan time in register D1011, and maximum scan time in 
register D1012.  

Measure 

scan time 

Scan time can also be measured by toggling an output every scan and then 
measuring the pulse width on the output being toggled.   

Calculate 

scan time 

Scan time can be calculated by adding the known time required for each 
instruction in the user program. For scan time information of individual 
instruction please refer to Ch3 in this manual.   

 
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 program evaluation instead of waiting until 
the next scan cycle. 

 

1 - 2  

Summary of Contents for DVP-ES2

Page 1: ...ley 6 cha Gasan dong Geumcheon gu Seoul Korea 153 704 TEL 82 2 515 5303 FAX 82 2 515 5302 Delta Electronics Int l S Pte Ltd 4 Kaki Bukit Ave 1 05 05 Singapore 417939 TEL 65 6747 5155 FAX 65 6744 9228...

Page 2: ...latched functions of D1062 D1114 D1115 and D1118 3 Chapter 2 16 Applications of Special M Relays and D Registers Update the description of the functions of RTCs add M1037 D1037 Enable SPD function M11...

Page 3: ...ents about S D are deleted in program example 3 4 API 148 and API 149 are added in Chapter 3 5 The information related to DVP SE is added 6 The information related to DVP32ES C is added 7 The descript...

Page 4: ...the table of special data registers are described in section 2 16 2 API114 API115 API145 and API295 are added to Chapter 3 The descriptions of API17 API22 API23 API59 API78 API80 API81 API83 API101 A...

Page 5: ...of Changes Date CR 17 CR 24 are updated the description of CR 27 is added and the descriptions of CR 87 CR103 are updated 4 In section B 2 4 the descriptions of CR 0 and CR 20 CR 26 are updated 5 Sec...

Page 6: ...in series 1 6 1 5 9 ORB Connect block in parallel 1 7 1 5 10 MPS MRD MPP Branch instructions 1 7 1 5 11 STL Step Ladder Programming 1 7 1 5 12 RET Return 1 8 1 6 Conversion between Ladder Diagram and...

Page 7: ...ter T C D 4 14 4 5 4 Command Code 05 Force ON OFF single contact 4 15 4 5 5 Command Code 06 Set content of single register 4 16 4 5 6 Command Code 15 Force ON OFF multiple contacts 4 16 4 5 7 Command...

Page 8: ...ng B 7 B 3 2 Broadcast Search B 8 B 3 3 Searching for a Model Specified B 9 B 3 4 Searching by an IP Address B 11 B 4 Data Exchange B 12 B 5 EtherNet IP List B 12 B 5 1 EtherNet IP Information Support...

Page 9: ...DVP24ES200R DVP24ES200T DVP32ES200R DVP32ES200T DVP32ES211T DVP40ES200R DVP40ES200T DVP60ES200R DVP60ES200T DVP32ES200RC DVP32ES200TC DVP ES2 C DVP32ES200RC DVP32ES200TC DVP EX2 DVP20EX200R DVP20EX200...

Page 10: ...LDI Load NO contact Load NC contact 1 6 1 5 3 LDP LDF Load Rising edge trigger Load Falling edge trigger 1 6 1 5 4 AND ANI Connect NO contact in series Connect NC contact in series 1 6 1 5 5 ANDP AND...

Page 11: ...user program from top to down and left to right then stores the evaluated data into internal memory Some of this memory is latched Output When END command is reached the program evaluation is complete...

Page 12: ...l e g X0 X7 X10 X17 X377 Y Output Relay Bit memory represents the physical output points and saves the status to be refreshed to physical output devices Device indication Indicated as Y and numbered i...

Page 13: ...ate a specified device word and double word by defining an offset Index registers not used as a modifier can be used as general purpose register Device indication indicated as E0 E7 and F0 F7 1 5 Ladd...

Page 14: ...continuous symbol 0 will be generated automatically and the 12th contact will be placed at the start of next row The same input points can be used repeatedly See the figure below Y1 0 0 X0 X1 X2 X3 X...

Page 15: ...ries with another device or block AND instruction AND instruction 1 5 5 ANDP ANDF Connect Rising edge in series Connect Falling edge in series Similar to AND instruction ANDP ANDF instruction connects...

Page 16: ...piling ladder diagram with WPLSoft MPS MRD and MPP could be automatically added to the compiled results in instruction format However sometimes the branch instructions are ignored by WPLSoft if not ne...

Page 17: ...agram which is called step ladder diagram as below e S0 S21 S22 M1002 initial pulse M1002 SET S0 SET S21 S S0 SET S22 S S21 S S22 S0 RET 1 5 12 RET Return RET instruction has to be placed at the end o...

Page 18: ...S13 STL S11 LD X12 OUT Y12 SET S20 STL S20 STL S12 STL S13 LD X13 OUT S0 RET LD X0 CNT C0 K10 LD C0 MPS AND X1 OUT M0 MRD AN I X1 OUT M1 MPP AN I M2 OUT M2 END OR block ANI Multiple outputs RST C0 OR...

Page 19: ...ly ANB instruction after a block is made is the better method to prevent the possible errors In addition it s also the more logical and clearer programming method for general users Example 2 Good meth...

Page 20: ...block Devices and blocks in series should be horizontally aligned Label P0 should be at the first row of the complete network Reverse current exists 1 8 Correcting Ladder Diagram Example 1 Connect the...

Reviews: