This is an old revision of the document!
Scripting
The Devices version of TransSECS (TransSECS Devices) enables java scripting on the data sources, messages, and message data.
Look at the sample scripts on the messages and data sources in the sample PLCTool.
Common Problems
if you see an error such as: TypeError: null has no such function “someFunctionName”, this usually means you forgot to add an import for a class which has method “someFunctionName”. For example: TypeError: null has no such function “findController” is commonly due to forgetting to do this:
var TransSecsController = Java.type("com.ergotech.transsecs.secs.TransSecsController");
before you do this:
secsInterface=TransSecsController.findController("PLCTool");
where “PLCTool” is the name of your tool definition.