How to set multiple tag types with one control

mrgees100peas

Member
Join Date
Aug 2016
Location
vermont
Posts
24
Hi,

I am tasked with creating a new HMI program in FTView SE (v12) because the HMI in the machine is old and obsolete. The HMI was programed using some other vendors program (parkers something or other). The thing is that the old HMI is very small and we are moving to a pc base touch HMI. This means that I can put 4 or 5 pages of the old hmi screens into 1 of the new one. So far so good right. Well, I just found out that some parts of the PLC program rely on the current screen being used. For example, in the old HMI it would use 2 different pages to control say 2 motors. Now I can put both motors into 1 page buuuutttt, the PLC program relies on knowing which page you were on. How do I do that? I have 2 buttons n the same screen that say lift gates A and gate B but now they live on the same page , how do I set screen 3, B3.10 for one button and Screen 5, B3.20 on the other one? Also, I'm 95% sure thy wont et me touch the PLC program.
 
If you're using FTViewSE then you can issue multiple 'commands' on a single button press.

The current PLC must have some reference back from the current HMI about what page it is on (which is also possible in the FTViewME world). You will need to know which number meant which 'motor'.

Then instead of doing
/set {[PLC_HERE]Motor3.Start} 1

You'd be doing
/set {[PLC_HERE]HMIDisplayPage} 3
/set {[PLC_HERE]Start} 1

your button for the stop would be similar.. your button(s) for Motor 2 would instead be
/set {[{PLC_HERE]HMIDisplayPage} 2
/set {[PLC_HERE]Start} 1

If you turned it into a global object, you'd just need to pass down the motor number (as like #1, and then replace the hardcoded number 3/2 -> #1)
 
Thanks. That should work. Unfortunately now I'll have to go back and replace every button I've already made. Too bad I don't get paid by the hour.
 
It's been a while since I've used FTView SE, but from memory you need a semicolon - ; - between each of your commands
/set {[PLC_HERE]HMIDisplayPage} 3;
/set {[PLC_HERE]Start} 1
I'm not 100% on this, but in any case the editor has a "build a command" utility which will get it set up with all the required syntax for you automatically. Run this on the first one, work out the syntax, and then do the rest by hand.
 

Similar Topics

Is there a way to reset 1 CONTROL Tag with 120 Arrays. DecMoveHeight[0]-[119] with one instruction? If so how is it structured. This is with...
Replies
10
Views
3,366
How can you set multiple bits with a single button press. The tags I need to set are {::[TRIMMER]B3:8/1} {::[TRIMMER]B3:8/2} {::[TRIMMER]B3:9/0}...
Replies
3
Views
3,400
Is it possible to reset alarms on multiple PLC's by using one button on the FactoryTalk View ME screen. Each PLC has an independent reset bit, so...
Replies
1
Views
3,149
Anybody know a slick way to reset 200 consecutive counters in a AB Logix 5000 plc? thanks, Jerry
Replies
16
Views
6,780
Hi, I'am relatif new whit the topic of OPC. Now a fase a challenge to bild a scada system for or production line(s). A production line consist...
Replies
4
Views
2,912
Back
Top Bottom