File and Program Management
2.2 Working memory (CHANDATA, COMPLETE, INITIAL)
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
213
Create initialization program at an external PC
The data area identifier and the data type identifier can be used to determine the areas,
which are to be treated as a unit when the data are saved:
_N_AX5_TEA_INI Machine data for axis 5
_N_CH2_UFR_INI Frames of channel 2
_N_COMPLETE_TEA_INI All machine data
When the control is started up initially, a set of data is automatically loaded to ensure proper
operation of the control.
Procedure for multi-channel controls (CHANDATA)
CHANDATA(<channel number>) for several channels is only permissible in the file
_N_INITIAL_INI. This is the commissioning file with which all data of the control is initialized.
Program code Comments
%_N_INITIAL_INI
CHANDATA(1)
; Machine axis assignment, channel 1:
$MC_AXCONF_MACHAX_USED[0]=1
$MC_AXCONF_MACHAX_USED[1]=2
$MC_AXCONF_MACHAX_USED[2]=3
CHANDATA(2)
; Machine axis assignment, channel 2:
$MC_AXCONF_MACHAX_USED[0]=4
$MC_AXCONF_MACHAX_USED[1]=5
CHANDATA(1)
; Axial machine data:
; Exact stop window coarse:
$MA_STOP_LIMIT_COARSE[AX1]=0.2 ; Axis 1
$MA_STOP_LIMIT_COARSE[AX2]=0.2 ; Axis 2
; Exact stop window fine:
$MA_STOP_LIMIT_FINE[AX1]=0.01 ; Axis 1
$MA_STOP_LIMIT_FINE[AX1]=0.01 ; Axis 2
CAUTION
CHANDATA statement
In the part program, the
CHANDATA instruction may only be set for that channel in which the
NC program is executed; i.e. the instruction can be used to protect NC programs so that
they are not executed in the wrong channel.
Program processing is aborted if an error occurs.
Note
INI files in job lists do not contain any
CHANDATA instructions.