Import PLC Variables
Setting up Recipe Management requires just a few clicks since we can build upon use all the data and variables that we've' set up for our HMI in the Connect & Control Your PLC section. However, as we are starting from scratch here, we must first create a PLC connection and import some variables.
1. Create a PLC Connection
An Actual PLC and the PLC Mode Are Required
It is not possible to save recipes using Placeholders for Offline Editing. You actually need to be connected to a PLC.
- Download & Start the
Playground PLC
Setting up a PLC that we can connect to sounds pretty complex, right? It's a software-based demo PLC that you can download for free and
run on your development computer right away. A handy tool when you want
to learn how to connect HELIO to an industrial machine that
communicates using OPC-UA. → Download the latest version and start it.The
HELIO Playground PLC
Got Your Back
- Add the Connection
Good job on getting the PLC set up and running. Let's keep going:
- If you haven't set up a new project just yet, now is a great time to Create a New Project.
- Open your new project in the Project Editor and switch to the Data View.
- In the Data Source Explorer, add a new OPC UA Connection using the default settings.
- Explore the Structure
2. Import Variables
Next we need to import the variables we want to use in our recipe types. For this example we are going to use variables that already exist on our on our Playground PLC.
- Locate the
ForEveryone
folder
Locate the folder in the Data Source Explorer.
You should find it under:
Objects > Examples > Abstract > ReadWrite > ForEveryone
.
- Import the Variables
Let's import
the variables into your project so that we can use them in our
recipes. Let's import the Boolean
and Integer > WithEnumeration
variables.
- Loosen Restrictions
To be able to write these variables, make sure that you relax the restrictions on the variables so that we can read and write them. Your Data Source Explorer should look something like this:
Now that we've got our data ready, it's time to define some recipe types.