EasyManua.ls Logo

Anybus CompactCom 40 EtherNet/IP - Getconfigitem()

Anybus CompactCom 40 EtherNet/IP
198 pages
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...
Server Side Include (SSI) 35
Doc.Id. HMSI-27-212
Anybus CompactCom 40 EtherNet/IP
Doc.Rev. 1.5
6.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:
Example:
The following SSI...
<?--exec cmd_argument='GetConfigItem("\fruit.cnf", "Lemon")'-->
... in combination with the following file (‘\fruit.cnf’)...
[Apple]
Green
[Lemon]
Yellow
[Banana]
Blue
... returns the string Yellow.
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”

Table of Contents

Related product manuals