How to use Automatic Control Module

Forum Home Forums Understanding the Software How to use Automatic Control Module

This topic contains 12 replies, has 2 voices, and was last updated by Mikhail Mikhail 1 week, 6 days ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #2826

    manraj
    Participant

    Hi there!

    I have sucessfully installed Automatic Control Module.However I am not familarize with its function.What I am trying to do is to send command from the the input table in the localhost server to the Automatic Control Module stating that a new value is added in the input channel when its current value is < 10.The trigger i set in the Automatic Control Module is add channel data trigger and a command trigger under it

    The link below shows the screenshot of the settings
    https://drive.google.com/drive/folders/0ByrSCDsFCOLYMGlnSW5jV0VGb2s

    https://drive.google.com/drive/folders/0ByrSCDsFCOLYMGlnSW5jV0VGb2s

    What I intend to do is to insert 100 values based on a time schedule trigger for one input channel.How do I do that?

    #2832
    Mikhail
    Mikhail
    Moderator

    Hi,
    Please provide a screenshot with the settings of the module. I can’t find it in your files.

    What I intend to do is to insert 100 values based on a time schedule trigger for one input channel.How do I do that?

    Could you clarify the task?

    #2833

    manraj
    Participant

    The setting of the module https://drive.google.com/drive/folders/0ByrSCDsFCOLYMGlnSW5jV0VGb2s

    Basically I would want to insert a value in each input channel through the Automatic Control module every 5 second and I have about 100 differnt values.How do i do it?

    #2836
    Mikhail
    Mikhail
    Moderator

    Automatic Control Module sends commands via output channels or directly to a device.
    Do you really need to change input channels by commands?

    #2837
    Mikhail
    Mikhail
    Moderator

    To send commands every 5 seconds by Automatic Control Module, you need to create a trigger fires on data change, and create an input channel that changes every 5 seconds.

    #2846

    manraj
    Participant

    Yup

    #2853
    Mikhail
    Mikhail
    Moderator

    I can help you to create a formula for such channel if you need.

    #2854

    manraj
    Participant

    If you mean to create a formula that changes the input channel every 5 second then yes.I would need some help in it. Thank you

    #2863
    Mikhail
    Mikhail
    Moderator

    Add to the Formulas table:

    double Beat()
    {
      return (DateTime.Now.Seconds % 10) < 5 ? 0 : 1;
    }
    

    Then use in the channel: Beat()

    • This reply was modified 2 weeks, 2 days ago by Mikhail Mikhail.
    #2881

    manraj
    Participant

    So if I would the first input channel is 1000 And the next would be 2000.Will this algorithm work? And how will the next value be inserted because in the formula it does not take the second input value.

    #2893
    Mikhail
    Mikhail
    Moderator

    The Beat() function just changes a channel value every 5 seconds to be a trigger for sending commands. What value you need to insert?

    #2895

    manraj
    Participant

    First value 1000 and the second value is 2000 and third value is 3000

    #2900
    Mikhail
    Mikhail
    Moderator

    You should send the commands and apply formulas for output channels that insert necessary values.

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.