Showing results 1 to 4 of 4

Thread: Multi-Indicator Button

  1. #1
    Join Date
    29.04.2013
    Posts
    12

    Default Multi-Indicator Button

    Hi, I'm trying to make a button that has 4 images that is selected from the PLC and a bool written to the PLC to tell it if the button is pressed or not. I know that a normal button can't do this, so I am playing around with the "Combined element". I can make the images change depending on a value, but I can't figure out how to send the pressed state to the PLC. The variable in the "variable/function" box is used to select the states. I see that there is a "Write Set value" section, but I don't see where I can enter a second variable. Do I need to put a button behind the combined element?

    Thanks,
    Denis.

  2. #2

    Default Re: Multi-Indicator Button

    Hi Denis,

    You can use the variable you want to write at the combined element. Then at the definition of the states, you can add an additional variable at the "formula" section.

    Then use only the additional variable in the formula, for defining which graphic is displayed.

    e.g. (X02.Value = 1)

    Click image for larger version

Name:	ScreenShot333.png
Views:	21
Size:	27.8 KB
ID:	1158

    Best regards,
    Mark

  3. #3
    Join Date
    29.04.2013
    Posts
    12

    Default Re: Multi-Indicator Button

    Thanks for the quick reply. I've tried this and I use a number element to change the value of the second variable (mInt), but the states of the combined element never change. The variable I am using right now is an internal variable. Would this matter?



    Denis.
    Attached Thumbnails Attached Thumbnails CombinedElement.png  

  4. #4
    Join Date
    29.04.2013
    Posts
    12

    Default Re: Multi-Indicator Button

    Ok, I found the problem. I had a non-zero value in the value box for each state. This value is associated with the first variable in the "formula variables" box. It works now.

    Denis.

Similar Threads

  1. Multi-screen display
    By xaviluci in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 6
    Last Post: 16th January 2013, 11:12
  2. Create a busy indicator
    By gralex in forum VBA
    Replies: 4
    Last Post: 17th October 2012, 12:53
  3. something wrong in use between multi version?
    By zhangbb_dimension in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 3
    Last Post: 15th May 2012, 05:21
  4. reset of Drag indicator
    By roberto1978 in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 3
    Last Post: 15th March 2012, 00:16
  5. Multi-log on various projects
    By nblanquart in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 2
    Last Post: 6th May 2010, 08:24

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •