1
Support Questions / Re: Comms Failure Alarm on Modbus TCPIP
« on: February 14, 2016, 09:09:26 AM »
Godra
Thank you so much for your very concise and clear explanation! Very helpful indeed! It gave me a bit of Eureka moment in understanding events….
One final small niggle…. following from Archies explanation about how to write to a bit on two separate PLC’s I am now trying to sort out a momentary button I had set up as a toggle function…
I tried this in the code :
Private Sub MomentaryButton4_Click(sender As Object, e As EventArgs) Handles MomentaryButton4.Click
If ModbusTCPCom1.Read("01027") = 0 Then
ModbusTCPCom1.Write("01027", 1)
ModbusTCPCom2.Write("01027", 1)
Else
ModbusTCPCom1.Write("01027", 0)
ModbusTCPCom2.Write("01027", 0)
End If
End Sub
But seems I am doing something wrong in trying to read from address 01027 in the first line…..
Any pointers….
Thanks again
Peterjung
Thank you so much for your very concise and clear explanation! Very helpful indeed! It gave me a bit of Eureka moment in understanding events….
One final small niggle…. following from Archies explanation about how to write to a bit on two separate PLC’s I am now trying to sort out a momentary button I had set up as a toggle function…
I tried this in the code :
Private Sub MomentaryButton4_Click(sender As Object, e As EventArgs) Handles MomentaryButton4.Click
If ModbusTCPCom1.Read("01027") = 0 Then
ModbusTCPCom1.Write("01027", 1)
ModbusTCPCom2.Write("01027", 1)
Else
ModbusTCPCom1.Write("01027", 0)
ModbusTCPCom2.Write("01027", 0)
End If
End Sub
But seems I am doing something wrong in trying to read from address 01027 in the first line…..
Any pointers….
Thanks again
Peterjung