Skip to main content

Direct Representation

Used to define the memory location of a global variable.

Syntax: %<Formato><Tamanho>

First Letter:

At (Format)Description
IInputs: Receives values from analog and discrete variables, or input network variables
QOutputs: Stores values to be written to analog and discrete outputs, or output network variables
MInternal RAM memory marker
S*System status marker
C*System command marker

*The status and system command markers are for ladder-only use.

Second Letter:

At (Size)Description
BByte (8 bits)
WWord (16 bits)
DDouble Word (32 bits)
LLong Word (64 bits)

Examples:

%IX: Digital input, 1-bit size.

%MW: WORD marker, 16-bit size.

%SB: BYTE system status marker, 8-bit size.