Using Arduino with the PLC
This page explains loading the Arduino environment. Click here for hardware information.
1. Download the correct Arduino compiler. Install. If you already have an existing Arduino installation, delete or move any library files to avoid conflicts.
NOTE: 1.8+ is recommended.
2. After installation, start Arduino and select Board: "...Mega 2560":
Connect power to the PLC. Accidentally reversing the polarity won't harm the PLC. Connect a USB cable to the PLC. After automatic driver installation completes, select the the COM port assigned to the device name "Mega 2560" in the Tools menu.
3. Load the simple "blink" example:
Click on the .ino sketch file. Allow Arduino to move the file if it asks. Click the circular right arrow button. You're good to go. You can now replace blink with your own code.
4. Like to revert back to the demo? Load the version 2 factory demo code from GitHub... Don't allow Arduino to auto-update drivers. Use the fully tested driver package from GitHub.
Arduino board definition file instructions are here.
Click pldunio_firmware.ino to open the factory demo.
Click the right-arrow under "Edit" to compile, load, and run on the PLC.
Have a look at the sample code from Github.
The Arduino support forum is here.
Have fun with it!
(c) 2017 Digital Loggers, Inc.