Bitwise Boolean instructions
516
Part III FP Instructions
Specify n: 16#130 when 4 hexadecimal digits (hexadecimal digits 0 to 3) of the
source are copied to 4 hexadecimal digits (hexadecimal digits 0 to 3) of the
destination.
3 2 1 0
s
d
3 2 1 0
digit
digit
PLC types
Availability of F6_DGT (see page 1325)
Variable Data type Function
s 16-bit area source
n Specifies source and destination hexadecimal digit position
and number of hexadecimal digits
d
ANY16
16-bit area destination
For Relay T/C Register Constant
s, n WX WY WR WL SV EV DT LD FL dec. or hex.
d - WY WR WL SV EV DT LD FL -
Data types
Operands
Example
In this example, the same POU header is used for all programming languages. For an example
using IL (instruction list), please refer to the online help.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
When the variable start is set to TRUE, the function is carried out. The values for source and
output in the Monitor Header of the ladder diagram body have been set to display the hexadecimal
value by activating the Hex button in the tool bar.