Cicode Help

ZhongJiwei

Member
Join Date
Nov 2013
Location
Singapore
Posts
18
Hello,
Any one no below function, i do not how to make it in Cicode. Please advise me.
FUNCTION MyTagWrite(TagName, NewValue, Message)
STRING OldValue;
OldValue = TagRead("Tagname")
Message("Are you sure you want to change Tagname from OldValue to NewValue?")
If OK
TagWrite(Tagname, NewValue)
DevOpen(Log device)
DevAppend..
DevSetField(Date/Time..
DevSetField(Username..
DevSetField(OldValue..
DevSetField(New Value..
DevSetField(Message.. eg "Pump 1 Run Control..."
DevClose..
Else
do nothing
End
End
 

Similar Topics

Hi Everyone I'm a CITECT noob and am currently doing a SCADA class to increase my skills. However, I'm having trouble getting my head around some...
Replies
2
Views
1,245
in the past i have only been doing small mods to existing cicode and coping sections to reuse and modify to suit. Now i have been tasked to write...
Replies
5
Views
2,792
Some cicode help required Please. i am by no means a cicode expert. i have a tag "D2_WESP_TRA_Op_stat" which depending on its returned integer...
Replies
6
Views
3,277
Hi all, I need your help in finding a way to display a Variable tag in a page ( pop up ) which is created by using CICode ---> hForm16 =...
Replies
1
Views
2,267
Hi all, my citect program write all the alarms to a xls file when i open that excel i will run a marco automatic and i can see a bargraph of all...
Replies
4
Views
3,931
Back
Top Bottom