Forum Replies Created
-
AuthorPosts
-
rapidscadaaks
ParticipantHi Mikhail
Thanks for your reply.
1. While going through the Formats table I observed that in some of the Formats there is a “;” before – kindly enlighten
2. I could not understand srl. no. 2. Kindly elaborate a bitThank you once again
September 19, 2025 at 5:11 am in reply to: LED Colour in Schema in not changing with values in Output Channel #17081rapidscadaaks
ParticipantThanks Mikhail
rapidscadaaks
ParticipantHi Mikhail
Can you please guide how to setup a channel to show a command dialog that contains several buttons with command values ?
Thanks
September 17, 2025 at 11:04 am in reply to: LED Colour in Schema in not changing with values in Output Channel #17068rapidscadaaks
ParticipantHi Mikhail
This works. Thanks.
I have a last follow up question on the subject for understanding :
What is the difference between following the above solution (making a script for a function and calling the function in an output channel) and just using SetData() in an Output/Calculated Channel (as suggested by you in another topic) ?
Thanks for all the help
rapidscadaaks
ParticipantHi Mikhail,
This works.
Thanks for the help.
September 17, 2025 at 3:45 am in reply to: LED Colour in Schema in not changing with values in Output Channel #17056rapidscadaaks
ParticipantHi Mikhail
I tried and it did not update the input channel value.
As suggested, I entered the function in output type channel in output formula. This output channel is not connected to any real device.
Server log mentions command queued for sending to clients.
Please help
Thanksrapidscadaaks
ParticipantHi Mikhail
I actually have 2 tasks :
1. First is when sending command to a device using output channel to change colout of LED in Schema
2. Second is to enter value of a calculated / input using Schema. Since this cannot be done directly, value for the input channel is to be updated to a output channel which is not connected to any device which in turn updates an input / calculated channel.I hope my above explanation is adequate
Thanks
September 15, 2025 at 11:05 am in reply to: LED Colour in Schema in not changing with values in Output Channel #17036rapidscadaaks
ParticipantHi
Please advise to change input channel value using :
1. Command sent to a device
2. Command sent to an output channel which is not attached to any specific device but only for getting value for updating input channelThanks
September 13, 2025 at 12:22 pm in reply to: Auto Control Module : send cmd to device after x sec of earlier cmd #17023rapidscadaaks
ParticipantHi
I found the answer. Add command after the first with a delay.
September 8, 2025 at 12:31 pm in reply to: Calculated Channel computing current minimum value of multiple channels #16989rapidscadaaks
ParticipantNoted Mikhail.
Thanks
rapidscadaaks
ParticipantThanks Mikhail for your revert which is extremely helpful.
Just one question : what is the difference between using Cnl(101) and Val(101) ?September 8, 2025 at 5:02 am in reply to: Calculated Channel computing current minimum value of multiple channels #16977rapidscadaaks
ParticipantFound a solution by using following script
public double GetMinValue(params int[] channelNumbers)
{
if (channelNumbers == null || channelNumbers.Length == 0)
return double.NaN;double minVal = double.MaxValue;
foreach (int cnlNum in channelNumbers)
{
minVal = Math.Min(minVal, Val(cnlNum));
}return minVal;
}September 8, 2025 at 3:51 am in reply to: Calculated Channel computing current minimum value of multiple channels #16976rapidscadaaks
ParticipantHi
I used formula below in a calculated channel and it did not work:
Min(Val(1601),Val(1602),Val(1603))
Server returned following error:
2025-09-08 09:16:30 [SCADA][SCADA$][ERR] Error compiling the source code of the scripts and formulas:
(929,53): error CS1501: No overload for method ‘Min’ takes 3 arguments
Check the source code in Z:\SCADA\ScadaServer\Log\CalcEngine.cs
2025-09-08 09:16:30 [SCADA][SCADA$][ERR] Normal execution is impossiblePlease help
Thanks in advance
rapidscadaaks
ParticipantThanks for the clarification. Just one last question : if there are 3 channels to be checked, they will be chn1, chn2 and chn3. Will chn12 remain chn12 ?
September 7, 2025 at 10:32 am in reply to: Calculated Channel computing current minimum value of multiple channels #16971rapidscadaaks
ParticipantHi
Please assist for making a formula to calculate minimum value of current date of several channels.
I excel, one would have used min(aa:xx)
Thanks in advance
-
AuthorPosts