Denso RC5 Specifications Page 169

  • Download
  • Add to my manuals
  • Print
  • Page
    / 692
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 168
Chapter 7 PAC Language Configuration Elements
7-11
7.7 Data Type Conversion
Changing the data type among different data types is also possible.
7.7.1 Numeric Value
Numeric value data can be converted by following the rules below.
If numeric value data is assigned to a different type numeric value variable,
the numeric value is converted to meet the variable type.
If an operation is executed with a different type numeric value, the operation
is carried out so that the higher precision type is used.
In a logical operation, numeric values are converted to integers and the
operation is executed. The result becomes an integer.
If a real type is converted to an integer, the result is rounded off to the
maximum integer which does not exceed the result.
If a double precision real type is assigned to a single precision real type, the
result is rounded off to 7 significant digits.
7.7.2 Character and Numeric Value
The PAC language provides the following commands to convert characters,
character strings, character codes, and numeric values.
Conversion Commands for Characters and Numeric Values
After
conversion
Before
conversion
Converted to
character
code
Converted
to
Character
string
Converted
to numeric
value
Converted to
binary notation
character string
Converted to
hexadecimal
notation
character string
Character
code
CHR$ - - -
Character
ASC VAL$ - -
Numeric
value
-STR$ BIN$ HEX$
7.7.3 Pose Type Data
The type conversion of pose type data can be executed using the following
functions. The tool and work coordinate systems when type conversion is
executed are reflected in the pose type data.
Conversion Commands for Pose Type Data
After
conversion
Before
conversion
Converted to type P Converted to type J Converted to type
Type P
P2J P2T
Type J
J2P J2T
Type T
T2P T2J
Example: J0 = P2J (P0)
T0 = P2T (P0)
P0 = J2P (J0)
T0 = J2T (J0)
P0 = T2P (T0)
J0 = T2J (T0)
Page view 168
1 2 ... 164 165 166 167 168 169 170 171 172 173 174 ... 691 692

Comments to this Manuals

No comments