PLC Pie Guy
Member
Hey Folks.
I'm using V11 developer edition.
COP and MOV do not work to move UDT elements in CCW.
So, in order to move the UDT, I needed to use ST. I have never done this before.
Here is what I have....
if Kettle1.Control.CurrentStep = 1 THEN Kettle1.Steps[1] =; Kettle1SequenceStep
if Kettle1.Control.Currentstep = 2 THEN Kettle1.Steps[2] =; Kettle1SequenceStep
if Kettle1.Control.Currentstep = 3 THEN Kettle1.Steps[3] =; Kettle1SequenceStep
if Kettle1.Control.Currentstep = 4 THEN Kettle1.Steps[4] =; Kettle1SequenceStep
if Kettle1.Control.Currentstep = 5 THEN Kettle1.Steps[5] =; Kettle1SequenceStep
Does this look like it should work?
What I want is for Kettle1.Steps[X] to move to the tag Kettle1SequenceStep when the step number is a match to the value in X. Both tags are of the same UDT type.
Any other way to get this done that you can think of?
Thanks you!
I'm using V11 developer edition.
COP and MOV do not work to move UDT elements in CCW.
So, in order to move the UDT, I needed to use ST. I have never done this before.
Here is what I have....
if Kettle1.Control.CurrentStep = 1 THEN Kettle1.Steps[1] =; Kettle1SequenceStep
if Kettle1.Control.Currentstep = 2 THEN Kettle1.Steps[2] =; Kettle1SequenceStep
if Kettle1.Control.Currentstep = 3 THEN Kettle1.Steps[3] =; Kettle1SequenceStep
if Kettle1.Control.Currentstep = 4 THEN Kettle1.Steps[4] =; Kettle1SequenceStep
if Kettle1.Control.Currentstep = 5 THEN Kettle1.Steps[5] =; Kettle1SequenceStep
Does this look like it should work?
What I want is for Kettle1.Steps[X] to move to the tag Kettle1SequenceStep when the step number is a match to the value in X. Both tags are of the same UDT type.
Any other way to get this done that you can think of?
Thanks you!