TeaManMachine

MrPLC Member
  • Content count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About TeaManMachine

  • Rank
    Hi, I am New!

Profile Information

  • Country United States
  1. Vijeo Designer 6.1.4 help

    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
  2. 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