2 indication of the variable type, 3 indication of the data type, Indication of the variable type – Lenze DDS v2.0 User Manual

Page 23: Indication of the data type, Appendix

Advertising
background image

Introduction to IEC 61131-3 programming

Appendix

21

L

DDS-IEC61131 EN 2.0

6.2.2

Indication of the variable type

The indication of the variable type is optional. It can be used to indicate the variable type in the
identifier:

Variable type entry (optional)

Meaning

I_

VAR_INPUT

Q_

VAR_OUTPUT

IQ_

VAR_IN_OUT

R_

VAR RETAIN

C_

VAR CONSTANT

CR_

VAR CONSTANT RETAIN

g_

VAR_GLOBAL

gR_

VAR_GLOBAL RETAIN

gC_

VAR_GLOBAL CONSTANT

gCR_

VAR_GLOBAL CONSTANT RETAIN

6.2.3

Indication of the data type

The data type entry provides information about the data type of a variable:

Data type entry

Meaning

b

Bool

by

Byte

n

Integer

w

Word

dn

Double Integer

dw

Double Word

s

String

f

Real (Float)

sn

Short Integer

t

Time

un

Unsigned Integer

udn

Unsigned Double Integer

usn

Unsigned Short Integer

If the variable is an array or a pointer, this will be indicated before the data type entry:

Data type entry (optional)

Meaning

a

Array (combined type), field

p

Pointer

Examples of data type entries:

aby

(Array of data type Byte)

dn

(Double Integer)

pdn

(Pointer to Double Integer)

Show/Hide Bookmarks

Advertising