The method SetTargetColor modifies the color of the specified target.
The event is written to the internal events buffer and to the OPC UA structure by the method Update.
Input |
Data type |
Description |
---|---|---|
i_udiTargetId |
UDINT |
ID of the target whose color is to be modified. The ID must be unique. |
i_etColorId |
The color configured for the target. The default value is GPL.Gc_etDefaultTargetColor. |
Output |
Data type |
Description |
---|---|---|
q_xError |
BOOL |
Indicates TRUE if an error has been detected. For details, refer to q_etResult and q_sResultMsg. |
q_etResult |
Provides diagnostic and status information as a numeric value. |
|
q_sResultMsg |
STRING [80] |
Provides additional diagnostic and status information as a text message. |
q_xError |
q_etResult |
Description |
---|---|---|
FALSE |
Ok |
The event was set. |
TRUE |
TargetIdInvalid |
The event was not set. |
TRUE |
ColorIdInvalid |
The event was not set. |
FALSE |
BufferFull |
The event was set. |