st-one-io / node-red-contrib-s7

A Node-RED node to interact with Siemens S7 PLCs
GNU General Public License v3.0
111 stars 58 forks source link

connection using MPI #72

Closed binmulyadin closed 4 years ago

binmulyadin commented 4 years ago

Firstly, thanks for your awesome jobs. I am sorry if this is not the right place to ask this question. I to get communication to Simatic S7-400 without any problem by using ethernet.

I wonder how to get connection using MPI Communication since some PLC doesn't have Ethernet connection. I am using USB-MPI PC Adapter, I also has USB A2 PC Adapter.

Please advice regards bin mulyadin

niox1 commented 4 years ago

I would also be interested in the same thing. I use NodeRed on a Windows computer. The PC adapter is installed. The PLC can be reached with TIA. I get the error message: "Error connecting to PLC: Error: LIBUSB_ERROR_NOT_SUPPORTED"

regrads niox

sniicker commented 4 years ago

I'm on the same Step as @niox1 Connection is working with Step7 and TIA V15.1 But get the same error: LIBUSB_ERROR_NOT_SUPPORTED

Readme says: An optional compilation step is only necessary for supporting MPI-USB adapter.

What steps? And where can we find this informations?

Pls help! THX sniicker

sniicker commented 4 years ago

The Error: LIBUSB_ERROR_NOT_SUPPORTED means that you have not installed the WINusb driver. Watch here: https://github.com/tessel/node-usb https://github.com/netsmarttech/mpi-s7

I installed the Zadig Software and the libusb-win32 driver. Important Info: If you install the libusb driver you cannot reach the SPS with Step7 and TIA any longer.

Now USB Adapter seems to work, but i get another error: Error connecting to PLC : TypeError: Cannot read property 'on' of undefined

What to do now??

regards sniicker

gfcittolin commented 4 years ago

Hi all, Support for MPI/DP is still somewhat experimental, and is not supported on Windows for now, as this is only being tested on Linux.

@binmulyadin as said, support for MPI/DP is still experimental. The A2 version of the adapter is not supported by this node, but if you have an old one and want to experiment, you can follow the instructions posted above by sniicker

@sniicker Your error doesn't seem to be related to USB at a first glance, do you have a full stack trace of it?

binmulyadin commented 4 years ago

Hi all, Support for MPI/DP is still somewhat experimental, and is not supported on Windows for now, as this is only being tested on Linux.

@binmulyadin as said, support for MPI/DP is still experimental. The A2 version of the adapter is not supported by this node, but if you have an old one and want to experiment, you can follow the instructions posted above by sniicker

@sniicker Your error doesn't seem to be related to USB at a first glance, do you have a full stack trace of it?

understood, then I should close this issue. right?