Showing results 1 to 3 of 3

Thread: Start Program error with parameters

  1. #1
    Join Date
    15.07.2008
    Posts
    6

    Daumen runter Start Program error with parameters

    Hi all,
    we are trying to execute a program on violation of limits.

    The external program must receive some parameters like:

    @alarm.ctime @alarm.ctimemilli @alarm.stext

    the problem is that @alarm.stext is something with spaces inside and the external program must receive it with " "

    So we have tried a parameters string like

    @alarm.ctime @alarm.ctimemilli "@alarm.stext"

    but in this way the external program receive this parameters:

    ctime
    ctimemilli
    stext

    So zenOn doesn't send anymore the converted alarm parameters but a text version of it.

    We use zenon 6.22 SP1 Build 7

    Thanks

  2. #2

    Default Re: Start Program error with parameters

    what you could do, is enter the alarm limit text which contains the spaces, between "".

    so the limit text would be "my alarm" instead of my alarm

    You can also use another character, e.g. # and evaluate the string in your application, if it starts with "#" then replace the first and the last character.

  3. #3

    Default Re: Start Program error with parameters

    also you could use the limit text \"my alarm\", this way using the escape character "\", indicating that the next character must be treated special in the string, in the external application.

Similar Threads

  1. ext. program start in CE5.0 system
    By rgnos in forum zenon Operator
    Replies: 2
    Last Post: 2nd August 2009, 22:28
  2. Parameters in Property window greyed out?
    By dak2483 in forum zenon Supervisor
    Replies: 1
    Last Post: 25th September 2008, 14:24
  3. Replies: 0
    Last Post: 18th September 2007, 14:12

Posting Rules

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