SmartPLC SafeLine AC4S with fieldbus interfaces
186
>
Example: Read LCEMS, LCEAS and LDAE of AS-i Master 2
42402
Task:
Read the error lists LCEMS, LCEAS and LDAE of the AS-i Master 2 with the FB
ACnnnn_SysCmd.
Command type:
acyclic data set
Input parameters of the FB:
Parameter
Value
Declaration
uCommandID
0x0011
Corresponding acyclic data set:
→
DS17
– AS-i Master: Fehlerlisten LCEMS, LCEAS, LDAE
(
→ device manual
supplement)
uTarget
1
Master command (1 = AS-i Master 2))
pDataIn
--
irrelevant
uSizeIn
--
irrelevant
pDataOut
arDataOut
Variable of the data type Array of Words
contains the return values
uSizeOut
0x000C
Array consists of 12 lines since the data set DS17 has exactly 12 words
Content of arDataOut:
Word no.
Content
1 ... 4
LCEMS (list of configuration errors - missing slaves)
5 ... 8
LCEAS (list of configuration errors - additional slaves)
9 ... 12
LDAE (list of double address errors)