F_Error (Function)

Error Function: Passes error code and message to type ST_ERROR when bStatus = TRUE.

Returns: T_Error

Inputs

Name

Type

Description

bStatus

BOOL

Trigger to pass code and message | Note: Default is FALSE

nCode

DINT

Code to pass to error struct | Note: code is 0 if there is no error

sSource

T_MaxString

Message to pass to error struct | Note: message is ‘No Error.’ if there is no error