Data Types - Siemens Simatic S7-1500 Function Manual

Hide thumbs Also See for Simatic S7-1500:
Table of Contents

Advertisement

7.8

Data types

Note
Unsupported data types
The Runtime API does not support the
Supported data types
In PLCSIM Advanced V2.0, the Runtime API supports the data types of the S7-1500 CPUs.
Converting data types
When writing, data types are not transferred BCD-coded but mapped onto primitive data
types.
The data types Counter, Date and Time must be transferred to the API BDC-coded so that
the values are written to the counter and no incorrect values are returned when reading.
For these data types, you must perform a BCD conversion before writing and a BCD back-
conversion after reading.
Example:
If the value 999 is transferred to the API as 2457
999. Without BCD conversion, there is no
Additional information
For information on data types and conversion, refer to section "Data types" in the
STEP 7 Professional (https://support.industry.siemens.com/cs/ww/en/view/109747136)
System Manual.
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
and
data types.
STRING
WSTRING
, then
modifies the value 2457
Write
H
value and
UInt16
Write
User interfaces (API)
7.8 Data types
to
H
writes no value at all.
279

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents