GetIDeviceInstByIoAddr (FB)
FUNCTION_BLOCK GetIDeviceInstByIoAddr EXTENDS CBM.ETrigA IMPLEMENTS ICmpEventCallback
This function block returns the associated IDevice object for a specific I/O address.
- InOut:
Scope |
Name |
Type |
Comment |
Input |
dwAddress
|
DWORD
|
Address of the I/O Channel (e.g. ADR(%QB0) ) |
dwBitOffset
|
DWORD
|
Bit Offset starting at 0; must be set for bitchannels |
Output |
itfDevice
|
IDevice |
IDevice instance of the device, the I/O channel belongs to. |