Chapter 2: Advanced Structured Text — Programming a PLC in Easy-to-Read English
- A pointer points to a memory address where a reference is similar to a pointer with less syntax and references another variable.
- The
^
symbol dereferences a pointer. TRY
,CATCH
,FINALLY
- Self-documenting code is logically named program attributes such as variable names.
- A good comment is a comment that is short and adds context to the code without cluttering it. A bad comment will not add any context to the code, is long, or will unnecessarily clutter the code.
- You should code to a variable so you only need to change values in one place, which will reduce the number of bugs in a program. Coding to a variable will also add context to what the value represents.