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
Note 1 Any ' ' (blank characters) before the sign column, days, hours, minutes, seconds, or milliseconds are
ignored.
2 If any characters in the values of AA, BB, CC, DD, or EE are separated with a single '_' (underbar), the
underbar is ignored.
3 Even if the value of the days, hours, minutes, seconds, or milliseconds is a real number with a '.' (period),
the data can still be converted.
4 If the days, hours, minutes, seconds, or milliseconds is included in the data, conversion is possible even if
the other items are omitted.
5 Even if there is a '0' before the value of the days, hours, minutes, seconds, or milliseconds, the data can
still be converted.
Conversion is not possible in the following cases.
• The data is not in the above structure.
• There is an '_' (underbar) between the sign column and the days.
• '.' (periods) or '_' (underbars) appear consecutively.
For example, if the STRING data is '−0.5d48h0.123456789ms', the value of the member will be T#−
2d12h0m0s0.123456ms(T#−216000000.123456ms).
 Date Data
Data with the following structure is converted to a date.
YYYY - MM - DD
Year
Hyphen
Month
The following are exceptions.
• Any ' ' (blank characters) before the year, month, or day are ignored.
• If any characters in the values of the year, month, or day are separated with a single '_' (under-
bar), the underbar is ignored.
• Even if there is a '0' before the value of the year, month, or day, the data can still be converted.
Conversion is not possible in the following cases.
• The data is not in the above structure.
• The date does not exist.
For example, if the STRING data is '2000-1-01', the value of the member will be D#2000-01-01.
 Date and Time Data
Data with the following structure is converted to a duration.
Year
Hyphen
Month
Item
Year, month,
and day
Hour
Minutes
Seconds
Hyphens and
colons
Note 1 Any ' ' (blank characters) before the year, month, day, hour, minutes, or seconds are ignored.
2-584
Hyphen
Days
YYYY - MM - DD - hh : mm : ss . sssssssss
Colon Minutes Colon
Hyphen
Day
Hyphen Hour
This is the year, month, and day that express the date.
The range of the value is 0 to 23.
The range of the value is 0 to 59.
The range of the value is 0 to 59.999999999. If the value is an integer, a decimal point is
not required.
These are always required.
Decimal point
Seconds
Description

NY-series Instructions Reference Manual (W560)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents