Understanding Inputs Outputs and formulas

Forum Home Forums Understanding the Software Using Formulas Understanding Inputs Outputs and formulas

This topic contains 14 replies, has 3 voices, and was last updated by Avatar Charles Cool 1 year, 3 months ago.

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #2732
    Avatar
    Rita OLink
    Participant

    Hello
    Please understand that I am very new to all of this.
    Here is my problem:
    This project is to show a view of the tank level in % as well as the volume in litres
    I have an OPC server that is working well and I am able to get values from the various instruments that it polls.
    All that works fine and I can get value from a level instrument in % and get that to an input channel with a matching signal and I am able to display that in the view.
    Now I want to make another channel that uses a formula to calculate the volume based on the % from the level instrument I want to display the volume in the view.
    Can you please help me?????
    Regards
    Rita

    #2734
    Mikhail
    Mikhail
    Moderator

    Hi,
    Of course.
    What a formula do you plan to use in mathematical manner?

    #2742
    Avatar
    Rita OLink
    Participant

    Hello Mikhail
    I have figured out formulas with inputs and I am ok for now
    Thank you!

    #2746
    Mikhail
    Mikhail
    Moderator

    🙂

    #3300
    Avatar
    Charles Cool
    Participant

    I am reading a signed integer into Rapid Scada but when it goes negative I get 65??? for a value hwo can I get it to show a negative number? I am not using any formulas now. I wil be using both positive and negative numbers.

    #3301
    Mikhail
    Mikhail
    Moderator

    Please provide screenshot of Communicator where we can see the data packet, the decoded value and the configuration.

    #3308
    Avatar
    Charles Cool
    Participant

    My communication Line log

    2018-03-18 09:44:08 Communication session with the Device 61 “recorder”, type KpModbus, call number: 192.168.22.248
    Request element group “South Freezer”
    Send (12): 00 00 00 00 00 06 00 03 03 FB 00 01
    Receive (7/7): 00 00 00 00 00 05 00
    Receive (4/4): 03 02 00 73
    OK!

    this is a positive number

    2018-03-18 09:44:08 Communication session with the Device 61 “recorder”, type KpModbus, call number: 192.168.22.248
    Request element group “South Freezer”
    Send (12): 00 00 00 00 00 06 00 03 03 FB 00 01
    Receive (7/7): 00 00 00 00 00 05 00
    Receive (4/4): 03 02 FF 79
    OK!

    this is a negative number

    #3312
    Mikhail
    Mikhail
    Moderator

    Thank you.
    To do a check, also I need screenshots of the decoded values and the configuration as I noticed above.

    #3318
    Avatar
    Charles Cool
    Participant

    Hopefully this is what you need.

    [IMG]http://i67.tinypic.com/9r7l92.png[/IMG]

    #3319
    Avatar
    Charles Cool
    Participant

    Sorry Try it again

    #3320
    Avatar
    Charles Cool
    Participant
    #3322
    Mikhail
    Mikhail
    Moderator

    Thank you. I think, you should tune the Modbus template in Communicator. You could also provide a screenshot of your template.

    #3323
    Avatar
    Charles Cool
    Participant
    #3326
    Mikhail
    Mikhail
    Moderator

    Now ushort is selected that is always >= 0. To make possible negative values, switch to short. Then save the template and restart Communicator.

    #3327
    Avatar
    Charles Cool
    Participant

    That works Thank You.

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

You must be logged in to reply to this topic.