04.97
Programming in S5 Format
7
Programming in S5 Format
This chapter is only relevant for you if you manage traversing programs directly in S5 data
blocks. The examples in all other chapters are programmed in DIN format, which is used by
COM 723. Here, you will learn how to program these examples in S5 format.
Block format in the S5 format
15
0
a a a a a a a
a a a a a a a
a a a a a a a
DW x+1
a a a a a a a
a a a a a a a
a a a a a a a
a a a a a a a
DW x+2
a a a a a
a a a a a
a a a a a
a a a a a
DW x
a a a a a a a
a a a a a a a
a a a a a a a
DW x+3
a a a a a a a
a a a a a a a
a a a a a a a
a a a a a a a
DW x+4
a a a a a a a
a a a a a a a
a a a a a a a
a a a a a a a
DW x+5
a a a a a a a
a a a a a a a
a a a a a a a
DW x+6
a a a a a a a
a a a a a a a
a a a a a a a
DW x+7
a a a a a a a
a a a a a a a
a a a a a a a
a a a a a a a
DW x+8
A
G1-function
KY
KY
KM
KM
KY
KY
KH
KH
KH
KH
KY
KY
L
0
P G4 G3 G2 G1
G3-function
0
G2-function
0 FN D M3 M2 M1 F
G4-function
Position in [
µ
m] /
Dwell time in [ms] / subroutine number
Speed in [0.01 mm/min] / loop number
M1-function
M3-function
M2-function
D-function
Continue identifier
Program number
a a a a a a a
a a a a a a a
a a a a a a a
DW x+9
a a a a a a a a
a a a a a a a a
a a a a a a a a
a a a a a a a a
DW x+10
a a a a a a a a
a a a a a a a a
a a a a a a a a
DW x+11
Internally assigned
Block number
Axis no.
X
Y
Z
A
B C
0
0
0
0
0
0
General guidelines for the conversion DIN format
➯
S5 format
•
If all data of a traversing block have to be accommodated in a block in S5 format, there
must be no subdivision into following blocks.
•
If following blocks are needed, M-function and D-number must be stored in the main block.
The program number is not contained in the table because it does not
change within a program. In S5 format, the program number must be
entered in the corresponding place.
©
Siemens AG 1997 All Rights Reserved 6ZB5 440-0VU02
7 – 1
WF 723 C (Programming Guide)