I/O Access Via Address - Writing - Siemens Simatic S7-1500 Function Manual

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

Advertisement

User interfaces (API)
7.6 API IInstances
Table 7- 153 ReadSignals() - .NET (C#)
Syntax
Parameters
Return values
Signal error
Exceptions
7.6.5.3

I/O access via address - Writing

WriteBit()
Writes an individual bit to the area.
Note
Data can be overwritten
The function allows access to the entire storage area of the virtual controller.
Therefore, use access via the tag name (Page 191) and not via the address areas.
166
void ReadSignals(
ref SDataValueByAddress[] inout_Signals
);
void ReadSignals(
ref SDataValueByAddressWithCheck[] inout_Signals
out bool out_SignalsHaveChanged);
);
ref SDataValueByAddress[] inout_Signals:
The signal list to be read.
ref SDataValueByAddressWithCheck[] inout_Signals:
The signal list that is read. The result is stored in the structure.
is set to
HasChanged"
preceding call.
out bool out_SignalsHaveChanged:
Returns
if the value of at least one signal has changed since the preced-
true
ing call.
None
Runtime error code
ERuntimeErrorCode.OK
ERuntimeError-
Code.IndexOutOfRange
Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException
Runtime error code
ERuntimeError-
Code.InterfaceRemoved
ERuntimeErrorCode.Timeout
ERuntimeError-
Code.InstanceNotRunning
ERuntimeError-
Code.SignalConfigurationError
if the value of the signal has changed since the
true
Condition
The signal operation is successful.
Offset or bits are 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.
At least one signal error is in the list.
Function Manual, 12/2017, A5E37039512-AB
"Value-
S7-PLCSIM Advanced

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents