© Pradeeka Seneviratne 2017

Pradeeka Seneviratne, Building Arduino PLCs, 10.1007/978-1-4842-2632-2_6

6. Writing PLC-Style Applications with plcLib

Pradeeka Seneviratne

(1)Udumulla, Mulleriyawa, Sri Lanka

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.

Get Building Arduino PLCs: The essential techniques you need to develop Arduino-based PLCs now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.