Chapter 8 Logic Instructions
8-339
FB/FC
FC
GetBitOffsetValue is used to read the value of the specific bit of the
specified address and display it in the output parameter.
GetBitOffsetValue
StartRegister GetBitOffsetValue
Offset
EN ENO
Parameters
Parameter name Meaning Input/ Output
Description Valid range
StartRegister Starting address Input
Specify the starting
address
Offset
How many bits
are offset
Input
Specify the offset value by
regarding the bit0 of the
variable that StartRegister
points to as the reference
0~1023
GetBitOffsetValue
value
Output The read bit value TRUE / FALSE
Boolean
Bit string Integer
Real
number
Time, date
Pointer
BOOL
BYTE
UINT
SINT
INT
DINT
REAL
Pointer To XX
●
Offset
●
●
GetBit
Offset
●
Note:
1. The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the
data type.
2. xx of the ‘Pointer To xx’ data type includes Bit string and Integer data types.
Function Explanation
The GetBitOffsetValue instruction is used to read the value of the specified bit and the output
GetBitOffsetValue shows the read state value. The StartRegister parameter is a Pointer-type variable. The
Offset parameter specifies the offset value which regards the bit0 of the variable the StartRegister parameter
points to as the reference. The GetBitOffsetValue parameter shows the state value of the specified bit, which
is TRUE or FALSE.
If the specified offset value exceeds the range of the starting address of StartRegister, the operation will be
performed according to the corresponding offset address which regards the StartRegister as the starting
address.
See more in the following example.