Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1509

Hide thumbs Also See for MANUALplus 620:

Advertisement

8.2 PLC Compiler
8.2.1 Configuration file for the PLC compiler
January 2012
The configuration file for the PLC compiler (*.MCG) contains configuration
definitions that describe a specific machine configuration and can be used for
conditional compiling.
By using keywords in the configuration file, you can define different settings,
e.g. influence the memory allocation of the control, specify the structure of the
symbolic memory interface, or modify the configuration data of the PLC run-
time system.
In the MP_compCfgFile machine parameter, you specify the path for the
configuration file of the PLC compiler. For example:
MP_compCfgFile = %PLC%\plc\program\oem.mcg
See page 1545.
Enter certain keywords to perform changes. After the compilation of the PLC
program, the NC detects the changed settings, and the control must be
restarted.
You use the keyword DEFINE and the constants GENERAL_COUNT,
OMG_COUNT, CHANNEL_COUNT, AXIS_COUNT and SPINDLE_COUNT to
specify the structure of the symbolic memory interface (see the table on the
next page).
An NCK-based control currently supports up to 20 axes (MAX_AXIS = 20). This
value cannot be changed, and represents the upper limit for all configurable
axes (including the manually operated axes as well as those that are only
displayed).
The value of the AXIS_COUNT constant defines the number of axes of the
machine. NCK-based controls count spindles together with axes, therefore
you must include the spindle(s) in the value for AXIS_COUNT.
Also, under SPINDLE_COUNT you indicate how many of the axes defined in
AXIS_COUNT are spindles.
Every control with NCK software also has the following internal constants with
product-specific upper limits:
MAX_OMG_PRODUCT, MAX_CHANNEL_PRODUCT,
MAX_SPINDLE_PRODUCT and MAX_AXIS_PRODUCT.
These product-specific limits are predefined and cannot be changed. If your
settings in the configuration file exceed these values, then the product-
specific upper limits automatically take effect.
The number of axes defined in AXIS_COUNT must match the setting of the
MP_axisList parameter (System/CfgAxes) in the machine configuration.
Otherwise the control will issue an error message when compiling the PLC
program.
8.2 PLC Compiler
1509

Advertisement

loading