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

Bin to dec (sending word via DO)

  • Serpantinas
  • July 13, 2021 at 8:57 AM
  • Thread is Unresolved
  • Serpantinas
    Reactions Received
    2
    Trophies
    3
    Posts
    81
    • July 13, 2021 at 8:57 AM
    • #1

    Hello,

    I need to send binary data through Ethercat communication, but I would like to have an interface to enter decimal number and function would generate binary equivalent to send.

    Could you direct me where could I read about this or provide some examples?

    This is to control frequency inverter, I have a double word for setting the frequency and setting bits by hand works just fine. The problem is that I don't know how to bridge the decimal entry to binary conversion and to triggering certain bits to turn on.

    KSS 8.6; KRC4

    KR120 R3200-2

  • Online
    panic mode
    Reactions Received
    1,267
    Trophies
    11
    Posts
    13,037
    • July 13, 2021 at 2:24 PM
    • #2

    send from where? using what?

    post examples of what you are setting by hand and what result should be.

    if this is send from robot to some fieldbus node, this should be just matter of declaring signal.

    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

  • Serpantinas
    Reactions Received
    2
    Trophies
    3
    Posts
    81
    • July 14, 2021 at 11:46 AM
    • #3

    Yeah, signal has triggered my memory now :grinning_squinting_face: Found it in the manual as well:

    "

    The outputs $OUT[1] to $OUT[8] are combined to form one digital output
    under the name OUTWORT. The outputs $OUT[3], $OUT[4], $OUT[5] and
    $OUT[7] are set.
    SIGNAL OUTWORT $OUT[1] TO $OUT[8]
    OUTWORT = 'B01011100'

    "

    Is there a way to convert decimal to binary? I'm probably blind but looking for a half hour into SI manual...

  • Mentat
    Reactions Received
    61
    Trophies
    5
    Posts
    243
    • July 14, 2021 at 12:14 PM
    • #4

    Representing a number in different bases is not specifically related to KUKA or even robotics, it more Informatics 101, that's why it's not in KUKA manuals :smiling_face: It's something that you could try googling or just search the forum, e.g.:


    Like this

  • Serpantinas
    Reactions Received
    2
    Trophies
    3
    Posts
    81
    • July 14, 2021 at 12:27 PM
    • #5

    So basically there is no preprogramed function for int to dec and I need to create one myself. Got it

  • Online
    panic mode
    Reactions Received
    1,267
    Trophies
    11
    Posts
    13,037
    • July 14, 2021 at 1:54 PM
    • #6

    That is the only way to do it since you refused to answer questions and get help from forum.

    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

  • hermann
    Reactions Received
    405
    Trophies
    9
    Posts
    2,596
    • July 14, 2021 at 2:17 PM
    • #7

    In your example this will convert DECIMAL 10 to binary '000001010':

    Code
    OUTWORT = 10

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 get a data type of REAL from PLC to robot?

    • knowledgesharing
    • September 19, 2014 at 11:44 AM
    • KUKA Robot Forum
  • How to access/use the Signal editor in WV

    • Koppel
    • October 10, 2020 at 11:47 AM
    • KUKA Robot Forum
  • 4-20mA Analog Output

    • AgainstGravity
    • July 20, 2019 at 9:42 PM
    • KUKA Robot Forum
  • Sending Negative Numbers from Kuka to PLC with 32 bit numbers DINT DWORD

    • Water
    • April 29, 2019 at 3:10 PM
    • KUKA Robot Forum
  • CIO ladder - mapping to int (in/out with plc)

    • Håkon Østrem
    • February 6, 2019 at 9:37 AM
    • Yaskawa Motoman Robot Forum
  • Storing Vision data into a position variable

    • amotobb
    • October 4, 2018 at 5:16 PM
    • Yaskawa Motoman Robot Forum
  • Mapping Low Byte and High Byte to integer and/or decimal

    • debjitghosh
    • September 11, 2018 at 3:36 AM
    • KUKA Robot Forum
  • KUKA 6-axis (position) to PLC

    • sudan
    • February 20, 2018 at 7:24 PM
    • KUKA Robot Forum
  • DIO not working with the molding machine.

    • Atinder Singh
    • January 17, 2018 at 5:58 PM
    • Fanuc 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