Panasonic FP Series Programming Manual page 676

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

About the number of ASCII characters (8-bit) per converted unit
 When converting 16-bit binary units to hexadecimal ASCII data:
 Range: 16#1 to 16#4.
 When a range of less than 16#4 is set, the specified number of characters from the lower
bytes are stored. If the original binary unit data cannot be accommodated by a setting less
than 16#4, an error occurs.
 When converting 32-bit binary units to hexadecimal ASCII data:
 Range: 16#1 to 16#8.
 When a range of less than 16#8 is set, the specified number of characters from the lower
bytes are stored. If the original binary data cannot be accommodated by a setting less than
16#8, an error occurs.
 When converting binary units to decimal ASCII data:
 Range: 16#1 to 16#F.
 Source data is treated as signed binary data. If it is a negative number, a minus sign "-" is
added. A space " " will be stored in the leading blanks if the area specified in d_AsciiData is
larger than the number of ASCII characters per converted unit.
Conversion examples:
Binary data
Data
Offs. in
Hex. value
type
16-bit
word units
INT,
0
16#5678
WORD
1
16#1234
INT,
0
16#5678
WORD
1
16#1234
INT,
0
16#0456
WORD
1
16#0123
INT,
0
16#0456
WORD
1
16#0123
DINT,
0
16#123456
DWORD
78
DINT,
0
16#123456
DWORD
78
DINT,
0
16#000123
DWORD
45
DINT,
0
16#000123
DWORD
45
'X' values do not change.
s1_
n_Con-
Result ASCII data
Con-
version
trol
Method
D+
D+
3
2
16+H
16#204
21
43
16-H
16#204
43
21
16+H
16#203
XX
13
16-H
16#203
XX
32
32+H
16#108
21
43
32-H
16#108
87
65
32+H
16#105
XX
X1
32-H
16#105
XX
X5
Conversion instructions
Comment
D+
D
1
65
87
Normal
direction.
2 x 4 ASCII
characters.
87
65
Reverse
direction.
2 x 4 ASCII
characters.
24
65
Normal
direction.
2 x 3 ASCII
characters.
16
54
Reverse
direction.
2 x 3 ASCII
characters.
65
87
Normal
direction.
1 x 8 ASCII
characters.
43
21
Reverse
direction.
1 x 8 ASCII
characters.
32
54
Normal
direction.
1 x 5 ASCII
characters.
43
21
Reverse
direction.
1 x 5 ASCII
characters.
675

Advertisement

Table of Contents
loading

Table of Contents