OnAssociateInd

METHOD OnAssociateInd : BOOL
VAR_INPUT
    ipAA     : I_ScsmAssociationClass;
END_VAR
VAR_OUTPUT
    ipResult : I_AsyncServiceResultClass;
END_VAR

ipAA: Interface pointer of type: I_ScsmAssociationClass. If several connection instances are active, this pointer can be used to determine the object instance running the service. This parameter is optional and reserved for future use. The pointer value 0 defines the parameter as optional.

ipResult: Interface pointer of type: I_AsyncServiceResultClass. This pointer can be used to query and monitor the status/progress and the result of the service execution.

Sample (extract)

METHOD OnAssociateInd : BOOL
VAR_INPUT
    ipAA     : I_ScsmAssociationClass;
END_VAR
VAR_OUTPUT
    ipResult : I_AsyncServiceResultClass;
END_VAR
VAR
END_VAR
(*…*)
sLastAbortReason:= '';
sLastErrorResult:= '';
(*…*)

OnAssociateInd:= fbConnection.AssociateRsp(ipResult=>ipResult);