Blog has been started! PDF Print E-mail
Written by Alexey Dovgan   
Thursday, 18 January 2007
Starting from now we will keep our "corporate" blog. Stay tuned!
Last Updated ( Tuesday, 11 November 2008 )
 

Comments  

  1. #9 Artur_K
    2009-09-3008:18:47 Thank you for help.
    I found mistake in my project.
  2. #8 Artur_K
    2009-09-2908:13:38 Hi Michael,
    I can't download your sample project
    free-scada.org/…/…).fs2 .
    WWW server reply : Error 404: File Not Found .
    I will send my project to Alexey.
  3. #7 Michael
    2009-09-2819:03:26 Hi Artur,
    Could you describe how you did this handler? I tried to do the same thing using Simulator and it works for me. Here is what I did:
    1. Create 2 channels in Simulator. One is "Saw (integer -100 .. 100)" and another one is "Simple string".
    2. Select "variable_1" in "Project Content" tree and add "OnVariable1Changed" handler for "ValueChanged" event
    3. In this handler I wrote the following:
    # Arguments: Object sender, EventArgs e
    def OnVariable1Changed(sender, e):
    if sender.Value > 0:
    Application.GetChannel("data_simulator_ plug.variable_2").Value = "variable 1 above zero"
    else:
    Application.GetChannel("data_simulator_ plug.variable_2").Value = "variable 1 below zero"

    4. Then save the project and open it in RunTime. And that's all…

    Here is this project file: free-scada.org/.../...).fs2
  4. #6 Alexey Dovgan
    2009-09-2815:18:40 Hi. Can you send me your project for review to ?
  5. #5 Artur_K
    2009-09-2813:21:56 I handle event from modbus channel variable_1 (digital input 1) but I can't change coil state because
    Application.GetChannel("modbus_connecti on_plug.variable_2").Value = 0,
    don't work in Scripts->ChannelHandlerr .
    Runtime module generate error : Fail to execute script 'ChannelHandlers ': 'type' object has na attribute 'GetChannel' .
    How to handle modbus_connecti on_plug.variable_2 in
    ChannelHandlers and set Value?
    Please help.
  6. #4 Michael
    2009-09-2617:51:55 Have a look at "tutorial 2" for basic introduction on schema scripts. Unfortunately we don't have documentation for that feature at this moment, but if you want just to see Python syntax, you could look at it there docs.python.org.

    There is no way to change schema name at the moment. It seems that we missed important thing here… I will add this function as soon as possible.
  7. #3 Artur_K
    2009-09-2509:30:33 Thank you for quick reply.
    I have next questions.
    How to add script to schema?
    How to change schema's name?
    Whether the script manual is available?
  8. #2 Alexey Dovgan
    2009-09-2214:29:53 You can look at the simple_script_4 .fs2 example which provided with setup, in it tou can find how you can handle evens from channel and UI.
  9. #1 Artur_K
    2009-09-2212:56:32 Is it posible to create control process by FreeSCADA?
    I have two I/O modules with MODBUS-RTU protocol.
    My process is simply.
    If in first module digital input (1) change the state to OFF FreeSCADA must send command set ON coil (2) to second module. Please help me.

Add comment

:D:lol::-);-)8):-|:-*:oops::sad::cry::o:-?:-x:eek::zzz:P:roll::sigh:


< Prev