Order data, drawings and recipes straight into the controller

PC application and PLC program from a single source. Whoever builds both sides defines the handover once, and the controller checks every data record before accepting it.

for PC application and PLC program
Single source
for every write access to the controller
4 rules
for the finished solution, after review
Fixed price
Schematic · Handover from PC to controllerEnlarge: Schematic · Handover from PC to controller (full-size image, opens in a new tab)
Schematic of the handover from PC to controller, using a drilling gantry for plates as the example (labels in German): office PC with order list (Excel, CSV, ERP), drawing (DXF) and parameter database, transfer via OPC UA to the S7-1500 with handover area, check (count, limits, plausibility) and active order, WinCC Unified operator panel with hole pattern and progress — plus the five steps of the handover and the four rules

In short

Some tasks are too data- or computation-heavy for a PLC: reading orders from the ERP, evaluating drawings, managing recipes in a database. For these we build a dedicated PC application on a Windows PC, industrial PC or edge device, coupled to the Siemens controller via OPC UA or another interface. We also write the part of the PLC program that checks and accepts the data. That removes the interface between PLC programmer and software developer where errors tend to arise.

What belongs on the PC, what belongs in the controller

The PLC runs the plant in a fixed cycle. Reading files, converting drawings and querying databases is the job of a PC alongside it. The split:

  • PC application: reads order data, drawings and recipes, prepares them and shows them in its own user interface.
  • PLC program: checks the data supplied, accepts it in a safe state and runs the sequence.
  • Handover: a defined data area in the controller, described in a separate interface specification.
  • We build both sides. The handover is defined once and implemented identically at both ends, so no coordination between two trades is needed.

Order data from ERP, Excel or CSV

Typical task: orders are held in the ERP or in an Excel or CSV file and are keyed in by hand at the machine. The PC application takes this over:

  • Import from an export file, a database or the interface your IT specifies.
  • Order list on the PC: set the sequence, select an order, see its status.
  • Transfer to the controller: order number, quantity, material and parameters go into the PLC's handover area.
  • Feedback: status, quantity produced and order completion come back to the PC, and on request as a file for the ERP.

Drawings: from CAD/DXF to a position list

Typical task: a machine moves to positions defined in a drawing, such as holes, cuts or placement points. The PC application turns them into a list the controller works through:

  • Read the DXF file from CAD and select elements by layer or type.
  • Convert to machine coordinates: origin, rotation, unit of measurement.
  • Sort the positions for a short travel path.
  • Preview on the PC: before the transfer, the operator sees what the machine will run.
  • Pre-check of travel range and number of positions on the PC; the binding check is made by the controller.

Recipes and parameters with a database

Typical task: there are too many recipes or parameter sets for the recipe management on the panel, they are too large for it, or they need to be identical across several machines.

  • Recipes in an SQL database, with version and change record: who changed what, and when.
  • Editing on the PC, with limits for each parameter.
  • Loading into the controller under the four rules for the write path; the active set is visible on the panel.
  • Read-back of the active set, so that PC and machine show the same state.

Also: operating and diagnostic tools, replacing legacy tools

Smaller in scope, but at the same interface between PC and controller:

  • Operating and diagnostic tools beyond the panel, such as setup aids or signal and status overviews for troubleshooting.
  • Replacing old Excel VBA, VB6 and Access tools at machines: capture the function and rebuild it as an application with source code and documentation.
  • Another task at the interface between PC and controller? Ask us. After the review we will tell you whether it fits this service.

Four rules for the write path

When a PC writes to the controller of a running plant, fixed rules are needed. These four apply to every solution we deliver:

  1. The PC supplies, the controller decides. Data lands in a handover area. The PLC checks count, limits and plausibility and accepts the data only once the check has passed.
  2. Acceptance only in a safe state. While an order is running, writing is interlocked. Acknowledgement works in both directions: the PC reports “data ready”, the controller replies “accepted” or “rejected”.
  3. The plant keeps running without the PC. A loaded order is completed even if the PC fails. The PC is never part of a safety function.
  4. Every transfer is read back and logged. The PC compares what arrived in the controller with what it sent and records the result.

Example concept: drilling gantry for plates

The interface mock-ups below use an example concept to show what such a solution can look like: a drilling gantry for plates takes its orders from an Excel list and its hole positions from DXF drawings. Company, machine and order data are fictitious, and the screens are labeled in German. In each project, the interface and the checks follow from that project's functional and interface specification. The mock-ups show four states of the handover:

  1. Prepared (rule 1): order, drawing with drilling sequence and parameters have been compiled and pre-checked on the PC. The binding check by the controller is still pending.
  2. Acknowledged (rules 2 and 4): the controller has checked count, working area, tools, checksum and the safe state of the machine, and acknowledged the transfer. The PC has read back every position and logged the transfer; while the order is running, writing is interlocked.
  3. Rejected (rules 1 and 4): an order has 71 holes, the controller allows no more than 64. It rejects the data and states the reason, nothing changes in the program, and the rejection is logged.
  4. PC offline (rule 3): the connection to the PC has been lost. The operator panel shows this, and the machine finishes drilling the loaded order.

Technology of the solution

The solution we deliver is built on widely used standards:

  • PC application: .NET with C#, on a Windows PC, industrial PC or edge device.
  • Controller: Siemens S7-1500, programmed in TIA Portal.
  • Coupling: OPC UA via the integrated server of the S7-1500 (runtime license matching the CPU); depending on the controller and your IT's requirements, another interface is possible.
  • Data storage: SQL database for recipes, parameters and logs.
  • Data sources: Excel, CSV, DXF, plus an export from your ERP or its interface.

Process and fixed price

You receive a fixed price for the finished solution: a lump sum for the entire project including commissioning, after a free review. The process:

  1. Review of the task and the data sources.
  2. Fixed-price quotation with a list of what is included and what is not.
  3. Functional and interface specification: what the application does, and which data passes between PC and controller and how.
  4. Development of the PC application and the PLC part.
  5. Testing in simulation: the PC application against the simulated controller, including rejected data, interlocking and PC failure.
  6. Commissioning at the plant.
  7. Handover package.

Handover package: you are not tied to us

Whether a single engineering office is a supplier risk is a fair question. That is why at handover you receive everything another developer needs:

  • Source code with build instructions: another developer can build and modify the application without us.
  • Right of use and modification for you, including modifications by third parties.
  • Interface specification between PC and controller as a separate document.
  • Test environment against a simulated controller: later changes can be checked without stopping the plant.
  • Documentation and instruction for your team.

After the handover

PC software needs looking after: Windows updates, a current runtime environment, renewed certificates for the encrypted connection. With the handover package, your IT or a developer of your choice can take this on. On request, we handle upkeep and changes on a time-and-materials basis.

Where an off-the-shelf product is the better choice

A custom application makes sense where data from your sources needs to get into the controller. For other tasks, mature standard software exists:

  • MES, production data acquisition and OEE: ready-made systems maintained by their vendor are usually the better choice here.
  • Control system and SCADA across several plants: WinCC and comparable systems cover this; visualization is described on the HMI WinCC Unified page.
  • Providing plant data read-only for analysis, databases or AI: this is covered on the Plant Data & OPC UA page.

AI-assisted engineering: both sides from a single source

PC application, PLC part, tests and documentation add up to a lot of work for a single engineering office. AI-assisted engineering makes it feasible to deliver all of it from one source, because AI agents take over part of the development, testing and documentation work.

  • The engineer defines in the functional and interface specification what the application does and what the handover looks like.
  • He reviews the PC application and the PLC program, signs them off and commissions the solution at the plant.
  • No AI runs in the controller.

Frequently Asked Questions

What happens if the PC fails?

The plant completes the loaded order. Once accepted, everything the controller needs for the running order is held in the PLC, not on the PC. New orders only come in when the PC is running again. Safety functions never depend on the PC.

Do we get the source code, and may someone else modify it?

Yes. You receive the complete source code with build instructions and a right of use and modification that includes changes by third parties. The interface specification and a test environment against a simulated controller are part of it. With these, another developer can build and extend the application without us.

Does it work without OPC UA?

Yes. With the S7-1500, OPC UA is the usual route because the server is integrated in the CPU and the connection can be encrypted. Depending on the controller and your IT's requirements, other interfaces are possible, such as S7 communication or a TCP connection with a defined telegram. The four rules for the write path apply to every interface. How the S7-1500 is set up as an OPC UA server is described on the Plant Data & OPC UA page.

Can you take over an existing tool?

Yes, after a review, and only if you hold the right to have the tool modified. With old Excel VBA, VB6 or Access tools, replacing them is often the cleaner route: we capture the function and rebuild it as an application with source code, interface specification and documentation. Whether to continue or replace is set out in the quotation after the review.

Does the application have to be connected to our ERP?

Not necessarily. Often an export from the ERP as an Excel or CSV file, read in by the PC application, is enough. A direct connection is possible via the interface your IT specifies, such as a database or an exchange file in a fixed directory. What suits your company is clarified with your IT during the review.

What does the solution cost?

After a free review of the task and the data sources, you receive a fixed price for the finished solution: a lump sum for the entire project including commissioning. The quotation lists what is included and what is not.

Who takes care of updates and changes after the handover?

That is your decision. PC software needs looking after: Windows updates, a current runtime environment, renewed certificates. With the handover package, your IT or a developer of your choice can take this on, and the test environment lets changes be checked without stopping the plant. On request, we handle upkeep and changes on a time-and-materials basis.

Getting data into your controller

Tell us the data source, the controller and what needs to arrive at the plant. After the review you receive a fixed price for the finished solution.

Discuss your projector call: +352 26 70 93 51

✓ Non-binding initial consultation✓ Response time < 24h on business days