Honeywell HMIWeb Display Builder - error script type mismatch

Nat09817

Member
Join Date
Mar 2024
Location
-
Posts
1
Hello,

I am learning to create shapes and VB Scripts in HMIWeb Display Builder. I wanted to change color of my rounded rectangle by script. I created .vbs file in folder Scripts in C:\ProgramData\Honeywell\Experion PKS\Client\Abstract\Scripts and then I wrote a sub procedure:

Sub Element_Change_State_OnUpdate(oSource)

Dim oShape,tag1
set oShape = oSource.parentnode.parentnode

tag1 = oSource.DataValue("tagname1.cp_pv")

if tag1 = 4 then
oSource.fillColor = vbRed
Else if tag1 <> 4
oSource.fillColor = vbGreen
End if


end sub

In my shape I have one group and within two elements oval and rounded rectangle, I just call sub procedure in event OnUpdate. I am receiving an error in Station:

Line: 132
Char: 1
Error: Type mismatch: Element_Change_State_OnUpdate
Code: 0
Display: test.htm


I can't figure it out where the problem is. I was looking for an answer in my shape configuration but whatever I did, there was no desired result.

I am asking for some help in this matter, is there someone who can give me some advices what I should do? Thank you for help.
 

Similar Topics

Hey guys, I am working on some Factory talk, (RockwellAutomation), which I need to migrate to HMIWeb Display Builder, (Honeywell), and they are...
Replies
0
Views
1,377
Hi All I am currently working on a project using Honeywell Experion DCS with HMIWeb Display builder for the interface screens. I want to set the...
Replies
6
Views
5,521
Hi Anybody knows how to enter Honeywell HMI config menu. I need to change date and time of HMI. HMI series: Honeywell HCi series
Replies
0
Views
111
Hi all. Would anyone happen to have the Modbus register datasheet for the Honeywell/EnergyICT EIMFlex Modular Meter v1.11 We've 40 of these that...
Replies
0
Views
66
Hey Guys, I am getting random rack/slot errors. I go to download and everything is ok but then it has a error. For example - Yesterday everything...
Replies
1
Views
366
Back
Top Bottom