Pass a product

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

Pass a product

Post by x4Trace »

The virtual PLC driver helps you set the variables to pass an instance. (x4Trace.Server.Drivers)

Set the following variables:
VAR_IN_PROCESS_RESULTMODE = LINE_PROCESS_RESULTMODE_PASS
VAR_IN_PROCESS_IDENTIFICATION_MODE = LINE_PROCESS_IDENTIFICATION_MODE_PROCESSID
VAR_IN_PROCESS_ID = @current process id
VAR_IN_PRODUCT_CODE = @the current instance/product code
VAR_IN_LINE_DIV_COMMAND = LINE_COMMAND_PROCESS_PRODUCT_CODE_FORWARD
Acknowledgment is needed if ACK is on.

The values are here:
https://docs.x4trace.com/sw/class_ix4_t ... river.html

If you need to assemble products, you have to add the instance code to the process.
VAR_IN_PRODUCT_CODE = @the current instance/product code
VAR_IN_LINE_DIV_COMMAND = LINE_COMMAND_ADDCODE
Acknowledgment is needed if ACK is on.
Post Reply