Access Genie Properties using Cicode

ByteBits

Member
Join Date
Mar 2024
Location
Australia
Posts
1
Hi All, Can anyone advise me on how to determine the AN of a genie instance I writing to. I have created a genie to display a valve and some text in a box beside the valve, indicating the required position of the valve as read from a dbf file. I have a number of instances of the genie on my page to display this in a tabular look, each instance being a different valve. Sometimes the display text is too long for the box so I want to reduce the font size when it is more than a certain No. of characters. See attached image showing my problem.
My plan was to use the DspText(hAN, iFont, sText [, iLength] [, iAlignMode] [, iLengthMode] [, bTooltip]) to modify the font size but it requires the AN which I don't know. There are nearly 40 of these valves and text boxes on the page with the text being updated depending on the mode the plant has to run in.

I have assigned a unique name to each genie instance in the hope of using AnByName(sName) to get the animation No. to then use this in DspText(), however I think this function only works on ActiveX objects.

Can anyone recommend a way to modifiy the font genie instance using cicode in Plant SCADA?

Thanks in advance :)
 

Attachments

  • 2024-03-13_09-40-21.jpg
    2024-03-13_09-40-21.jpg
    47.8 KB · Views: 4

Similar Topics

Hi Siemens guys! I am experiencing SF fault on our S7-300 (6ES7 315-2AH14-0AB0) CPU from time to time. I've checked the diagnostic buffer and...
Replies
13
Views
174
Can we use a Simotion D455 ethernet port x127 as a gate, to access S7-1500 plc Tia Portal program ? In the Simatic manager, we used Netpro to do...
Replies
2
Views
87
I have to provide remote access and control to a touch screen. I was thinking about using Weintek and the Weincloud. Does anyone know if this is...
Replies
11
Views
597
Greetings, I am working on a project and I would like to scale %AI to -10.0 to 10.0 VDC. The module Input data is stored as a 16 bit Integer and...
Replies
4
Views
71
Hi all Trying to remotely connect to a TIA Portal PLC. I can ping it without a problem but can't get my software to connect. I've opened port...
Replies
8
Views
331
Back
Top Bottom