Panasonic FP Series Programming Manual page 537

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Bitwise Boolean instructions
F219_DUNI
The function combines the two values at inputs s1 and s2 bit-wise with the value at input s3. The
Description
result of the function is returned at output d. The data-unite is calculated as follows:
[d] = ([s1] AND [s3]) OR ([s2] AND (NOT[s3]))
1010 1011 1100 1101
A
B
1111 1111 0000 1111
F
F
1010 1011 0000 1101
A
B
When the value at input s3 = 16#0, then the value at input s2 is returned at output d.
When the value at input s3 = 16#FFFFFFFF, then the value at input s1 is returned at output d.
This instruction also exists as a P instruction (for FP2/2SH, FP3/5, FP10/10SH PLC types), which
is only executed at the rising edge of the EN trigger. Select [Insert P instruction] from the
"Instructions" pane if you require a P instruction. To facilitate reuse, the instruction then appears
under "Recently used" in the pop-up menu. Press <Ctrl>+<Shift>+<v> within the programming
area to open the list of recently used elements.
Availability of F219_DUNI (see page 1323)
PLC types
Data types
Variable
Data type
s1
s2
ANY32
s3
d
The variables s1, s2, s3 and d have to be of the same data type.
536
32-bit data unites 12
s1
1010 1011 1100 1101
C
D
A
B
C
AND
s3
0000 0000 1111 1111
0
F
0
0
F
s1 AND s3
1010 1011 0000 1101
A
B
0
0
D
1010 1011 0011 1101
A
B
3
Function
32-bit equivalent constant or 32-bit area
32-bit equivalent constant or 32-bit area
32-bit area that stores master data for combination or 32-bit
equivalent constant
32-bit area for storing result
0001 0010 0011 0100
1
2
3
D
Bit invert of s3
0000 0000 1111
0000
F
0
0
F
s2 AND NOT s3
0000 0000 0011 0000
D
0
0
3
OR
d
0001 0010 1100 1101
D
1
2
C
D
s2
0001 0010 0011 0100
4
1
2
3
4
AND
1111 1111 0000
0000
0
F
F
0
0
0001 0010 0000 0000
0
1
2
0
0

Advertisement

Table of Contents
loading

Table of Contents