Panasonic FP Series Programming Manual page 527

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Bitwise Boolean instructions
F69_WUNI
The function combines the two values at inputs s1 and s2 with the value at input s3 by bit-unit
Description
processing. The 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]))
s1
1010 1011 1100 1101
A
B
AND
s3
1111 1111 0000 1111
F
F
s1 AND s3
1010 1011 0000 1101
A
B
When the value at input s3 = 16#0, the value at input s2 is returned at output d.
When the value at input s3 = 16#FFFF, 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 F69_WUNI (see page 1326)
PLC types
Data types
Variable
Data type
s1, s2
s3
ANY16
d
The variables s1, s2, s3 and d have to be of the same data type.
526
16-bit data unite
0001 0010 0011 0100
1
2
C
D
Bit inverted of s3
0000 0000 1111 0000
0
0
0
F
s2 AND NOT s3
0000 0000 0011 0000
0
0
0
D
OR
d
1010 1011 0011 1101
A
B
3
D
Function
16-bit area or 16-bit equivalent constant to be compared
16-bit area that stores master data for combination or 16-bit
equivalent constant data
16-bit area for storing calculated result
s2
3
4
AND
F
0
3
0

Advertisement

Table of Contents
loading

Table of Contents