Panasonic FP Series Programming Manual page 656

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F89_EXT
16-bit data is converted to 32-bit data without signs and values being changed. F89 copies the sign
Description
bit of the 16-bit data specified in s to all the bits of the higher 16-bit area (extended 16-bit area) in
d.
If the sign bit (bit position 15) of the 16-bit data specified by s is 0, all higher 16 bits in the variable
assigned to d will be 0. If the sign bit of s is 1, the higher 16 bits of d will be 1.
Destination
Bit position
31
Binary data
1
Decimal data
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 F89_EXT (see page 1326)
PLC types
Data types
Variable
Data type
ANY16
s
ANY32
d
Operands
For
s
d
In this example the function has been programmed in ladder diagram (LD) and structured text
Example
(ST).The same POU header is used for all programming languages.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
16-bit data sign extension, INT -> DINT
Sign bit (0: positive, 1: negative)
Source
Bit position
15
1211
· · ·
· ·
Binary data
1
1
1 1
1 1
Decimal data
2827
2423
2019
· · ·
· ·
· ·
· ·
1
1 1
1 1
1
1 1
1
1 1 1
1 1 1
Higher (extended) 16-bit area
Function
16-bit source data area, bit 15 is sign bit
32-bit destination area, s copied to lower 16 bits, higher 16
bits filled with sign bit of s
Relay
-
WY
WR
WL
SV
-
DWY
DWR
DWL
DSV
s
8
7
4
3
0
· ·
· ·
1
1
1
1
1
1
1
1 1
0
–2
start: ON
d
16
15
1211
8
7
· · ·
· ·
· ·
1
1
1 1
1 1
1
1
1
1
1
–2
Lower 16-bit area
T/C
Register
EV
DT
LD
FL
DEV
DDT
DLD
DFL
Conversion instructions
4
3
0
· ·
1
1
1 1
0
Constant
-
-
655

Advertisement

Table of Contents
loading

Table of Contents