EasyManuals Logo

Panasonic FP Series User Manual

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
Page #661 background imageLoading...
Page #661 background image
Conversion instructions
660
Part III FP Instructions
F92_ENCO
Encode bit state -> hexadecimal
b specifies the starting bit position of destination data d and the number of bits to be encoded using
hexadecimal data:
Bit No. 0 to 3 number of bits to be encoded
Bit No. 8 to 11 starting bit position of destination data to be encoded
(The bits No. 4 through No. 7 and No. 12 through No. 15 are invalid.)
Put at least one bit into the area to be checked to avoid an error message
from the PLC.
When several bits are set, the uppermost bit is evaluated.
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 F92_ENCO (see page 1326)
Variable Data type Function
s starting 16-bit area to be encoded (source)
n control data to specify the starting bit position and number of
bits to be encoded
d
ANY16
16-bit area for storing encoded data (destination)
The variables s, n and d have to be of the same data type.
For Relay T/C Register Constant
s WX WY WR WL SV EV DT LD FL -
n WX WY WR WL SV EV DT LD FL dec. or hex.
d - WY WR WL SV EV DT LD FL -
Description
Encodes the contents of data specified by s according to the contents of n if the trigger EN is in the
ON-state. The encoded result is stored in the 16-bit area specified by d starting with the specified
bit position. Invalid bits in the area specified for the encoded result are set to 0.
Data types
Operands

Table of Contents

Other manuals for Panasonic FP Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Panasonic FP Series and is the answer not in the manual?

Panasonic FP Series Specifications

General IconGeneral
MountingDIN rail
TypePLC
Communication InterfaceRS-232, RS-485, Ethernet (depending on model)
Input Voltage100-240V AC or 24V DC (depending on model)
Output TypeRelay, Transistor
I/O PointsVaries by model
Operating Temperature0°C to 55°C
DimensionsVaries by model
WeightVaries by model

Related product manuals