Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1733

Hide thumbs Also See for MANUALplus 620:

Advertisement

8.29 Submit Programs
January 2012
Submit programs are subroutines that the PLC submits to the NC for
processing. This allows you to solve problems that are very processor-
intensive, require program loops, or must wait for external results. It is a
prerequisite that these programs are not restricted to a definite time frame.
Depending on the processor load, the control allocates a certain processing
power to a submit program. You start submit programs from the PLC program.
They can access all data memory areas (M/B/W/D) as the main program can.
To prevent problems, ensure that data processed by the PLC program is
clearly separated from data processed by the submit program. You can place
up to eight submit programs in a queue (submit queue). Each submit program
receives an "identifier" (a number between 1 and 255, assigned by the NC),
which the control enters in the word accumulator. With this identifier and the
REPLY function you can then interrogate whether the program is in the queue,
is being processed, or has already been processed.
The control processes the submit programs in the sequence in which they
were entered in the queue. If an error occurs during the execution of the
submit programs, the control can set a symbolic PLC operand previously
defined.
You can define any names for the symbolic operands displaying errors during
the execution of submit programs. The operands are assigned to the
respective error events in the configuration file of the PLC compiler (usually
PLCCOMP.CFG).
The following arithmetical errors can be displayed:
Entry in PLCCOMP.CFG
MULERROR
DIVERROR
MODERROR
For configuring an arbitrary symbolic marker in the configuration editor, see
"Data transfer machine parameters => PLC" on page 1657.
The assignment of the error events to a symbolic marker in the PLCCOMP.CFG
may look like this, for example:
MULERROR = MG_Overflow_during_multiplication
DIVERROR = MG_Division_by_0
MODERROR = MG_MODULO_executed_incorrectly
Also, the operands must be integrated in your PLC project:
#define /s MG_Overflow_during_multiplication
#define /s MG_Division_by_0
#define /s MG_MODULO_executed_incorrectly
The control lists these markers separately in the submit job. This means that
the same markers can be edited simultaneously in the PLC program without
changing the original markers. No exact times can be stated for the
commands for managing the submit queue.
8.29 Submit Programs
Description
Overflow during multiplication
Division by 0
Incorrectly executed modulo
M
M
M
1733

Advertisement

loading