Forum Replies Created
-
AuthorPosts
-
manjey73ParticipantCurrently only using the OPC server. If you find an OPC UA for this Protocol it will be better
manjey73ParticipantIt is no different from other modules. Will work
manjey73ParticipantSet the output format of the input channel as D
February 25, 2020 at 6:17 am in reply to: simple Formula that compares an Integer or real and returns Boolean #6555
manjey73ParticipantHysteresis added to Formula tab
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]); }In the channel, use the formula Hysteresis(Val(X), 32.5, 33.5))
Where Val(X) is your measurement channel. Enabling and disabling the output is already configured for the channel in which you use the Hysteresis formulaFebruary 25, 2020 at 6:13 am in reply to: simple Formula that compares an Integer or real and returns Boolean #6554
manjey73ParticipantIt is not correct to compare the real number, simply because it can fluctuate within certain limits, for example, 32,999-33, 019, and then you will have the output turned on and off. You need to apply Hysteresis to avoid this. Kind of laid out the formula of Hysteresis on the forum.
manjey73ParticipantIn Russian, too, the HTTP Error 503 error. The service is unavailable.
manjey73ParticipantDo not pay attention, in SNMP, the variable itself is most likely still text with a label that it is a number. The Communicator displays it probably before sending it to the Scada database. Use the number format in the table to apply the correct multiplier
manjey73ParticipantHow is the resulting number displayed in the Scada database?
Yes, you can define regional settings in the code. But I did not study this driver.
-
This reply was modified 6 years, 2 months ago by
manjey73.
manjey73Participantin appearance, this is like a number, the separators depend on the regional settings of the PC
If this is string data, it is unlikely to work without changing the driver…. formulas are useless, since you will only have the first 8 bytes
-
This reply was modified 6 years, 2 months ago by
manjey73.
manjey73ParticipantCongratulations, now you just need to create a Table or Diagram interface And connect the required channels to it.
manjey73ParticipantIt is strange that you have selected a project in the Interface and not interface files.
The Interface object must be created either in tabular form or in graphical form
Interface-Create a Table file (or Scheme)
Add the necessary input channels in a table view
manjey73ParticipantIt seems that you don’t even need to rearrange the bytes, I entered a decimal number, and the calculator showed a different representation. “Most accurate representation”
http://floatingpoint.ru/value/double/416A61BD7388E68A
-
This reply was modified 6 years, 2 months ago by
manjey73.
manjey73ParticipantFor example here you have everything perfectly readable
https://ibb.co/Yf7Kjm9When you read once an hour, you may need to uncheck “Stay connected” in the line settings. Actually, the problem is not in Scada, but perhaps in the communication settings, the settings of the device itself (it does not keep the socket open for so long and closes it by timeout), and so on.
manjey73ParticipantYou just don’t know how to cook it 🙂
<img src="<img src=”https://i.ibb.co/NxYkSrG/Rights.jpg” alt=”Rights” border=”0″ />” alt=”Rights tab” />
-
This reply was modified 6 years, 2 months ago by
manjey73.
-
This reply was modified 6 years, 2 months ago by
-
AuthorPosts