Swordfeather

Indirect addressing in pop up

3 posts in this topic

Hi,

In CX-Programmer i have an array of valves: Scada_Valve[0], Scada_Valve[1], ...Scada_Valve[x]

Is it possible to open a pop up with dynamic addressing so i can control the specific valve that was pushed?
I tried working with index i0 but i can't get this to work. 

Thx in advance

Share this post


Link to post
Share on other sites

SW27 = i0

SW28 = i1

SW29 = i2

 

IF SW27 = 0

W100i0 = W100

 

IF SW27 = 1

W100i0 = W101

 

IF SW27 = 50

W100i0 = W150

 

Share this post


Link to post
Share on other sites

Thx for the reply,

I'm rather looking for a solution with symbols instead of addressing with SW..
Is it possible to use registers with a symbolic tag, as in Scada_Valve[i0] or smthn like it?

Edited by Swordfeather

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now