ReadBit (FUN)ΒΆ
FUNCTION ReadBit : DINT
The ReadBit method reads one bit from the given offset into data.
@param deviceId The device to read the bit from.
@param bitOffset The bit offset to read the bit at.
@param data Pointer to where the bit will be read to.
@return Returns 0 on success, -1 otherwise.
- InOut:
Scope
Name
Type
Return
ReadBit
DINT
Input
deviceId
DINT
taskId
UDINT
bitOffset
UDINT
data
POINTER TO BYTE