Summary
This chapter has explored some of the more complex features of the Structured Text language. Many of the features explored in this chapter can help improve the quality of your PLC code. In short, error handling can help catch unforeseen errors, proper code documentation can prolong the lifespan of your codebase, state machines are a vital part of any PLC program, and although pointers may not seem that important now, they will become more prevalent as the book progresses.
Of all the concepts explored, state machines, documentation, and error handling are going to be used the most in the day-to-day life of a PLC programmer.
Now that Structured Text has been explored, the next thing to explore is debugging.