IFM Electronic AC402S Programming Manual page 185

Smartplc safeline ac4s with fieldbus interfaces
Table of Contents

Advertisement

SmartPLC SafeLine AC4S with fieldbus interfaces
>
Example: Date / time / read NTP settings
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
uCommandID
0x110B
uTarget
0
pDataIn
--
uSizeIn
--
pDataOut
arDataOut
uSizeOut
0x0007
Content of arDataOut:
Word no.
Content
1
2
3
4
5
6 ... 7
Declaration
Corresponding commando channel:
Kommando 0x010B – Datum / Uhrzeit / NTP-Einstellungen lesen
supplement)
System command
irrelevant, since command reply channel
irrelevant, since command reply channel
variable of the data type Array of Words
contains the return values of the reply channel
Array consists of 7 lines since the reply channel returns 7 words (words 5 ... 11).
Month
Year
Minutes
reserved
NTP offset
IP address NTP server
42403
(→ device manual
Day
Year
Hours
Seconds
NTP status
185

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ac422sAc412sAc432s

Table of Contents