Last Block - Siemens SIMATIC S5 Manual

Ip 266 positioning module
Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

IP 266
M02: End of program
This function must be programmed in the last block of a main program or
subroutine.
M99: External switching function
This switching function is applied directly to an IP 266 digital output. This
output is connected with pin 10 on the terminal block.
All other values (i. e. M01 and M03 to M98) are available to the user.
An M function is output when execution of a block begins, and remains in
force until the next M function is output.
If a traversing program begins with blocks in which no M functions have been
programmed, M255 is output to the PLC. One byte is available for the display.
The value "FF" is displayed if the format is KH, the value "-1" if the format is
KF.
5.4.3

Last Block

The last function programmed in the last block of a traversing program must be
an M function with the parameter 02. The format of the last block is the same as
that of all other blocks.
In its shortest form, the last block must contain
Nnn
M02 <1>
EWA 4NEB 812 6057-02
Machine Data, Modes and Traversing Programs
5-91

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents