Readbyte() - Native C - Siemens Simatic S7-1500 Function Manual

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

Advertisement

Table 7- 150 ReadByte() - Native C++
Syntax
Parameters
Return values
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
ERuntimeErrorCode ReadBytes(
EArea in_Area,
UINT32 in_Offset,
UINT32 in_BytesToRead,
UINT32* out_BytesRead,
BYTE inout_Values[]
);
EArea in_Area:
The area from which you want to read. Permissible values:
{SRA_INPUT, SRA_MARKER, SRA_OUTPUT}.
:
UINT32 in_Offset
The byte offset within the area. The value must be between 0 and the value
that
returns.
GetAreaSize()
UINT32 in_BytesToRead:
Contains the size of the value storage.
UINT32* out_BytesRead:
Returns the number of bytes that were just written to the value storage.
BYTE inout_Values[]:
The storage for the bytes that are read from the area.
Runtime error code
SREC_OK
SREC_INTERFACE_REMOVED
SREC_TIMEOUT
SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_WRONG_ARGUMENT
User interfaces (API)
7.6 API IInstances
See EArea (Page 330).
Condition
The function is successful.
The instance is not registered in Runtime
Manager.
The function does not return on time.
The process of the virtual controller is not
running.
The offset is outside the area size. No
byte could be read.
The area is invalid.
163

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents