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.


Messages - lgrimm

Pages: [1] 2
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 / Re: BasicLabel
« on: March 16, 2017, 07:52:52 AM »
The update to 3.99w took care of the R/W to the floating point register. However i am still having a problem writing to a boolean R/W using BasicLabel or modbusTcpcom1.write("11704","1").

I am using an OMNI Flow computer. The function code to write to a single boolean is 05.

I get an invalid address when trying to write, but can read.

Any ideas ?

Thanks

3
Open Discussion / Re: BasicLabel
« on: March 15, 2017, 09:01:56 AM »
I am using 3.99t

4
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

5
Open Discussion / Re: VB.Net With Advanced HMI
« on: March 02, 2017, 05:33:00 PM »
Hi:

Appreciate your reply:

However I have an issue with EthernetIPforSLCMicroCom1.Read("B3:1/1" in that it is a boolean and returns a true or false.

I think that is an issue with the solution you gave me.

Any Idea ?

Thanks

6
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

7
Archie:


Just going to send you file for wireshark. The IP we are looking at is 192.168.1.10 which is my computer with AdvancedHMI and 192.168.1.140 which is the Flow computer with registers I am trying to capture.

Thanks


8
Archie:

Hope this is info you need. I am new at WireShark.

Thanks for your help..

9
Attached all.

Thanks

10
Here is screen shot of WireShark on Floating not writing to register.

Thanks

11
With Wireshark I see write Multiple Registers.
       ModbusTCPCom1.Write("F42002", "2")        '16 Bit R/W Integer

 No problem reading or writing to Integer as Noted Above.

  ModbusTCPCom1.Write("F42018", ".2")           '16 Bit R/W Floating

Problem is with Floating register.

Can read ok, just when I write as Wireshark indicates Write Multiple Registers , no error, data does not post to register.

Thanks




12
I used Basic Label and was able to Retrieve Value of F42018 and had the pop up of Input but no value was recorded. F42018 is a R/W 16 Bit Floating point Register. Did not get an error, just didn't record value.
 
Also displayed value this Way in TextBox.

        Dim MeterFactor As String
        MeterFactor = ModbusTCPCom1.Read("F42018")
        TxtMeterFactor.Text = MeterFactor


Tried Recording value this way as well:

ModbusTCPCom1.Write("F42018", "1.200")


Any Ideas?

Thanks



13
I made a mistake not using Enron. I have been able to access registers using Modbus TCP Server/Slave on Scanner, just not able to write.

14
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

15
Open Discussion / Re: Click event using Basic Button Advance HMI
« on: June 22, 2016, 06:44:17 PM »
Great:

Thank You

Pages: [1] 2