Declaring Elementary Variables
Original instructions
Overview
The first variables to declare are the elementary variables.
Procedure for Declaring Variables
The table below shows the procedure for declaring application variables.
Step
Action
1
In Project browser / Variables & FB instances, double-click on Elementary variables
2
In the Data editor window, select the box in the Name column and enter a name for your first variable.
3
Now select a Type for this variable.
4
Declare all the variables as said then close the window.
Elementary Variables Used for the Application
The following table shows the details of the elementary variables used in the application.
Variable
Type
Definition
Abort
BYTE
BufferMode parameter (value = 0)
ApproachInProgress
BOOL
Approach in progress
BlendingPrevious
BYTE
BufferMode parameter (value = 2)
Buffered
BYTE
BufferMode parameter (value = 1)
BufferFree
BOOL
Cmd0Nb
BYTE
1st command output number
Cmd1Nb
BYTE
2nd command output number
Cmd2Nb
BYTE
3rd command output number
Cmd3Nb
BYTE
4th command output number
InitProcess
BOOL
Process initialisation
ItemToSort
BOOL
Item to sort detection
The following screen shows the application variables created using the data editor: