Forum Home › Forums › Rapid SCADA on Linux Controllers and Raspberry Pi › Can we use formulas on Raspberry Pi
- This topic has 10 replies, 2 voices, and was last updated 5 years, 10 months ago by
Mikhail.
-
AuthorPosts
-
May 9, 2019 at 1:53 am #5414
scadarapid
ParticipantI 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.
May 9, 2019 at 9:21 am #5415Mikhail
ModeratorMore details about the forumula needed.
May 9, 2019 at 10:46 am #5417scadarapid
Participant1.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.
May 10, 2019 at 8:09 am #5424Mikhail
Moderator1.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?May 10, 2019 at 8:16 am #5425Mikhail
Moderator2.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.
May 10, 2019 at 8:38 am #5426scadarapid
ParticipantWhat 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.May 10, 2019 at 10:11 am #5427scadarapid
ParticipantIt works on PC but it dose not work on Raspberry Pi or I make something wrong.
May 10, 2019 at 10:53 am #5428scadarapid
ParticipantI finished this point.
Thank you so much.
May 10, 2019 at 11:46 am #5429Mikhail
ModeratorI finished this point.
Could you share how you did it?
May 13, 2019 at 1:54 am #5433scadarapid
ParticipantYes
this is my template.
https://uppic.cc/d/Kps9Formula
https://uppic.cc/v/KpsaTransfer 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\configImportant: Do not overwrite ScadaServerSvcConfig.xml. Edit it manually
then,
cd /opt/scada
sudo ./scadarestart.sh
sudo ./restart_apache.sh
sudo ./restart_xsp.shMay 13, 2019 at 6:40 am #5437Mikhail
ModeratorThe 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.
-
AuthorPosts
- You must be logged in to reply to this topic.