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

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

Advertisement

Table 7- 156 WriteByte() - Native C++
Syntax
Parameters
Return values
Table 7- 157 WriteByte() - .NET (C#)
Syntax
Parameters
Return values
Exceptions
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
ERuntimeErrorCode WriteByte(
EArea in_Area,
UINT32 in_Offset,
BYTE 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()
BYTE in_Value:
Byte value.
Runtime error code
SREC_OK
SREC_INTERFACE_REMOVED
SREC_TIMEOUT
SREC_INSTANCE_NOT_RUNNING
SREC_INDEX_OUT_OF_RANGE
SREC_WRONG_ARGUMENT
void InputArea.WriteByte(
UInt32 in_Offset,
Byte in_Value
);
void MarkerArea.WriteByte(
UInt32 in_Offset,
Byte in_Value
);
void OutputArea.WriteByte(
UInt32 in_Offset,
Byte in_Value
);
UINT32 in_Offset:
The byte offset within the area. The value must be between 0 and the value
that
returns.
AreaSize
BYTE in_Value:
Byte value.
None
Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException
Runtime error code
ERuntimeError-
Code.InterfaceRemoved
ERuntimeErrorCode.Timeout
ERuntimeError-
Code.InstanceNotRunning
ERuntimeError-
Code.IndexOutOfRange
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 is invalid.
Area is invalid.
Condition
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 is invalid.
169

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents