Citect Numeric Entry with Limits

dmned64

Member
Join Date
Jun 2013
Location
Florida
Posts
99
I might be missing something basic about Citect´s numeric function. I can create the object on a page but what I would like is the ability to limit the entry between a minimum and maximum value, but not base those limits on the minimum and maximum values of the variable tag.

Furthermore I would like to dynamically set those limits based on the value of another variable tag. For example, I have a high and low alarm setpoint for a tag. I would like the allowable minimum limit for the high setpoint to be no less than one unit higher than the low alarm setpoint. Similarly I would like to set the low alarm setpoint maximum allowable value to one unit less than the high alarm setpoint.

Cicode? Other methods?
 
Thank you for the suggested link. I have not use the NumPad as my means of numeric entry so perhaps I can modify the code to suit my needs. If not I may switch to NumPad.
 
I might be missing something basic about Citect´s numeric function. I can create the object on a page but what I would like is the ability to limit the entry between a minimum and maximum value, but not base those limits on the minimum and maximum values of the variable tag.

Furthermore I would like to dynamically set those limits based on the value of another variable tag. For example, I have a high and low alarm setpoint for a tag. I would like the allowable minimum limit for the high setpoint to be no less than one unit higher than the low alarm setpoint. Similarly I would like to set the low alarm setpoint maximum allowable value to one unit less than the high alarm setpoint.

Cicode? Other methods?

Yes, just use Cicode on the number entry, pseudo:

IF number_entry_value > high_setpoint THEN
Message "value out of range high"
IF number_entry_value < low setpoint THEN
Message "value out of range low"
ELSE
Value = number_entry_value
END

Or something along those lines, i have done it before so if you really struggle i can try and find the code somehwere
 
Thank you for the replies. The links and hints pushed me in the right direction. I believe what I found is using ArgValue1 instead of Arg1 allowed the comparisons to execute. Also confusing is that the Input window seems to imply that functions cannot be used since the option to Insert Function is greyed out.

I now have it working exactly as I hoped:

for high setpoints:

IF (ArgValue1 <= xSL) THEN
Message("réessayer","trop bas",1);
ELSE
xSH = ArgValue1;
END


for low setpoints:

IF (ArgValue1 >= xSH) THEN
Message("réessayer","trop haut",1);
ELSE
xSL = ArgValue1;
END
 
Last edited:

Similar Topics

I'm learning Vijeo Citect and I'm having the hardest time simply trying to write a numeric value in the PLC from a graphics pages. Can anyone...
Replies
6
Views
4,790
Hello guys, I have a serious problem in my Citect application. I am using the "Input" property of a numeric display because I want the operator...
Replies
4
Views
5,243
Hello, the system we use is Scada 7.5 series. We have usb key activ now we need additional key to make the system work, how do we solve this...
Replies
0
Views
64
So i've been at this for a long while, i have Citect Scada 2018, i have full access to everything but i can't seem to find any option or...
Replies
0
Views
71
Hello, i've been at this for months now, i tried creating accounts on the aveva website but it seems to never approve my accounts or at least when...
Replies
3
Views
106
Back
Top Bottom