17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DVP</strong>-<strong>ES2</strong>/<strong>SA2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> - Programming<br />

users. When the instruction MCR is executed, the previous state of the switch contact is<br />

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

number of times the items are pushed onto the stack may be different from the number of<br />

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

be pushed onto the stack, and the items can be popped form the stack until the stack is empty.<br />

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

of the item onto the stack and the popping of the item from the stack.<br />

Program example 3:<br />

The table explains the device status in the ladder diagram below.<br />

Device<br />

Contact state<br />

before CJ execution<br />

Contact state<br />

during CJ execution<br />

Output coil state<br />

during CJ execution<br />

Y, M, S<br />

M1, M2, M3 OFF<br />

M1, M2, M3 ON<br />

M1, M2, M3<br />

OFF→ON<br />

M1, M2, M3<br />

ON→OFF<br />

Y1 * 1 , M20, S1 OFF<br />

Y1 * 1 , M20, S1 ON<br />

10ms,<br />

100ms<br />

Timer * 2<br />

1ms,10ms,<br />

100ms<br />

accumulative<br />

Timer<br />

M4 OFF M4 OFF→ON Timer is not activated<br />

Timer T0 immediately stops and<br />

M4 ON<br />

M4 ON→OFF is latched. When M0 ON OFF,<br />

T0 will be reset.<br />

M6 OFF M6 OFF→ON Timer T240 is not activated<br />

Timer T240 immediately stops<br />

M6 ON<br />

M6 ON→OFF and is latched. When M0 ON <br />

OFF, T240 will still be latched.<br />

M7, M10 OFF<br />

M10 is ON/OFF<br />

triggered<br />

Counter C0 stops<br />

C0~C234 * 3<br />

M7 OFF, M10 is<br />

ON/OFF triggered<br />

M10 is ON/OFF<br />

triggered<br />

Counter C0 stops and latched.<br />

When M0 is OFF, C0 resumes<br />

counting.<br />

M11 OFF<br />

M11 OFF→ON<br />

Application instructions will not<br />

be executed.<br />

Application<br />

instruction<br />

M11 ON<br />

M11 ON→OFF<br />

The skipped application<br />

instruction will not be executed<br />

but API 53~59, API 157~159<br />

keep executing.<br />

3-44

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!