213] Bit Roll Right; 220] Output One Bit - BONFIGLIOLI AGILE Applications Manual

Hide thumbs Also See for AGILE:
Table of Contents

Advertisement

Example
1)
1: One shift
2)
4: Four shifts
3)
8: Eight shifts
In example 1):

5.11.8 [213] Bit roll right

Type
I1
%
input value 1
I2
-
-
b
Master Set
I3
I4
b
Master Reset
Description:
The input value at I1 is shifted to the right bitwise by the number of shifts (P2). On the left
side, the bits leaving on the right side will be inserted.
Master Set sets all bits of the output value (Output = 0xFFFF).
Master Reset deletes all bits of the output value (Output = 0x0000).
Note:
Rolling by 8 bits exchanges the most significant bit and least significant byte.
Rolling by 15 bits to the right corresponds to rolling by one bit to the left.
After rolling by 16 bits, the output value at O1 is the same as the input value at I1.
Example
1)
1: One shift
2)
4: Four shifts
3)
8: Eight shifts
In example 1):

5.11.9 [220] Output one bit

Type
I1
%
input value 1
-
-
I2
I3
b
Master Set
b
Master Reset
I4
Description:
A selected bit of input value 1 is output at output 1. The bit is selected via P1.
P1=0: The least significant bit (LSB) is selected,
P1=15: The most significant bit (MSB) is selected.
08/10
08/10
P2
0xF00F
0x00FF
0xFF00
Function
Type
O1
%
O2
%
-
P1
P2
i
P2
0xF00F
0x00FF
0xFF00
Function
Type
O1
b
b
O2
P1
i
-
P2
I1
O1
O2
0xE01E
0x1FI1
0x0FF0
0xF00F
0x0000
0xFFFF
Function
I1 bitwise shifted by P2, with
bits re-inserted
inverted output
-
Number of shifts
I1
O1
O2
0xF807
0x07F8
0xF00F
0x0FF0
0x00FF
0xFF00
Function
One bit of I1, selected via P1
inverted output
Number of bit (0 ... 15)
-
VPLC / PLC
VPLC / PLC
131
131

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AGILE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Active cube

Table of Contents