System information

General Reference Guide IO Servers Configuration
RG-001-0-EN ver 1.5 eWON® - 20/03/2009 - ©ACT'L sa Page 133
5.13.3.1 Value Name
The syntax is the following:
<Memory Type><Modifier><address>
Important: All addresses are always in BYTES (except for Counters and Timer that are objects).
Note: The Modifier can be omitted, the modifier in bold will be used.
(*) Important: See “Tags are stored as Float” on page 67
Examples
• Bit access modifier:
For Memory Type M, SM, V, I and Q, it is possible to access a single bit.
A #x must be appended to the Value name.
As the address in always in byte, the Bit index goes only from 0 to 7, and no Modifers are allowed.
The syntax can be used for reading bits and for writing them as well.
Example:
AQ10#5 represents bit 5 of Byte 10 in Analog Output zone.
invalid:IW5#2 wrong because there is a Modifier
I5#10 wrong because bit number greater than 7
Symbol Memory Type Modifier allowed Address
M Internal Memory B, C, W, S, D, L, F Byte offset
SM Special Memory B, C, W, S, D, L, F Byte offset
V Variable Memory B, C, W, S, D, L, F Byte offset
C Counter W, S Object number
HC High-Speed Counter D, L Object number
T Timer D, L Object number
AI Analog Inputs W, S Byte offset
AQ Analog Outputs W, S Byte offset
I Discretes Inputs B, C, W, S, D, L, F Byte offset
Q Discretes Outputs B, C, W, S, D, L, F Byte offset
Table 107: S7200 Memory types and address scheme
Symbol Modifier value range
B Byte 0 .. 255
C signed Byte -128 .. 127
W Word 0 .. 65535
S signed Word -32768 .. 32767
D DWord 0 .. 4294967296 (*)
L signed DWord -2147483648 .. 2147483647 (*)
F Float +/- 3.4e38
Table 108: S7200 Modifiers
address point to
MW4 the Word at address 4 (in bytes) in the Internal Memory
HCL1 the HighSpeed Counter number 1 and read it in Signed DWord
AQW5 the Word at address 5 (in bytes) in the Analog Output zone
IB3 the Byte at address 3 (in bytes) in the Discrete Inputs zone
I5#2
the bit 2 from the Byte (read the ‘Bit access modifier’ note below) at address 5
(in bytes) in the Discrete Inputs zone
Table 109: S7 200 register address examples