Preview how-to

h-hermsen


co⚡e: Sparkplug™ MQTT edge and host

Information and guides
Sparkplug™ information | Preview how-to | Setup a test system with Ignition Primary Host | Add SparkplugB to an existing CODESYS project

This page
Introduction | Prerequisites | Step1 | Step2 | Step3 | Step4 | Step5

Introduction

This is a primer to get you started with the preview example as provided here which demonstrates our fully Sparkplug™ compatible Edge, Device and Primary Host.
Still need help? -> Drop us a question below, we are happy to assist you.

Prerequisites

Your controller and development environment should meet the following requirements: [questions:#6]
This primer assumes you have library and project file saved on disk and you have CODESYS Development System V3, CODESYS Control Win x64 and CODESYS Gateway x64 installed.
Any other CODESYS compatible IDE should work as long as the system meets the minimal requirements.

Step1

Open the co⚡e.library, Be sure to skip the "Set All To Newest" and press OK

Step2

Press F11 or open the "Build" menu and select "Check All Pool Object" to verify the correctness of the library.
Errors are not checked by saving the library into the repository, so this is quite important.
Any errors will show in the messages pane under "Build" but if all goes well it should show the following;

If you experience errors, go to step 3, otherwise go to to step 4.

Step3

Some tips on resolving Errors

Download any unresolved (missing) libraries

Open the library manager and if the button is shown, press it.
The IDE will automagically download all missing libraries and install them in your library repository.

Set correct placeholders

Sometimes it could happen that some libraries are referenced that are not installed and/or not downloaded. In this case you can "force" a library reference.
Select the library reference that you want to force and select the version you wish to use from the pull-down menu.

Step4

Press save and install the library to your repository like so: first press the disk, then press the archive cabinet.

Step5

Open the preview project, download the three programs to the controller and be sure to run program three as first, and then run program 2 and or 1.

Enjoy!