3/22/2018 4:20 PM | |
Posts: 4 Rating: (0) |
I'm also struggling with trying to write a simluar C script. I have an input of a block--> Blockname.IO It has a text_0 and a text_1. So I want to display text_0 if .IO = 0 or display text_1 if .IO = 1. So I need to copy the text stored at Blockname.IO#string_0 and Blockname.IO#string_1 and display it accordingly. I can display it properly if I use static text, but I haven't figured out how to do it dynamically so that I can use it for an icon, and that all PCS7 objects work properly when programmed to use this icon. Keep in mind that this was an existing block/faceplate combination so there is a text1 that I'm not using. And it use to display up to 7 different text values, but I only need it to display 2. ------------------------------------------------------------------------------------------ #include "apdefap.h" // WINCC:PICNAME_SECTION_START
TextUsed = 0; i = 0; } if (TextUsed == 0) } } ------------------------------------------------------------------------------------------ |
Last edited by: KrisCor at: 3/22/2018 4:22:41 PMLast edited by: Jen_Moderator at: 3/23/2018 6:59:20 AMNew subject after splitting |
|
Follow us on