F_IolIsBusy

Function indicates whether a function block is still being processed.
Sample
VAR
hr :HRESULT;
fbIIolStdVarSlave :FB_IolStdVarSlave;
nRead :DWORD;
END_VARhr := fbIIolStdVarSlave.read(16#0019, 0, ADR(nRead), SIZEOF(nRead));
IF NOT F_IolIsBusy(hr) THEN
IF FAILED(hr) THEN
//Error Handling
ELSE
//Success
END_IF
END_IFRequirements
Development environment | Required PLC library |
|---|---|
TwinCAT from v3.1.4024.25 | Tc3_IoLink from v3.3.4.0 |
Inputs
Outputs