beautypg.com

Yaskawa YASNAC PC NC PLC Programming Manual User Manual

Page 60

background image

6 - 24

YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions

The relationship between register and numeric value is shown below”.

(d) Example

(10)DEC (Decode) RR after operation: RR

Ù

(a) Function

The instruction compares the numeric value to the eight-bit data of the register or contact
set and sets “1” to RR (RR = 1) if the result of comparison is “coincide”. This instruction
is executed independent of RR at the input side.

(b) Format

(c) Explanation

It is not allowed to enter a contact before the DEC instruction. If a contact must be
entered, use the COI instruction.

The DEC instruction is executed in intervals of “4 × n” msec.

(d) Example

D7

D6

D5

D4

D3

D2

D1

D0

Register

0

0

1

1

0

0

1

1

Numeric value

0

1

0

1

0

1

0

1

Result

0

1

1

0

0

1

1

0

B A Paradym31 Variable Name