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 - rbelknap

Pages: 1 [2] 3 4 5
16
Support Questions / Re: Address format Mitsubishi PLC
« on: August 22, 2016, 09:54:20 AM »
Just for the sake of asking.

Is the PLC in Run mode?
Are you sure you have the correct IP Setup in the driver? , ie IPaddress and TcpipPort of the PLC

Also, Which version of AHMI are you using?

17
Application Showcase / Re: Project Black Box
« on: August 22, 2016, 09:46:26 AM »
I do most of my development in VB, but C# should be fine.

I can always throw it into an online converter if I have to.

Thanks.

18
Support Questions / Re: Address format Mitsubishi PLC
« on: August 19, 2016, 02:08:43 PM »
Which driver are you using?

19
Application Showcase / Re: Project Black Box
« on: August 19, 2016, 02:07:53 PM »
Mike,

I would like to see the source code for the Blackbox part of this.
I'm thinking this may be useful to me, and am very interested in the details.

Thanks,

Rich

20
Support Questions / Re: Modbus RTU / TCP addressing
« on: May 10, 2016, 07:20:07 AM »
Steve,

That looks great.  You can use Visual Studio to create a simple installer. 

I don't know what version of Visual Studio you are using.I'm most familiar with 2010, just starting to use 2015.

Right-Click on your solution
in the Add popout, select New Project
in the Templates select the Visual Studio Installer type.
Pretty much follow the wizard from there.

It's been a while since I did it, but that should get you started.

Good luck,

Rich


21
Tips & Tricks / Re: Tag Database
« on: May 02, 2016, 11:03:44 AM »
I'm doing this by using the DisableSubscriptions property.  My driver has the DisableSubscriptions=true in design view.

In my form_Load I set the IP to what I want and then set DisableSubscriptions = false

I haven't tried it on the fly, but if you were to set DisableSubscriptions=true, change the IP and then set DisableSubscriptions = false I would think it'll work.

And my trial is on a ModbuTCP driver.

        Me.ModbusTCPCom1.IPAddress = "10.10.10.120" 'or My.Settings.Name
        Me.ModbusTCPCom1.DisableSubscriptions = False


22
Feature Request / Re: Illuminated Momentary Button
« on: April 28, 2016, 01:22:58 PM »
you could also try the modified Pilot Light control in this thread.

http://advancedhmi.com/forum/index.php?topic=1085.msg5709#msg5709

It has a couple of extra properties to allow for a brighter color when it ON.  BrightOnColor and BrightEnable.
It also allows you to add text to the Lamp.

23
Support Questions / Re: Subcribers not working?
« on: March 04, 2016, 12:06:46 PM »
Your also declaring the DataSubscriber in the subroutine.  Move that outside as a private also.

Anything that needs to exist after the subroutine ends needs to be declared outside of it.


24
Support Questions / Re: Comms Failure Alarm on Modbus TCPIP
« on: February 11, 2016, 08:48:05 AM »
Peter,

Your welcome.  Lets see if I can help with this one.

Archie has already built in CommError code to the ModbusTCP driver.
Go into the code window for the form.
At the top of the window there are 2 pulldowns.

In the left one pick ModbusTCPCom1(or whatever you called it)
In the right one you will find the ConnectionEstablished event and the CommError event.

If you select them VS will create the sub routines and attach them to the driver.
You would need to do this for each comm driver.

In the routines you would just need to write the appropriate code to change the color of the indicator for whatever condition the comms are in.

Good luck


25
Support Questions / Re: Digital Panel Meters and changing the display count
« on: February 10, 2016, 01:40:08 PM »
If you can figure out which variables to use and how to setup the call in ladder, I/we can help with basic commands.

It should be as simple as calling the function when the timer is running and one line of code to make it happen.


26
Support Questions / Re: Digital Panel Meters and changing the display count
« on: February 10, 2016, 08:38:40 AM »
Rather than have 2 tags being transmitted, can you do the math in the PLC?

I don't know what PLC you are using, so I don't know if it's possible, but if you can do the math in the PLC and put the count up value in a new memory location for AHMI to look at.

27
Support Questions / Re: Testing PLC connection without using a ping command
« on: February 09, 2016, 09:03:35 AM »
FuzyDragon,

It sounds like you need to implement a watchdog timer.  If you google it you'll get lot of examples/explanations on how it works.

Essentially, you would have a timer in your AHMI app, and a timer in your PLC.
The AHMI app would turn on a bit in the PLC, which the PLC would turn back off after a short delay.
When the AHMI app turns this bit on you would also start a timer.
If the timer times out before the bit turns off then you've lost comms.

You'll want to implement this after you finish debugging the rest of the program or it'll get in the way all the time.

If this doesn't make complete sense then hopefully the google search will make it clearer.

Good Luck.


28
Support Questions / Re: Ethernet Modbus write
« on: February 01, 2016, 03:20:12 PM »
You could use a dictionary object to help with this.

You would add everything in the txt file to the dictionary object and then search the dictionary object for whatever you're looking for.

Something like this:(I'm using a text file for my modbus addressing.)

Code: [Select]
   'Declare the Dictionary for all PAC Tags
    Public ModbusAddressLookup As New Dictionary(Of String, String)
In the load routine:
Code: [Select]
                    'put all of the tagnames in the Dictionary object in Upper case to prevent mismatch due to case
                    ModbusAddressLookup.Add(myRow("Tag Name").ToString.ToUpper, MOD_Prefix & myRow("MODBUS Start Address"))

a Simple Lookup routine:
Code: [Select]
  Private Function LookupModbusAddr(TagName As String) As String
        'Translate the Tagname to the modbus address.
        Dim value As String = ""
        'Make sure we lookup all tags in upper case
        If (ModbusAddressLookup.TryGetValue(TagName.ToUpper, value)) Then
            Return value
        End If
        Return TagName
    End Function

Hope this helps.


29
Just put all of the defaults in the text file and on startup clear the combo box.

It'll be something like combobox1.items.clear

30
ajithrengaraj,

You would have to save them somewhere when you change them and then read them back when you re-start the program.
a Simple text file would suffice, or if you are using a database it would work also.

Let me see if I have some example code around, or can make some up.
You can google FilestreamReader and filestreamwriter to get some examples.

Pages: 1 [2] 3 4 5