Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions
 Boolean Data
FALSE is converted to '0' and TRUE is converted to '1'.
 Bit String Data
Bits strings are treated as hexadecimal numbers and converted to text strings that express them as
alphanumeric characters. The 16# prefix of the hexadecimal number is not output to the text string.
If the value of the member requires fewer digits than are provided by the data type of the member,
the upper digits will contain '0'. In other words, the unused digits are padded with zeros.
The number of characters in the text string depends on the data type as shown in the following table.
Data type of member
BYTE
WORD
DWORD
LWORD
Examples are given below.
Value of member
BYTE#16#AB
LWORD#16#0123
 Integer Data
The value of the integer is converted to a text string. Upper digits that are 0 are not output to the text
string. If the value of the member is negative, a minus sign (−) is added to the front of the text string.
Examples are given below.
Value of member
UINT#0012
LINT#−12
 Real Number Data
The structure of the text string to which the value of the member is converted is shown below.
- i . f f f f f f e + n n
Sign column
Integer part
Item
Sign column
Integer part
Decimal point
Fractional part
Exponent
2-572
2 single-byte alphanumeric characters
4 single-byte alphanumeric characters
8 single-byte alphanumeric characters
16 single-byte alphanumeric characters
'AB'
'0000000000000123'
'12'
'−12'
Fractional
Exponent
part
Decimal point
If the value of the member is negative, a minus sign (−) is added.
If the value of the member is positive, a plus sign (+) is not added.
The integer part is always only one digit.
The decimal point is always given even if the value of the member is not a decimal number.
If the member is REAL data, 6 digits are given. If the member is LREAL data, 14 digits are
given.
The exponent is always given. 'e' indicates the exponent e.
"nn" is 2 or 3 digits.
The sign of "nn" is positive (+) if the absolute value of the member is 1.0 or higher and neg-
ative (−) if it is less than 1.0. If the value of the member is 0, this portion is '+'(positive).
Number of characters
Converted text string
Converted text string
Description

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents