Mikhail

Forum Replies Created

Viewing 15 posts - 5,611 through 5,625 (of 6,219 total)
  • Author
    Posts
  • in reply to: Automatic Control Module integration #1544
    Mikhail
    Moderator

    I created another input channel to display the CmdVal of the output channel which uses SetHour().

    What is the number of that channel on the screenshots?
    How do you expect to behave for input channels 61, 62? Are they received from your device?

    in reply to: Automatic Control Module integration #1543
    Mikhail
    Moderator

    Please describe how do you send command to set hour?

    in reply to: Automatic Control Module integration #1541
    Mikhail
    Moderator

    I recommend to create input channels to show current values of hour and minute variables in order to control them.

    in reply to: Automatic Control Module integration #1540
    Mikhail
    Moderator

    Apparently the calculated channel data never appears correctly in the Scada Comm device data which I was using to check the data changes. It only appears in Scada Web.

    Definitely 🙂

    Now how can I send the hour and minute parameters from the output channel to my flag channel ?

    Add the variables into Formulas table:

    int hour = 0;
    int minute = 0;
    

    Add the code into Formulas table:

    double SetHour()
    {
      hour = (int)CmdVal;
      return double.NaN;
    }
    

    Use the above formula for an output channel.
    Note: I don’t test code which I write in this forum. It’s just a direction for experiments.

    in reply to: Automatic Control Module integration #1538
    Mikhail
    Moderator

    It’s strange. Did you pass the changes to Server and restart Server service?
    Try simplifying the formula of an input channel.
    First of all, try the formula: 1
    Then try: DateTime.Now.Minute

    in reply to: How to get the data from a RS232 device? #1536
    Mikhail
    Moderator

    Send me, please, an email request for price estimation. Also attach full description of the communication protocol.
    Email address is here

    in reply to: How to get the data from a RS232 device? #1534
    Mikhail
    Moderator

    You need to develop by yourself or purchase development of a device driver.
    Read Device Drivers Development
    Source code examples are here

    in reply to: How to get the data from a RS232 device? #1532
    Mikhail
    Moderator

    What communication protocol is supported by the device?

    in reply to: Automatic Control Module integration #1531
    Mikhail
    Moderator

    I didn’t write: you have to change channel type to Calculated real.

    in reply to: Automatic Control Module integration #1528
    Mikhail
    Moderator

    I mean that you should enter the whole CheckTime() function in Formulas table. Then enter just CheckTime() in Input channels table.

    in reply to: Automatic Control Module integration #1525
    Mikhail
    Moderator

    The simple formula example:

    double CheckTime()
    {
      DateTime nowDT = DateTime.Now;
      return nowDT.Hour == 1 && nowDT.Minute == 0 ? 1 : 0;
    }
    
    in reply to: Automatic Control Module integration #1524
    Mikhail
    Moderator

    In formulas you can use DateTime and TimeSpan

    in reply to: Automatic Control Module integration #1523
    Mikhail
    Moderator

    Do you need a special time for sending command or just a period of doing it?
    How accurately you need to define a time? Is it enough to set hour only or hour and minutes?

    in reply to: Automatic Control Module integration #1521
    Mikhail
    Moderator

    In this case you should use another approach:
    Create an input channel as a flag and check time in the channel’s formula. Then create a trigger that fires on the flag value.
    To change the timer counter according to a command you need an output channel.

    in reply to: Automatic Control Module integration #1519
    Mikhail
    Moderator

    Hello,

    Please describe your task in details. Why do you need it?

Viewing 15 posts - 5,611 through 5,625 (of 6,219 total)