Appendix 1 – Syntax of S7-200 tag addresses
Chapter 8.
8. Appendix 1 – Syntax of S7-200 tag addresses
8.1 General tag address format
<Memory Type><Modifier><address>
8.2 Memory types
Memory
Type Description
Acceptable
Modifiers 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 Discrete Inputs B, C, W, S, D, L, F Byte offset
Q Discrete Outputs B, C, W, S, D, L, F Byte offset
Important: All addresses are always in BYTES (except for Counters and Timer that are objects).
Note: If no modifier is included, the modifier-type in bold will be used.
8.3 Modifiers
Modifier
Modifier type Value range Automatic tag type
B Byte 0...255 DWord
C signed Byte -128...127 Integer
W Word 0...65535 DWord
S signed Word -32768...32767 Integer
D DWord 0...4294967296 (**) DWord
L signed DWord -2147483648... 2147483647 (**) Integer
F Float +/- 3.4e38 Float
(**) Important: to avoid loss of precision due to integer to float conversion, choose the right
storage DataType for your Tag(s).
Polling Data Registers from Siemens S7-200 PLC Series (How to) Page 18/21
Comentarios a estos manuales