Loading...
Select Version
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 |
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 |
00 | 00 | 0000 | Macro call was successful; no errors |
00 | 01 | 0001 | Parameter error |
00 | 01 | 0002 | Syntax error in variable name |
00 | 40 | 0003 | Area too small |
00 | 40 | 0004 | Variable not declared |
00 | 40 | 0005 | Variable container not available |
00 | 40 | 0006 | Data type and variable value do not match |
00 | 40 | 0008 | Variable has no value |
00 | 01 | FFFF | Unknown unit or function number |
00 | 02 | FFFF | Function not available |
00 | 03 | FFFF | Wrong version of operand list |