omron — RunGlobalProcedureOnTrue

Appendix: Built-in Scripting Language Returned value This function returns the following possible values: Notes 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. Examples When the value of TagTrigger changes, execute the procedure UsingTrigger : RunGlobalProcedureOnTrigger( "TagTrigger", "UsingTrigger" ) RunGlobalProcedureOnTrue This function directly executes a VBScript procedure when the value of a specified tag/expression becomes TRUE.

Syntax RunGlobalProcedureOnTrue(" strCondition ", strProcedureOnTrue ) strCondition A project tag or expression. Note: The tag name must be enclosed in quotes, as shown in the syntax diagram, or else the project will try to get the value of the named tag. strProcedureOnTrue The name of the procedure (in the Procedures folder) to execute when the value of strCondition becomes TRUE (non-zero). Returned value This function returns the following possible values: Notes Once this function is called, it remains active until the runtime project is stopped. That means every time the tag/expression becomes TRUE, the procedure is executed.

However, the procedure is executed only once when the tag/expression becomes TRUE; it is not continuously executed while the tag/expression is TRUE. The procedure is executed on the Client. To execute a procedure on the Server, use the RunGlobalProcedureOnServer function. Examples When the value of TagOnTrue becomes TRUE (non-zero), execute the procedure UsingOnTrue : RunGlobalProcedureOnTrue( "TagOnTrue", "UsingOnTrue" ) InduSoft Web Studio Page 575 Value Description 0 Error 1 Success Function Group Execution Windows Embedded Thin Client RunGlobalProc edTuagrse DOatnabTarseue Synchronous Supported Supported Supported Value Description 0 Error 1 Success