Script use

Tagged: 

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #15860
    詹森
    Participant

    网址链接位置:
    https://rapidscada.net/docs/en/latest/configuration/scripts

    I would like to ask if the script formulas (methods) of rapid scada are all here? I would like to ask how to see the prototype and specific usage of the function, want to learn and use, thank you & respect

    我想问下rapid scada 的脚本公式(方法)都在这里了吗?我想问下怎么看到函数的原型和具体用法,想进行学习和使用,感谢&尊重

    #15862
    Mikhail
    Moderator

    Hello,
    The mentioned article provides basic information about using formulas. You can create your own scripts and formulas.
    Check the Scripts table of the HelloWorld project for the examples.

    #15867
    詹森
    Participant

    Greetings,
    1. I would like to ask how the two Every functions are used, is it directly called in the channel? For example, if the EveryMin() function is executed once per second on the channel, how often is the argument passed to EveryMin() executed?
    EveryMin()
    EveryHour()

    2. What count is this? Is it correct to input data (or calculated) into the channel to calculate pulse once?
    CountPulse() // Counts a pulse of the specified channel.

    3. How does this function work? Do you need the user to make the call? Where can I make the call?
    HourStarted() // Indicates that a new hour has started. The result is true once for each channel.

    Thank you for your help.
    Thanks & Respect!

    #15869
    詹森
    Participant

    Hi, I need your help. Thank you

    1. How can I modify the corresponding channel value directly on the Viwe page? I use command-rapid SCADA to set, should only send the Command to the server, will not write to the Channel, I need to directly modify the Channel value in the View, what can I do?

    2. In addition, how can the automatic control module write a value to the channel when sending a command?

    Thank you so much for your help!

    #15886
    Mikhail
    Moderator

    Hello,
    Please ask questions in proper different topics.

    #15887
    Mikhail
    Moderator

    EveryXXX function is executed many times a second. When a time is elapsed, the method passed as an argument is executed. Find the source code of the EveryPeriod function in the Scripts table.

    #15888
    Mikhail
    Moderator

    The CountPulse function should be used in a channel of the calculated type. It should refer another channel. If the 2nd channel changes from 0 to >0, the 1st channel is increased. Check the source code in the Scripts table.

    #15889
    Mikhail
    Moderator

    You can call the HourStarted function inside your own custom functions. It is auxiliary.

    #15890
    詹森
    Participant

    Okay, thank you.

    #16039
    laih
    Participant

    我在automatic control中添加好命令后,在哪里使用呢

    #16048
    詹森
    Participant

    我没有理解你的问题 不过我建议你去官网多看看自动控制如何使用

    #16057
    Mikhail
    Moderator

    Please use this subforum if you write in Chinese.

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.