F_IolIsBusy

F_IolIsBusy 1:

Function indicates whether a function block is still being processed.

F_IolIsBusy 2:Inputs

Name

Type

Description

hresult

HRESULT

Return value

F_IolIsBusy 3:Outputs

Name

Type

Description

F_IolIsBusy

BOOL

True if function block is still being processed

Sample

VAR
  hr                :HRESULT;
  fbIIolStdVarSlave :FB_IolStdVarSlave;
  nRead             :DWORD;
END_VAR
hr := 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_IF

Requirements

Development environment

Required PLC library

TwinCAT from v3.1.4024.25

Tc3_IoLink from v3.3.4.0