Identify the process on the PLC side

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

Identify the process on the PLC side

Post by x4Trace »

There are two ways to identify the process in x4Trace.

Identify by the process ID
Identify by the product code

These identifications work with the ProcessController line module.
To select the identification mode, set the following variable.
VAR_IN_PROCESS_IDENTIFICATION_MODE = LINE_PROCESS_IDENTIFICATION_MODE_PROCESSID
or
VAR_IN_PROCESS_IDENTIFICATION_MODE = LINE_PROCESS_IDENTIFICATION_MODE_INSTANCECODE

Identifying a process in the line module on the server side is essential: the process must be started!

When a process is started, x4Trace sends the process ID.
VAR_OUT_PROCESS_ID = @current process ID

By process ID.
You must use this process ID when you want to identify a process, such as passing a product or sending to x4Trace a part that has arrived in operation. This is the fastest way to determine the process.
To identify the process in this way, set the following variables:
VAR_IN_PROCESS_IDENTIFICATION_MODE = LINE_PROCESS_IDENTIFICATION_MODE_PROCESSID
VAR_IN_PROCESS_ID = @current process ID

By product code.
x4Trace will search the process by the product code. This is a slower way than the process ID identification.
To identify the process by product code, set the following variables:
VAR_IN_PROCESS_IDENTIFICATION_MODE = LINE_PROCESS_IDENTIFICATION_MODE_INSTANCECODE
VAR_IN_PRODUCT_CODE = @current product code
Post Reply