I worked for more than forty years in industrial automation, commissioning plant, much of it with Siemens equipment. That history was not the reason for choosing the LOGO! 8. Forty years of automation also gave me forty years of automation problems. The LOGO! was chosen for one practical reason. It runs directly from a 12 V DC supply, and its inputs and outputs work at 12 V over a wide voltage range. That suits a vehicle.
To be direct: if I had known at the start what I know today about ESP32 microcontrollers, there would be no Siemens LOGO! anywhere in this truck.
The LOGO! is programmed graphically, in what Siemens calls CSF (Control System Flowchart), a function block diagram. Its support for user-defined function blocks is weak. Our complete programme uses only one, a simple latch, which we use mostly for the lights and for local/automatic selections. In my opinion the LOGO! software does not compare well with other IEC 1131 PLC programming standards. It is untidy, difficult to manage as a programme grows, and unpleasant to work with. It also has no compatibility with the Siemens S7 controllers I used during my career.
The hardware is a different story. It has the reliability you expect from the Siemens name, and it has proved that in this truck. During the project, voltage spikes destroyed more than R15 000 of other equipment. The worst event was a failed alternator regulator that put 20 V or more on everything in the camper. The LOGO!s survived all of it. After that event we fitted buck-boost converters in front of every piece of electronics in the truck. They protect the other equipment. The Siemens hardware did not need them.
A LOGO! runs its programme in the same order every cycle and starts the same way every time. Because of this I do not have to search for faults in it at the roadside. Its real value on the road is different: I can change the programme in place, and watch the programme running live while I test the change.
Southern Africa has wide plains that are flat as far as you can see, rolling hills, dunes, and the high, rough mountains of the Drakensberg and the Cape ranges. The roads that cross them are the problem. They are corrugated and full of potholes, and they are often washed away or simply gone. Heat, dust and constant vibration are hard on any electronics.
Over the years Tartaruga has gained a second layer of devices: ESP32 microcontrollers. They read GPS, motion sensors, radar and the truck's own CAN bus, and they drive touchscreens. The PLCs remain the base of the system, and the rest of this series builds on them.
The PLCs switch everything that carries real current. The microcontrollers only make requests.
This rule shapes the whole design. Every pump, contactor, solenoid valve, motor and light is wired to a PLC output. No ESP32 drives a load directly. If a microcontroller stops, restarts or loses its network connection, the PLCs continue to work and the truck stays safe.
All the controllers work together over Modbus TCP. The four PLCs use it to exchange data, and the ESP32 controllers and the WinCC SCADA system on the truck PC use it too. It was the simplest route. When Siemens designed the LOGO!, it seems to have left out the SIMATIC Ethernet protocols, and Modbus TCP is something every device in the truck can use.