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

Group Inputs/Group Outputs between RobotStudio and Allen-Bradley PLC

  • PhilC
  • September 13, 2023 at 9:38 PM
  • Thread is Unresolved
  • PhilC
    Trophies
    1
    Posts
    8
    • September 13, 2023 at 9:38 PM
    • #1

    Currently, I am trying to run an IRC5 Robot Controller from an Allen-Bradley PLC (AB HMIs). I was informed that the PLC codes that the partdata programs use must be above 111, as the ones below are menudata or error codes. For an 8-bit SINT, the last bit is a positive or negative bit, meaning that the maximum value I can send through a SINT is 127. I had heard that you must use SINTs to send data to the ABB robot controller. I would like to be able to send PLC codes that are larger than 127, as our robot program has more than 17 different programs it needs to run. How do I go about doing so? I have seen in videos where people set the "Group Input"/"Group Output" to larger than 8-bits, but do not understand how I will combine multiple SINTs on the AB PLC side to send the correct values for the programs I wish to run. Thank you for your time.

  • panic mode September 13, 2023 at 10:21 PM

    Approved the thread.
  • Online
    Lemster68
    Reactions Received
    301
    Trophies
    9
    Posts
    2,469
    Blog Articles
    7
    • September 14, 2023 at 1:53 PM
    • #2

    First off, there is absolutely no need to send a signed integer. Why would a negative value be sent for a program number? Especially when you have stated that it must be over 111. Secondly, 8 bits is more than enough, you ca n send up to 255 as an unsigned integer.

  • hermann
    Reactions Received
    407
    Trophies
    9
    Posts
    2,613
    • September 16, 2023 at 7:48 AM
    • #3

    There is nearly nothing correct you have heard.

    The thing with 111 I don't understand, if you use a self declared i/o group, you can use all numbers from zero to the maximum the number of bits allows. Makes only sense if you use some kind of very restricted template.

    The Abb robot doesn't use highest bit in a group as sign, if you want to transfer signed integer, you must calculate them in the program.

    You can group up to 32 bit to one large dnum. If your AB plc supports double words you can transfer up to 4.294.967.295 program numbers, should be enough :winking_face:.

  • MateuszS123
    Reactions Received
    1
    Trophies
    1
    Posts
    13
    • September 19, 2023 at 8:35 AM
    • #4
    Quote from hermann

    There is nearly nothing correct you have heard.

    The thing with 111 I don't understand, if you use a self declared i/o group, you can use all numbers from zero to the maximum the number of bits allows. Makes only sense if you use some kind of very restricted template.

    The Abb robot doesn't use highest bit in a group as sign, if you want to transfer signed integer, you must calculate them in the program.

    You can group up to 32 bit to one large dnum. If your AB plc supports double words you can transfer up to 4.294.967.295 program numbers, should be enough :winking_face:.

    The group intput type is unsigned and can hold up to 32 bits.

    But analog input type can be interprated as signed (two complement), so by using analog input type you don't need to make any calculations in rapid.

  • Loipe
    Reactions Received
    7
    Trophies
    3
    Posts
    38
    • September 19, 2023 at 10:23 AM
    • #5

    how about this. u can pack it in a nice function

    Code
    GroupInputValue:=GroupInput
    
    
    IF GroupInputValue > POW(2,LengthInBits-1) THEN
    
      GroupInputValue = GroupInputValue - POW(2,LengthInBits)
    
    ENDIF
  • SkyeFire
    Reactions Received
    1,052
    Trophies
    12
    Posts
    9,429
    • September 19, 2023 at 5:15 PM
    • #6
    Quote from PhilC

    I was informed that the PLC codes that the partdata programs use must be above 111, as the ones below are menudata or error codes.

    Not on anything inherent to the IRC5, as far as I know. How was this robot set up? Typical IRC5 configuration, in my experience, is to assign a single Main program, then have Main evaluate a GI value and call sub-programs based on that value, usually using a TEST command.

    I'm at a bit of a loss as to why anyone would include menu data or error codes in the same byte as the program numbers.

    Quote from PhilC

    For an 8-bit SINT,

    The PLC should be using a UINT, not a SINT, for this kind of data.

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

Tags

  • abb
  • robotstudio
  • irc5
  • PLC
  • Allen Bradley
  • RSLogix
  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