Type
| Function |
Description
| Resets a bit in the bit string connected to the IN input to FALSE and returns the resulting bit string. The bit to be reset is selected with the BIT_NO input. |
Notes |
- ' * ' is a placeholder for the supported data types. The function is available for the data types BYTE, WORD, and DWORD.
- The output must have the same length or must be larger than the input.
- The value applied to the BIT input must be greater than or equal to 0 or less than the length of the IN bit string.
- The OUT value remains unchanged and no error is generated in the MESSAGES window if the above conditions are not met.
- The function does not support execution control with EN/ENO.
|
Parameters
| Inputs
IN
Data type: | BYTE, WORD, DWORD |
Description: | Input bit string. |
BIT_NO
Data type: | BYTE |
Description: | Number of the bit to be reset to FALSE. |
Output
OUT
Data type: | BYTE, WORD, DWORD |
Description: | Output bit string. |
|
Error behavior
| Error behavior
The following table shows the errors which may occur while executing the function and the value returned by the function in the corresponding error case.
Error case | Output value |
BIT < 0 | Last valid value is kept |
BIT >= bitlength(IN)(bitlength(IN) = length of the IN bit string) | Last valid value is kept |
|