● The timeout period for one time adjustment attempt is fixed to three seconds. When multiple
time adjustment attempts are specified, a new request starts after the timeout period elapses
(3 seconds) plus [S2] seconds (the processing interval).
● The total timeout period (seconds) for time adjustment is obtained by the following formula:
S1x3 + (S2x(S1-1)). (Here, S1 is larger than 0.)
■
Precautions for programming
● Insert the UNITSEL instruction immediately before this instruction and specify the unit (built-
in ET-LAN in the CPU unit) and the connection number.
● It is necessary to set the SNTP server address in [Built-in ET-LAN configuration]. The
CPU
configuration
>
Time data acquisition method
>
Acquire automatically from SNTP server
setting does not affect the instruction.
● When the Ethernet task is initialized during a time adjustment request, zero is set to all the
areas in which the results are stored ([D]).
● Do not execute time adjustment continuously as there is a possibility that the access to the
server will be prohibited.
● When this instruction is executed during the execution of an SNTP request using the time
specified in
CPU configuration
>
Time data acquisition method
>
Acquisition timing
, the
request starts as a new request taking the execution of this instruction as a starting point.
● When the time specified in "CPU configuration" comes during the execution of this
instruction, the execution of this instruction takes priority.
● The execution of the SNTP request by the [CPU configuration] setting is performed as
follows; Timeout period = 3 seconds, Number of processing times = 20 times, Processing
interval = 16 seconds.
● Even when the number of processing times [S1] is set to zero, specify a value within the
normal range for the processing interval [S2].
● The NTP time adjustment processing by this instruction continues even after the PLC mode
switches from RUN to PROG.
■
Execution result code [D]
● In the case of abnormal request (10 to 15), the time adjustment request that is set when the
instruction is executed is not performed.
● The communication error (20) occurs if no response is returned from the server after time
adjustment is requested. (No response means that any response is not returned even when
the processing is performed for the specified number of times.)
● The response error (30) occurs if no response is returned from the Ethernet task.
Code
Execution result
H0
Normal end
H10
Double startup error
The time adjustment request instruction is being executed
H11
SNTP server address setting
error
ET-LAN setting, SNTP server address setting = "0.0.0.0"
H12
Disconnection error
Ethernet is disconnected.
H13
Ethernet initialization in
progress error
Own IP address is not established. (X62 OFF)
H14
Number of processing times
setting error
The specified number of processing times is out of the range.
17.10 pNTPcREQ (Time Adjustment Request Instruction)
17-48
WUME-FP7CPUPGR-12
Summary of Contents for FP7 Series
Page 2: ... MEMO 2 WUME FP7CPUPGR 12 ...
Page 18: ... MEMO xviii WUME FP7CPUPGR 12 ...
Page 52: ... MEMO 1 34 WUME FP7CPUPGR 12 ...
Page 104: ... MEMO 2 52 WUME FP7CPUPGR 12 ...
Page 123: ...3 9 ANS AND stack WUME FP7CPUPGR 12 3 19 ...
Page 125: ...3 10 ORS OR Stack WUME FP7CPUPGR 12 3 21 ...
Page 129: ...3 11 PSHS Push stack RDS Read stack POPS Pop stack WUME FP7CPUPGR 12 3 25 ...
Page 190: ...3 26 JP LBL Jump Label 3 86 WUME FP7CPUPGR 12 ...
Page 239: ...Name Description SR8 ER 3 46 ST ST ST ST ST ST Data Comparison Start WUME FP7CPUPGR 12 3 135 ...
Page 246: ... MEMO 3 142 WUME FP7CPUPGR 12 ...
Page 258: ... MEMO 4 12 WUME FP7CPUPGR 12 ...
Page 304: ... MEMO 5 46 WUME FP7CPUPGR 12 ...
Page 321: ...Name Description ER 6 7 DIVFP2 Division FP2 Compatible WUME FP7CPUPGR 12 6 17 ...
Page 348: ... MEMO 6 44 WUME FP7CPUPGR 12 ...
Page 388: ... MEMO 7 40 WUME FP7CPUPGR 12 ...
Page 438: ... MEMO 8 50 WUME FP7CPUPGR 12 ...
Page 450: ... MEMO 9 12 WUME FP7CPUPGR 12 ...
Page 520: ... MEMO 10 70 WUME FP7CPUPGR 12 ...
Page 602: ... MEMO 11 82 WUME FP7CPUPGR 12 ...
Page 622: ... MEMO 12 20 WUME FP7CPUPGR 12 ...
Page 650: ... MEMO 13 28 WUME FP7CPUPGR 12 ...
Page 1160: ... MEMO 18 66 WUME FP7CPUPGR 12 ...
Page 1188: ... MEMO 19 28 WUME FP7CPUPGR 12 ...
Page 1220: ... MEMO WUME FP7CPUPGR 12 ...
Page 1221: ... MEMO WUME FP7CPUPGR 12 ...