FT View Studio

255.255.255.0

Member
Join Date
Nov 2011
Location
In a never ending fog of "I want", "Why can't we"
Posts
10
Hello all, I have a question for you. I am wondering how to tie an objects horizontal and vertical position to an analog tag (from an encoder) to make it move across a conveyor belt on the PV screen. I think I should tie the encoder input to an N file in the PLC and reference this in my PV expression. Is this correct? Trying to get it right without having to actually having to set up a PLC to test. Any help would be greatly appreciated.
 
Animate the object via the Horizontal or vertical position.
Select the object, right click->animate->
 
Right, but I am wondering about how to reference the expression. I have never tried to make an object slide. I have made things move (jump positions), appear as a pop-up, etc. but moving steady across a conveyor belt is new to me. Will it work to the way I suggested (using an N file tied to the encoder count as my reference for the animation expression)?
 
You can use your encoder, you'll just have to translate/scale the expected encoder range to pixel positions on your window, which you do in the animate horizontal or vertical position selection in FT SE. However, more would need to be known about this encoder value. Does it automatically rollover from 0 to X, then back to 0 again? Is there only one part on the conveyor at a time?

If multiple parts, you could instead use a boolean shift register that's the length of the conveyor in time splices. Shift the shift register for each pulse of the encoder. Load the shift register beginning each time a new part shows up. In that case, you could have multiple parts on the belt. Just use visibility on your SE screen with a widget in each shift register location that turns on when the corresponding position in the shift register is true.
 
Use the pixel settings with the Min/Max values for the tag you are using.

Your expression will simply be the name of the tag you wish to use for animation.

For example...in the attached image, as the N7:10 value ranges from 0 to 500 the animated object will move from it's base position to a position 350 pixels to the right.

So at zero it will be in it's base position on the screen. At 500 it will be 350 pixels to the right. As the value varies between 0 and 500 then it's position will also vary between zero position and 350 pixels.

OG

Animate.JPG
 
You cannot quite make it slide, however, you could duplicate it, "connect" it to the required number of tags, place it in several positions along your intended "slide path" and then use the Visibility Animation feature conditioned by a Compare (>, <, =) expresion of your encoder's values.
 
Last edited:
Just a suggestion, when using animations on HMI's, it is usually a Very Good Practice to normalize the value sent to the HMI. Since I deal almost exclusively in REAL datatypes, I generally normalize a position to be 0 to 100.0%, if you were dealing in integers, you might want to make the normalized range 0 to 1000.

Using the actual raw number for an HMI animation is just a pain, especially if you use several different types / sizes of HMI.
 

Similar Topics

Hello, I have a panelview plus that reads from 4 different PLC's. 2 of these used to be Micrologix PLC's and someone else went and updated them to...
Replies
3
Views
105
Hello, I made a change in alarm setup in factory view studio, where I changed a alarm message text. After that I made a run application and...
Replies
0
Views
169
I have just installed version 14 of view studio, and the tag browser is new. I am trying to assign "Diff_Tryk_saver_1" to a numeric display, as I...
Replies
1
Views
174
Trying to open View Studio and get a message "View Studio was NOT successfully personalized" Anyone ever run into this?
Replies
1
Views
218
Question for those who are in the know how Studio 5000 works/compiles under the hood. The laptop that was supplied to me is now full with no...
Replies
8
Views
617
Back
Top Bottom