Program Statements - Siemens SIMATIC S5 Manual

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

Advertisement

Machining Programs and their Structure
2.6.3 ProgramStatements
A statement in a machining program consists of a series of functions which have a fixed order
and must be separated by at least one blank. Each statement must be completed by a line feed
(< LF>). The length of a statement is limited to 50 characters, including cLF>. Blanks before
and after the line feed are not necessary, but permitted. Blanks following a line feed are included
in the length of the next statement.
The following functions are available:
N-function statement type and statement number
L-function subroutine call
G-function preparation of traversing conditions
X-function target function
F-function speed, time, loop execution
M-function auxiliary function
It is not necessary to include all functions in a statement, however, they must not occur more
than once in a statement. All the functions used must be in the order listed here. Some functions
must be the last in a statement or can only be followed by certain other functions.
The N-function in a statement and the completion by <LF> are obligatory, as is the function
Example
%9
N1 O G74 Ml O
N20G24 F5
N30L36
N50G20
N60 M02
2-32
program example
approach the already known reference point
Ml O is output at the start of the statement
beginning of a repetition loop with five repetitions
call subroutine 36
approach point 50 mm at 2000 mm/min *
end of the repetition loop
final statement, program end

Advertisement

Table of Contents
loading

Table of Contents