
B–62884EN/01
A. FUNCTIONS SPECIFIC TO INDIVIDUAL
PMC MODELS
285
Notes
1 Intel hexadecimal load modules cannot be linked. Before
link operation, convert the file format by referring to the
HEX2SREC User’s Manual.
2 With FAPT LADDER-II, ROM format files are no longer
used. This means that a ROM format file cannot be created
by compile processing alone, conversion between an object
file and ROM format file being required. A detailed
description is given below.
(a) Using method of HEX2SREC
Intel hexadecimal load modules cannot be directly linked. Perform
the below operation before linking.
[Operation]
1) Execute HEX2SREC.EXE in response to the DOS prompt.
Specify as follows:
C:\FLADDER\APPENDIX> HEX2SREC input-file-name output-file-name
2) Conversion is performed.
3) Check that specified file names have been created using the DIR
command.
4) Specify an output file name (for example, SAMPLE.SR) as the
load module file name for linking.
Note
When the extension of an input file name is omitted, the
extension “.HEX” is assumed. Output is directed to a file
with the same name but the extension is changed to ”.SR.”
The specification of the following files has the same effect
in input/output:
HEX2SREC SAMPLE.HEX SAMPLE.SR
HEX2SREC SAMPLE SAMPLE.SR
HEX2SREC SAMPLE.HEX
HEX2SREC SAMPLE
(b) Converting between an object file and ROM format file
A ROM format file cannot be created by compiling a source program.
Instead, in the case of link processing, the following extra work is
required.
· Before link processing: Conversion from an object file (MCARD
file) to a ROM format file
· After link processing: Conversion from a ROM format file to an
object file (MCARD file)
For the method of conversion, see 3.5.6.6.