I'll second the mapping recommendations. It makes the whole program easier to follow, and if you have a PLC input or output go bad on a card, you can easily change the map to a spare I/O point without having to change the software.
Always 'start' from the output. Once you know what your outputs are, you know what it is you need to control. This also means I should be able to open the program and quickly find the output (which should only be in one place!)
Always date your files! 2022-04-18 is ISO format and makes for easy sorting! I usually keep an AM and PM copy. After about 2 days, I go back and delete unwanted copies - but I know some guys who keep the whole lot.
Always 'start' from the output. Once you know what your outputs are, you know what it is you need to control. This also means I should be able to open the program and quickly find the output (which should only be in one place!)
Always date your files! 2022-04-18 is ISO format and makes for easy sorting! I usually keep an AM and PM copy. After about 2 days, I go back and delete unwanted copies - but I know some guys who keep the whole lot.