1 About the Script Function
20-2 SmartAXIS Touch User’s Manual
1.2 Types and Trigger Conditions of the Script for HMI Function
● Types of scripts
There are two types of scripts used.
■ Script Command
This is a script that executes in accordance with trigger conditions in the same way as other parts, such as buttons or
lamps, for each screen.
• It is executed only in the screens where it is placed.
• Multiple scripts can be set for each screen.
For details, refer to Chapter 11 “4 Script Command” on page 11-25.
■ Global Script
This is a script that operates within the whole project. This script is executed at the end of Touch scan process in
accordance with the trigger condition.
Only one global script can be set to a project.
For details about setup, refer to “3 Global Script” on page 20-12.
●
Trigger condition of the script
Trigger conditions that can be set for the script are as follows:
■ Rising-edge
Script is executed when trigger device changes from 0 to 1.
■ Falling-edge
Script is executed when trigger device changes from 1 to 0.
■ Satisfy the condition
Script is executed when the set condition is met.
This can only be set for the Script Command.
■ While satisfying the condition
Script is executed while the set condition is met.
This can only be set for the Script Command.
■ Fixed Period
Script is executed at set intervals.
■ Always ON
Script is executed on every scan of the Touch.
This can only be set for the Global Script.
Script
Trigger Condition
Rising-edge
Falling-
edge
Satisfy the
condition
While
satisfying
the
condition
Fixed Period Always ON
Script Command YES YES YES YES YES NO
Global Script YES YES NO NO YES YES