Declaration Syntax
Variables must be declared within structuring elements, using the following syntax:VarName1 : Typename1 [ := InitialVal1 ];VarName2 AT Location2 : Typename2 [ := InitialVal2 ];VarName3 : ARRAY [ 0..N ] OF Typename3;where:
Keyword | Description |
VarNameX | Variable identifier, consisting of a string of alphanumeric characters, of length 1 or more. It is used for symbolic representation of variables. |
TypenameX | Data type of the variable, selected from elementary data types. |
InitialValX | The value the variable assumes after reset of the target. |
LocationX | See the next paragraph. |
N | Index of the last element, the array having length N+1. For compiler performance, it’s suggested to declare arrays with size not greater than 500000 elements. |