Declaring Derived Variables
Original instructions
Overview
This is a 2-step procedure
  1. Create the derived data type
  2. Create the derived variables
Creating the Result Type
In order to create the derived variables, the Result type needs to be created. Follow these steps to do so:
Step
Action
1
In Project browser / Derived Data Types, double-click on the folder to open the window.
2
Type "Result" in the name, and keep Struct type. A new Result data type will be in a creation (illustrated by the worker icon)
3
Expand the structure and add the elements (Done, Abort, Error).
4
The worker icon will disappear if the analyze type command is used or next time the application is built.
Create the Derived Variables Used for the Application
The table shows the details of the Derived variables used in the application.
Variable
Type
Definition
Approach_Result
Result
Array with approach status
Pushing_Result
Result
Array with pushing status
SortIngOperation_Result
Result
Array with sorting operation status
The screen shows the application variables created using the data editor :
NOTE: Click on in front of the derived variable Approach_Result to expand the I/O objects list.