Push button/Switch

Top  Previous  Next

*

With the help of push buttons and switches you have the possibility to manipulate the process during simulation runtime. Their role is exactly the same as that of real push buttons/switches with the exception that you always have to connect real push buttons to an input of the PLC, whereas with TrySim you are capable to manipulate also outputs and markers directly. For example, if you like to test a motor immediately during the construction of the machine you only have to create a push button and by doing so you will be able to switch the output to which the motor is connected.

 

Switch/NO contact/NC contact

In fact these three elements are one and the same. However, the selection list will show it in three versions, in order to avoid a subsequent configuration.

The switch changes the state of a bit each time you click it.

The NO contact sets the state of the bit to ‘1’ as long as you click it, otherwise it sets the state of the bit to ‘0’. Do not click it too briefly, otherwise the NO contact may not recognize the click.

The NC contact sets the state of the bit to ‘0’ as long as you click it, otherwise it sets the state of the bit to ‘1’. NO contacts are quite good to use to simulate a backup case.

You can change the elements at any time by changing the field ‘type’ accordingly within the edit mask.

 

Please note that it is not possible to use a switch/NO contact/NC contact in order to overwrite a bit which is also written by the PLC program. If this element does not work as expected you are able to check with the help of the cross reference list whether the controlled bit is modified in the PLC program. The easiest way to call the CR is by clicking the button ‘CR’ on the edit mask. In the CR all the places where the bit is modified are marked by a red point.

See also:

Multiple Switch

Common properties

Static elements of simulation

Connection to PLC

 

Tabsheet: Controls or in the toolbar