beautypg.com

Yaskawa YASNAC PC NC PLC Programming Manual User Manual

Page 132

background image

7 - 5

YASNAC PCNC PLC Programming Manual Chapter 4: Sequence Control Method

(5) Nesting in the Source File

The source file of a ladder program will usually be a very large file and editing is not a simple
task.

In compilation, the included file function allows the several divided files to be compiled in
one file.

[Main][High-speed scan sequence][Low-speed scan sequence1] [Low-speed scan sequence 2]

Fig. 7.1Nesting in the Source File

As illustrated above, nesting of the files is possible up to two levels.

Pseudo instructions for the start and end of a high-speed scan/low-speed scan ladder
(HIGHSEQUENCE, LOWSEQUENCE, ENDP) must always be written in a main file.

(a) Main file

The format of a source file is described below using this as an example.