July 2013 9.11 Submit Programs 1831
9.11 Submit Programs
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 utilization, the iTNC provides a certain computing
power for 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 iTNC 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 iTNC processes the submit programs in the sequence in which they were
entered in the queue. If errors occur during execution of the submit program,
the NC sets the following markers:
The iTNC lists these markers separately in the submit job. This means that the
same markers can be edited simultaneously in the PLC run program without
changing the original markers. No exact times can be stated for the
commands for managing the submit queue.
Set Reset
M4200 Overflow during multiplication NC PLC
M4201 Division by 0 NC PLC
M4202 Incorrectly executed modulo NC PLC
M4203 Error status for PLC module NC NC/PLC
M4204 Reserved for errors that the PLC
programmer would like to catch
NC NC