beautypg.com

Yaskawa YASNAC PC NC PLC Programming Manual User Manual

Page 73

background image

6 - 37

YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions

(d) Example

(29)DIVW (DIV Word Register) RR after operation: RR-

(a) Function

The instruction executes division between the contents of double-length register (WR2)
and register (R1) when the ST contact is ON (RR = 1) and stores the result to double-
length register (WR2).

The content of R1 remains unchanged before and after the execution of the instruction.

If the ST contact is OFF (RR = 0), the DIVW instruction is not executed.

(b) Format

(c) Explanation

A ST contact must be entered before the DIVW instruction.

The DIVW instruction is executed in intervals of “4 × n” msec while the ST contact
is ON.

The instruction is not executed if the content of R1 is “0”.

A B Paradym31 Variable Name