Basic Functions

This section record OpenPLC digital input/output, analog output, and basic program function block test methods and results.

Table 1. Hardware Preparation
Items Number Note
VisionFive 2 1 -
Breadboard 1 -
LED Several Used for receiving output.
Button Several Used for control input.
Resistors Several 100ohms, connected in series with led to prevent it from burning out.
L298N 1 DC motor driver board, used to test analog output.
DC motor 1 -
Dupont line Several -
USB2Serial 1 Corresponding to the enabled type in the kernel options.

Ladder diagram program is located in your computer after you download and unzipped the openplc.zip,for example: C:\Users\chloe.chen\Downloads\openplc\6. Basic functions.zip.