6 bit functions, Bit functions -37, Script – IDEC High Performance Series User Manual
Page 1001
![background image](/manuals/350385/1001/background.png)
WindO/I-NV2 User’s Manual
20-37
5 Script Coding Examples
20
Script
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]);
This manual is related to the following products: