Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

GETVAR

The GETVAR macro reads the contents of a variable.
GETVAR can be used with simple variables and elements of complex variables.

Operation

Operands

GETVAR

MF = E
,PARAM = <name 1..8> / (<integer 1..15> )

MF = D

,PREFIX = G / prefix

MF = C

,PREFIX = G / prefix

,MACID = ETV / macid

MF = L

,NAMLEN = <integer 1..255>

,NAMADR = <name 1..8>

,SCOPE = *VISIBLE / *TASKONLY

,MAXLEN = <integer 1..4096>

,VALADR = <name 1..8>

Return codes (hexadecimal)

Subcode2

Subcode1

Maincode

Meaning

00000000Macro call was successful; no errors
00010001Parameter error
00010002Syntax error in variable name
00400003Area too small
00400004Variable not declared
00400005Variable container not available
00400006Data type and variable value do not match
00400008Variable has no value
0001FFFFUnknown unit or function number
0002FFFFFunction not available
0003FFFFWrong version of operand list