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

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

Advertisement

Table 7- 154 WriteBit() - Native C++
Syntax
Parameters
Return values
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
ERuntimeErrorCode WriteBit(
EArea in_Area,
UINT32 in_Offset,
UINT8 in_Bit,
bool in_Value
);
EArea in_Area:
The area that is to be written.
Permissible values:
{SRA_INPUT, SRA_MARKER, SRA_OUTPUT}.
See EArea (Page 330).
UINT32 in_Offset:
The byte offset within the area. The value must be between 0 and the value
that
returns.
GetAreaSize()
UINT8 in_Bit:
The bit offset within the byte. The value must be between 0 and 7.
bool in_Value:
Bit value.
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
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.
Offset or bits are invaid.
Area is invalid.
167

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents