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

How to communicate with external ethercat drive

  • Kuka60HA
  • February 15, 2024 at 10:19 AM
  • Thread is Resolved
  • DannyDJ
    Reactions Received
    62
    Trophies
    6
    Posts
    495
    • February 22, 2024 at 1:27 PM
    • #21
    Quote from Kuka60HA

    Danny,

    With this programm, I'm able-ish to make it rotate constantly

    I'm saying -ish because there's a trick...

    The first time I start the programm, the motor rotate half of a turn and stop (he reaches the velocity I guess)

    But if I reload the programm and start it (from INI), now it turns constantly !

    And then I can use an output to stop it (1319 i.g.)

    It already happened to you ?


    &ACCESS RVP


    &REL 157


    &PARAM EDITMASK = *


    &PARAM TEMPLATE = C:\KRC\Roboter\Template\vorgabe


    DEF testmda2( )


    SIGNAL O_CONTROL_WORD $OUT[1300] TO $OUT[1315]


    SIGNAL O_MODES_OF_OP $OUT[1316] TO $OUT[1323]


    SIGNAL O_TARGET_POS $OUT[1324] TO $OUT[1355]


    SIGNAL O_PROFILE_ACCEL $OUT[1356] TO $OUT[1387]


    SIGNAL O_PROFILE_DECEL $OUT[1388] TO $OUT[1419]


    SIGNAL O_PROFILE_VEL $OUT[1420] TO $OUT[1451]


    SIGNAL O_TARGET_VEL $OUT[1452] TO $OUT[1483]

    ...

    $OUT[1300] = FALSE


    WAIT SEC 1


    $OUT[1300] = TRUE ; enable communication



    O_CONTROL_WORD = 15


    O_MODES_OF_OP = 3


    O_PROFILE_ACCEL = 15000


    O_PROFILE_DECEL = 500


    O_PROFILE_VEL = 20000


    $OUT[1318] = TRUE ; stop the motor

    Display More

    Did you tried this:

    Code
    O_CONTROL_WORD = 271  ; stop the motor
    O_MODES_OF_OP = 3     ; set profile velocity mode
    O_PROFILE_ACCEL = 15000
    O_PROFILE_DECEL = 500
    O_TARGET_VEL = 20000  ; set velocity
    
    O_CONTROL_WORD = 15  ; start the motor
  • Kuka60HA
    Trophies
    1
    Posts
    16
    • February 23, 2024 at 2:28 PM
    • #22

    Yes I tried it as well but didn't work

  • DannyDJ
    Reactions Received
    62
    Trophies
    6
    Posts
    495
    • February 23, 2024 at 4:24 PM
    • #23
    Quote from Kuka60HA

    Yes I tried it as well but didn't work

    Ok, then you'll have to figure it out on your own by trial and error I guess. Those are values written in the manual.Usually manuals are correct. So in your working-ish code you have $OUT[1318] = TRUE ; stop the motor for stoping the motor, but from the manual and your program that signal is part of the MODE_OF_OP register so what is then right? I can only blindly guess 🤣, but I never worked with this drive neither I have option to test other values to give you the direct solution, but from the manual nothing special is written. One should just set the correct outputs in correct order and magic should happen. But I could also be miss reading something, somewhere in the manual.

  • panic mode
    Reactions Received
    1,268
    Trophies
    11
    Posts
    13,040
    • February 23, 2024 at 4:56 PM
    • #24

    why do you have line like

    $OUT[1318] = TRUE ; stop the motor


    as i see it, that is an unconditional stop and it is processed practically at the same time you are initializing motion. can you try to run without it or add before it something like :

    WAIT SEC 5 ; give it time to run before stopping.

    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

  • DannyDJ
    Reactions Received
    62
    Trophies
    6
    Posts
    495
    • February 23, 2024 at 6:48 PM
    • #25
    Quote from panic mode

    why do you have line like

    $OUT[1318] = TRUE ; stop the motor


    as i see it, that is an unconditional stop and it is processed practically at the same time you are initializing motion. can you try to run without it or add before it something like :

    WAIT SEC 5 ; give it time to run before stopping.

    But isn't the signal $OUT[1318] part of the O_MODE_OF_OP(mode operation) and that signal shouldn't have anything with controling the motor. From the manual 16-bit Control Word(0x6040) register should be used for controling(enabling&stopping,halt,etc) or maybe he meant $OUT[1308] signal which from the manual is performing somekind of shutdown.

  • panic mode
    Reactions Received
    1,268
    Trophies
    11
    Posts
    13,040
    • February 23, 2024 at 6:52 PM
    • #26

    maybe... did not go into details.. i just read it as "stop the motor = true"

    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

  • DannyDJ
    Reactions Received
    62
    Trophies
    6
    Posts
    495
    • February 23, 2024 at 7:12 PM
    • #27
    Quote from panic mode

    maybe... did not go into details.. i just read it as "stop the motor = true"

    Aaaa I see, just from the manual, with this $OUT[1318]=TRUE should be changing the drive to different mode of operation while motor is rotating in velocity mode.

  • Kuka60HA
    Trophies
    1
    Posts
    16
    • March 6, 2024 at 1:39 PM
    • #28

    Correct, I used these output to start/stop the motor!

    Thank you guys for your helps, this topic is fixed :smiling_face:

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

  • How to communicate with a EtherCAT device in KRL

    • chiachingyen
    • June 12, 2021 at 11:38 AM
    • KUKA Robot Forum
  • How to integrate custom external axis into KRC4 compact setup - first steps done !

    • designingB
    • May 12, 2021 at 7:35 AM
    • KUKA Robot Forum
  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