
10.COMMAND LINE EXECUTION FUNCTION B-66234EN/05
- 380 -
10.5 SAMPLE COMMAND FILE
An example of programming a command file is shown below.
Example)
<1> Opens ladder program D:\SB6_LAD\SB6_A.LAD.
<2> Imports source program D:\LAD_SRC\LEVEL1.#LA.
<3> Imports source program D:\LAD_SRC\LEVEL2.#LA.
<4> Imports source program D:\LAD_SRC\P15.#LA.
<5> Imports symbol and comment source program
D:\SYMBOL_SRC\XSYMBOL.000.
<6> Executes compilation in condense mode with the symbol and
comment output option specified.
<7> Exports the ladder program to memory card format file
D:\SB6_MEM\SB6_A.MEM.
<8> Saves the ladder program into D:\SB6_LAD\SB6_A.LAD and
closes it.
<9> Terminates batch processing.
Specify the command procedure for the above processing as follows:
;===========================================
; FANUC LADDER-III Batch Command File
;===========================================
FlOpen D:\SB6_LAD\SB6_A.LAD
Import /Ladder=
LEVEL1 D:\LAD_SRC
Import /Ladder=
LEVEL2 D:\LAD_SRC
Import /Ladder=P15 D:\LAD_SRC
Import /Symbol D:\SYMBOL_SRC
Compile /condense=1 /symbol=1
Export /MemData D:\MEMCARD\SB6_A.MEM
FlClose
End
;
10.6 NOTE
If an invalid command or nonexistent file or file folder is specified,
processing stops at the point where the invalid item is found.