Yaskawa J50M Instructions User Manual

Page 39

Advertising
background image

Notes :

The

and the 2nd prohibited area can be

specified overlapping each other.

Boundary lines on the minus side are included
in the prohibited areas. Boundary

on

the plus side are not included in the prohi-
bited areas.

All the prohibited areas become effective after
a manual return to reference point or a return
to reference point by

after turning on

the power supply.

If the tool is in the prohibited area at the time
when the prohibited area becomes effective,
this is immediately regarded as an error. In
this case, turn off the 2nd prohibited area by
the setting of the setting number, and either
rewrite the data or move the tool out of the
prohibited area manually,

If an alarm state is created by the entry of the

tool into the prohibited area, the tool can move
only in the returning direction.

The stored stroke limit cannot be checked dur-

ing a machine lock operation.

2.9.13

PROGRAM

(G25)

( 1 )

T h e c o m m a n d G 2 5 P

Q

L

. . . . . . executes L times any program from

s e q u e n c e

of program p 1 to sequence

of

program

G25: Program copy G code

P:

First O number

p2; First sequence number (N)

Q :

Last O

q2; Last sequence

Each will be commanded with four digits. The leading

zeros of p2 and q2 cannot be omitted.

L: Number of repetitions (One time if omitted)

(Z) Although the

command can be given by

tape, MDI or memory operation, it will be ne-
cessary to store the program to be copied in the
memory,

When sequence numbers are overlapped,

the first sequence number will become effective.

(3) The G25 command may also be used again

i n t h e p r o g r a m b e i n g c o p i e d . T h i s i s c a l l e d
multiple program copying and is possible up
t o a m a x i m u m o f f o u r l e v e l s . H o w e v e r , e r r o r

“ 042” will occur if four levels are exceeded.

3rd

(4) Program copying can be commanded in a fixed

cycle (G70 to G72,

G73, G76,

to

(5) Simple jump command

can be used in

the program being copied by the

command.

It is the same as the M99 function commanded
in the main program.

Notes :

(a) Error “042” will occur if

of levels called by G25 and
when used in a subprogram.

( b ) I f G 2 5 i s u s e d d u r i n g

the total number

M98 exceeds four

a user macro call

(G65, G66), Up to four separate

are possible.

(c) Since the sequence number specified by address

p2 and q2 will be searched from the first number
of each program, care will be required not to
duplicate the sequence numbers. If duplicated,

the first sequence number will become effective.

(d) In command G25 P (pi) (p2)

L . . . the

following errors will occur.
Error “070 when p 1 cannot be searched
Error “04 1” when p2 cannot be searched
Error “040 when p 1 and q 1 are not the same

(e) If a reset operation for errors or an M30/M02 reset
occurs when executing command G25, execution will
return to the beginning of the called program of the O

level.

(f) If a P or Q command is less than four digits,

it

be considered a sequence number and

the program sequence number will be searched.

(g) The leading zeros in both commnads P and

Q can be omitted. However, for five digits or
more,

the lower four digits will be considered

the sequence number.

(h) If M98 or M99 is commanded in the G25 block,

e r r o r

will occur.

(i) Since M99 will have priority if it is in the

block (End block of G25) specified by q2 of
G25, the command will return to the beginning
of the program being executed. Do not command
M99 in the block specified by

The

at the end of the

command can be

omitted. When omitted, it will automatically be
considered to be the same as the leading O of the P
command.

(k) A program copy command in a fixed cycle

cannot be commanded in the

same block with the

fixed cycle command. If commanded, G code

will occur.

(1) When the block indicated by G25 q2 (end block of

G25) is a G25 block, q2 is disregarded and the next block
is proceeded.

Therefore, create a program as shown page 32 and 33.

31

Advertising