Siemens SIMATIC S7-1500 Function Manual page 192

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

Advertisement

in"
}
function bulkReadValues() {
if (AUTH_TOKEN !== null) {
Web server
Function Manual, 11/2019, A5E03484625-AG
.then(response => response.json())
.then((data) => {
AUTH_TOKEN = data.result.token
document.getElementById("notice").innerHTML = "You are logged
getApiVersion()
getTurbineNumber()
bulkReadValues()
showBtn("btn-logout")
hideBtn("btn-login")
closeModal()
})
.catch(e => console.error(e))
let turbSpeedMax = document.getElementById("turb-speed-val")
let turbAccelMax = document.getElementById("turb-accel-val")
let turbJerkMax = document.getElementById("turb-jerk-val")
fetch(TARGET_IP, {
method: "POST",
headers: {
"Content-type": "application/json",
"X-Auth-Token": AUTH_TOKEN
},
body: JSON.stringify([
{
"id": messageId++,
"jsonrpc": "2.0",
"method": "PlcProgram.Read",
"params": {
"var": "\"turbine_max_speed\""
}
},
{
"id": messageId++,
"jsonrpc": "2.0",
"method": "PlcProgram.Read",
"params": {
"var": "\"turbine_max_acceleration\""
}
},
{
"id": messageId++,
"jsonrpc": "2.0",
"method": "PlcProgram.Read",
"params": {
"var": "\"turbine_max_jerk\""
}
}])
})
3.20 API (Application Programming Interface)
Web pages
191

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic et 200proSimatic et 200sp

Table of Contents