The N-Function - Siemens SIMATIC S5 Manual

Positioning module 1p 247 for stepper motors
Hide thumbs Also See for SIMATIC S5:
Table of Contents

Advertisement

2.6.4 The N-function

The N-function is the first function in a statement and specifies the number of the statement. This
function is obligatory and consists of the character 'N', followed by a maximum three digit num-
ber between O and 999.
The statement numbers can be entered in any order, and can be used more than once in a ma-
chining program.
The execution of the statements is always in the order in which they are entered in
the machining program.
All statements are treated as "normal statements" according to DI N 66025. The statement identifi-
ers "/N" for skippable statement and ":N" for main statement are permitted, but are of no signifi-
cance.
2.6.5 The L-Function
A different program can be called as a subroutine in a program statement. This call must follow
the N-function immediately, The function consists of the character 'L' followed by the machining
program number of the program to be called.
No further functions can follow the L-function and the statement is completed with <LF>.
Examples
N1O L123 <LF>
N20 L5 <LF>
Subroutines can be nested. The nesting of loops and subroutines must not exceed a nesting
depth of 5.
call subroutine 123
call subroutine 5
Machining Programs and their Structure
2 - 3 3

Advertisement

Table of Contents
loading

Table of Contents