Results and errors

This section shows how to write drivers for your shop's PLCs, code readers, and specialized devices in x4Trace.
Post Reply
x4Trace
Posts: 58
Joined: Fri Feb 14, 2025 2:24 pm

Results and errors

Post by x4Trace »

If the PLC command is successful, the VAR_OUT_LINE_DIV_COMMAND_RESULT will be LINE_COMMAND_RESULT_OK.

But if there are some errors during the execution, the result will be:
VAR_OUT_LINE_DIV_COMMAND_RESULT = LINE_COMMAND_RESULT_ERROR
And the error code will have a value.
VAR_OUT_X4T_ERROR_CODE = @error code

About the error codes, you can read them in the documentation.

After an error code, you need to send a reset.
VAR_IN_LINE_DIV_COMMAND = LINE_COMMAND_RESET
Wait 1s, or a poll time.
VAR_IN_LINE_DIV_COMMAND = LINE_COMMAND_NONE
Post Reply