Forum Replies Created
-
AuthorPosts
-
manjey73Participantthe easiest way is to install mc, copy by any means to the user’s Downloads folder. Then in root mode run mc and copy anywhere you want. Then change the permissions and the user to the necessary folders using the chmod, chown commands
manjey73ParticipantChannel number 1000 – evaluation X
Then your formula in the channel 1022 – Val(1001)+Val(1021)*Val(1000)
manjey73ParticipantYou need to channel to find the value of X knowing Val(1001) and Val(1021) ? Then you need to know the answer
Or do you need to find the value of Y given you the formula, where another unknown ? And mathematics can’t do, not what scada
-
This reply was modified 8 years, 10 months ago by
manjey73.
manjey73ParticipantUnknown number is that you return to a channel after settlement.
Therefore, the formula cannot be an unknown number. It is either the calculation of other formulas (channel) or a known number.
manjey73ParticipantYou should start from here
There’s much more useful 🙂
Don’t know what is your native language, but I think online translator plus test will help understand how to work with those or other components of the system
manjey73Participant
manjey73ParticipantAnd you think I’m talking to you in plain English ? I just use online translate 🙂
Draw the picture in the scheme of what you should have, without adding what is not and as you did before. As the mention of Arduino in your case just confuses the situation.
I’ll try to do screenshots as it works for me with the Modbus RTU.
manjey73ParticipantYou are not using Arduino with RapidScada, and use some kind of analog output ?
Well, and send commands directly to the module output with Automatic Control ModulIn the presence of Hysteresis in the module you do not need any formula.
In manual mode you can force to work the module as you want ? Here’s the same commands send through an automatic how to activate or deactivate.
manjey73ParticipantYou need Automatic Control Modul.
Do I understand correctly that you have a PC with RapidScada and modules input / output and you want to control directly from RapidScada ?
The module serves for automatic control of external devices.
To avoid permanent switching off of the desired additional channel with the formula of Hysteresis and already according of this channel to send a command to the output module.int[] HysNum = new int[1]; bool[] Hys = new bool[1]; public double Hysteresis(double inCnl, double low, double high) { bool q = Val(CnlNum) > 0; int res = Array.IndexOf(HysNum, CnlNum); if (res == -1) { res = HysNum.Length; Array.Resize(ref HysNum, res+1); Array.Resize(ref Hys, res+1); HysNum[res] = CnlNum; Hys[res] = q; } if (inCnl < low) Hys[res] = true; if (inCnl > high) Hys[res] = false; return Convert.ToDouble(Hys[res]); }example – Hysteresis(Val(414),950,1050) —- Val(414) this sensor channel
The module configures for triggering the channel, with one value you pass to the device value to 5v the other to 0v the value
manjey73ParticipantYou need a formula for Hysteresis ?
If it is difficult to explain in words, maybe draw a picture of what should be connected and put on the exchanger ?
manjey73ParticipantIf you already implemented to work on the Arduino for input variable then you only need the Automatic Control Module to send data of temperature change using Modbus just multiplying it by 10
You scetch is compared with the value 1000
Then everything will make your program in ArduinoOr you want to make an analog program the Arduino directly on Rapid Scada ?
-
This reply was modified 8 years, 11 months ago by
manjey73.
manjey73ParticipantYou need to do signal scaling from 0-100 to 0-5 ?
Describe the task more preciselyTo scale the signal, I used the formula
double Scaler (double input, double in_min, double in_max, double out_min, double out_max) { double out1 = 0; double out2 = 0; double output = 0; double diff = in_max - in_min; if (diff != 0) { if (input > in_max) out1 = in_max; else out1 = input; if (in_min > out1) out2 = in_min; else out2 = out1; output = (out_max - out_min) / diff * (out2 - in_min) + out_min; } return output; }Scaler(Val(121), 0, 100, 0, 5)
If the value of the measured signal in channel 121 is higher than 100, the output signal will be equal to 5 in this example, below 0, the output signal will be equal to 0-
This reply was modified 8 years, 11 months ago by
manjey73.
manjey73ParticipantThe number of characters promise to increase.
Now you can apply the formula to read data from a file, then 1000 characters may be enough, depending on the task.You can also share a formula and thereby increase the overall code.
-
This reply was modified 8 years, 12 months ago by
manjey73.
manjey73ParticipantYou can change the pictures from the Collection in a dynamic pattern depending on the received data.
On account of the text does not prompt, it works exactly in the tables through the base unit.dat
manjey73ParticipantAdd them to the database formulas and then use them in the input or output channels.
There are examples in Russian, use online translator.
There are errors due to features of this web. In some places instead of a dash is a long dash.Read more about formulas in the documentation Using Formulas
-
This reply was modified 8 years, 10 months ago by
-
AuthorPosts