Yaskawa YASNAC PC NC PLC Programming Manual User Manual
Page 84

6 - 48
YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions
6.3.5
Macro Instructions
There are several machine control sequences that cannot be programmed easily if only basic
instructions (relay instructions, register instruction, etc.) are used. The macro instructions are
provided to simplify programming such sequences.
Marco instructions are written in the following format.
(1) SUBP 003 (UP: Detecting rising edge of a signal) RR after operation:
Ù
(a) Function
The instruction detects the rising edge of a signal.
(b) Format
(c) Control conditions
•
Working area address (APSH#XXXX)
Designate an address that is not used by other instructions. Prepare one byte for
one SUBP 003.
•
Contact to be detected (ACT) and output of signal rise detection (R1)
ACT = 0: Rising edge of a signal is not detected; R1 = 0
ACT = 1: R1 value changes “0”
Å “1” Å “0” at the detection of the rising edge..
•
If “ACT = 1” when the power is turned ON, it is regarded as the rise.
(2) SUBP 004 (DOWN: Detecting falling edge of a signal) RR after operation:
Ù
2
2