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 - m.hesler

Pages: [1]
1
Open Discussion / Re: Analog Visibility Controler
« on: January 10, 2019, 03:16:00 PM »
Thanks Archie.
That could be a very useful tool. ;)

2
Open Discussion / Analog Visibility Controler
« on: January 10, 2019, 07:38:41 AM »
Hi All

Just a quick question.
Can anyone tell me what the Component Analog Visibility Controller is intended for.
Thanks in advance

3
Open Discussion / Re: Messagelistbyvalue
« on: June 02, 2018, 04:48:37 PM »
Disregard my last post

bachphi you are an absolute star. If you were in front of me now I swear I would kiss you.
Your code worked, slightly tweaked, but it worked.
Thank you so much.

private SpeechSynthesizer synthesizer = new SpeechSynthesizer();
        private void AlarmList_ValueChanged(object sender, MfgControl.AdvancedHMI.Controls.ValueChangedEventArgs e)
        {
            AdvancedHMIControls.MessageListByValue msgDsp = (AdvancedHMIControls.MessageListByValue)sender;
            int ee = (int)e.NewValue;
            synthesizer.Volume = 100;
            synthesizer.Rate = -2;
            synthesizer.SpeakAsync(msgDsp.Messages[ee].Message);
        }

4
Open Discussion / Re: Messagelistbyvalue
« on: June 02, 2018, 04:36:45 PM »
The message display by value already has the "Speak Message" Property.
So there is no need for this extra code.
My dilemma is, I have a large range of messages spanning across multiple PLC addresses. I want to list them until the operator decides to clear the messages. I have this working already, but for that extra touch would like Cortana or any other built in voice to speak them.
The code I wrote works, however has its faults. If multiple faults occur at once, she speaks them all simultaneously. I would like her to read each text line..... one at a time.

5
Open Discussion / Re: Messagelistbyvalue
« on: June 02, 2018, 01:35:21 PM »
I Tried

using System.Speech.Synthesis;
using System.Speech;


   private void AlarmList_ValueChanged(object sender, MfgControl.AdvancedHMI.Controls.ValueChangedEventArgs e)
        {
            SpeechSynthesizer speechSynthesizer1 = new SpeechSynthesizer();
            speechSynthesizer1.Volume = 100;
            speechSynthesizer1.Rate = 2;
            speechSynthesizer1.SpeakAsync(AlarmList.Text);
        }





But she read EVERYTHING. Including the value, settings and time date stamp



so I opted for

  private void dataSubscriber21_DataChanged(object sender, MfgControl.AdvancedHMI.Drivers.Common.PlcComEventArgs e)
        {
            string data = "";
            data = e.Values[0];
            string plcAddress = "";
            plcAddress = e.PlcAddress;

            //C3
            switch (plcAddress)
            {
                case "N170:30"://C3
                    switch (data)
                    {

                        case "1":
                            C3.ValueSelect2 = true;
                            C3.ValueSelect1 = false;
                            C3.ValueSelect3 = false;
                            break;
                        case "2":
                            C3.ValueSelect3 = true;
                            C3.ValueSelect1 = false;
                            C3.ValueSelect2 = false;
                            break;
                        case "5":
                            C3.ValueSelect1 = true;
                            C3.ValueSelect2 = false;
                            C3.ValueSelect3 = false;
                            AlarmList.Value = 1; SpeechSynthesizer speechSynthesizer1 = new SpeechSynthesizer();
                            speechSynthesizer1.Volume = 100;
                            speechSynthesizer1.Rate = 2;
                            speechSynthesizer1.SpeakAsync("Conveyor 3 Fault");
                            break;
                            default:
                            break;
                    }
                    break;




You may be able to help me further, as I have to type this code for every fault, and there's about 100

6
Open Discussion / Re: Messagelistbyvalue
« on: June 01, 2018, 04:43:47 PM »
Thanks bachphi

I actually got it working. I did a bit of translation as I'm using C#.
Every time I referenced the voice type it threw back errors. So I just let it use my default voice in Windows.
Thanks for pointing me in the right direction though

Much Appreciated

7
Open Discussion / Re: Messagelistbyvalue
« on: May 31, 2018, 03:17:10 PM »
Thanks bachphi.

I'll give that a try. Didn't realise you could reference Microsoft voices.
Would this work with Cortana

8
Open Discussion / Re: Messagelistbyvalue
« on: May 31, 2018, 01:35:40 PM »
Yes that's exactly what I want to do

9
Open Discussion / Messagelistbyvalue
« on: May 31, 2018, 04:52:15 AM »
Morning All

I don't know if this is already an open discussion, but I would like to use the messagelistbyvalue control and add in the "Speak Message" property that is in the messagedisplaybyvalue control.
I have looked in the code but cant find the reference to it.
Any help will be hugely appreciated.
Thanks

10
Open Discussion / Re: AquaGage Scale Factor
« on: May 21, 2018, 06:35:37 PM »
Hi Guys

I need a little further assistance with the AquaGauge.
The downloads that Godra sent have values for Threshold Percentage and Recommended Value.
I would like to read a floating point from the PLC for both these values to control the position of the Threshold.
Can this be done in the setter method, in the PLC address Value property of the AquaGauge Control.
I have tried the convert.tosingle method, but it keeps throwing back errors.
Thanks

11
Open Discussion / Re: AquaGage Scale Factor
« on: May 16, 2018, 03:18:02 AM »
Hi Godra

I just tried them. They are great. I cant thank you enough.

12
Open Discussion / Re: AquaGage Scale Factor
« on: May 16, 2018, 03:08:16 AM »
Thanks Archie

I did try that, but couldnt quite get it right. It kept bringing up errors. I'm fairly new to all this. I'll give it another try.
And thanks for those uploads Godra I will try those as well.
By the way you guys do a great job with the AHMI, I'm really impressed with it all

13
Open Discussion / AquaGage Scale Factor
« on: May 15, 2018, 04:02:55 PM »
Hi All

I'm after a bit of assistance. I have created the AquaGage, as posted in a previous topic, and made it available for use in my project.
I would like to insert a Scale factor property into the code, but everything I try keeps throwing back errors.
Any help would be greatly appreciated.
Thanks

Pages: [1]