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 - g.mccormick

Pages: 1 [2]
16
Support Questions / Read values from plc, do calculation, log
« on: July 23, 2020, 08:42:26 AM »
I need to do the following, read some vaues from a compactlogix, do some calculations, log the read values and the calculated results.   Should I use datasubscriber? 

17
Support Questions / Re: Modbus TCP bit of word read/write 3.99yBeta33
« on: July 02, 2019, 08:24:43 PM »
Oh geeze.  I hadn't even given it a thought as to data handling with writing bit of word...  dumb me.  Thanks Archie.




On another note, I am passing a lot of floating point values to the HMI, and I am having to do some data manipulations in the plc to map the values to my 16bit int arrays that I have created for to/from HMI data. 

I am starting to think that perhaps full 32bit floating value are really not needed in the HMI data since I always set the value format to 0.0 for 1 decimal anyway.  So, my thought is to just map the floating point values in the PLC to value*10, then use the scale in the HMI data parameter to get to 1 decimal.  Do people normally just deal with floats, or do you all use ints with implied decimals?  Using ints*10 will use 1/2half as much read/write data. 

18
Support Questions / Modbus TCP bit of word read/write 3.99yBeta33
« on: July 02, 2019, 10:32:17 AM »
Its very likely that I am screwing up something.

I have a few 16bit bitmaps setup for hmi read and hmi writes in the PLC. 
I am attempting to use the basic button as well as the basic indicators.
Using the basic indicator, I can get bit 0 to indicate on/off by using plc address 40101.0.  I cannot seem to get the 40101.0 (or any other bit) to be set on/off using the click for either the button or the indicator.  Any help?

The end result is I will be using many different bits of several different words to both control and display different statuses.
Thanks

19
Open Discussion / Re: Trending Chart
« on: May 29, 2019, 05:27:04 PM »
I am starting to mess with this and I like it a lot.  I do have a few questions:
1. Is there a way to add the plc address name property to the log data as a header? 
2. Is there a way to have logging be active even if the page is not active?  I would like to use this as historian, but have the page/pages that would be used to display the specific data be a seperate page that is selected from form change button.  The page may only be brought up once a day or week, but I'd like to be able to see past data.   

20
Support Questions / Re: Sub forms/pages remove the X button
« on: April 17, 2018, 09:10:48 PM »
If memory serves correctly, you can use this in your pages so that when they are closed it reopens the main form. This way, the main form must be closed to "X" the application. I went through this same thing a while ago and this solved my problems.


    Private Sub Page2_FormClosing(sender As Object, e As EventArgs) Handles MyBase.Closing
        AdvancedHMI.MainForm.Show()

    End Sub


That worked great thank you.

I had removed the border, but did not like losing the ability to resize, move,  etc the windo.


21
Support Questions / Re: Sub forms/pages remove the X button
« on: April 17, 2018, 09:06:07 PM »
If memory serves correctly, you can use this in your pages so that when they are closed it reopens the main form. This way, the main form must be closed to "X" the application. I went through this same thing a while ago and this solved my problems.


    Private Sub Page2_FormClosing(sender As Object, e As EventArgs) Handles MyBase.Closing
        AdvancedHMI.MainForm.Show()

    End Sub


Or, just e.cancel = true


Can you explain more? 


I removed the border, but do not like that you cannot more or resize the window now. 

22
Support Questions / Sub forms/pages remove the X button
« on: April 10, 2018, 09:50:20 AM »
I am building a dispaly that will have 6-7 screens that are accessed from the home screen.  I've found that if you X out of a sub screen, then advanceHMI is still running in background and you cannot re-open the application.  I would like to either disable the X or better yet have the X return to the home screen same as my HOME button does.  How would I go about this?

23
Support Questions / Re: Emailer send values
« on: February 20, 2018, 08:34:30 PM »
 Ok so if I wanted to send the email to different people based onthe the value of int, I would specify the mail.to.add in each case then?   Thanks for the info.

24
Support Questions / Re: Emailer send values
« on: February 20, 2018, 05:22:36 PM »
Awesome thanks for the help.

25
Support Questions / Re: Emailer send values
« on: February 20, 2018, 10:37:30 AM »
Sweet.  I had to actually use the code from Allan in this thread
http://advancedhmi.com/forum/index.php?topic=1537.0

to get it to work. 

Two more dumb questions.  1. in the msgbox popup, how would I print the value of the mail.to.add ?? 
2. Is there a way that you could use a case statement based on the value of an integer to decide what message to send?  Or would it be easier to just have multiple datasubscribes each setup with different messages for different alarm/notify messages?

26
Support Questions / Re: Emailer send values
« on: February 20, 2018, 08:58:47 AM »
Thanks.

Dumb question as  I have 0 VB knowledge, where do I put that data subscribe code?

27
Support Questions / Emailer send values
« on: February 19, 2018, 09:58:25 PM »
I seemingly have the emailer working to send an email to my gmail account.  I would like to include  values in the email message.  I am using modbustcp comms.  How can I send the value of a modbus register or two included in my email message?

Pages: 1 [2]