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

Communicate with PC over TCP/IP, read/update DI/DO using Python or another computer language

  • jsd5
  • April 22, 2021 at 6:41 PM
  • Thread is Unresolved
  • jsd5
    Trophies
    2
    Posts
    18
    • April 22, 2021 at 6:41 PM
    • #1

    Hello,

    We have a LR Mate 200iD with a 30iB controller.

    If I wanted to read DI / DO from a PC or Mac computer, and update too, how would I be able to do that?

    I set up ethernet / ip with my PC, just put the ip address in and pinged it and that works fine.

    I'm guessing something with socket programming but wasn't sure how.

    Thanks.

  • Online
    DaveP
    Reactions Received
    23
    Trophies
    4
    Posts
    201
    • April 22, 2021 at 8:49 PM
    • #2

    Try searching the forum, there are several examples of communicating to a PC. I searched for python modbus tcp and it came up with a few posts. You can also search for socket programming.

  • Alfred
    Reactions Received
    8
    Trophies
    2
    Posts
    34
    • July 2, 2025 at 2:27 PM
    • New
    • #3

    Indeed, Fanuc robot controllers natively support TCP protocols that allow interaction with them from a PC app.
    You can take a look at what UnderAutomation has to offer (implementation of numerous protocols in .NET, Python, LabVIEW, and Matlab).

    UnderAutomation : Fanuc SDK
    Discover UnderAutomation's software libraries to easily integrate industrial robots (Universal Robots, Fanuc, Yaskawa, Staubli) into your .NET, Python, LabVIEW…
    underautomation.com

    For instance in C# for read/update DI/DO :

    C#
    // Read and Write I/O (SDI,SDO,RDI,RDO,UI,UO,SI,SO,WI,WO,WSI,PMC_K,PMC_R)
    robot.Snpx.RDO.Write(1, true);
    ushort ai5 = robot.Snpx.AI.Read(5);
    
    // Read and Write analogs (AI,AO,GI,GO,PMC_D)
    robot.Snpx.AO.Write(2, 5);
    ushort ao3 = robot.Snpx.AO.Read(3);

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