26 (104)
Command
Valid for E-mail Messages
printf()
Yes
scanf()
No
8.3.2
GetConfigItem()
This command returns specific information from a file in the file system.
File Format
The source file must have the following format:
[key1]
value1
[key2]
value2
...
[keyN]
valueN
Syntax:
<?--exec cmd_argument='GetConfigItem("filename", "key"[,"separator"])'-->
filename:
Source file to read from
key:
Source [key] in file.
separator:
Optional; specifies line separation characters (e.g. “<br>”).
(default is CRLF).
Default Output
Scenario
Default Output
Success
(value of specified key)
Authentication Error
“Authentication error”
File open error
“Failed to open file ‘
filename
’”
Key not found
“Tag (
key
) not found”
Anybus
®
CompactCom
™
40 Common Ethernet Design Guide
HMSI-27–269 2.1