Milltronics PL-551 Technical Information Seite 333

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 441
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 332
SECTION FIVE - MISCELLANEOUS FUNCTIONS (M CODES)
Subprogram execution
A subprogram is executed when called by the main program or another subprogram. A
subprogram call has the following format.
M98 PXXXX LXXX
Where PXXXX = subprogram number
And LXXX = number of times the subprogram is to be
repeated
Example: M98 P0002 L5
M98 P2 L5
Call 2 L5
This command reads, call subprogram number 2 five times.
When the loop number is omitted, the subprogram is run once.
A subprogram call command and move command can be specified in the same block.
Example: X1 M98 P0200
In this example the subprogram 200 is called after completing movement in the X axis direction.
The execution sequence of a main program which calls a subprogram is as follows.
When the subprogram is called by another subprogram, it is executed in the same sequence as
shown in the above example.
319
Seitenansicht 332
1 2 ... 328 329 330 331 332 333 334 335 336 337 338 ... 440 441

Kommentare zu diesen Handbüchern

Keine Kommentare