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

Analog Output Voltage 0-10 V

  • robot-cnc
  • March 23, 2023 at 1:38 PM
  • Thread is Unresolved
  • robot-cnc
    Reactions Received
    11
    Trophies
    4
    Posts
    432
    • March 23, 2023 at 1:38 PM
    • #1

    Hi !

    I am trying to transform a spindle speed RPM as an analog output from Kuka program to a Beckhoff Ethercat module EK1100-EL4004 ( 0-10V, 12 bit) to manage analogical command on spindle inverter, according with RPM speed inserted in program with a voltage between 0-10V. Kuka system is KSS 8.3.18.

    I have fallowing syntax, one, two three.jpg , I tried one with two combination but didn't work, spindle try to rotate but do not run properly. Then I read that $ANOUT[1]= cannot be a math formula, just -1 to 1, which means probably -100%...0%....100% scale, so $ANOUT[1]=1 maybe the correct synatx???

    Can you confirm me that?

    Or maybe there is another syntax variant:

    $ANOUT[1]=VOLTAGE, WHERE VOLTAGE IS CALCULATED AS IN spindle_on()

    $ANOUT[1]=1

    I would appreciate your help !

    Thank you

    Images

    • one.jpg
      • 170.13 kB
      • 931 × 739
      • 10
    • two.jpg
      • 268.29 kB
      • 708 × 824
      • 8
    • THREE.jpg
      • 271.84 kB
      • 708 × 824
      • 6
  • spiral
    Reactions Received
    2
    Trophies
    3
    Posts
    146
    • March 23, 2023 at 1:45 PM
    • #2
    Quote

    Then I read that $ANOUT[1]= cannot be a math formula, just -1 to 1, which means probably -100%...0%....100% scale, so $ANOUT[1]=1 maybe the correct synatx???

    Can you confirm me that?

    1 is equal to 10V.

  • DannyDJ
    Reactions Received
    67
    Trophies
    6
    Posts
    503
    • March 23, 2023 at 1:52 PM
    • #3

    Hello, $ANOUT[1]=FACTOR*SET_RPMs formula should be OK, i have just programmed the same last week to set spindle speed from KRL program but on KRC2, but it should work also on KRC4.

    Did you measure with meter the actual voltage on EK1100-EL4004 on it's output, when you change the variable for the speed?

    So if you set maximum RPMs you should measure 10V and if you set max RMPs/2 you should get 5V etc...

  • panic mode
    Reactions Received
    1,278
    Trophies
    11
    Posts
    13,079
    • March 23, 2023 at 2:04 PM
    • #4

    DECL REAL CONST MAX_RPMs = 3600.0 ; whatever the value may be

    DECL REAL SET_RPMs ; variable your program is to control

    $ANOUT[1]=SET_RPMs/MAX_RPMs

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • Online
    SkyeFire
    Reactions Received
    1,051
    Trophies
    12
    Posts
    9,423
    • March 23, 2023 at 2:09 PM
    • #5
    Quote from robot-cnc

    Then I read that $ANOUT[1]= cannot be a math formula, just -1 to 1, which means probably -100%...0%....100% scale,

    That is correct. The thing to keep in mind is that Analog hardware modules come in many varieties: 0V to 10V, -10V to +10V, 4 to 20mA, -5V to +5V, and others. Also, on the I/O side, they can come in 8-bit, 12-bit, 14-bit, and 16-bit binary ranges, not to mention they can be signed or unsigned.

    So ANOUT and ANIN can be seen as representing the signal range of the analog hardware module, from -100% to +100%. As such, ANOUT doesn't really know what voltage (or amperage) the module is actually producing (or receiving).

    So, sending ANOUT=1.0 to a 0-5V module would produce 5V, but setting ANOUT=-0.5 to a module with a -10V to +10V range would generate a -5V output at the physical layer. And so on.

  • robot-cnc
    Reactions Received
    11
    Trophies
    4
    Posts
    432
    • March 23, 2023 at 2:56 PM
    • #6

    Hi Skyfire,

    and what about first two opinions above?

    I cannot understand how worked for DannyDJ.

    The matter is RPM is variable, so allocation value 0%-100% should happen function of programmed RPM, therefore a math formula is a must, but PanicMode sugestion is contrary:

    $ANOUT[1]=SET_RPMs/MAX_RPMs or must add also

    $ANOUT[1]=1, meaning both code lines ?

  • robot-cnc
    Reactions Received
    11
    Trophies
    4
    Posts
    432
    • March 23, 2023 at 3:01 PM
    • #7
    Quote from DannyDJ

    Did you measure with meter the actual voltage on EK1100-EL4004 on it's output, when you change the variable for the speed?

    yes, and is zero V.

    Beckhoff EL4004 is new and is ok.

    This is why I thought is a matter of syntax program that do not match and not sending to EL4004, right voltage in range 0-10V.

  • DannyDJ
    Reactions Received
    67
    Trophies
    6
    Posts
    503
    • March 23, 2023 at 3:10 PM
    • #8
    Quote from robot-cnc

    Hi Skyfire,

    and what about first two opinions above?

    I cannot understand how worked for DannyDJ.

    The matter is RPM is variable, so allocation value 0%-100% should happen function of programmed RPM, therefore a math formula is a must, but PanicMode sugestion is contrary:

    $ANOUT[1]=SET_RPMs/MAX_RPMs or must add also

    $ANOUT[1]=1, meaning both code lines ?

    Display More

    $ANOUT[1]=SET_RPMs/MAX_RPM and $ANOUT[1]=FACTOR*SET_RPMs gives you the same result

    in your FACTOR calculation you must divide with 1 not with 10 because $ANOUT[1] is max 1.0 not 10.0

    FACTOR=1.0/MaxRPM

    so $ANOUT[1]=(1/MaxRPM)*SET_RPMs = SET_RPMs/MAX_RPM

  • DannyDJ
    Reactions Received
    67
    Trophies
    6
    Posts
    503
    • March 23, 2023 at 3:39 PM
    • #9
    Quote from robot-cnc

    yes, and is zero V.

    Beckhoff EL4004 is new and is ok.

    This is why I thought is a matter of syntax program that do not match and not sending to EL4004, right voltage in range 0-10V.

    By zero V you mean it is 0 all the time regardless if you change the analog output values?

  • robot-cnc
    Reactions Received
    11
    Trophies
    4
    Posts
    432
    • March 23, 2023 at 4:53 PM
    • #10

    Thank you all !

    Variant that works is one from attached photo.

    Is fine, speed spindle got it from program.

    Images

    • 20230323_175041.jpg
      • 185.57 kB
      • 1,499 × 1,200
      • 31

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

Similar Threads

  • Load cell feedback

    • Ruddock984
    • November 14, 2019 at 7:56 PM
    • KUKA Robot Forum

Tags

  • kuka ANOUT
  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