CLClient (FB)ΒΆ
FUNCTION_BLOCK CLClient IMPLEMENTS IRPCCLClient
The CLClient calls RPCs offered by a server. How to use the CLClient: CLClient instances need to be called cyclically.
Call Init()
Call StartSession()
Check CommState, FaultStatus and State for indication of an Error: Call Abort() and continue with step 2
As soon as State has moved to WORKING, Invoke() can be called.
4.1 As long as the InvokeCallback was not called the RPC may be canceled with Cancel().
4.2 If a Cancel() was performed, the client will do a CancelCallback() after the server has acknowledged the cancel.
After the client has received the response from the server InvokeCallback() is called.
Continue with step 3
FINALLY: Call EndSession()
Properties:
Methods:
Structure: