I/O Access Via Tag Name - Reading - Siemens Simatic S7-1500 Function Manual

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

Advertisement

Table 7- 161 WriteSignals() - .NET (C#)
Syntax
Parameters
Return values
Signal error
Exceptions
7.6.5.4

I/O access via tag name - Reading

Individual access to IO data is used for displaying and writing values that are not refreshed
regularly in a graphical user interface (GUI).
Note
To simulate a regular exchange of signals, create a signal list for each set of signals. Use
this signal list for all further accesses. Create a new list as soon as the set of signals
changes.
For the signal lists use the functions
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB
void InputArea.WriteSignals(
SDataValueByAddress[] in_Signals
);
void MarkerArea.WriteSignals(
SDataValueByAddress[] in_Signals
);
void OutputArea.WriteSignals(
SDataValueByAddress[] in_Signals
);
SDataValueByAddress[] in_Signals:
The signal list to be written.
None
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
ReadSignals()
User interfaces (API)
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.
and
.
WriteSignals()
7.6 API IInstances
173

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents