Sign in to follow this  
Followers 0
TeaManMachine

Vijeo Designer 6.1.4 help

3 posts in this topic

Good afternoon. I'm working with Vijeo designer 6.1 SP4, not sure that matters. I'm programming a Magelis HMSTU633 panel and have two things I'm having problems accomplishing. The Magelis screen is connected to two Altivar 12 Variable frequency drives. I am displaying the Velocity (%MW8604) and Frequency (%MW3202) on my screen. I'm using a numeric display and tried to use integer and float, but can't seem to get it to display either value in Reverse. I suspect it is because the values are negative. I wasn't sure if integer was signed integer, so below zero may not have been valid, but float should have worked. I tried a couple other thing to do with displaying zeros, but nothing. Any ideas how I can get this to display negative values? Second, I have again a numeric display that I enabled the input mode on, and it's looking at (%MW8602), also writing to it. It pulls up a numeric display where I can enter a speed setpoint, and it works great. What I'd like to accomplish is to add an up arrow and down arrow, and enable the arrows to add and subtract from the speed setpoint that I entered in the numeric display. I suspect I need to write a script to do this, but don't have any experience scripting in Vijeo. What I have tried is to add a switch, set the operation to "word", and for the source, point to the velocity variable, add 1, and for the destination put the velocity variable again, using the operation of "set", I also tried "add". It didn't work, rather it appeared as if it added 1 to the address, rather than the contents of the address. I'm not sure of the syntax to add to the value of the address. Any help is appreciated. Thanks TeaManMachine

Share this post


Link to post
Share on other sites
I was able to figure out the issue with the negative values. The variables were set for UINT, and I changed them to INT. I have also been working with scripting, but not making any progress. I wrote some simple scripts. First to just read the integer value from a variable in the drive, add 1 to that integer and write that to an internal variable. I could display that on my Magelis screen just fine. When I try to write the integer value back to the original variable, I get an error from the drive. I can write to the variable using a keypad with no problem, but not through the script. This is what my script looks like: int a=0; a = Lathe_Output_velocity.getIntValue(); Lathe_Output_velocity.write(a+1); Any ideas? Thanks TeaManMachine

Share this post


Link to post
Share on other sites
Attached is a screenshot and it works jst fine in the simulator

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
Sign in to follow this  
Followers 0