dmroeder / pylogix

Read/Write data from Allen Bradley Compact/Control Logix PLC's
Apache License 2.0
598 stars 182 forks source link

Question: Fanuc Robot Connection #126

Closed kdorsel closed 4 years ago

kdorsel commented 4 years ago

Preflight checks

Type of issue

Description of issue

Has anyone had any success connection to Fanuc robots with this library? I can connect to it and the GetDeviceProperties() successfully returns, but no other functions work and all give me Forward open failed or Path segment error.

Does anyone know of special module number or sequence to get it started up and working? Normally I would configure the config instance, input and output connection points like so. How would these translate to this library?

Screenshot from 2020-04-20 18-16-06

Code

from pylogix import PLC

with PLC('192.168.0.10') as comm:
    print(comm.GetDeviceProperties())
    print(comm.GetProgramsList())
    print(comm.GetTagList())
    print(comm.GetPLCTime())
    for ii in range(0,100):
        print(comm.GetModuleProperties(ii))

Results:

None 0 0 0.0.0.0 356 Fanuc Robotics America 12 None 4 3.1 52 0xe4490e0e 18 FANUC Robot R30iB+ 43 Success
None None Forward open failed
None None Forward open failed
None None Forward open failed
None None None None None None None None None None None None None None None Path segment error
etc

Versions

TheFern2 commented 4 years ago

hey there @kdorsel this library is only intended to communicate with Rockwell plc's compactlogix/controllogix. The only reason why you get information with GetDeviceProperties is because there's a list of manufacturers in lgxDevice this is just to identify devices on the same LAN. Pylogix can't access any other information or communicate with Fanuc Robots.