Forum Discussion

HidekiShiba's avatar
HidekiShiba
Community Member
2 months ago

State naming rule for toggle switch?

Hello everyone.  
I am currently creating a Toggle Switch as part of the SWBT elements. I have referred to several contents with the keyword "Toggle Switch," but I found that the switch does not activate unless the state has a specific name, which prevents the toggle from functioning. Is it necessary to use pre-defined state names when creating a Toggle Switch?  

I put my sample, here. Rectange4 can toggle, but recange2 does not. 
Could anyone provide some advice?  

I appreciate any advice you can give. 

Thank you.

  • HidekiShiba's avatar
    HidekiShiba
    Community Member

    Judy-san, thank you for your great help. This is informative!

     Actually, I am trying to create a simple device simulator with SL360, and I would like to learn about elements such as toggle switches, numeric input, adjustment of pneumatic component movement, and voltage verification at the control panel.

    If someone could recommend a website or YouTube video for learning those skills, it would be a great help for me also.

    Thank you.

  • The only state that automatically toggles is the selected state as long as it isn't in a button set. Any other state can be made to toggle using triggers

  • HidekiShiba's avatar
    HidekiShiba
    Community Member

    Thank you, Phil-san,

    We need to use built-in state name like "selected". Any state does not toggle if the state has the other name. Am I right?

    Thank you.

  • rectangle four has a selected state which is why it toggles, rectangle 2 does not so would either need a selected state or to have triples to control the toggle