Submit Programs; Call Up Of The Submit Program (Subm) - HEIDENHAIN TNC 415 Technical Manual

Hide thumbs Also See for TNC 415:
Table of Contents

Advertisement

3.16 Submit Programs

Submit programs are subprograms which the PLC submits to the NC for processing. This allows
tasks to be performed which are very processor-intensive, require program loops or must wait for
external results. It is assumed, however, that these programs are not bound by a particular time
frame. Depending on processor loading, each Submit program is allocated a certain computing
power, but always at least 5% of the total power. Submit programs are started from the PLC
program and can access all the same data memories (M/B/W/D) as can the main program. This can
lead to problems in certain circumstances. Such problems can be avoided if the data processed by
the PLC program are clearly separated from the data processed by the Submit program.
Up to eight Submit programs can be entered in a queue (Submit Queue). Each receives an
"Identifier", a number between 1 and 255 allocated by the NC, which is transferred into the Word
Accumulator. With this "Identifier" and the REPLY function, it can be interrogated whether or not the
program is in the queue, is being processed or is already complete. The Submit programs are
executed in the order of their placement in the queue. Should an error occur during the execution of
the Submit programs, the following Markers are set:
M3168: Overflow during Multiplication
M3169: Division by 0
M3170: MODULO incorrectly executed
M3171: Error status for PLC module
M3172: Reserved for errors, which the PLC programmer would like to intercept
These markers are listed separately in the submit job. This means that the same markers can be
edited as those in the PLC run program without changing the original markers.
Exact times cannot be given for the commands for the management of the Submit queue. The
execution times denote maximum values.

3.16.1 Call up of the Submit Program (SUBM)

Abbreviation for PLC Editor:
SUBM (SUBMIT)
Execution time [µs]
< 30
Number of bytes
10
Operands: jump address (LBL)
Operation:
The SUBM command allots an "Identifier" (1 to 255) to the subprogram, designated by the jump
address (LBL). Simultaneously, the allocated number is written to the Word Accumulator. If there
are already programs transferred into the Submit queue, the addressed program will not be
processed until the program immediately prior to it is finished. A submission to the queue may only
take place from a PLC program, a SUBM command in a Submit program is not possible.
If no location is free in the queue, or if the SUBM command is programmed in a Submit program
(nesting), a "0" will be returned to the Word Accumulator.
01.98
TNC 407/TNC 415/TNC 425
3 Commands
7-123

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 425eTnc 415fTnc 407Tnc 415bTnc 425

Table of Contents