Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - lgrimm

Pages: [1]
1
Open Discussion / ModbusTcp/Ip Reading 32 bit Integer
« on: April 03, 2017, 08:07:36 AM »
Hi:
I am having difficulty reading a 32 bit Integer register. It is designated as a being read with function code 3 and accessed as a complete unit.
Need to read address 5101 or 5102 adding 1 for Modicon compatibility.

I am being able to read 32 floating point registers as for example F47102, which is designated as 7101. But because of Modicon compatibility am adding 1 address number.

Thanks

Lee


2
Open Discussion / BasicLabel
« on: March 15, 2017, 08:43:12 AM »
I am using Basiclabel to display and write to a Floating 32 bit using F47797 which works perfect on reading the Address/Register. The register is a R/W but when I write to it using BasicLabel the following happens:
 The initial value display and recorded is 1.0

 When I enter 1 in BasicLabel and record the value goes to 2.277971E-41

Also, I have a boolean register R/W that displays False in BasicLabel. The register is read as 11704

I need to record a 1 or true.

When I enter 1 The result is Failed to write value-Invalid address to write to.


Thanks
Lee

3
Open Discussion / VB.Net With Advanced HMI
« on: March 02, 2017, 01:27:13 PM »
HI;

I am developing a program in VB.NET. Connecting to an Allen Bradley 1400 .EthernetIPforSLCMicroCom1.Read("B3:1/1")
and other addresses.

I need to detect a change in B3:1/1 as boolean and turn a pump on or off. Have no problem using mouse click.

Sending tank level to above address on PLC.

The problem is reading change in bit  outside the mouse click Private sub. The Sub That records data to database
and turns pump on and off.

This is my code so for and it works except being able to assign EthernetIPforSLCMicroCom1.Read("B3:1/1") to the values.

 Public Class myVar
        Private TankLevel As Boolean
        Public Event VariableChanged(ByVal TankLevel As Boolean)
        Public Property Variable() As Boolean
            Get
                Variable = TankLevel
            End Get
            Set(ByVal value As Boolean)
                TankLevel = value
                RaiseEvent VariableChanged(TankLevel)
            End Set
        End Property
    End Class


Private WithEvents TankChange As New myVar
    Private Sub VariableChanged(ByVal NewValue As Boolean) Handles TankChange.VariableChanged
        Me.BasicButton1.PerformClick()
    End Sub

_____________________-

The Perform click is the routine that turns pump on and off and records data to database.

Thanks
Lee

4
I am able to read holding registers 8101 (R/W) by using F48102. These are 16 bit floating point using ModbusTCP1Com1. I also need to write to registers. I have tried using ModbusTCPCom1.Write("F48102", "95") also ModbusTCPCom1.Write("F68102", "95").

Any Ideas.

Thanks

5
Open Discussion / Click event using Basic Button Advance HMI
« on: June 22, 2016, 03:49:37 PM »
I am trying to Perform Click using VB.Net code to Click Basic Button (Advanced HMI) .

'Set up another button to Click Button BT!, which is windows button and it works fine.

Public Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Me.BT1.PerformClick()
    End Sub
When I try it on AdvancedHMI button it does not work.
btbStop is PLC stop button.

I want to use the Click to change bits in PLC. Thus if I can activated Button in code, I can make it work.

Public Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Me.btbStop.PerformClick()
    End Sub

Any Ideas.

Thanks

6
I need to read and write to registers on a Flow computer/Scanner with Modbus using TCP/IP  HMI.

Can I do this using Advanced HMI ? Have used it with Micrologix AB.


Any suggestions?

Thanks
Lee


Pages: [1]