Siemens SINUMERIK 880 Programming Manual page 229

Hide thumbs Also See for SINUMERIK 880:
Table of Contents

Advertisement

11 Programming of Cycles
11.9 Mathematical functions
Main group 6/subgroup 6: Logical procedures
@660 <Var> <Const>
A bit (0 to 7) is defined by the constant <Const>; this bit is to be deleted in the bit
pattern defined by <Var>.
Example:
R60 = 01100111
@660
R60
K6
@661 <Var> <Const>
The constant <Const> defines a bit (0 to 7) which is to be set to "1" by the bit pattern
defined by <Var>.
Example:
R70 = 00000000
@661
R70
K2
Main group 6/subgroup 7: Boolean comparison assignments
@671 <Var 1> <Var 2> <Value>
If the numerical values defined in <Var 2> and <Value > are equal, the Boolean
variable <Var 1> is set to "1".
Example:
R50 = 11001100
@671
R51
R50
@672 <Var 1> <Var 2> <Value>
If the numerical variables defined in <Var 2> and <Value> are not equal, the Boolean
variable <Var 1> is set to "1".
@673 <Var 1> <Var 2> <Value>
If the numerical value define in <Var 2> is greater than that in <Value>, the Boolean
variable <Var 1> is set to "1".
@674 <Var 1> <Var 2> <Value>
If the numerical value defined in <Var 2> is greater than or equal to that in <Value>,
the Boolean variable <Var 1> is set to "1".
@675 <Var 1> <Var 2> <Value>
If the numerical value defined in <Var 2> is less than that in <Value>, the Boolean
variable <Var 1> is set to "1".
@676 <Var 1> <Var 2> <Value>
If the numerical value defined in <Var 2> is less than or equal to that in <Value>, the
Boolean variable <Var 1> is set to "1".
11–42
Bit No. 6 in the pattern variable is deleted.
R60 has the contents 00100111.
Bit No.2 in the pattern variable is set.
R70 has the contents 00000100.
K11001100
Since R50 is equal to the bit pattern, R51 is set to
"1".
© Siemens AG 1991 All Rights Reserved
05.91
6ZB5 410-0HD02
SINUMERIK 880, (PG)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sw 6Sinumerik 880 ga2Sw 1

Table of Contents