Re: Issue in connecting Thingworx and Modbus PLC Simulator
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: