how to switch button in JavaScript


I need to change the state of 8 variables on the PLC based on the state of one button on the HMI I can think of 2 way to do this but in having some trouble getting them to work.

1. have on button on the page that calls a java function to then set the changes the state of the variable. I have 2 groups of tags that one local to the HMI and one that’s all the PLC variable. I think the issues is how do determine which group that it is setting the variable in. this is the code I’m trying.

function BtnWide5_btn3_onMouseUp(me, eventInfo)





2. have 8 hidden button on the page that would then be activated when the common

button is pressed. I don’t like this method as much as it a bit messy. if i had to do this. how would

i go about setting the property of the button in JavaScript ?

thank you for your help !

Add New Comment


asked 10 days ago



Are you using 800xA with pg2? If so add a property writer to your button it can write to multiple items at the same time.


answered 10 days ago


By volz on 4/11/2018 | Like (0) | Report

Thanks for the info im using ac500 plc. Funny thing is i was loged in to the secound plc and not the first as im using HA. So i gess morale of the story is allway check coms setting first lol. Thank you for your help

Add New Comment

Get weekly AKS updates

Partner Exclusive Webinars


> – Login to the partner portal to register

Points Redemption Program - Redeem your points for ABB training, Bluetooth speakers and mugs. Terms and conditions >

Earn points when you refer a friend
AKS Referral Program is "Live" - Learn more

AKS Experts

Ask Rob Lyon   

Rank: 2 I'm an independent DCS software and commissioning engineer with extensive experience in 800xA and other ABB products. I've worked in almost every corner of the world and still haven't seen it all.

Ask Flavio Mussolin   

Rank: 4

ABB AVP, Senior Electronic and Automation Engineer with over 30 years of experience in the field of process automation automotive, pharmaceutical, hollow glass, steel and rolling.

Ask Govindaraj   

Rank: 9

Working in ABB India Operation Center. Have Project engineering and commissioning experience in ABB 800xA, Freelance, AC500.

Ask nikismith   

Rank: 255

I have been a part of the Recording & Control Factory team for 17 years in total, having spent a number of years as a repairs technician withi the manufacturing department, but being in my current role for 9 years now.

Ask Harsha.D   

Rank: 7

Tech.Support,software and commisioning engineer with Proficient knowledge in 800xA and its products, RNRP,Networking in general.

Ask Dieter Henkel   

Rank: 19

Ask MMM   

Rank: 5

ABB PA CT Technical Support

Ask kstoilov   

Rank: 11

Control System Engineer: 800xA, Compact 800, AC500, AC31-50, Advant Master, Simatic, AC&DC Drives 11 years worked for ABB - Control Systems

Ask Sumit Gargav   

Rank: 3

I have worked with Freelance in majority, with 800xA FD and Melody system partly. Also had opportunity to work with Protocols - HART,Profibus,FF & Modbus.

Ask Ronny Lindström   

Rank: 16

ABB Service Engineer

Ask Stefan Stromqvist   

Rank: 1

I joined ABB in the year of 1994 and has since 1999 been working as a Service & Support Engineer at BU Control Technologies in Västerås, Sweden. My areas of expertise are: 800xA Base, 800xA for Advant Master, Information Management, operating systems, RNRP and Ethernet comms/networking in general.

Ask WvanWees   

Rank: 6

I'm a senior service engineer working for ABB in The Netherlands.