11 Programming of Cycles 05.91
11.11 Part program handling
@f22 Read word in block
It is possible to read a particular word in a particular block. The part program
containing the block must have been selected and the block must have been written
into the machining buffer.
If the word to be read is contained in the comment, a distinction must be made
between two possible cases:
a) ”Normal” comment, e.g. (DRILLING AND MILLING)
In this case reading in the comment is not possible. The output error parameter
is set to 2, i.e. the word is contained in the comment.
The words within the comment are nevertheless counted.
b) Comment with marking identifier, e.g. ( #10# )
In this case, the identifier ”#10” can be read out.
However, with both types of comment it is possible to read the brackets in the
comment.
Syntax: @f22 <R
x
> <R
y
>
Input parameters: R
x
: Word number in block
Output parameters: R
y
: Error feedback
0: No error
1: Word does not exist in the block
2: Word incorporated in the comment
(not in the case of marking)
R
y
+1: Address letter (X, Y, Z, G, M..)
R
y
+2: Extended address
0: No extended address
1: Extended address with value
2: Extended address without value
3: @ function
4: Arithmetic expression
R
y
+3: Value with extended address
R
y
+4: Operator (=, +, – ...)
R
x
+5: Value
CL 800 reserved word: READ WORD
11–60
© Siemens AG 1991 All Rights Reserved 6ZB5 410-0HD02
SINUMERIK 880, (PG)