Direct Representation
Used to define the memory location of a global variable.
Syntax: %<Formato><Tamanho>
First Letter:
| At (Format) | Description |
|---|---|
| I | Inputs: Receives values from analog and discrete variables, or input network variables |
| Q | Outputs: Stores values to be written to analog and discrete outputs, or output network variables |
| M | Internal 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 |
|---|---|
| B | Byte (8 bits) |
| W | Word (16 bits) |
| D | Double Word (32 bits) |
| L | Long Word (64 bits) |
Examples:
%IX: Digital input, 1-bit size.
%MW: WORD marker, 16-bit size.
%SB: BYTE system status marker, 8-bit size.