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

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

Advertisement

Function
The GetTime instruction reads the current time. The current time of day is the time for the set time zone
(not Greenwich mean time (GMT)).
The following figure shows a programming example. The current time is assigned to variable abc.
LD
GetTime
EN
For 23:59 and 59.999999999 seconds on January 7, 1970
23:59 and 59.999999999 seconds on January 7, 1970
Related System-defined Variables
Name
_CurrentTime
Additional Information
• Use the DtToSec instruction (page 2-622) to convert the current time of day to the system time of day
(number of seconds from 00:00:00 on January 1,1970).
• Use the DtToDateStruct instruction (page 2-646) to convert the current time of day to a date (year,
month, day, minutes, and seconds).
• Use the GetDayOfWeek instruction (page 2-642) to read the day of the week.

NY-series Instructions Reference Manual (W560)

ENO
abc
The GetTime instruction assigns the current time to abc.
System Time of Day
Meaning
System Time of Day
DT
ST
abc:=GetTime();
System time of day
is assigned.
Out=abc
Data type
The time of day from the system clock. The num-
ber of seconds from 00:00:00 on January 1,1970.
2 Instruction Descriptions
DT#1970-1-7-23:59:59.999999999
Description
2
2-621

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents