2.1.9 Application Coding

Now, you have the MPLAB® Harmony components configured for a PLC application. The Getting-Started demo implements a simple PLC Transmission application. This application is written using the API's provided by the MPLAB® Harmony G3 MAC RT Driver.

The PLC demo for PIC32CXMTG device is already available in smartenergy_g3_apps repository. The application source files are available at smartenergy_g3_apps\apps\my_first_plc_app\firmware\src. Let's make use of those source files for the MyFirstPLCapp demo.

  1. Copy the application files (app.c, app.h) from smartenergy_g3_apps\apps\my_first_plc_app\firmware\src path.

  2. Paste the application files to demo at ...\MyFirstPLCapp\firmware\src.

  3. Add Header and Source files to the MPLAB project
    Figure . Application Files
    Application_Files