Mehanoman Posted December 5, 2019 Report Share Posted December 5, 2019 Hi everyone, How can I make two state line? on button with value=0 one color, when I pressed button some other color of that line.. Can anyone help me? Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted December 5, 2019 MVP 2022 Report Share Posted December 5, 2019 Use Binary Image/Switch, or whatever it's called in UniLogic (that's the name in VisiLogic, but it's similar in UniLogic). Quote Link to comment Share on other sites More sharing options...
Mehanoman Posted December 5, 2019 Author Report Share Posted December 5, 2019 Sorry, I want on 0 line to be blue and on 1 red color. I telling about Line in Simple elements Quote Link to comment Share on other sites More sharing options...
AlexUT Posted December 5, 2019 Report Share Posted December 5, 2019 Hi, When finishing to draw line and release mouse at second point, pop-ups dialog, where you can change line color. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Flex727 Posted December 5, 2019 MVP 2022 Report Share Posted December 5, 2019 Just draw two lines in Paint, or your favorite graphics program, save them to bitmap files, and assign them to the binary image switch. Quote Link to comment Share on other sites More sharing options...
Mehanoman Posted December 6, 2019 Author Report Share Posted December 6, 2019 I know about this, but I want to assign two states to a simple line as in zenon (copa data). UniLogic doesn't seem to be able to. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted December 7, 2019 MVP 2022 Report Share Posted December 7, 2019 In UniLogic a Line is a static element and its properties are not exposed to the programmer. You're going to have to work within the limitations of the software - you can achieve what you want by using a Binary Text Variable with no text in it and setting the Height to a very small value, like 2. You can set the colors in the Text Source collection and you can rotate it to get the orientation you want. Yes, I realize this is a hack. UniLogic is not a PC-based SCADA package like Zenon is. Joe T. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted December 7, 2019 MVP 2022 Report Share Posted December 7, 2019 Update - the newest release of UniLogic offers a "SHAPE Line" data type which is called from the ladder program. These functions are in the new "Drawing" menu at the bottom of the Toolbox. The Help says that these are not yet documented and I don't know how it works yet, but maybe one of the Creators can chime in and give us some direction. @Cara Bereck Levy - anything on this? Joe T. Quote Link to comment Share on other sites More sharing options...
Cara Bereck Levy Posted December 12, 2019 Report Share Posted December 12, 2019 Joe - I will look into it, thanks for the heads - up Quote Link to comment Share on other sites More sharing options...
Dz! Posted January 12, 2020 Report Share Posted January 12, 2020 Thumbs up! Parametric drawing was a long awaited feature! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.