User interfaces (API)
7.6 API IInstances
Table 7- 213 WriteFloat() - .NET (C#)
Syntax
Parameters
Return values
Exceptions
212
void WriteFloat(
string in_Tag
float in_Value
)
•
string in_Tag:
The name of the PLC tag that is to be written.
•
float in_Value:
Contains the value of the PLC tag.
None
Siemens.Simatic.Simulation.Runtime.SimulationRuntimeException
Runtime error code
ERuntimeError-
Code.InterfaceRemoved
ERuntimeErrorCode.Timeout
ERuntimeError-
Code.InstanceNotRunning
ERuntimeErrorCode.DoesNotExist
ERuntimeErrorCode.NotSupported
ERuntimeErrorCode.TypeMissmatch
ERuntimeErrorCode.NotUpToData
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 entry does not exist in the stored tag
list.
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).
The stored tag list must be updated.
S7-PLCSIM Advanced
Function Manual, 12/2017, A5E37039512-AB