400
5-34-3 READ PROGRAM FILE: FILP(182)
(182)
FILP C
C: 1
st
control word CIO, G, A, T, C, DM
Operand Data AreaLadder Symbol
Variations
j FILP(182)
When the execution condition is OFF, FILP(182) is not executed. When the ex-
ecution condition is ON, FILP(182) reads the ladder program file (
filename
.LDP)
specified in C+1 to C+4 from the Memory Card, and writes the data over the cur-
rent ladder program beginning at the instruction just after FILP(182). The pro-
gram file must be written to the Memory Card beforehand with the CVSS.
The program will be executed from the beginning when FILP(182) has been
completed.
Word Bit(s) Function Bit(s) Function
C 07
Write Method (ON: overwrite,
OFF: replace to END(001))
Other Set to OFF.
C+1 08 to 15 First character in name 00 to 07 Second character in name
C+2 08 to 15 Third character in name 00 to 07 Fourth character in file
C+3 08 to 15 Fifth character in name 00 to 07 Sixth character in file
C+4 08 to 15
Seventh character in name
00 to 07 Eighth character in file
If the filename is less than 8 characters long, enter #20 to the bytes that aren’t
required. It is not necessary to input the filename extension “.LDP.”
Write the execution condition so that the instruction will not be executed the first
time it is examined (i.e., the first cycle when SFC programming is not being used
and the first cycle that the step containing FILP(182) goes from inactive to active
for SFC programming). If FILP(182) is executed during the first cycle, a non-fatal
SFC continuation error will occur.
When executing FILP(182), set the maximum cycle time to 2 seconds in the PC
Setup.
The program will not be executed for several cycles (30 seconds or more max.)
when FILP(182) is executed; the cycle time will be reduced during this period.
When the Write Method Bit (C bit 07) is ON, FILP(182) will erase just enough of
the current ladder program to accommodate the program file. If the program file
transferred from the Memory Card ends with END(001), the ladder program will
end there. If the transferred program file does not end in END(001), the ladder
program will be executed until the END(001) of the original program is reached.
A program file that is longer than the original ladder program from FILP(182) to
END(001) must have its own END(001) instruction because the END(001) in-
struction in the original ladder program will be overwritten.
FILP
END
Program
file
Write
over
To here if END is in pro-
gram file
To here if END is not in
program file
Program
execution
Description
Overwrite Method
Memory Card Instructions Section 5-34