document.getElementById
(
'data2'
).
innerHTML
=
getXMLValue
(
xmlData
,
'Temperatura_6'
);
}
function
setData
(
id
,
min
,
max
)
{
var
p
=
prompt
(
"Ustaw wartosc (min:"
+
min
+
" max:"
+
max
+
")"
,
"0"
);
var
val
=
parseInt
(
p
);
if
((
val
>=
min
)&&(
val
<=
max
))
{
sendData
(
id
,
val
);
}
}
function
sendData
(
id
,
data
)
{
newAJAXCommand
(
'comm.xml?data='
+
id
+
';'
+
data
);
}
setTimeout
(
"newAJAXCommand('comm.xml',updateStatus,false)"
,
2000
);
-->
</
script
>
</
body
>
</
html
>
The code shown above allows to write values in parameters 1 and 2 in the range 16-32
(the limit was defined in the 10 line code "setData ('Temperature_5', 16, 32)").
In this case, the values of registers 4000 and 4001 are 19, 25.
On the inveo.com.pl website, the blog topic about μScada contains examples of
connections with other devices and files to download.
User manual
μSCADA
Page
15
of
15
[B03]