11  Programming of Cycles   05.91
11.11  Part program handling
@f20 Edit word in block
This @ code can edit a particular word in a block. It works correctly only if a particular
part program has previously been selected with @f01 and the block has been read into
the machining buffer with @f10 or @f11. After having been edited, the block is
automatically written back into the part program memory.
Syntax: @f20 <R
x
> <R
y
>
Input parameters: R
x
: Word number in block
R
x
+1: Address letter (X, Y, Z, G, M..)
R
x
+2: Extended address
0: No extended address
1: Extended address with value
2: Extended address without value
3: @ function
4: Arithmetic expression
R
x
+3: Value with extended address
R
x
+4: Operator (=, +, –, ...     )
R
x
+5: Value
Output parameters: R
y
: Error feedback
0: No error
1: Error in comment
2: Program located in EPROM
3: Program protected  against writing
4: Memory full
5: Comment too long
6: Input error
7: MDI full
8: Editing not possible
CL 800 reserved word: EDIT WORD
Example: for @f20
A part program incorporates the following block:
N50  G01  X100  Y50  L
F
”X100” is to be changed into ”X1=100” by means of @f20. The assignment of the input
R parameters is as follows:
R
x
:2   Word number in block
R
x
+1: 88 (”x”)   Address letter
R
x
+2: 1   Extended address Yes
R
x
+3: 1   ASCII character of address letter
R
x
+4: 61 (”=”)   Operator
R
x
+5: 100   Value
11–58
©  Siemens AG  1991  All Rights Reserved      6ZB5 410-0HD02
SINUMERIK 880, (PG)