The JavaScript Unit can be used to write and execute JavaScript. This Unit uses the onCore Code Editor which can be accessed via the Inspector. |
Declaring Input and Output Ports
Declare Input Ports with i_MyVar and Output Ports with o_MyVar.
Input and Output Ports Data Types
There are five types of Input/Output ports:
- String
- Integer
- Double
- Long
- Boolean
Examples:
- ib_myBooleanInput would be an Input Port with Boolean data type.
- os_myStringOutput would be an Output Port with String data type.
Default Functions
By default there are three functions:
...