FB_RRCScom

FB_RRCScom 1:

This function block is required for communication with the RRCS server

FB_RRCScom 2:

This function block should only be instantiated and not called implicitly!
The call is made using pointers from the function blocks described below,
e.g. from FB_GetState.

The IP address and port of the RRCS server must be specified in the variable declaration:

VAR
fbRRCScom: FB_RRCScom(ipAddr_Server:= '192.168.42.59', ipPort_Server:=8193)
END_VAR

FB_RRCScom 3: Outputs

VAR_OUTPUT
    eCommState   : E_CommState;
    nStatusCode  : UINT
    sResponse    : STRING(..)
    _pfbSB       : POINTER
END_VAR

Name

Type

Description

eCommState

E_CommState

The state of the function block.

nStatusCode

UINT

Servers deliver the status code as a response to every HTTP request.
The server uses this code to inform the client whether the request was successful.
Normally 200 (OK) is returned.
Detailed information on this:
developer.mozilla.org/en/docs/Web/HTTP/Reference/Status

sResponse

STRING(..)

String with the unprocessed response from the RRCS server.
The maximum length of the string is set in the parameter list of the library.

_pfbSB

POINTER

Only for internal use