Calc value from multiple device

Forum Home Forums Understanding the Software Using Formulas Calc value from multiple device

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #8574
    ns.fariz
    Participant

    Hi Mik,

    How can I calculate value from another device? Let say I have 3 device and want to sum Total KW from each machine.

    Thank you,

    #8576
    manjey73
    Participant

    New Channel, use formula
    Val(Channel_machine_1)+Val(Channel_machine_2)+Val(Channel_machine_3)

    #8668
    ns.fariz
    Participant

    Hi Manjey,

    I tried like this. create new channel in Input channel machine 1. I put on the last table row no 163, channel type = real, object = Enterprise, Formula used = checked, Formula = Val(131)+Val(231)+Val(331). and I add on my table input channel 163. But when I open rapidscada view. the value just show —-. Is there any step that I missed?

    #8676
    Mikhail
    Moderator

    Hi,
    Screenshots of the existing settings would help.

    #8686
    ns.fariz
    Participant

    Hi,

    Please see below screenshot

    img1
    img2
    img3

    • This reply was modified 3 years, 2 months ago by ns.fariz.
    #8701
    Mikhail
    Moderator

    Hi,

    Set the type of channel 163 to “Calculated real”, and set Signal to blank.

    #11319
    gabeirinhas
    Participant

    Hello,

    I want to sum two channels,

    the values keep increasing,

    Both are channels without signal,

    Both are real calculated type, one of them is based on a value with signal.

    Basically I want that when the value of one of them changes, the result will be added,

    Could you help me, thank you

    I attach pictures

    https://drive.google.com/drive/folders/1pwEn-hpt_Kkn6qjn3vjl8ZaZu2CSoL5T?usp=sharing

    #11323
    Mikhail
    Moderator

    Hello,
    Formula of the channel 532 refers itself.

    #11334
    gabeirinhas
    Participant

    Hello,

    I have the following query,

    If a channel receives an actual value of 100.0 continuously and after some time the same channel receives a value of 200.0

    Is there a way to sum these specific values?

    i.e. 100.0 + 200.0?

    Thank u

    #11357
    Mikhail
    Moderator

    Hello,
    It’s possible, but more tricky. Check the averaging formulas.

    #11374
    gabeirinhas
    Participant

    Hello,

    I have incorporated the table of formulas,

    They work correctly,

    I get the average using these 2 formulas,

    MovAvg(5); AvgStat()

    TimeAvg(10, 5); AvgStat()

    >

    I have been playing with them in order to get the sum of 2 values at the change of an input channel,

    What I am trying to do is for example that, during 1 hour I get on one input channel 100.0 and after another hour I get 200.0, on the same input channel,

    I try that another input channel picks up the sum of these 100.0 + 200.0

    >

    In the first input channel (904) where I receive the values to be added,
    I put the formula

    MovAvg(2); AvgStat()

    In the second input channel (905) in order to obtain the sum, I put the formula,

    Val(904) *2

    I do not obtain the expected result,

    I hope you can help me with this, thank you

    • This reply was modified 1 year, 7 months ago by gabeirinhas.
    #11408
    Mikhail
    Moderator

    I can help you by answering questions how formulas work.
    Take into account that Communicator periodically sends the existing data again to input channels.
    It’s possible to write to a text file from formulas. It may help to find an error.

    If you can use C#, you can also implement a simple module to perform calculations. Modules allow debugging, which can be useful.

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