Yaskawa YASNAC PC NC PLC Programming Manual User Manual

Page 141

Advertising
background image

7 - 14

YASNAC PCNC PLC Programming Manual Chapter 4: Sequence Control Method

7.3 COMPILER

7.3.1

Compiler

By executing the compiler instruction, the source file which has been created of edited is
compiled to generate the object file.

(1) Starting the Compiler

The J1LCOMP is started by the following procedure.

J1LCOMP file-1 [.SRC]

[file-2[.OBJ]]

[file-3[.ERR]][ENTER]

(2) Description of Parameters

file-1: Source file name (input)

file-2: Object file name (output)

file-3: Error file name (output)

Entry for the items in [] can be omitted.

If the entry is omitted for file-2 and file-3, a default name is set.

If only “J1LCOMP” is input, the guide messages for inputting the parameters are
displayed.

Example: J1LCOMP B: LADTEST [ENTER]

The LADTEST.SRC file is input and compiled. If an error occurs, LADTEST.ERR
file is created.When the source is compiled without errors, LADTEST.OBJ file is output.

When the include function is used, compilation is required only for the main file.The files
included in the main file are compiled automatically.

7.3.2

Complier Error List

If an error occurs during compilation, the compiler outputs the error list file having the extension
of “.ERR” with the same main file name as the input file.

It is also possible to designate the file name of the error list file at start of the compiler. In this
case, the error list is output in the designated file name.

The compiler error information is stored to the error list file.

If the file has the same name as the error list file name, the existing file is detected when the error
list file is generated.

Advertising