Delta DVP-ES2 User Manual

Page 160

Advertising
background image

D V P - E S 2 / S A 2 / S S 2 / S A2 / 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 4

users. When the instruction MCR is executed, the previous state of the switch contact is

popped from the top of the stack. Under the conditions listed in (b), (d), and (e) above, the

number of times the items are pushed onto the stack may be different from the number of

times the items are popped from the stack. When this situation occurs, at most 32 items can

be pushed onto the stack, and the items can be popped form the stack until the stack is empty.

Therefore, when CJ or CJP is used with MC and MCR, users have to be careful of the pushing

of the item onto the stack and the popping of the item from the stack.

Program example 3:

The table explains the device status in the ladder diagram below.

Device

Contact state

before CJ execution

Contact state

during CJ execution

Output coil state

during CJ execution

M1, M2, M3 OFF

M1, M2, M3

OFF

→ON

Y1

*

1

, M20, S1 OFF

Y, M, S

M1, M2, M3 ON

M1, M2, M3

ON

→OFF

Y1

*

1

, M20, S1 ON

M4 OFF

M4 OFF

→ON

Timer is not activated

10ms,
100ms
Timer

*

2

M4 ON

M4 ON

→OFF

Timer T0 immediately stops and

is latched. When M0 ON

t OFF,

T0 will be reset.

M6 OFF

M6 OFF

→ON

Timer T240 is not activated

1ms,10ms,
100ms
accumulative
Timer

M6 ON

M6 ON

→OFF

Timer T240 immediately stops

and is latched. When M0 ON

t

OFF, T240 will still be latched.

M7, M10 OFF

M10 is ON/OFF

triggered

Counter C0 stops

C0~C234

*

3

M7 OFF, M10 is

ON/OFF triggered

M10 is ON/OFF

triggered

Counter C0 stops and latched.

When M0 is OFF, C0 resumes

counting.

M11 OFF

M11 OFF

→ON

Application instructions will not

be executed.

Application

instruction

M11 ON

M11 ON

→OFF

The skipped application

instruction will not be executed

but API 53~59, API 157~159

keep executing.

Advertising
This manual is related to the following products: