Panasonic FP Series Programming Manual page 678

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

F251_ATOB
Converts ASCII code stored in the area specified by s2_AsciiData to 16-bit/32-bit binary data. The
Description
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_BinaryData.
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 F251_ATOB (see page 1323)
Data types
Variable
s1_Control
s2_AsciiData
n_ConversionMethod
d_BinaryData
ASCII -> Binary conversion
Data type
Function
STRING
Control string
D
16
ANY
Starting area for storing ASCII data
ANY16
Conversion method
16#
(for details, see explanation following the tables)
ANY
Starting area for storing binary data
Conversion instructions
16:
converts the ASCII data to 16-bit
-32,768 to +32,767 (16#0 to 16#F
converts the ASCII data to 32-bit
32:
-2,147,483,648 to +2,147,483,647
16#FFFFFFFF)
+
Normal direction
-
Reverse direction
D:
converts decimal ASCII data
H:
converts hexadecimal ASCII dat
Number of ASCII characters pe
Offset in ASCII character units
Number of 16-bit (1-word) or 32
uni
677

Advertisement

Table of Contents
loading

Table of Contents