Test bit
Function name | TSTB_010 |
---|---|
Function version | 1.0 |
Function state | stable |
Compatibility with IEC61131-3 | not compatible |
Graphic symbol :
Input / Output :
Name | Belonging Group | Access | Types of data | Description |
---|---|---|---|---|
EN | Left Power Flow | IEC1131-3 enable input | ||
Data | Normal | R , RW | F , B , W , L | Data in which to test the bit |
Bit | Normal | R , RW | F , B , W , L | Data with the number of bit to test |
Q | Normal | W , RW | F , B , W , L, S | State of the tested bit |
ENO | Right Power Flow | IEC1131-3 enable output |
Description :
The function bit test, combines through AND the corresponding bits of the variable Data with the bit of the variable maschera and load the Boolean result in the variable Q. Where the variable maschera is: maschera = 2 Bit
If the variable Bit is lower than zero (0) or greater than thirty-one (31) the TSTB from Q equal to zero (0). Error conditions that sets ENO = 0: none.