Plcprogram.write - Siemens SIMATIC S7-1500 Function Manual

Web server
Hide thumbs Also See for SIMATIC S7-1500:
Table of Contents

Advertisement

Possible error messages
The following table shows the possible error messages of the PlcProgram.Read method.
Error code
Error message
1
Internal error
2
Permission denied The current authentication token is not authorized to call this method.
4
No resources
200
Address does not
exist
201
Invalid address
203
Invalid array index The dimensions and limits of the array indexes do not correspond to the type information
204
Unsupported
address
3.20.5.4

PlcProgram.Write

The PlcProgram.Write method is used to write process data to the CPU.
To call the PlcProgram.Write method, you need the "write_value" authorization.
Structure of the request
The following table informs you about the properties of the tag to be written.
Name
Required
"var"
Yes
"value"
Yes
"mode"
optional, default is
"simple"
Web server
Function Manual, 11/2019, A5E03484625-AG
Meaning
An internal error occurred while trying to perform the requested operation.
Log on with a user account that has sufficient privileges to call this method.
The system does not have the necessary resources to read the requested address.
Carry out the request again as soon as sufficient resources are available again.
The requested address does not exist or the web server cannot access the requested
address.
The structure of the name of the symbolic address is not correct.
of the CPU.
The data type of the address cannot be read.
Data type
String
Variant
Bool
3.20 API (Application Programming Interface)
Description
Name of the tag to be written
The value to be written; the value depends on the operating
mode
Enumeration that specifies the format of "value":
"simple": The user must specify the values according to
the "simple" representation (see section "Supported data
types").
"raw": The user must specify the values according to the
"raw" representation (see section "Supported data ty-
pes").
Web pages
177

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic et 200proSimatic et 200sp

Table of Contents