Develop a line module
Posted: Tue Feb 18, 2025 1:03 pm
The line module is for operation automation. It contains drivers (such as the PLC driver and camera driver). The drivers communicate with the devices directly, and the line modules control them and what they shall do.
You can develop unique drivers for your line and create unique line modules. You can also define what your line does during the operation.
There are some built-in modules. You can decide what is more straightforward: adjust your line to x4Trace or write drivers and line modules to handle your line in x4Trace.
How to write a line module: You need Visual Studio, and you can develop in C# or VB drivers and line modules.
Samples are in the installed folder of the x4Trace server.
You have to use this DLL: Ix4Trace.Server.Engine.dll
Create a class that inherits from LineDivisionModule.
The documentation of the coding you can find at https://docs.x4trace.com/sw/index.html
After the coding, build the project and copy your DLL to the x4Trace server and server plugin folder.
The ProcessController is a perfect example of how to write a line module.
You can find it in the x4Trace.Server.Modules solution.
This is an open-source part of x4Trace.
You can develop unique drivers for your line and create unique line modules. You can also define what your line does during the operation.
There are some built-in modules. You can decide what is more straightforward: adjust your line to x4Trace or write drivers and line modules to handle your line in x4Trace.
How to write a line module: You need Visual Studio, and you can develop in C# or VB drivers and line modules.
Samples are in the installed folder of the x4Trace server.
You have to use this DLL: Ix4Trace.Server.Engine.dll
Create a class that inherits from LineDivisionModule.
The documentation of the coding you can find at https://docs.x4trace.com/sw/index.html
After the coding, build the project and copy your DLL to the x4Trace server and server plugin folder.
The ProcessController is a perfect example of how to write a line module.
You can find it in the x4Trace.Server.Modules solution.
This is an open-source part of x4Trace.