NOVRAM
CX9020
45
Version: 2.0
8.1.2
Creating and linking variables
Once you have created a Retain Handler in TwinCAT, you can declare variables in the PLC and link them to
the Retain Handler. The variables have to be identified in the PLC with the keyword VAR_RETAIN.
Prerequisite for this step:
• A PLC project created in TwinCAT.
Create variables as follows:
1. Create the variables in your PLC project in a VAR RETAIN area.
2. Click on
Build
in the toolbar at the top, then on
Build Solution
.
3. Click on
PLC Instance
in the tree view on the left and then on the tab
Data Area
.
Summary of Contents for CX9020
Page 1: ...Manual CX9020 Embedded PC 2 0 2019 04 09 Version Date ...
Page 2: ......