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

Roboguide Virtual Robot Controller as Modbus Slave

  • zbc
  • June 27, 2018 at 3:31 AM
  • Thread is Resolved
  • zbc
    Trophies
    3
    Posts
    3
    • June 27, 2018 at 3:31 AM
    • #1

    Hello,

    Trying to connect controller R-30iB and PC with Modbus. But my controller is not available now, so I use roboguide as virtual controller.
    After reading Modbus TCP Interface Operator's manual, I still have lots of questions.

    What's the slave ID (device ID) of controller? Can I modify it?
    What's the address with function "Read Holding Registers" for master polling?
    Currently the Modbus IO of controller is DO[129-192], DI[129-192], as what I read from manual, the address is supposed to be 10008 but the polling is failed.

    Other information:
    The connection is successfully built.
    Running roboguide and Modbus master at same PC.
    Tested on two PCs that are Windows 10 and Windows 7.
    Use Modbus Master Tool from Witte Software for testing.
    Use roboguide version 9.

  • zbc
    Trophies
    3
    Posts
    3
    • July 10, 2018 at 3:54 AM
    • #2

    Found another topic about similar question of mine.
    https://www.robot-forum.com/robotforum/fan…cp-c-libmodbus/

    Slave ID should be 1. Also confirmed variable $MODBUSTCP.PORT is 502. Connected to wrong port before.
    Function code could be any. For example to read DI[129] the code is 01-Read Coils Address 128, when $MODBUSTCP.BASEZERO is true.

    But it's unable to connect port 502. Maybe I have to turn on something to run server first?

    Edited once, last by zbc (July 10, 2018 at 4:03 AM).

  • zbc
    Trophies
    3
    Posts
    3
    • July 18, 2018 at 4:31 AM
    • #3

    I test on real robot controller and the Modbus connection is success. Maybe there are some settings I missed in RoboGuide?

    To read DO[129], poll address is 10000 when $MODBUSTCP.OUTPUTBASE is 10000.
    But fail to write any DI. I don't know if address is wrong or the controller disables permission for written.

    Edited once, last by zbc (July 18, 2018 at 4:34 AM).

  • demorise
    Reactions Received
    2
    Trophies
    3
    Posts
    2
    • June 18, 2020 at 7:46 PM
    • #4

    I know this is old, but I'm posting this in case anyone faces the same issue.

    To enable Modbus I/O control on Roboguide, you need to set system variable $MODB_ENABLIO to 1, then restart the controller. Same goes for Ethernet/IP ($EIP_ENBL_IO).

    MENU--NEXT--SYSTEM--Variables--$MODB_ENABLIO

  • RaSti
    Trophies
    3
    Posts
    2
    • September 3, 2021 at 12:39 PM
    • #5

    Hi,
    I test this also today, with RG V9 and ModBus Poll V. 9.6.0

    I get always "Read error" and "Write error" at ModBus Poll.

    Maybe someone can support screenshots of settings at ModBus Poll and also ModBus Screen at iPendant?

    When the connection is running, is the "Slave status" Running or Idle at ModBus TCP Screen at RG?

    Many thanks.

  • jmd2777
    Reactions Received
    34
    Trophies
    4
    Posts
    193
    • September 3, 2021 at 9:56 PM
    • #6

    I haven't tried Roboguide with Modbus but I have done Ethernet/IP and OPCUA in Roboguide.

    1. I found wireshark to be a helpful tool. I was able to find some error message in one of the Ethernet packets that helped me figure out my problem.

    2. In Windows you can open a Command Prompt as Administrator. Run the command: netstat -ab

    It will list all of the ports. This will help you to see what ports Roboguide has opened. For example, I have FRVIRT~1.exe (roboguide) listening on Port 4880 which is used for OPCUA. If port 502 is not opened by Roboguide then you won't be able to connect.

  • Moises
    Reactions Received
    5
    Trophies
    3
    Posts
    55
    • September 4, 2021 at 7:59 PM
    • #7
    Code

    I tried in the past, I couldn't. it was a schneider plc with roboguide with modbus tcp.

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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • 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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • 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