My application consists of several similar devices.
I am trying to figure out the most efficient way to implement this while minimizing duplication of code.
For each device, I have a remote I/O (ADAM 6060 or similar) for controlling the device. There are also a few variables that are not connected to a remote I/O point, but are needed to keep track of operating modes and sequences.
My current implementation consists of a virtual data source that includes both the remote I/O points and the mode and sequence variables, and a Modbus I/P data source for controlling the device. Point links are used to connect data points in the virtual data source to the points in the Modbus I/P data source.
Additionally, scripts are used for control logic and sequencing.
This is all working pretty well - for one device. What I am looking for is a method of implementation that avoids having to create all of the moving parts for each device - virtual data source, Modbus I/P data source, point links, and scripts. Or, at least a way that doesn't require that all of the moving parts being recreated from scratch.