22.10.5 Restrictions on the Triggered Bit

For example, when Touch is used to turn ON the trigger bit (LS010000), and D-Script turns the value OFF:

D-Script Processing Timing Chart

For example, if the D-Script touch timing is not used, and only detection is performed, the processing is as follows.

Use an if statement to determine if a touch operation sets the bit. Each time the if () statement runs, it reads the value and runs a comparison check.

Trigger Condition: BitON[#INTERNAL]LS203800 *1])
Script Expression Area :if([b:[#INTERNAL]LS010000]==1)
{
clear([b:[#INTERNAL]LS010000])
:
:

*1 Display unit internal counter. The counter increments each time the Part set on the display screen processes.

 

When using the previous D-script, even if you input consecutive touches, the script is run only if the condition matches. As shown in the following timing chart, every display scan the value is read and checked for a match, and if there is a match, regardless of the previous value, the script is run.

D-Script Processing Timing Chart