Skip to main content
16-Pearl
October 9, 2018
Solved

Manufacturing Apps without KepserverEX

  • October 9, 2018
  • 1 reply
  • 5113 views

Hi,

I have been doing some research to find out how to connect "'things" to Manufacturing apps when not using KepServer.

We have a project coming up that will require an Arduino with some sensors to connect to Manufacturing apps.

I assumed, that as the modbus works so well with the RaspberryPI (Sensehat Example) that the same could be done with the Arduino. I cant find a way to do it.

Ideally I would like to connect to Kepserver and then to TWX. If you have some suggestions I would appreciate that. 
If that's not possible how easy is it to take my Arduino things communicating via REST and use those in MFG Apps?

Regards,

Bryan

 

Best answer by mthakker

Hi Bryan,

 

There's a couple different ways to get the Arduino working like the Sigma Tile does.  If it has enough power (it would surprise me if it didn't) and the Arduino can run Python, you can SSH into the sigma tile and pull the script directly off of it.  It's pretty well commented, and you can understand exactly what lines of code you need to change to change the sensors it reads from.  There'll be some extra functionality in there, but might not entirely be necessary.  You can also find the code here on github: https://github.com/ptcinc/mfg-tile

If you don't want to rip out old bits of code, the script runs off of pymodbus, and you could potentially use the sigma tile script as a guide to write your own.

 

If you don't want to go through the process of using python, there's a number of modbus libraries written in C that you can use.

 

Thanks,

 

Milan

1 reply

5-Regular Member
October 11, 2018

Greetings Bryan,

 

To connect Arduino with modbus , the information required on kepware side is the ip address which modbus driver expects for the connection.

 

The second approach would be to connect Thingworx to either JAVA SDK or EMS ( which can be setup on Arduino ).

This will help in binding the Arduino thing with the remote thing and once the binding is done , you can push the data from the sensors to Thingworx which can be used in Mfg Apps.

 

Thanks,

Himesh Rajpal

BryanK16-PearlAuthor
16-Pearl
October 15, 2018

Hi,

I'm aware if what kepware needs, I am looking for some sample code to get an Arduino working like the SigmaTile does with Modbus.

I am investigating it with MQTT at the moment.

Regards,

Bryan

mthakker5-Regular MemberAnswer
5-Regular Member
October 15, 2018

Hi Bryan,

 

There's a couple different ways to get the Arduino working like the Sigma Tile does.  If it has enough power (it would surprise me if it didn't) and the Arduino can run Python, you can SSH into the sigma tile and pull the script directly off of it.  It's pretty well commented, and you can understand exactly what lines of code you need to change to change the sensors it reads from.  There'll be some extra functionality in there, but might not entirely be necessary.  You can also find the code here on github: https://github.com/ptcinc/mfg-tile

If you don't want to rip out old bits of code, the script runs off of pymodbus, and you could potentially use the sigma tile script as a guide to write your own.

 

If you don't want to go through the process of using python, there's a number of modbus libraries written in C that you can use.

 

Thanks,

 

Milan