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.

  1. Call Init()

  2. Call StartSession()

  3. Check CommState, FaultStatus and State for indication of an Error: Call Abort() and continue with step 2

  4. 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.

  5. After the client has received the response from the server InvokeCallback() is called.

  6. Continue with step 3

FINALLY: Call EndSession()

Properties:

Methods:

Structure: