2 program support functions (2), 1 program copy (g25), Table 4.2.1.1 description of addresses – Yaskawa YASNAC PC NC Programming Manual User Manual

Page 206

Advertising
background image

4 - 69

YASNAC PCNC Programming Manual

Chapter 4: Enhanced Level Commands

4.2

PROGRAM SUPPORT FUNCTIONS (2)

4.2.1

Program Copy (G25)*

By specifying “G25 P (pl p2) • • • Q (q1 q2) • • • L • • •;”, the programs can be repeatedly exe-
cuted by L times in the range from the block of sequence number “q1” in the program of program
number “p1” to the block of sequence number “q2” in the program of program number “p2”.

Table 4.2.1.1

Description of Addresses

1. For both “p1” and “q1” commands, leading zeros can be omitted. For “p2” and “q2”,

omission of leading zeros is not allowed. If more than four digits are specified for “p2” or
“q2”, the four digits from the least significant digit are taken for a sequence number.

2. The O number (q1) to be specified later can be omitted. In this case, the same O number

as specified for “p1” is assumed.

3. The sequence numbers specified for “p2” and “q2” are searched from the first block of the

specified program. Therefore, the sequence numbers used for the objective block for
search must not be assigned to more than one block. If there are two or more blocks that
are assigned the same sequence number, the block appearing first is searched.

4. If the specified block or program cannot be searched, an alarm occurs; alarm “0390” if

“p1” cannot be searched, alarm “0393” if “p2” or “q2” cannot be searched, and alarm
“0260” if none of “p1”, “p2” and “q2” can be searched.

G25 can be executed in the tape, MDI, or memory mode operation. However, for the execution of
G25, it is necessary to store the program to be copied to the memory. If more than one block is
assigned the same program number, the block appearing first is valid for search operation.

Address

Description

P

p1

Program number of copy start program (5-digit O number)

p2

Copy start sequence number (4-digit N number)

Q

q1

Program number of copy end program (5-digit O number) (p 1 = q1)

q2

Copy end sequence number (4-digit N number)

L

Number of repetitions (omission: L1)

Advertising