EasyManua.ls Logo

Panasonic FP7 Series - Page 681

Panasonic FP7 Series
1222 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
Loading...
The maximum number of characters after conversion for a single datum is 32. An operation
error occurs when it exceeds 32 characters.
To directly specify a character constant for the operand [S1], enter the constant in the
"Instruction list" dialog box in the FPWIN GR7 programming tool.
Setting the control string [S1]
Specifies the conversion data type, number of characters, precision, etc. using the string data of
the following formats. A variety of options (such as inserting a sign or spaces) can also be
selected depending on the type of data to be converted. For details, see below.
% ,d12.5+
0 : Zero padding
+ : A sign is added (plus sign)
␣: A space is inserted
- : Left align (default is right align)
# : Characters are added according to the
conversion data
Option setting (1)
" "
Option setting (2)
Number of characters after conversion and the precision
Specify the total number of characters (n) and the number of
characters of precision (m) with [n.m], [n], or [.m]. The
number of characters of precision (m) changes according to
the type of conversion data
d: Signed integer → Decimal ASCII
u: Unsigned integer → Decimal ASCII
x: Unsigned integer → Hexadecimal ASCII
b: BDC integer → Hexadecimal ASCII
f: Floating point real number → Floating point ASCII
e: Floating point real number → Exponential notation ASCII
g: Floating point real number → Floating point ASCII or
exponential notation ASCII
, : A comma is added
BCD : Postfix characters are added
H: Postfix characters are added
Type of data to be converted
[S1] =
Type of data to be
converted
Number of characters of precision (m)
d , i , u , x , X , b
represents the number of characters in
numerical strings.
f
represents the number of characters after the
decimal point.
g represents the number of significant figures.
Setting the conversion method [N]
Conversion method [N] should be specified in a Hex format in the 32-bit area.
H 01002
H1 to H FFFF (1 to 65535)
Amount of data to be converted
Storage starting position
Specify the header where the converted character string is stored
from the relative position of the low byte of [D]. The round
numbers in the following diagram indicate the relative position.
The character string is stored from relative position for H00
and from relative position for H01.
H00: Forward direction
H01: Reverse direction
Conversion direction
H0 to H FF (Conversion)
Specify a conversion direction. Forward direction can only
be specified for hexadecimal data (control string %x) or BCD
data (control string %b). For all other data formats, reverse
direction is specified (fixed).
[D]
[D+1]
Forward direction
[D]
[D+1]
Reverse direction
1 2
3 4
(Characters)
[S2]
H 1234
H31
H33
H32
H34
H32
H34
H31
H33
2 1
4 3
(Characters)
[D]
[D+1]
[D+2]
[D+3]
H L
[N] =
Convert the data to hexadecimal and specify it here
14.9 BTOA (Conversion: BIN → ASCII)
WUME-FP7CPUPGR-12 14-31

Table of Contents

Other manuals for Panasonic FP7 Series

Related product manuals