Vai al contenuto

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:
KeywordDescription
VarNameXVariable identifier, consisting of a string of alphanumeric characters, of length 1 or more. It is used for symbolic representation of variables.
TypenameXData type of the variable, selected from elementary data types.
InitialValXThe value the variable assumes after reset of the target.
LocationXSee the next paragraph.
NIndex 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.