Herunterladen Inhalt Inhalt Diese Seite drucken

Siemens SIMATIC S7-1500 Produktinformation Seite 14

Vorschau ausblenden Andere Handbücher für SIMATIC S7-1500:
Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

Helper functions
String-helper functions for ODB application for Windows and real-time environment
The following helper functions provide access to S7 strings:
Helper functions
Convert_S7STRING_to_SZSTR
Convert_SZSTR_to_S7STRING
Get_S7STRING_Length
Get_S7STRING_MaxLength
String-helper functions for ODB application for the Windows environment
The following helper functions provide access to S7WStrings:
Helper functions
Convert_S7WSTRING_to_SZWSTR
Convert_SZWSTR_to_S7WSTRING
Get_S7WSTRING_Length
Get_S7WSTRING_MaxLength
Class "CODK_CpuReadData" (Windows and real-time environment)
The class "CODK_CpuReadData" allows read access to Classic DBs:
Value
CODK_CpuReadData
ReadS7BYTE
ReadS7WORD
ReadS7DWORD
ReadS7LWORD
ReadS7S5TIME
ReadS7DATE
ReadS7TIME_OF_DAY
ReadS7SINT
ReadS7INT
ReadS7DINT
ReadS7USINT
ReadS7UINT
ReadS7UDINT
ReadS7REAL
ReadS7LREAL
ReadS7LINT
ReadS7ULINT
ReadS7TIME
ReadS7CHAR
ReadS7BOOL
ReadS7STRING_LEN
ReadS7STRING
ReadS7DATE_AND_TIME
14
Description
Convert PLC string types to C/C++ string types ("char" array, null-terminated)
Convert C/C++ string types ("char" array, null-terminated) to PLC string types.
Returns the current length of a PLC string type.
Returns the maximum length of a PLC string type.
Description
Convert PLC WString types to C/C++ WString types ("wchar_t" array, null-
terminated)
Convert C/C++ WString types ("wchar_t" array, null-terminated) to PLC
WString types.
Returns the current length of a PLC Wstring type.
Returns the maximum length of a PLC WString type.
Description
Class constructor: Initializes the input data area and the data size.
Reads a "byte" (1 byte) from the data area.
Reads a "word" (2 bytes) from the data area.
Reads a "double word" (4 bytes) from the data area.
Reads a "long word" (8 bytes) from the data area.
Reads a "16-bit" (2 bytes) time value from the data area.
Reads a date value (2 bytes) from the data area.
Reads the time of day (4 bytes) from the data area.
Reads a "short integer" (1 byte) from the data area.
Reads a "integer" (2 bytes) from the data area.
Reads a "double integer" (4 bytes) from the data area.
Reads a "unsigned short integer" (1 byte) from the data area.
Reads a "unsigned integer" (2 bytes) from the data area.
Reads a "unsigned double integer" (4 bytes) from the data area.
Reads a "real number" (4 bytes) from the data area.
Reads a "long real number" (8 bytes) from the data area.
Reads a "long integer" (8 bytes) from the data area.
Reads a "unsigned long integer" (8 bytes) from the data area.
Reads a time value (4 bytes) from the data area.
Reads a "char" (1 byte) from the data area.
Reads a "bool" (1 byte) from the data area.
Reads the information of string length from an S7 string in the data area.
Reads an S7 string from the data area and returns it as C++ character string.
Reads the general data and time area.
Amendments to ODK 1500S V.10
A5E35341074-AB, 06/2015

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis