Citect - passing more than 8 variables to a super genie..

Pocko

Member
Join Date
Jul 2006
Location
At work!
Posts
2
Hi All,

I'd like to know the best way to go about passing more than 8 variable to a super genie.

I'd like to create a genie that will need to pass more than standard 8 varibles to a super genie that the various *** function can do.

I'm looking to place a button on the screen that when clicked will open up a page with our VSD parameters (a fair few of them need to be on the one screen at once ideally), and i'd also like to use this method for setting analog alarm set points and reading the alarms status and acknowledging them on the same page.

Feel free to paste cicode function text if posssible!!

Thanks, Cheers - Pocko.
 
Have a look thru the on-line help the function ***() can be called and will assign heaps (technical term meaning many)
eg:
***( hwin, nArg, sTag, nMode)
hWin = -3 ---Current Window, -2 -- Next Windows
nArg = super genie association number
sTag = tag name
nMode = don't know what this does book says set it to 0

so if you wanted to create an association between a tag named FRED and you wanted it to be assoc. #43 for the next window to open it would read

***( -2, 43, "Fred", 0)

I have used similar to above to assign up to 60/70 tags, and don't forget that a super-genie is EXACTLY the same as a normal page except that instead of referencing tags it references Associations.

Apparently that function is considered too rude to print.. It is A_S_S. the first three letters of association
 
Last edited:
I usually build my own supergenie calling functions when there are more than 8 associations
For Cicode examples
search for the function AssVarTag in the citect project editor using the "find user function"

Also look at how assWin AssPage are all coded

PS. The Tag.ci file that you open is in the include directory DO NOT make changes to this file. It gets changed on upgrades. Create your own Tag.ci in your project


Like consys I have 50 to 100 associations per page
 
MichaelG said:
I usually build my own supergenie calling functions when there are more than 8 associations
For Cicode examples
search for the function AssVarTag in the citect project editor using the "find user function"

Also look at how assWin AssPage are all coded

PS. The Tag.ci file that you open is in the include directory DO NOT make changes to this file. It gets changed on upgrades. Create your own Tag.ci in your project


Like consys I have 50 to 100 associations per page
Hi:
How I make to make a Super Genie with more than 30 Tags variables? Since, when using the AssVarTags in the Up Command of the Genie I surpass the 256 characters.
This I must do it with an Array, declaring it in the Cicode? How I do it?
 
Student

I usually build my own supergenie calling functions when there are more than 8 associations
For Cicode examples
search for the function AssVarTag in the citect project editor using the "find user function"

Also look at how assWin AssPage are all coded

PS. The Tag.ci file that you open is in the include directory DO NOT make changes to this file. It gets changed on upgrades. Create your own Tag.ci in your project


Like consys I have 50 to 100 associations per page
Could you please share your code for calling supergenie function? I'll be grateful.
 
Could you please share your code for calling supergenie function? I'll be grateful.
Function is called in a Genie with:
Code:
RB_FillParamPopup("%TAG%")
The function passes 17 associations to the Super Genie "!sg1_RB_ParBlock_Dsp":
Code:
FUNCTION RB_FillParamPopup(STRING sBlockName)
    
    AssVarTags(-2,0,sBlockName + "_P1",sBlockName + "_P2",sBlockName +  "_P3",sBlockName + "_P4",sBlockName + "_P5",sBlockName +  "_P6",sBlockName + "_P7",sBlockName + "_P8");
    AssVarTags(-2,8,sBlockName + "_P9",sBlockName + "_P10",sBlockName +  "_P11",sBlockName + "_P12",sBlockName + "_P13",sBlockName +  "_P14",sBlockName + "_P15",sBlockName + "_P16");
    AssVarTags(-2,16,sBlockName + "_P17");
    AssPopUp("!sg1_RB_ParBlock_Dsp");
END
 

Similar Topics

Another Cicode question if i may. i have 2 Functions in cicode one function calls the other and i need to pass 2 Variables from one to the other...
Replies
7
Views
2,871
Hi All, I am trying to pass a variable from Genie to Supergenie. I created a supergenie page with a whole lot of texts, custom genies and numeric...
Replies
4
Views
2,775
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
64
Hello everyone, In a factory where we installed Citect 7.20 the computer began to show the first signs of end of life. They never considered...
Replies
0
Views
71
I have a running backup of Citect and plc and I want to make a spare PC station so I have installed the win XP and somatic net v6.0 and import the...
Replies
3
Views
118
Back
Top Bottom