Please enable JavaScript to view this site.

Variables are identified by a unique ID code, whether they are predefined or user-defined: IDs are divided as follows:

Range

Description

0x00000000-0x0000FFFF

Default variable

0x0001000-0xFFFFFFFE

User-defined variable

0xFFFFFF

Reserved

CAUTION: Default variables are never saved in the .LAD file, but are always considered to exist.

The default variables are as follows:

ID

Name

Type

Description

0x00000001

INP(n)

BOOL

Input channel

0x00000002

INP_W(n)

U16

Input word 16bit

0x00000003

INP_DW(n)

U32

Input word 32bit

0x00000004

OUT

BOOL

Output channel

0x00000005

OUT_W(n)

U16

Output word 16bit

0x00000006

OUT_DW(n)

U32

Output word 32bit

0x00000007

R(n)

I32

Global integer register (volatile)

0x00000008

NVR(n)

I32

Global integer register (non-volatile)

0x00000009

RR(n)

REAL

Real global register (volatile)

0x00000A

NVRR(n)

REAL

Real global register (non-volatile)

0x00000B

AM(n)

U32

Alarm mask

Annotations:

if the variable is of array type, the array index (n) can be either a constant or an unindexed variable.

RDE3 creates additional predefined variables with completely arbitrary assignment of IDs (in the range 0x00000100-0x00010000): RTE recognizes such variables by name and not by that ID.

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC