Forum Home › Forums › Understanding the Software › Using Formulas › Script use
Tagged: Script use
- This topic has 11 replies, 3 voices, and was last updated 7 months ago by
Mikhail.
-
AuthorPosts
-
December 31, 2024 at 8:34 am #15860
詹森
Participant网址链接位置:
https://rapidscada.net/docs/en/latest/configuration/scriptsI 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 的脚本公式(方法)都在这里了吗?我想问下怎么看到函数的原型和具体用法,想进行学习和使用,感谢&尊重
December 31, 2024 at 8:42 am #15862Mikhail
ModeratorHello,
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.January 1, 2025 at 3:09 am #15867詹森
ParticipantGreetings,
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!January 1, 2025 at 6:07 am #15869詹森
ParticipantHi, 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!
January 2, 2025 at 12:51 pm #15886Mikhail
ModeratorHello,
Please ask questions in proper different topics.January 2, 2025 at 12:53 pm #15887Mikhail
ModeratorEveryXXX 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.
January 2, 2025 at 12:55 pm #15888Mikhail
ModeratorThe 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.
January 2, 2025 at 12:57 pm #15889Mikhail
ModeratorYou can call the HourStarted function inside your own custom functions. It is auxiliary.
January 2, 2025 at 1:31 pm #15890詹森
ParticipantOkay, thank you.
January 20, 2025 at 6:38 am #16039laih
Participant我在automatic control中添加好命令后,在哪里使用呢
January 20, 2025 at 10:51 am #16048詹森
Participant我没有理解你的问题 不过我建议你去官网多看看自动控制如何使用
January 20, 2025 at 12:09 pm #16057Mikhail
ModeratorPlease use this subforum if you write in Chinese.
-
AuthorPosts
- You must be logged in to reply to this topic.