cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in connecting Thingworx and Modbus PLC Simulator

SOLVED

Re: Issue in connecting Thingworx and Modbus PLC Simulator

Hello Mithun,

I recently found some industrial units based on the Raspberry Pi and were quite excited about the possibilities.

Unfortunately I encountered the same issues with both my standard Raspberry Pi and these new ones.

I identified two problems on my side:

1. The modbusExample.lua tries to load file transfer functionality.

2. There is something wrong with the supplied core.so file (maybe it was not compiled for ARM architecture) - you get No such file or directory

[ERROR] when running the luaResource.

To fix the 1st issue is easy... just remove the require "thingworx.shapes.filetransfer" line from modbusExample.lua.

To fix the second issue you need to find a core.so file which is compatible with the ARM Architecture of your Raspberry Pi.  In theory, the core.os file supplied as part of the TWEMS MODBUS Package_Linux_ARM.zip file located at microserver/etc/community/clibs/socket/core.so should work, but it does not.

Download the lua-socket resource:

$ sudo apt-get install lua-socket

Copy the newly downloaded core.so to your microserver installation:

$ cp /usr/lib/arm-linux-gnueabihf/lua/5.1/socket/core.so /home/pi/microserver/etc/community/clibs/socket/

Now if your config files are configured correctly, then everything should work.

Good luck!

Highlighted

Re: Issue in connecting Thingworx and Modbus PLC Simulator

Thanks Duan Gauche,

I did the same thing and its works for me too

There is issue in core.so file provided by PTC for Modbus package -ARM processor.

Re: Issue in connecting Thingworx and Modbus PLC Simulator

My pleasure!