Technical requirements
For this chapter, all you will need is a copy of CODESYS installed. The examples for this chapter can be found at the following URL: https://github.com/PacktPublishing/Mastering-PLC-Programming-Second-Edition/tree/main/Chapter%2012.
Some of the code for this chapter will be a bit different than the other chapters. Much of the code in this chapter will be more akin to pseudocode that follows the IEC 61131-3 Structured Text syntax/structure due to the examples being used to merely demonstrate concepts. The goal of the examples is to provide a very familiar code structure so the principles can be applied to other languages and non-PLC projects that will be common in Industry 4.0. It cannot be stressed enough that these principles are language- and platform-agnostic. With that, the general structure and flow of the pseudocode are mostly compatible with CODESYS, and with minor modifications, can be run as examples. Nonetheless, the code is not designed to run...