Yaskawa YASNAC PC NC PLC Programming Manual User Manual
Page 87

6 - 51
YASNAC PCNC PLC Programming Manual Chapter 6: PLC Instructions
(c) Control conditions
•
Designation of preset value (IPSHXX)
Designate the preset value directly.
To designate the value, use the PUSH instruction instead of the IPSH instruction.
If the PUSH instruction is used, the contents of the designated address are used
as the preset value.
Example: PUSH#1550
With the designation indicated above, two bytes of #1550 and #1551 are used.
Even if only one byte is used, #1551 must not be used for other instructions.
•
Designation of counter address (APSH#XXXX)
Designate the counter address
If “APSH#1500” is designated, continuous two bytes (#1500 and #1501) are used
for the counter address.
•
Designation of working area address (APSH#XXXX)
Designate an address that is not used by other instructions. One byte is necessary for
one SUBP 005.
If two or more SUBP 005 instructions are used, it is necessary to designate an address
for each SUBP 005 instruction.
•
Designation of initial value (CNO)
CNO = 0: Counting begins with “0”. (0, 1, 2, . . . . . n)
CNO = 1: Counting begins with “1”. (0, 1, 2, . . . . . n)
•
Designation of up/down counter (UPDOWN)
UPDOWN = 0:Up counter
The initial value is “0” with CNO = 0.
The initial value is “1” with CNO = 1.
UPDOWN = 1:Down counter
The initial value is the preset value.