Siemens S7-200 Driver
Address Type Range Type Access
V00000-V65532
V00000.bb-V65535.bb
V00000.bb-V65534.bb
V00000.bb-V65532.bb
DWord, Long, Float,
String
Byte
Boolean, Word, Short
DWord, Long, String
Timer Current Values T00000-T65535 DWord, Long Read/Write
Timer Status Bits T00000-T65535 Boolean* Read Only
Counter Current
Values
C00000-C65535 Word, Short Read/Write
Counter Status Bits C00000-C65535 Boolean* Read Only
High Speed Counters HC00000-HC65535 DWord, Long Read Only
Analog Inputs AI00000-AI65534** Word, Short Read Only
Analog Outputs AQ00000-AQ65534** Word, Short Write Only
*For Timer and Counter status bits, dot bit notation is not used. The status bit for timer 7 would be T7
declared as Boolean.
**For Analog Inputs and Outputs, the address must be even (AI0, AI2, AI4...). Analog Outputs (AQ) are Write
Only: there is no method for reading the value of Analog Outputs from the device. Write-only data types of
this driver return the last value written when read if an initial write to device has completed. If an initial write
has not completed, the driver returns a value of 0 when read. This only applies while a client is connected to
the server.
The actual number of addresses of each type depends on the Siemens S7-200 device in use. Each type does
not necessarily support an address of 0 to 65535. For address ranges, refer to the device's documentation.
Optional Dot Bits
For Byte, Word, Short, DWord or Long data types, an optional .bb (dot bit) can be appended to the address to
reference a bit in a particular value. The valid ranges for the optional bit is 0-7 for Byte types; 0-15 for Word,
Short, and Boolean types; 0-31 for DWord and Long types; and 1-211 for String types. Float types do not
support bit operations. Boolean and String types require a bit number. The bit number for String types
specifies the number of characters in the string.
Dynamic addresses with bit numbers in the range of 0-7 default to Byte; 8-15 default to Word; 16-31 defaults
to DWord. V Memory addresses with a bit number larger than 31 defaults to String. The following diagram
illustrates how the driver maps bits within the controller.
www. ptc.com
18