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