Citect and Text display for Integer Value ?

EICS_2

Member
Join Date
Mar 2015
Location
Melbourne
Posts
49
I have a device that gives an alarm value as an integer value.

i want to display the fault code of this value in text, the range of this value is 0 - 65,535 unsigned integer.

i won't be putting all the Fault codes in but would like to do approx 30 - 40 for given integer values that are the most benefitical.

what is the best and easiest way to do this.
 
CASE statement in cicode below
read through the cicode help,

__________________
STRING
FUNCTION DisplayAlarm(INT iTag)

STRING sTag
SELECT CASE iTag
CASE 1
sTag = "Alarm 1"
CASE 2
sTag = "Alarm 2"
CASE 200
sTag = "Alarm 200"
CASE ELSE
sTag = "General Alarm"
END SELECT

RETURN sTag
END
________________

to show the message on your page, use a text display, with string
and call the cicode DisplayAlarm(Tag)
where Tag is the name of your variable tag in your project.
 
I am using cicode to display a message in Vijeo Citect when a particular Bit is acted in PLC
but whenever that bit get energised my message doesn't come

FUNCTION MSG(); /// MSG is my function name///
IF GP_LOGIN_BIT_2 = 1 THEN // LP_LOGIN_BIT_2 it is a bit that energised through PLC///
Message("Error", "USER ALREADY LOGGED", 48); // I want to show that message///
Logout(); /// Also Performing this Logout operation///
END
END
my logout function executed when that bit get energised but Message doesn't Come
pls help me
Thanks in advanve
 

Similar Topics

dear all pls how i insert a text in runtime in vijeo citect scada thanks alot .
Replies
3
Views
3,012
I have been asked to provide a pop up form for each item of equipment on a Citect 7.40 page. The purpose of these popups is to allow the operators...
Replies
10
Views
3,829
Hello! I have two questions about Citect. 1. I have a page with an alarm list on. The cicode function Tabalarm_Dsp is used to view the alarms...
Replies
0
Views
3,923
How to read and write text file in Citect Scada? I want to write to text file when engineer change the set point. I want to get that changed...
Replies
0
Views
4,024
Hello, I have a running project on Citect v5.42 and simatic net v6.4 I have created a new spare PC and loaded all software like Citect, station...
Replies
0
Views
68
Back
Top Bottom