beautypg.com

1 ladder compiler – Yaskawa YASNAC PC NC PLC Programming Manual User Manual

Page 204

background image

11 - 5

YASNAC PCNC PLC Programming Manual Chapter 11: YASNAC Paradym-31 DLL

11.8 Each DLL

11.8.1 Ladder Compiler

INT

STS = lcomp(char*psrcfile,char*pobjfile,char*perrfile);

psrcfile[64]:

Name of the file to be compiled

pobjfile[64]:

Name of newly compiled file

perrfile[64]:

Name of the file that saves compile error data

STS =

0: Successful
Other than 0: Number of error or warning

Basically, the ladder compiler contains the YASNAC J100 specification; however, since
the following changes have been added, it is considered the Paradym-31 DLL ladder
compiler.

(1) Compatible with 16-bit Message Data

16-bit characters are converted to 32-bit SHIFT-JIS and saved in an execution module, in
order to correspond to 16-bit message data in the DLL ladder compiler.
(In conventional specifications, the message data is created by the 32-bit SHIFT-JIS.)

(2) Possible to duplicate symbol name definition for one contact number

The Paradym-31 can give more than two (a maximum of 5000) symbol definition names
to one contact number. Therefore, the compiler for the YASNAC is also capable of this
function.

For example:

#10000 STEP
#10000 STEP2

(In conventional specifications, the compilation error “Variable number has duplicated
contact definition
” occurs.

Process When An Error Occurs
When a compilation error occurs, the file that saves compiler error data is automatically
opened from a memo pad.