Panasonic FP Series Programming Manual page 633

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Conversion instructions
BCD character
0
1
2
3
4
5
6
7
8
9
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 F74_A2BCD (see page 1326)
PLC types
Data types
Variable
Data type
WORD
s1
ANY16
s2
WORD
d
Operands
For
s1
s2
d
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
In this example, the same POU header is used for all programming languages. For an example
Example
using IL (instruction list), please refer to the online help.
632
ASCII HEX
code
H30
H31
H32
H33
H34
H35
H36
H37
H38
H39
Function
starting 16-bit area for storing ASCII code (source)s
specifies number of source data bytes to be converted, and
how it is arranged
starting 16-bit area for storing converted result (destination)
Relay
WX
WY
WR
WL
WX
WY
WR
WL
-
WY
WR
WL
Set
permanently
for an instant
T/C
Register
SV
EV
DT
LD
FL
SV
EV
DT
LD
FL
SV
EV
DT
LD
FL
If
 ASCII code not corresponding to decimal
numbers (0 to 9) is specified.
 the number of bytes specified by s2
exceeds the area specified by s1.
 the converted result exceeds the area
specified by d.
 the data specified by s2 is recognized as
"0".
 the number of bytes for ASCII characters
in s2 is more than 16#8.
Constant
-
dec. or hex.
-

Advertisement

Table of Contents
loading

Table of Contents