User Manual

Web Server
Name Type D escription
tagName String Thenameofthetagintheprojectto
createaconnection to.
valueRefreshedCallback Function Optional: Functionthatiscalledwhen
thetagvaluehaschanged. Thefunction
isnotcalledwhenthetag valueisthe
sameaslastchecked.
Functionmaytaketwooptional
parameters. The rstparameteristhe
tagt hatchangedthevalue,thesecond
parameteris theoldv alueofthetag
beforeit changed.
refreshMode S tring Optional: Overrides thedefaultrefresh
modeoftag. Acceptedmodesare: none,
onetime,interval.
Notethatthe morefrequent
refreshModeisalwaysused. For
example,if thetagis createdwith
onetimebutanelementdenes
data-ix-refreshmode=”interval”for
thesametagthenthe tagwillhavea
refreshModeof interval.
Returns:
Type Description
iX.Tag Aninstanceof iX.Tag. See Tag Class fo r a
completedescription.
Example:
This example show how to display a warning if the value of "tag1" exceeds 70. The
example is using jQuery (bundled with iX.js) to hide and show the warning box.
iX.getTag
Retrieves a tag by name.
Parameters:
Name Type Description
tagName String Thenameofthetagtoretrieve.
BeijerElectronics, MAEN831P
149