Yaskawa YASNAC PC NC Programming Manual User Manual

Page 283

Advertising
background image

4 - 146

YASNAC PCNC Programming Manual

Chapter 4: Enhanced Level Commands

(g) Alarm message display

By specifying “#3000 = <Alarm-number> (<alarm-message>);”, the NC can be placed in
the alarm state. The timing the NC is placed in the alarm state is after the completion of
the commands in the block immediately preceding the block including the commands
indicated above.

<Alarm-number>:A 4-digit alarm number not used by NC.

Use of a variable is allowed.
(Alarm number range: 5000 to 5999)

<Alarm-message>:ASCII character string with 32 or less characters

(alphanumeric and special characters)

(h) Clock

It is possible to read time by entering the system variable used for the clock in the right
side of an operation expression. If such a system variable is entered in the left side of an
operation expression, it is possible to preset the time.

Table 4.4.3.13

System Variables Used for Clock Function

(i) Control for single-block stop and waiting for completion of miscellaneous function

By setting an appropriate number for system variable #3003, the following control is pos-
sible:

To make valid/invalid the SINGLE-BLOCK switch setting for the succeeding blocks.

To advance the program to the next block without waiting for the input of the miscel-
laneous function (M, S, T, B) completion signal (FIN).

If a miscellaneous function is specified with the setting that the input of the comple-
tion signal (FIN) is not checked, the distribution complete signal (DEN) is not output
and the program advances to the next block without waiting for the input of the FIN
signal although the output of the M, S, T, or B code and M, S, T, or B read output is
executed as normal. When the block in which the setting is made for system variable
#3003 so that the state for checking the input of the miscellaneous function complete
signal is executed after that, the NC outputs DEN signal and waits for the input of the
FIN signal.

When M, S, T, or B is specified in the state that the miscellaneous function complete is
not checked, the first appearance of individual codes is recognized and executed.
Then, the second and later appearance are disregarded until the setting is changed to

Type

System Variable

Unit

At Power ON

Count Conditions

Clock 1

#3001

1 msec

Preset to “0”

Always

Clock 2

#3002

1 sec

The state immediately
before the power was
turned OFF is retained

When the STL signal
goes ON

Advertising