In the previous chapters, you built simple software applications for PLCs using Arduino software and its built-in libraries. When you're using Arduino built-in libraries to write applications for PLCs, you may encounter the following difficulties and disadvantages.
A large amount of code is needed to perform a function
Sketches become too complex with nested logic
Debugging and fixing code is difficult
plcLib simplifies these difficulties by providing easy-to-use functions that can be used to write programs for PLC with a minimum amount of code.