beautypg.com

Yaskawa YASNAC PC NC PLC Programming Manual User Manual

Page 42

background image

6 - 6

YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions

(4) List of Control Instructions

The list of control instructions is indicated below.

(5) List of Macro Instructions

The list of macro instructions is indicated below.

CPRW

Executes comparison between double-length register R1
and double-length register R2 and stores the result to RR.

Ù

MVIW

Loads a numeric value to the double-length register.

DSTW

Executes AND between the content of double-length
register (WR1) and a numeric value and transfers the
result to double-length register (WR2).

Instruction

Description

RR after

Operation

Reference

Page

NOP

No operation

MCR

Start of master control relay

END

End of master control relay

RET

End of sequence program

RTI

Executes the RET instruction if “RR = 1”.

SET

Sets “1” to RR

1

RTH

End of high-speed processing sequence program

JMP

Executes jump to the location indicated by ADR.

ADR

Indicates the location of destination of jump indicated by
JMP.

Instruction

Description

RR after

Operation

Reference

Page

SUBP003

Detects the rising edge of the signal.

Ù

SUBP004

Detects the falling edge of the signal.

Ù

SUBP005

Counter

Ù

SUBP006

Rotation (for the control of rotating object)

Ù

SUBP007

Code conversion

Ù

SUBP009

Pattern clear

Ù

SUBP011

Parity check

Ù

SUBP014

Data conversion (binary

BCD)

Ù

SUBP017

Data search

Ù

SUBP018

Index data transfer

Ù

ÄÄ