M Max72 Member Licensed User Longtime User Dec 18, 2021 #1 Hello, I'm trying to connect to a Siemens Logo! by the Moka7 library. I tried a lot of different configurations without success, I get only the LED blinking on the Logo! when the app try to connect to it. This is the simple code to connect: Sub Button1_Click plc.SetConnectionType(s7_constant.S7_BASIC) plc.SetConnectionParams("192.168.0.3",0,0,201) If plc.Connect=0 Then info.text="Connected" Else info.text="Not Connected" End If End Sub Click to expand... Other tests were made with a program inside the Logo!, without program inside, changing configurations on connections params... Any hint? Thanks. Max
Hello, I'm trying to connect to a Siemens Logo! by the Moka7 library. I tried a lot of different configurations without success, I get only the LED blinking on the Logo! when the app try to connect to it. This is the simple code to connect: Sub Button1_Click plc.SetConnectionType(s7_constant.S7_BASIC) plc.SetConnectionParams("192.168.0.3",0,0,201) If plc.Connect=0 Then info.text="Connected" Else info.text="Not Connected" End If End Sub Click to expand... Other tests were made with a program inside the Logo!, without program inside, changing configurations on connections params... Any hint? Thanks. Max
D Daren463 Member Licensed User Longtime User Dec 21, 2021 #2 Its been a couple of years since I played with Snap7 but i think plc.connected should be = 1 for the connection test. Upvote 0
Its been a couple of years since I played with Snap7 but i think plc.connected should be = 1 for the connection test.
M Max72 Member Licensed User Longtime User Dec 28, 2021 #3 Daren463 said: Its been a couple of years since I played with Snap7 but i think plc.connected should be = 1 for the connection test. Click to expand... Thanks Daren463, I'll try it when possible. Family time at the moment Upvote 0
Daren463 said: Its been a couple of years since I played with Snap7 but i think plc.connected should be = 1 for the connection test. Click to expand... Thanks Daren463, I'll try it when possible. Family time at the moment