Showing results 1 to 4 of 4

Thread: get actual value of parameters from Start Program function

  1. #1

    Default get actual value of parameters from Start Program function

    i'm using zenon 7.0 and my HMI need to call an executable program with parameters like, @alarm.stext and so on.

    My executable managed to detect and read the parameters but unable to get the actual values for that 3 zenon parameters.

    what is the correct way to get the actual value from the above 3 parameters in start program function ?

  2. #2

    Default Re: get actual value of parameters from Start Program function

    Hi firdaus, and welcome to the forum!

    In the part in the help where the paramemeters are described for the start program function, it is mentioned that an alarm must be selected in the alarm list, for the parameters to have a value, and also when multiple alarms are selected, the parameters do not have a value.

    Have you selected an alarm in the list prior to executing the function?

    What is your final task that you would like to achieve? What is the function of the exsternal program and what shall the external program do with the parameters?

    Best regards,

  3. #3

    Default Re: get actual value of parameters from Start Program function

    Hi. Thanks for your reply.

    Actually, what we trying to achieve is everytime there is an alarm, an sms will be sent to the operator.

    Right now, all our alarm use the same REMA. When the REMA status is on,it will trigger the start program function. We linked the start program function with an external program to send the sms.

    The external program should send the sms along with the alarm details. The problem is the external program cannot grab the alarm detail that we expect to get value from or @alarm.stext.

    Can you give us any suggestion to solve this?

  4. #4

    Default Re: get actual value of parameters from Start Program function

    Hi Firdaus,

    Actually there is an optional module in zenon called "Message Control" that does exactly that. Send an e-maiil, text to speech, or text message, to an operator or group of operators, in case of an alarm, and allow inclusion of additional information like the alarm text.

    So as a solution I would suggest looking into this module

    To see that the parameters are working at the function, you can try starting e.g. notepad.exe from the windows directory instead of your external application. The alarm text should be the suggested filename.

    Basically, you would need to modify the external application, so that it correctly accepts the parameters that zenon provides.

    Best regards,

Similar Threads

  1. RGM actual recipe
    By scadavmesnik in forum zenon Supervisor
    Replies: 1
    Last Post: 8th July 2012, 23:56
  2. Start Program Transfer Parameter
    By whitetaru in forum zenon Supervisor
    Replies: 9
    Last Post: 4th May 2011, 01:45
  3. Start Program error with parameters
    By maurodx in forum zenon Supervisor
    Replies: 2
    Last Post: 16th November 2009, 06:51
  4. ext. program start in CE5.0 system
    By rgnos in forum zenon Operator
    Replies: 2
    Last Post: 2nd August 2009, 22:28
  5. Start Function From PCE
    By stephanepilon in forum VBA
    Replies: 1
    Last Post: 16th May 2008, 06:33

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts