EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1-13
1 Instruction Set
NJ-series Instructions Reference Manual (W502)
Instruction Set
1
Time and Time
of Day Instruc-
tions
GetTime Get Time of Day Reads the current time. 2-572
DtToSec Convert Date and
Time to Seconds
Converts a date and time to the number of sec-
onds from 00:00:00 on January 1, 1970.
2-574
DateToSec Convert Date to
Seconds
Converts a date to the number of seconds from
00:00:00 on January 1, 1970.
2-576
TodToSec Convert Time of
Day to Seconds
Converts a time of day to the number of sec-
onds from 00:00:00.
2-577
SecToDt Convert Seconds
to Date and Time
Converts the number of seconds from
00:00:00 on January 1, 1970 to a date and
time.
2-578
SecToDate Convert Seconds
to Date
Converts the number of seconds from
00:00:00 on January 1, 1970 to a date.
2-580
SecToTod Convert Seconds
to Time of Day
Converts the number of seconds from
00:00:00 to a time of day.
2-582
TimeToNanoSec Convert Time to
Nanoseconds
Converts a time to nanoseconds. 2-583
TimeToSec Convert Time to
Seconds
Converts a time to seconds. 2-584
NanoSecToTime Convert
Nanoseconds to
Time
Converts nanoseconds to a time. 2-585
SecToTime Convert Seconds
to Time
Converts seconds to a time. 2-586
ChkLeapYear Check for Leap
Year
Checks for a leap year. 2-588
GetDaysOfMonth Get Days in Month Gets the number of days in the specified
month.
2-589
DaysToMonth Convert Days to
Month
Calculates the month based on the number of
days from January 1.
2-591
GetDayOfWeek Get Day of Week Gets the day of the week for the specified year,
month, and day of month.
2-593
GetWeekOfYear Get Week Number Gets the week number for the specified year,
month, and day of month.
2-595
DtToDateStruct Break Down Date
and Time
Converts a date and time to the year, month,
day, hour, minutes, seconds, and nanosec-
onds.
2-597
DateStructToDt Join Time Joins a year, month, day, hour, minutes, sec-
onds, and nanoseconds into a date and time.
2-599
System Control
Instructions
TraceSamp Data Trace
Sampling
Performs sampling for a data trace. 2-602
TraceTrig Data Trace Trigger Generates a trigger for data tracing. 2-605
GetTraceStatus Read Data Trace
Status
Reads the execution status of a data trace. 2-607
SetAlarm Create User-
defined Error
Creates a user-defined error. 2-610
ResetAlarm Reset User-
defined Error
Resets a user-defined error. 2-615
GetAlarm Get User-defined
Error Status
Gets the highest event level (of user-defined
error levels 1 to 8) and the highest level event
code of the current user-defined errors.
2-617
ResetPLCError Reset PLC
Controller Error
Resets errors in the PLC Function Module. 2-619
Type Instruction Name Function Page

Table of Contents

Related product manuals