ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Delta PLC connection with ROS

asked 2021-12-10 01:47:36 -0500

dhiman gravatar image

updated 2022-02-18 13:20:35 -0500

lucasw gravatar image

Hello. Im working on project where i need to connect PLC's to ROS. I sucessfully connected Siemens PLC s7-1200 through MODBUS, but now i need to connect DELTA AS228P. I've searched internet for answers but find nothing.

Any piece of information will be worth a lot. Thanks

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2021-12-10 04:51:15 -0500

Ranjit Kathiriya gravatar image

updated 2021-12-10 04:53:00 -0500

Hello @dhiman,

I am not sure whether my solution will be correct for you, but I am giving an overview of how you can connect Delta PLC with ROS.

Let's say you are using python pyModbusTCP to connect your code with your DELTA AS228P or in CPP, and you can use libmodbus.

Code example of Python side.

from pyModbusTCP.client import ModbusClient
c=ModbusClient(host='localhost',port=9999,auto_ope n=True)

regs=c.read_holding_registers(403705,1)
print("reading register values")

if regs:
  print(regs)
else:
  print("error")

print("write value to register")
a=int(input())
c.write_single_register(403705,a)

Let's say your python or CPP code is working correctly, and you can communicate to your IO via ethernet. Now you can directly create hardware packages based on the above code. The hardware packages with nodes, topics, and services can be used based on your application requirement.

I hope that will help you. Feel free to drop a comment in case of any query.

edit flag offensive delete link more
1

answered 2021-12-10 13:04:53 -0500

duck-development gravatar image

The as200 series has an modbus client and server so you can use the same solution as with the Siemens you already done.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-12-10 01:47:36 -0500

Seen: 523 times

Last updated: Dec 10 '21