Appendices
A-10
NJ-series Instructions Reference Manual (W502)
Time and Time of Day
Instructions
SUB_TIME Subtract Time ---
SUB_TOD_TIME Subtract Time from Time of Day ---
SUB_TOD_TOD Subtract Time of Day ---
SUB_DATE_DATE Subtract Date ---
SUB_DT_DT Subtract Date and Time ---
SUB_DT_TIME Subtract Time from Date and Time ---
MULTIME Multiply Time ---
DIVTIME Divide Time 16#0400
CONCAT_DATE_TOD Concatenate Date and Time of Day 16#0407
DT_TO_TOD Extract Time of Day from Date and Time ---
DT_TO_DATE Extract Date from Date and Time ---
SetTime Set Time 16#0400
GetTime Get Time of Day ---
DtToSec Convert Date and Time to Seconds ---
DateToSec Convert Date to Seconds ---
TodToSec Convert Time of Day to Seconds ---
SecToDt Convert Seconds to Date and Time 16#0400
SecToDate Convert Seconds to Date 16#0400
SecToTod Convert Seconds to Time of Day 16#0400
TimeToNanoSec Convert Time to Nanoseconds ---
TimeToSec Convert Time to Seconds ---
NanoSecToTime Convert Nanoseconds to Time 16#0400
SecToTime Convert Seconds to Time 16#0400
ChkLeapYear Check for Leap Year ---
GetDaysOfMonth Get Days in Month 16#0400
DaysToMonth Convert Days to Month 16#0400
GetDayOfWeek Get Day of Week ---
GetWeekOfYear Get Week Number ---
DtToDateStruct Break Down Date and Time ---
DateStructToDt Join Time 16#0400
16#0407
System Control Instruc-
tions
TraceSamp Data Trace Sampling ---
TraceTrig Data Trace Trigger ---
GetTraceStatus Read Data Trace Status 16#0400
SetAlarm Create User-defined Error 16#0400
16#040C
ResetAlarm Reset User-defined Error 16#0400
GetAlarm Get User-defined Error Status ---
ResetPLCError Reset PLC Controller Error ---
GetPLCError Get PLC Controller Error Status ---
ResetCJBError Reset CJ Bus Controller Error 16#0400
16#040D
GetCJBError Get I/O Bus Error Status ---
GetEIPError Get EtherNet/IP Error Status ---
ResetMCError Reset Motion Control Error ---
GetMCError Get Motion Control Error Status ---
Type Instruction Name Error codes