EasyManua.ls Logo

Panasonic FP Series

Panasonic FP Series
1345 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Bitwise Boolean instructions
536
Part III FP Instructions
F219_DUNI
32-bit data unites 12
[d] = ([s1] AND [s3]) OR ([s2] AND (NOT[s3]))
s1
1010 1011 1100 1101
ABCD
s3
OR
s2
0001 0010 0011 0100
1234
1111 1111 0000 1111
FF0F
1010 1011 0000 1101
AB0D
1010 1011 0000 1101
AB0D
d
1010 1011 0011 1101
AB3D
0001 0010 1100 1101
12CD
0000 0000 0011 0000
0030
0001 0010 0000 0000
1200
1010 1011 1100 1101
ABCD
0001 0010 0011 0100
1234
0000 0000 1111 1111
00FF
0000
0
0000 0000 1111 0000
00F 0
1111 1111 0000
FF0
Bit invert of s3
AND AND
s1 AND s3 s2 AND NOT s3
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.
PLC types
Availability of F219_DUNI (see page 1323)
Variable Data type Function
s1 32-bit equivalent constant or 32-bit area
s2 32-bit equivalent constant or 32-bit area
s3 32-bit area that stores master data for combination or 32-bit
equivalent constant
d
ANY32
32-bit area for storing result
The variables s1, s2, s3 and d have to be of the same data type.
Description
The function combines the two values at inputs s1 and s2 bit-wise with the value at input s3. The
result of the function is returned at output d. The data-unite is calculated as follows:
Data types

Table of Contents

Other manuals for Panasonic FP Series

Related product manuals