FB_GetAllLogicSources_V2

FB_GetAllLogicSources_V2 1:

This function block queries the 'Logic sources' defined in the Artist device.

FB_GetAllLogicSources_V2 2: Inputs

VAR_INPUT
    bExecute : BOOL;
END_VAR

Name

Type

Description

bExecute

BOOL

The function block is enabled by a positive edge at this input.

FB_GetAllLogicSources_V2 3: Outputs

VAR_OUTPUT
    eRRCS_ErrorCode   : E_RRCS_ErrorCodes
    bBusy             : BOOL;
    bError            : BOOL;
    nStatusCode       : UINT;
    nLogicSourceCount : UINT
    aLogicSources     : ARRAY[ ] OF ST_LogicSource
END_VAR

Name

Type

Description

eRRCS_ErrorCode

E_RRCS_ErrorCodes

Error code received from RRCS_Servers.

bBusy

BOOL

Is TRUE as long as the function block is busy with the query and no error occurs.

bError

BOOL

Is TRUE if an error occurred during the query.

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

nLogicSourceCount

UINT

The number of 'Logic Sources' defined in the Artist device.

aLogicSources

ARRAY[ ] OF ST_LogicSource

Listing of all defined 'Log Sources' in the form of an array.
The maximum number of array entries is defined in the parameter list.

FB_GetAllLogicSources_V2 has an extended FB_init method in which an instance of FB_RRCScom must be referenced using a pointer:

VAR
fbGetAllLogicSources_V2: FB_GetAllLogicSources_V2(pfbRRCscom := ADR(fbRRCScom));
END_VAR