Can we use formulas on Raspberry Pi

Forum Home Forums Rapid SCADA on Linux Controllers and Raspberry Pi Can we use formulas on Raspberry Pi

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #5414
    scadarapid
    Participant

    I make a project and I use formula in my project then, I test in PC it works find after that I transfer data to my Raspberry Pi but it dose not show the data.

    Thank you so much.

    #5415
    Mikhail
    Moderator

    More details about the forumula needed.

    #5417
    scadarapid
    Participant

    1.example. I got the data from registers modbus and I need to show on web page but the data that I got it has to convert to become a decimal number or it dose not real value. so can I use the formula to convert my data before I show it on web.

    2.if I use automatic control and I set the time, assume I set output ON at 12.00AM and OFF at 12.05AM. Can It show that on the Web page. show something like I set the output ON at 12.00AM and OFF at 12.05AM.

    If it can. Please give me an suggestion.

    Thank you so much.

    #5424
    Mikhail
    Moderator

    1.example. I got the data from registers modbus and I need to show on web page but the data that I got it has to convert to become a decimal number or it dose not real value. so can I use the formula to convert my data before I show it on web.

    What value do you get curretnly?
    What value do you need to display?

    #5425
    Mikhail
    Moderator

    2.if I use automatic control and I set the time, assume I set output ON at 12.00AM and OFF at 12.05AM. Can It show that on the Web page. show something like I set the output ON at 12.00AM and OFF at 12.05AM.

    If you need to display time on web page, you should create input channels for storing time, set format to “Time”.

    Also create output channels that allows to set the input channels. Use the formula like SetVal(101, EncodeDate(Cmd)) for them. Where 101 is the input channel number.

    Also you need input channels that have value 0 or 1. These channels will be used as the triggers in Auto Control Module. And have to compare current time and predefine time.

    #5426
    scadarapid
    Participant

    What value do you get curretnly?
    Yes, it is temperature and type input register ushort.
    What value do you need to display?
    I need to display temperature value but I have to convert it before show on display
    something like, i got 3200 so, but the value is not true so, i use formula to convert
    by (3200-3000)/10 = 20 degree and show it on DashBoard.

    #5427
    scadarapid
    Participant

    It works on PC but it dose not work on Raspberry Pi or I make something wrong.

    https://www.img.live/image/7iapTM

    https://www.img.live/image/7iaXJg

    #5428
    scadarapid
    Participant

    I finished this point.

    Thank you so much.

    #5429
    Mikhail
    Moderator

    I finished this point.

    Could you share how you did it?

    #5433
    scadarapid
    Participant

    Yes
    this is my template.
    https://uppic.cc/d/Kps9

    Formula
    https://uppic.cc/v/Kpsa

    Transfer data to the Raspberry Pi

    C:\SCADA\BaseDAT
    C:\SCADA\Interface
    C:\SCADA\ScadaComm\Config
    C:\SCADA\ScadaServer\Config except ScadaServerSvcConfig.xml
    C:\SCADA\ScadaWeb\config

    Important: Do not overwrite ScadaServerSvcConfig.xml. Edit it manually

    then,

    cd /opt/scada
    sudo ./scadarestart.sh
    sudo ./restart_apache.sh
    sudo ./restart_xsp.sh

    #5437
    Mikhail
    Moderator

    The image is not in focus. Could you make screenshots by pressing Print Screen button?

    You should set channel type to Real.

    I suggest the new version to upload configuration easily.

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