01.93 11 Programming of Cycles
11.12 @ Code table
@ code CL 800 instruction Function
@151
Var
Value
Const
FOR Var = Value 1 TO
Value 2
DO Instruction ;
Repetition instruction with
repetitions until
Var
has
reached
Value
incremen-
tally
@161
Var
Value
Const
FOR Var = Value 1
DOWNTO Value 2
DO Instruction ;
Repetition instruction with
repetitions until
Var
has
reached
Value
decrementally
@200
Var
CLEAR( Var ); Delete variable
@201
Var
Value
Var = Value Load variable with value
@202
Var 1
Var 2
XCHG ( Var 1 , Var 2 ); Exchange the variable
contents
@203
Var 1
Var 2
Const Read a bit from bit
pattern
@210
Value 3
Value 4
CLEAR MIB
( Value 3 , Value 4 );
Delete input buffer cell
@211
Var
Value
Var = MIB ( Value ); Read input buffer cell
@212
Value
Value 1
MIB ( Value )= Value 1 ; Load input buffer cell
@300
Var
Value 1
Var =MDN ( Value 1 ); Machine data NC
Value 1: Addr. 0 . . . 4999
@301
Var
Value 1
Var =MDNBY ( Value 1 ); Machine data NC bytes
Value 1: Byte addr.
5000 . . . 18240
@302
Var
Value 1
Value 2
Var =MDNBI
( Value 1 , Value 2 );
Machine data NC bits
Value 1: Byte addr.
5000 . . . 18240
Value 2: Bit addr. 0 . . . 7
@303
Var
Value 1
Value 2
Var =MDZ
( Value 1 , Value 2 );
Read cycle machine data
values
@304
Var
Value 1
Value 2
Var =MDZBY
( Value 1 , Value 2 );
Read cycle machine data
bytes
@305
Var
Value 1
Value 2
Value 3
Var =MDZBI ( Value 1 ,
Value 2 , Value 3 );
Read cycle machine data
bits
_______
Explanation of symbols:
x compare operator vop 1) Not at CL 800 level
0: . . . . no condition 2) ”Condition”: a)
Var
=Boolean variable
1:= . . . . equal to b)
Var
.
Const
=Bit from pattern
2: . . . . not equal to c)
Var
”Vop”
Value
3: . . . . greater than d) Extended condition
4: = . . . . greater than or equal to
5: . . . . less than 3) Option
6:= . . . . less than or equal to
7: . . . . true 4) No pointers possible,
8: . . . . not on CL 800 level only
Const
can be specified
© Siemens AG 1991 All Rights Reserved 6ZB5 410-0HD02 11–65
SINUMERIK 880, (PG)