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

Pages: [1]
1
Support Questions / Re: Email QUESTIONS
« on: March 02, 2020, 04:01:53 PM »
Ok got this working with the Above code but the value only updates when i run a debug. When i trigger the email it sends the last values from the last start up. Fixed the error my plc was not connected.

Emailer1.MessageBody = "Current Value=" & EthernetIPforCLXCom1.Read("MyTag")

2
Support Questions / Re: Email QUESTIONS
« on: March 01, 2020, 12:13:55 PM »
You may be able to handle the ValueChanged event and modify the MessageBody property like this to insert values:
Code: [Select]
   Private Sub Emailer1_ValueChanged(sender As Object, e As EventArgs) Handles Emailer1.ValueChanged
        Emailer1.MessageBody = "Current Value=" & EthernetIPforCLXCom1.Read("MyTag")
    End Sub

The initial send is caused by the control not knowing the existing value, so when it starts up, it can only assume the value changed. In the upcoming Beta 35, there will be a fix to prevent this.

Thanks this worked but not with my SLC 500

Emailer1.MessageBody = "PV HIGH!=" & EthernetIPforSLCMicroCom15.Read("Nxx:xx")

I get the message below
System.NullReferenceException: 'Object reference not set to an instance of an object.'

3
Support Questions / Email QUESTIONS
« on: March 01, 2020, 09:46:34 AM »
Hi All,
I have 2 questions about the email in AHMI

1. I need to be able to send an email with values IE. If a PV goes High send that high value to QA
2.I have the email function working but it runs once when I start up the HMI. I don't want it to do this because the computer that its on is shutoff at night.

Thanks

Pages: [1]