plcpeople / nodeS7

Node.JS library for communication to Siemens S7 PLCs
MIT License
358 stars 121 forks source link

s7-200 connection timeout issue #63

Closed Sharavanth closed 6 years ago

Sharavanth commented 6 years ago

Not able to connect to S7-200 over the IP. Am using a USR IOT device over lan.....

[561172,811872480] Initiate Called - Connecting to PLC with address and parameters:
[561172,813506328] { port: 8899, host: '192.168.100.200', rack: 0, slot: 2 }
[561172,815174310] Connection cleanup is happening
[561172,817187607 192.168.100.200 S2] Attempting to connect to host...
[561172,832953789 192.168.100.200 S2] TCP Connection Established to 192.168.100.200 on port 8899
[561172,833238234 192.168.100.200 S2] Will attempt ISO-on-TCP connection
[561172,834068242 192.168.100.200 S2] Using rack [0] and slot [2]
[561174,338090001 192.168.100.200 S2] TIMED OUT connecting to the PLC - Disconnecting
[561174,338766979 192.168.100.200 S2] Wait for 2 seconds then try again.
[561174,339950267] ConnectionReset is happening
[561174,340925343 192.168.100.200 S2] Scheduling a reconnect from packetTimeout, connect type
[561175,842110622] ResetNOW is happening
[561175,843107315] Clearing an earlier scheduled reset
[561175,874652764 192.168.100.200 S2] ISO-on-TCP connection DISCONNECTED.
Error - TCP connected, ISO didn't
plcpeople commented 6 years ago

I don't think this will work using a 485 to Ethernet converter. You would need to use something like a Helmholz Netlink PRO Compact that translates the S7 Serial protocol to the S7 Ethernet one, or a Siemens Communication Processor.

plcpeople commented 6 years ago

I am going to close this as "not supported". While it may be possible to write code to make this work with the S7-200, it's not currently planned.