1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Industrial Robot Support and Discussion Center
  4. KUKA Robot Forum
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

Dynamic $OV_PRO [SOLVED]

  • Marco
  • December 8, 2017 at 2:26 PM
  • Thread is Resolved
  • Marco
    Reactions Received
    3
    Trophies
    3
    Posts
    116
    • December 8, 2017 at 2:26 PM
    • #1

    Hi there,
    I'm trying to implement a dynamic control for the $OV_PRO. I'm cutting with a circular saw and I would like to tune automatically $OV_PRO value while the saw gets deep into the material in order to keep spindle RPM constant especially during the initial immersion. This is my SPS by now, but it gives me an error during execution that says that "Value assignment is inadmissible".

    Code
    [...]
    REAL RPM_DIF  
    [...]
    
    
    ;---------DYNAMIC OV_PRO
    
    
        IF HSD_SPEED_IN > 100 THEN                                                           ;HSD_SPEED_IN is the speed read by the sensor
          RPM_DIF = HSD_SPEED_IN / HSD_SPEED_SET                                  ;HSD_SPEED_SET is the speed set by the program
          $OV_PRO = (100-(99*$ANIN[1]))*RPM_DIF
        ELSE
          RPM_DIF=1                   ;
          $OV_PRO=100-(99*$ANIN[1])   ; BASIC OV_PRO CONTROL                ;$ANIN[1] is the value of a potentiometer to control $OV_PRO from the remote pendant
        ENDIF
    Display More


    I found this old post, so I guess I'm not too far from the solution.

    https://www.robot-forum.com/robotforum/kuk…84495/#msg84495

    Maybe someone has some suggestion?
    Cheers,
    Marco

    Kuka KR150-2 KRC2 ed05 V5.6.11<br />VFD TDE Macno<br />Spindle HSD ES915 with Automatic tool changer<br />Sprutcam 11

    Edited once, last by Marco (December 9, 2017 at 10:51 AM).

  • Martin84
    Reactions Received
    5
    Trophies
    4
    Posts
    366
    • December 8, 2017 at 2:50 PM
    • #2

    I think you should create some variable and then pass this results to $ ov_pro. you must also remember that $ ov_pro can have a value from 0 to 100 .

  • Marco
    Reactions Received
    3
    Trophies
    3
    Posts
    116
    • December 8, 2017 at 4:00 PM
    • #3
    Quote from Martin84


    I think you should create some variable and then pass this results to $ ov_pro. you must also remember that $ ov_pro can have a value from 0 to 100 .

    $OV_PRO=100-(99*$ANIN[1]) alone works perfectly, my $ANIN[1] values are remapped from 0 to 1. I do have my RPM_DIF declared and initialised in my SPS.

    Kuka KR150-2 KRC2 ed05 V5.6.11<br />VFD TDE Macno<br />Spindle HSD ES915 with Automatic tool changer<br />Sprutcam 11

    Edited once, last by Marco (December 8, 2017 at 4:02 PM).

  • Marco
    Reactions Received
    3
    Trophies
    3
    Posts
    116
    • December 8, 2017 at 5:28 PM
    • #4
    Quote from Martin84


    Type int

    I don't get it. OV_PRO is INT already and the basic function $OV_PRO=100-(99*$ANIN[1]) without the RPM addition works fine since as it is declared as int it cuts off decimals. RPM_DIF must be real, smaller than 1 to get the $OV_PRO reduction in addition to the reduction from the potentiometer. For example: $OV_PRO = 100, Potentiometer at 50% which means $ANIN[1] = 0.5 then I Have $OV_PRO = 50. Additionally, if during milling I get HSD_SPEED_IN = 800 while HSD_SPEED_SET = 1000 then 800/1000= 0.8, which means 50(OV_PRO FROM PREVIOUS REDUCTION) x 0.8 = 40 as final ov_pro value.
    Hence, ov_pro should self-adjust all the time as the saw finds more resistance while cutting as to compensate the feed rate and avoid rpm drops.

    Kuka KR150-2 KRC2 ed05 V5.6.11<br />VFD TDE Macno<br />Spindle HSD ES915 with Automatic tool changer<br />Sprutcam 11

    Edited once, last by Marco (December 8, 2017 at 5:39 PM).

  • Martin84
    Reactions Received
    5
    Trophies
    4
    Posts
    366
    • December 8, 2017 at 5:43 PM
    • #5

    :respect: my mistake is sorry

  • Marco
    Reactions Received
    3
    Trophies
    3
    Posts
    116
    • December 9, 2017 at 10:50 AM
    • #6

    SOLVED. If this is gonna be useful for someone else, the problem was that the result of HSD_SPEED_IN / HSD_SPEED_SET was sometimes >1 due to speed little variation above the set value. Then the $OV_PRO final value was getting bigger then 100 and giving the error.

    Kuka KR150-2 KRC2 ed05 V5.6.11<br />VFD TDE Macno<br />Spindle HSD ES915 with Automatic tool changer<br />Sprutcam 11

    Edited once, last by Marco (December 9, 2017 at 1:40 PM).

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download