Bitwise; Bget; Bitand - ABB ACSM1 Firmware Manual

Motion control program
Hide thumbs Also See for ACSM1:
Table of Contents

Advertisement

Bitwise

BGET

(10034)
Illustration
Execution time
Operation
Inputs
Outputs

BITAND

(10035)
Illustration
Execution time
Operation
Inputs
Outputs
(DINT)
TLA1 1 msec
BITNR
I
0.88 µs
The output (O) is the value of the selected bit (BITNR) of the input (I).
BITNR: Bit number (0 = bit number 0, 31 = bit number 31)
If bit number is not in the range of 0...31 (for DINT) or 0...15 (for INT), the output is 0.
The input data type is selected by the user.
Number of the bit (BITNR): DINT
Input (I): DINT, INT
Output (O): Boolean
BITAND
TLA1 1 msec
I1
I2
0.32 µs
The output (O) bit value is 1 if the corresponding bit values of the inputs (I1 and I2)
are 1. Otherwise the output bit value is 0.
Example:
I1
1 1 1 0 0 0 0 0 1 1 1 0 0 1 0 1 1 1 0 1 0 0 1 1 0 0 1 1 0 1 0 1
I2
0 0 0 0 0 1 1 1 0 0 1 0 1 1 1 0 1 0 0 1 1 0 0 1 1 0 1 0 1 1 1 1
O
0 0 0 0 0 0 0 0 0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 1 0 0 1 0 0 1 0 1
Input (I1, I2): DINT
Output (O): DINT
BGET
64
(1)
O
65
(1)
O
O(64)
O(65)
Standard function blocks
297

Advertisement

Table of Contents
loading

Table of Contents