This function directly executes a VBScript procedure when the value of a specified tag changes.
Function | Group | Execution | Windows | Embedded | Thin Client |
---|---|---|---|---|---|
RunGlobalProcedureOnTrigger | Tags Database | Synchronous | Supported | Supported | Supported |
Value | Description |
---|---|
0 | Error |
1 | Success |
Once this function is called, it remains active until the runtime project is stopped. That means every time the value of the tag changes, the procedure is executed.
The procedure is executed on the Client. To execute a procedure on the Server, use the RunGlobalProcedureOnServer function.
RunGlobalProcedureOnTrigger( "TagTrigger", "UsingTrigger" )