
3.PROGRAM CONVERSION B-64214EN/01
- 16 -
LD program
Each file in the LD folder contains each logic block of LD program
that is the result of conversion. Each file is named as follows.
LEVEL1.TXT 1st level main program.
LEVEL2.TXT 2nd level main program.
‘Program Number’.’Level Number’.TXT Subprogram.
Example of file name:
P123.2.TXT Subprogram P123 in 2nd level.
When the comment is defined for the sub program number (P address)
in the source program, it is converted into the description line inserted
at the beginning of each file. The description line consists of a
keyword "description", a space (20H of ASCII) separator, and the
comment text defined for the sub program number (P address).
When the comment is not defined as a sub program number, the
description line is entirely omitted.
The rest of the file except the description line is LD instructions
converted from each main and sub program in the source program.
The format of this part is the same as a text file copied and pasted
from LD editor of FANUC LADDER-IIIC.
Example of the contents of the file:
Description THIS BLOCK FOR MACHINE OPERATOR PANELS
COMMENT /*
Operator's panels for I/O-Link.
*/;END_RUNG;
CALL P0021; END_RUNG;
CALL P0026; END_RUNG;