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.