Readsignals() - .Net (C#) - 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- 191 ReadSignals() - .NET (C#)
Syntax
Parameters
Return values
Signal error
Exceptions
190
void ReadSignals(
ref SDataValueByName[] inout_Signals
)
void ReadSignals(
ref SDataValueByNameWithCheck[] inout_Signals
out bool out_SignalsHaveChanged
);
ref SDataValueByName[] inout_Signals:
Contains the name, the value and the expected type of the PLC tag. If the ex-
pected type is
UNSPECIFIC
successful. The
STRUCT
ref SDataValueByNameWithCheck[] inout_Signals:
Contains the name, the value and the expected type of the PLC tag. If the ex-
pected type is
UNSPECIFIC
successful. The
STRUCT
if the value of the signal has changed since the preceding call.
true
out bool out_SignalsHaveChanged:
Returns
if the value of at least one signal has changed since the preced-
true
ing call.
Contains the value and the type of the PLC tag.
SDataValue:
Runtime error code
ERuntimeErrorCode.OK
ERuntimeErrorCode.DoesNotExist
ERuntimeErrorCode.NotSupported
ERuntimeErrorCode.TypeMismatch
Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException
Runtime error code
ERuntimeError-
Code.InterfaceRemoved
ERuntimeErrorCode.Timeout
ERuntimeError-
Code.InstanceNotRunning
ERuntimeErrorCode.NotUpToData
, it is set to the stored type when the function was
type is not supported.
, it is set to the stored type when the function was
type is not supported.
"ValueHasChanged"
Condition
The signal operation is successful.
The entry does not exist in the stored tag
table.
Access to entire structures or arrays is
not supported.
The expected type does not match the
stored type. See Compatible primitive
data types (Page 335).
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.
The stored tag list must be updated.
Function Manual, 12/2017, A5E37039512-AB
is set to
S7-PLCSIM Advanced

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents