EasyManua.ls Logo

IFM AC1421 - Page 127

IFM AC1421
131 pages
Print Icon
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...
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

Table of Contents

Related product manuals