![background image](http://html1.mh-extra.com/html/ifm/ac1401/ac1401_programming-manual_3896314127.webp)
127
ifm
Programming Manual AS-i Gateway AC14 (4.2.x)
12/2017
Appendix
Library ACnnnn_SYS_CMD.library
>
Example: Date / time / read NTP settings
17423
Task:
Read the current system time and the NTP settings with the FB ACnnnn_SysCmd.
Command type:
Command reply channel
Input parameters of the FB:
Parameter
Value
Declaration
uCommandID
0x110B
Corresponding commando channel:
→
Command 0x010B – Read date / time / NTP settings
(
→ device manual supplement)
uTarget
0
System command
pDataIn
--
irrelevant, since command reply channel
uSizeIn
--
irrelevant, since command reply channel
pDataOut
arDataOut
variable of the data type Array of Words
contains the return values of the reply channel
uSizeOut
0x0007
Array consists of 7 lines since the reply channel returns 7 words (words 5 ... 11).
Content of arDataOut:
Word no.
Content
1
Month
Day
2
Year
Year
3
Minutes
Hours
4
reserved
Seconds
5
NTP offset
NTP status
6 ... 7
IP address NTP server