203] Bit Xor/Xnor Operation; 210] Bit Shift Right - BONFIGLIOLI AGILE Applications Manual

Hide thumbs Also See for AGILE:
Table of Contents

Advertisement

5.11.4 [203] Bit XOR/XNOR operation

Type
%
input value 1
I1
%
input value 2
I2
I3
b
Master Set
b
Master Reset
I4
Description:
The input value at I1 is Exclusive-OR combined. Via P2, you can select:
− P2 = 1: I1, I2 are Exclusive-OR combined.
− P2 = 2: I1, P1 are Exclusive-OR combined.
− P2 = 3: I1, I2, P1 are Exclusive-OR combined.
Master Set sets all bits of the output value (Output = 0xFFFF).
Master Reset deletes all bits of the output value (Output = 0x0000).
Examples:
P2
1) XOR (I1 I2)
2) XOR (I1 P1)
3) XOR {XOR (I1 I2) P1}
Re example 1):

5.11.5 [210] Bit shift right

Type
I1
%
input value 1
-
-
I2
I3
b
Master Set
b
Master Reset
I4
Description:
The input value at I1 is shifted to the right bitwise by the number of shifts (P2). Left side is
filled with zeroes.
08/10
08/10
Function
Type
%
O1
%
O2
P1
%
i
P2
I1
0xF00F
0x0F0F
0xF00F
0xF00F
0x0F0F
Function
Type
O1
%
%
O2
P1
-
i
P2
VPLC / PLC
VPLC / PLC
Function
O1=XOR (I1 I2) if P2=1,
O1=XOR (I1 P1) if P2=2,
O1=XOR {XOR (I1 I2) P1} if
P2=3
inverted output = (XNOR)
Mask
Operation mode (1, 2 or 3)
I2
P1
O1
-
0xFF00
-
0x00FF
0xF0F0
0x00FF
0xFFFF
Function
I1 bitwise shifted by P2
inverted output
-
Number of shifts
O2
0x00FF
0x0F0F
0x0000
129
129

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Active cube

Table of Contents