
B–61863E–1/06
G. HINT FOR MAKING LINK CONTROL
STATEMENT, COMMAND FILE
FOR BINDER, BUILD FILE
APPENDIX
531
D USER GDT ADDRESS (Link control statement)
D RANGE (Build file)
a. Setting of the start address of C application code
Specify in Link control statement and Build file.
1) Link control statement
Set at the main screen of MKC(Link control statement creation
tool)
USER GDT ADDRESS = 845000
2) Build file
RANGE = (
TASK_CODE = ROM(000845000H
..0008FFFFFH),
TASK_DATA = RAM(000000000H..0000FFFFFH)
)
On SYSPRM screen, under the line of ’LANGUAGE ORIGIN’,
’LANGUAGE AREA = xxxxxxxx, SIZE = yyyKB’ is shown.
Set the value within the range from ’xxxxxxx’ to ’xxxxxxxx+yyy’.
CAUTION
Set the same value to Link control statement, Build file.
(the part of under line which is shown above)
b. Setting of the end address of the C application code
Specify in the Build file.
RANGE = (
TASK_CODE = ROM(000845000H..0008FFFFFH
),
TASK_DATA = RAM(000000000H..0000FFFFFH)
)
Set end address within the range to the value ’LANGUAGE
ORIGIN’+’SIZE’.
CAUTION
If ’LADDER MAX SIZE’ is modified on SYSPRM screen,
’LANGUAGE AREA’ and ’SIZE’ is changed.
Modify the ’LADDER MAX SIZE’ to near size of LADDER
program (shown on TITLE screen on PMCDGN) to get
larger C language area.
c. Setting of the address of C application data
Specify in the Build file.
RANGE = (
TASK_CODE = ROM(000845000H..0008FFFFFH),
TASK_DATA = RAM(000000000H
..0000FFFFFH)
)
Specify 0H to start address and FFFFFH to the end address,
because PMC system locates the data segment of each task.
G.2
SETTING OF THE
ADDRESS OF THE C
APPLICATION