5 Script Coding Examples
20-34 SmartAXIS Touch User’s Manual
5.6 Bit Functions
Script
Operation description
Turns LM100 to 1. The result is the same as
[LM 100] = 1.
Script
Operation description
Turns LM100 to 0. The result is the same as
[LM 100] = 0.
Script
Operation description
Flips LM100 1 and 0. The result is the same as
[LM 100] = ~[LM 100].
â–
Example 5.6.1 Set a bit
SET([LM 100]);
â–
Example 5.6.2 Reset a bit
RST([LM 100]);
â–
Example 5.6.3 Invert a bit
REV([LM 100]);