Panasonic FP Series Programming Manual page 674

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F250_BTOA
Converts 16-bit/32-bit binary data stored in the area specified by s2_BinaryData to ASCII code.
Description
The conversion method is specified by n_ConversionMethod according to the four control
characters of s1_Control. The converted result is stored in the area specified by d_AsciiData.
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 F250_BTOA (see page 1323)
PLC types
Data types
Variable
s1_Control
s2_BinaryData
n_Conversion
Method
d_AsciiData
Operands
For
s1_Control
s2_BinaryData
n_Conversion
Method
d_AsciiData
Binary -> ASCII conversion
Data type
Function
STRING
Control string
16
ANY
Starting area for storing binary data
ANY16
Conversion method
16#
(for details, see explanation following the tables)
ANY
Starting area for storing ASCII data
Relay
WX
WY
WR
WL
SV
WX
WY
WR
WL
SV
-
WY
WR
WL
SV
-
WY
WR
WL
SV
D
converts to decimal ASCII data
D:
converts to hexadecimal ASCII data
H:
+
Normal direction
-
Reverse direction
16: converts in 16-bit (1-word) units
32: converts in 32-bit (2-word) units
Number of ASCII characters per converted unit
Offset in ASCII character units (8-bit)
Number of 16-bit (1-word) or 32-bit (2-word)
T/C
Register
Constant
EV
DT
LD
-
EV
DT
LD
-
EV
DT
LD
-
dec. or hex.
EV
DT
LD
-
Conversion instructions
units converted
-
-
-
673

Advertisement

Table of Contents
loading

Table of Contents