Dear Sir,
I want to do some conditional calculational ref. to analog tag.
After calculating, answer store in other analog tag.
I put a Advantech SCADA TCL: script Example below here: ( I want same like that in VTSCADA )
==================================================
A and B is local Script tag
B_N(0) and B_N(1) Analog SCADA Tag
Bv1 and Bv2 Analog SCADA Tag
if {[GETVAL B_N(0)]==1} then { set A [GETVAL Bv1]
} else { set A 0
}
if {[GETVAL B_N(1)]==1} then { set B [GETVAL Bv2]
} else { set B 0
}
SETVAL sum=[expr $A + $B]
}
please help… in VTCADA Scripting, I want same like that in VTSCADA
can I do it ?
Dear Sir,
I want to do some conditional calculational ref. to analog tag.
After calculating, answer store in other analog tag.
I put a Advantech SCADA TCL: script Example below here: ( I want same like that in VTSCADA )
==================================================
# A and B is local Script tag
# B_N(0) and B_N(1) Analog SCADA Tag
# Bv1 and Bv2 Analog SCADA Tag
if {[GETVAL B_N(0)]==1} then { set A [GETVAL Bv1]
} else { set A 0
}
if {[GETVAL B_N(1)]==1} then { set B [GETVAL Bv2]
} else { set B 0
}
SETVAL sum=[expr $A + $B]
}
==============================================
please help… in VTCADA Scripting, I want same like that in VTSCADA
can I do it ?