omron — Command Animation

Appendix:

VBScript MsgBox("Value out of range") End If End Sub 'This procedure determines whether the screen is automatically closed Function Screen_IsClosedByReplace() Screen_IsClosedByReplace = $ReplaceModeTag End Function 'This procedure is executed just once when this screen is open Sub Screen_OnOpen() MsgBox("The screen was open!") End Sub 'This procedure is executed continuously while this screen is open Sub Screen_WhileOpen() If Counter Counter = Counter + 1 Else Counter = 0 End If $SimulationTag = Counter End Sub 'This procedure is executed just once when this screen is closed Sub Screen_OnClose() MsgBox("The screen will be closed!") End Sub COMMAND ANIMATION To edit the Command animation interface, do the following:

1. Select the object. 2. Click the Command animations icon in the Animations group. 3. Right-click on the object. The Object Properties dialog for the Command animation will open. 4. Click the Config… button. 5. Select VBScript as the Type . Use this interface to execute logics when the user clicks on the object where the Command animation is applied (during runtime) or presses the shortcut (Key) associated with the Command animation. InduSoft Web Studio Page 647