Powered by ACPLT/OV. This server supports KS commands. This page is only a quick reference.
This server can generate answers in a TCL or KSX syntax. The TCL syntax is default.
It is possible to select KSX with the
HTTP accept header
Accept: text/ksx
or as a parameter in the GET request argument &format=ksx
.
Gets one or multiple Variables.
example:/getVar?format=ksx&path=/vendor/database_free
/getVar?format=ksx&path[0]=/vendor/database_free&path[1]=/vendor/database_size
Sets one or multiple Variables.
example:/setVar?format=ksx&path=/TechUnits/add1.IN1&newvalue=4.5
/setVar?format=ksx&path[0]=/TechUnits/add1.IN1&path[1]=/TechUnits/add2.IN1&path[2]=.IN2&newvalue[0]=3.2&newvalue[1]=2&newvalue[1]=1
Gets the engineering properties of an object. Can give all childrens with the parameter requestType
(default, OT_DOMAIN
), variables (OT_VARIABLE
), links (OT_LINK
) or all (OT_ANY
)
/getEP?format=ksx&path=/TechUnits/add1
/getEP?format=ksx&path=/TechUnits/add1&requestType=OT_ANY
Instantiates new objects.
example:/createObject?format=ksx&path=/TechUnits/add1&factory=/acplt/iec61131stdfb/add
/createObject?format=ksx&Path[1]=/TechUnits/add1&path[2]=/TechUnits/add2&factory=/acplt/iec61131stdfb/add
Deletes objects.
example:/deleteObject?format=ksx&path=/TechUnits/add1
/deleteObject?format=ksx&path[1]=/TechUnits/add1&path[2]=/TechUnits/add2
Renames objects.
example:/renameObject?format=ksx&path=/TechUnits/add1&newname=/TechUnits/add2
/renameObject?format=ksx&path[1]=/TechUnits/add1&path[2]=/TechUnits/sub1&newname[1]=/TechUnits/add2&newname[2]=/TechUnits/sub2
Links two pairs of objects with an OV association.
example:/link?format=ksx&path=/TechUnits/add1.taskparent&element=/Tasks/UrTask
/link?format=ksx&path=/Tasks/UrTask.taskchild&element=/TechUnits/add1
/link?format=ksx&path[0]=/TechUnits/add1.taskparent&element[0]=/Tasks/UrTask&path[1]=/TechUnits/add2.taskparent&element[1]=/Tasks/UrTask
/link?format=ksx&path=/TechUnits/add1.taskparent&element=/Tasks/UrTask&placehint=BEGIN
/link?format=ksx&path=/TechUnits/add1.taskparent&element=/Tasks/UrTask&placehint=BEFORE&placepath=/TechUnits/sub1
Unlinks two pairs of objects with an OV association.
example:/unlink?format=ksx&path=/TechUnits/add1.taskparent&element=/UrTask
/unlink?format=ksx&path[0]=/TechUnits/add1.taskparent&element[0]=/UrTask&path[1]=/TechUnits/add2.taskparent&element[1]=/UrTask
Outputs logfile outputs of the server.
example:/getLogfile?format=ksx
/getLogfile?format=ksx&from=2013-12-24T13:15:00.000000&to=2016-12-31T22:45:00.000000&maxentries=30