2-645
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
System Control Instructions
2
GetNTPStatus
GetNTPStatus
The GetNTPStatus instruction reads the NTP status.
The GetNTPStatus instruction reads the NTP status. The following information is read: NTP last normal
operation time ExecTime and normal end flag ExecNormal.
The following figure shows a programming example.
Instruction Name FB/FUN Graphic expression ST expression
GetNTPStatus Read NTP Status FUN GetNTPStatus(ExecTime,
ExecNormal);
Variables
Name Meaning I/O Description Valid range Unit Default
Out Return value
Output
Always TRUE TRUE only ---
---
ExecTime NTP last normal
operation time
NTP last normal opera-
tion time
Depends on data type.
Year, month,
day, hour,
minutes,
seconds
Exec
Normal
NTP normal
end flag
TRUE: Normal end
FALSE: Error end
---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
Out OK
ExecTime OK
Exec
Normal
OK
Function
(@)GetNTPStatus
EN ENO
Out
ExecTime
ExecNormal
GetNTPStatus(abc, def);
LD ST
abc
def
GetNTPStatus
EN ENO
ExecTime
ExecNormal