Program Structure - HEIDENHAIN iTNC 530 HSCI Technical Manual

Hide thumbs Also See for iTNC 530 HSCI:
Table of Contents

Advertisement

9.7.3 Program structure

1756
To make it easier to maintain and expand your PLC program, you should give
it a modular structure. Modular means that you write a separate program
module for each function. You can then call the individual modules from the
main program. You should interrogate improper functioning of the machine in
the PLC program and indicate such malfunctions on the screen with plain-
language error messages.
Module 9019 Size of the processing stack
To debug functions, you can use Module 9019 to interrogate the contents of
the processing stack. The function answers with the number of the bytes that
lie on the processing stack of the PLC at the moment. If the processing stack
is empty, the iTNC returns the value zero. A byte, word, double word or string
occupies four bytes on the stack; a marker, input, output, timer or counter
occupies two bytes.
Call:
CM
9019
PL
B/W/D
<>Number of bytes on processing stack>
HEIDENHAIN Technical Manual iTNC 530 HSCI

Advertisement

Table of Contents
loading

Table of Contents