Panasonic FP Series Programming Manual page 663

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Conversion instructions
F95_ASC
Converts the character constants specified by s to hexadecimal ASCII code. The hexadecimal
Description
code is stored in 6 words starting from the 16-bit area specified by d.
Character constants
[s]
Data register
d[5]
ASCII HEX code
[d]
2 0 4 6 4 5 4 4 2 0 3 0 3 3 3 2
ASCII character
SPACE
If the number of character constants specified by s is less than 12, the ASCII code
16#20 (SPACE) is stored in the extra destination area, e.g. s = '12345', d[0] = 3231,
d[1] = 3433, d[2] = 2035, d[3] = 2020, d[4] = 2020, d[5] = 2020.
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 F95_ASC (see page 1326)
Data types
Variable
Data type
constant, no
s
variables possible
ANY16
d
Operands
For
s
d
Error flags
No.
IEC address
%MX0.900.7
R9007
%MX0.900.8
R9008
662
12 Character -> ASCII transfer
A B C 1 2 3 0 D E F
d[4]
d[3]
F
E
D
0
3
Function
Character constants, max. 12 letters (source).
Starting 16-bit area for storing 6-word ASCII code
(destination).
Relay
-
-
-
-
-
WY
WR
WL
SV
Set
permanently
for an instant
d[2]
d[1]
d[0]
3 1 4 3 4 2 4 1
2
1
C
B
A
T/C
Register
-
-
-
-
-
EV
DT
LD
FL
If
 the last area for ASCII code exceeds the
limit
(6 words: six 16-bit areas).
Constant
dec. or hex.
-

Advertisement

Table of Contents
loading

Table of Contents