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

Pages: [1]
1
Support Questions / control pilot light using timer and momentary button
« on: January 13, 2022, 10:39:54 PM »
Hello,
I am truing to control teh pilot light using a timer in code, not with a plc.  So In my screen I have a momentary button, teh pilot light, and a timer.  Timer is set to tick every second.  I use the momentary button to start the timer

Here Is what I have:
Code: [Select]
    Private Sub MomentaryButton1_Click(sender As Object, e As EventArgs) Handles MomentaryButton1.Click
        Timer1.Start()
    End Sub

    Dim toggle As Boolean = False

    Private Sub Timer1_Tick(sender As Object, e As EventArgs) Handles Timer1.Tick
        If toggle = False Then
            PilotLight1.LightColor = AdvancedHMI.Controls.PilotLight.LightColors.Green
            toggle = True

            If toggle = True Then
                PilotLight1.LightColor = AdvancedHMI.Controls.PilotLight.LightColors.White
                toggle = False

            End If


        End If
    End Sub

    Private Sub MainForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    End Sub

Code builds fine, but when I run it, and click the momentary button the pilot light stays in its default green state.

Where did I go wrong?

JIm

2
Support Questions / Re: AdvancedHMIdrivers is not defined
« on: January 13, 2022, 09:37:37 PM »
Ok,
So that means I need to purchase the latest packs and discard teh ones I bought a couple years ago then?

JIm

3
Support Questions / AdvancedHMIdrivers is not defined
« on: January 13, 2022, 07:43:39 PM »
I updated my IDE from 3.99a to 3,99xR1 and when I imported my digital panel meters pack and hit build I get the following error for all of the meters:

Severity   Code   Description   Project   File   Line   Suppression State
Error   BC30002   Type 'AdvancedHMIDrivers.IComComponent' is not defined.   AdvancedHMIControls   C:\Users\jgmDESIGNS\Downloads\AdvancedHMIv399xR1\AdvancedHMIControls\PurchasedControls\DigitalPanelMeterBlue.vb   21   Active


It seems that I need to purchase updated controls?

Jim

4
Support Questions / Re: Latest VErsion of AHMI
« on: January 12, 2022, 04:06:46 PM »
Great, thanks.  I will try that.

Jim

5
Support Questions / Latest VErsion of AHMI
« on: January 12, 2022, 02:50:22 PM »
All,
I downloaded a few years ago Version 399a and that is what I have been using.

After reading things it looks like the latest is Version 399xR! which I just downloaded.

But when I launch the 'v35.sln' file that is in teh extracted folder, I get an empty project and an empty toolbox.....

What am I dong wrong?

6
Support Questions / Re: sending data to PLC over modbus
« on: January 12, 2022, 02:41:18 PM »
Thanks for the idea @dmroeder.

For teh purposes of learning, I would like to stick with my idea first.  I code in C for microcontrollers, and AHMI looks to be using C++ which I am not very good with.  But I will look at your idea once I have things in order on my end.

@Archie,
Where would I find ComBridge?  My apologies for ll the questions, but doing things this way is rather new to me.

JIm

7
Support Questions / Re: sending data to PLC over modbus
« on: January 11, 2022, 09:02:55 AM »
Just thought of one more item I need to accomplish as well...

I need to read  register in teh PLC.  THats easy peasy.  But I need to write this same number I received back into the PLC into another register for comparison.  Reason for this is for the PLC to detect that the software has shutdown.

Can AHMI accomplish this?

8
Support Questions / Re: sending data to PLC over modbus
« on: January 11, 2022, 08:57:32 AM »
Thanks for the reply.  I did see that feature of the keypad, which it appears that I will have to use.  I'll be ordering the PDF explaining all the abilities of the Basic Label as it seems to be the workhorse, but I wot know until I buy the book today.

Dumb question time....
Can I create my own control and attach it to the ModbusTCP engine for use in AdvancedHMI?

I have also in another thread asked about a user manual for all these things as well.

Jim

9
Support Questions / sending data to PLC over modbus
« on: January 10, 2022, 10:07:23 PM »
Hello again,
  With a lot of head scratching I am slowly getting this going.  My next point on my list is being able to send numeric data to a holding register in teh PLC.  I would like to use a text entry box, but that seems like the wrong item to use.

What would I use to enter an integer and when I click a send button, or press enter, it will send the integer to teh plc over ModbusTCP?

Also, I have added a data source thinking that would help, but nope...how do I delete it?

Jim

10
Support Questions / Toolbox documentation and add ons
« on: January 10, 2022, 09:02:58 PM »
hello,
Is there any manual with explanations of functions for all of the items in the toolbox?  Its rather frustrating having to do a google search for each item individually and in many cases not getting a full document of what the tool does and what all the parameters in teh properties do other than the short explanations within the IDE.

Second, From what I am seeing, all of teh pay-for add ons on the website seem to be in the toolbox already.  Am I wrong?  I don't mind paying for the add ons if they arent

Thanks
Jim

11
Hello all,
  I have a basic button that toggles a rely on my PLC as a test.  All well and good so now I would like it to chance color on mouse click.

And as another test I would like the button to change to another color when I close a contact on the PLC

I am looking at the EVENTS (Lighting bolt) and when I select the MOUSE CLICK>BUTTON1_MouseClick populates and I get a VB script window.

Is there a simple graphical way to change teh look of the button on a mouse click?

Same thing for teh contact closure.

Thanks,
Jim

12
Support Questions / Re: Basic Button to CLICK PLC over ethernet exmple
« on: January 10, 2022, 08:00:23 PM »
Thanks Archie!  I ended up figuring it out.

I can write to a Control Relay, or a holding register and I just have to watch how I do the addressing like you said.  Also, best not to write directly to an output as it can mess things up.

Thanks gain!  Please call this issue resolved.

JIm

13
Support Questions / Basic Button to CLICK PLC over ethernet exmple
« on: January 10, 2022, 06:15:53 PM »
Hello,
I am somewhat new to using this software and I am trying to understand how to interface to the Automation Direct CLICK PLC using Ethernet.

I am familiar with Modbus and ModbusTCP on teh PLC side, but I am not so sure about how to get the ball rolling in this software suite.

Is there anyone that couple give me a few pointers on what comms driver I should be using, and how to do a simple button set up on the HMI side, and what to set the PLC up to do?  I am looking through prior posts and scratching my head somewhat.

Thanks, Looking forward to the feedback

Jim

14
Support Questions / Re: Is there a plain old serial port option?
« on: March 23, 2016, 08:48:19 PM »
Thanks!!

How difficult is it to simply send/receive raw bytes?  Is there a tutorial, or example project?  This HMI dev kit is new to me so apologies for the basic questions

JIm

EDIT:
I just put the serial port into the project, and added a Digital panel meter.  In the panel meters properties the comms section only seems to want to see a PLC connection  I would like to connect the panel meter to the serial port.

Another question:  Is there a user manual for all the components in the Toolbox?  If there is I would love to load it local here to reference to.

15
Support Questions / Is there a plain old serial port option?
« on: March 22, 2016, 11:19:00 PM »
Hello,
First post so my apologies if this is not the proper place to pose this question.

I am rather new to Adv. HMI and I am wondering if there is a way I can interface to a simple RS232 port I have on my PC, or usb/232 converter?

From what I see in the drivers everything is PLC specific.

Cheers,
Jim

Pages: [1]