Declaration of Variables
Original instructions
At a Glance
All of the variables used in the different sections of the program must be declared.
Undeclared variables cannot be used in the program.
The following table shows the details of the variables used in the application.
Variable
Type
Definition
Elementary Variables
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
Derived Variables
Approach_Result
Result
Array with approach status
Pushing_Result
Result
Array with pushing status
SortingOperation_Result
Result
Array with sorting operation status
IO Derived Variables
R1CH0
IODDT
IODDT of type T_PTO_BMX for the %CH0.1.0 address.