B4J Question Siemens Logo!

Max72

Member
Licensed User
Longtime User
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
Other tests were made with a program inside the Logo!, without program inside, changing configurations on connections params...
Any hint?

Thanks.
Max
 

Daren463

Member
Licensed User
Longtime User
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
Top