
FANUC PMC-MODEL SD7
Programming Manual
01 01.11.26
Hanaoka
New
A-78550E
EDIT DATE DESIG.
DESCRIPTION
182/
316
TITLE
DRAW.NO.
4.5.8 Bit Set, Clear
4.5.8.1 BIT_SET_BYTE(in, bit, length)
Set a specific bit within a string (consecutive registers) of words by setting that bit to 1.
in: BYTE variable; the first item in the data to be operated on.
bit: INT variable or constant; the bit number of in that will be set. 1 bit (16*length).
length: Constant; the number of words comprising the data string to operate on (1 to 255).
4.5.8.2 BIT_SET_WORD(in, bit, length)
Set a specific bit within a string (consecutive registers) of words by setting that bit to 1.
in: WORD variable; the first item in the data to be operated on.
bit: INT variable or constant; the bit number of in that will be set. 1 bit (16*length).
length: Constant; the number of words comprising the data string to operate on (1 to 255).
4.5.8.3 BIT_SET_DWORD(in, bit, length)
Set a specific bit within a string (consecutive registers) of words by setting that bit to 1.
in: DWORD variable; the first item in the data to be operated on.
bit: INT variable or constant; the bit number of in that will be set. 1 bit (16*length).
length: Constant; the number of words comprising the data string to operate on (1 to 255).
4.5.8.4 BIT_CLR_BYTE(in, bit, length)
Clear a specific bit within a string (consecutive registers) of words by setting that bit to 0.
in: BYTE variable; the first item in the data to be operated on.
bit: INT variable or constant; the bit number of in that will be cleared. 1 bit (16*length).
length: Constant; the number (1 to 255) of words comprising the data string to operate on.
4.5.8.5 BIT_CLR_WORD(in, bit, length)
Clear a specific bit within a string (consecutive registers) of words by setting that bit to 0.
in: WORD variable; the first item in the data to be operated on.
bit: INT variable or constant; the bit number of in that will be cleared. 1 bit (16*length).
length: Constant; the number (1 to 255) of words comprising the data string to operate on.
4.5.8.6 BIT_CLR_DWORD(in, bit, length)
Clear a specific bit within a string (consecutive registers) of words by setting that bit to 0.
in: DWORD variable; the first item in the data to be operated on.
bit: INT variable or constant; the bit number of in that will be cleared. 1 bit (16*length).
length: Constant; the number (1 to 255) of words comprising the data string to operate on.
For more details, see LD Functions.
Note: IL and LD functions are generally the same, with some differences in data types for operands.