Yaskawa YASNAC PC NC PLC Programming Manual User Manual
Page 138

7 - 11
YASNAC PCNC PLC Programming Manual Chapter 4: Sequence Control Method
To store double-word data, place two underscores preceding the numeric values.
Entry of the data should be only the necessary data.
If the number of data to be converted is specified as “5” using the SUBP007
instruction (N9000’ 1,2,3,4,5’), entry of 5 data is necessary, and it is not
necessary to enter 256data.
Omission of entry is treated as 0H.
•
Message data source file
Write the message data to be used by the macro instruction SUBP023.
The message must be within 40 characters.
The message data must be enclosed by “ ”.
Although there are no restrictions on the data start line or column, at least
one space must be placed between the table number and “ ’ ”.
A table number must begin with “N”.
The allowable range of the table numbers is indicated below:
#9024 to #9323: 40words
#9024:
‘
Spindle error occurred’
(d) Recommended source file format
The explanation has been given using examples in which source files are consolidated
in one file using the include function. In practical programming steps, the source file is
created in several sections to reduce ladder execution/check cycle time. By creating
the source files in several sections, necessary correction should be made only for the
source file which is involved with errors, thus compiling time can be reduced.