<< Prev        Next >>

ID : 6886

Check Box

This part toggles a setting between on and off.

This part can be used as a toggle button also. This parts has Clicked event and Released event similar to those for buttons.

Access to this setting is via the property state.

Check Box Example

1

Load the editor and place a check box on the panel layout.

2 Adding Action Source Code

This part has Clicked and Released events similar to those for buttons.

3 Read/Write Access to Check Box Properties

This part has properties similar to buttons and labels.

This example shows how pressing a button on the same screen can update IO[24] to IO[26] from a set of check boxes.

Add a button to the panel layout.

4

Open the Source Code Edit window, select PB1 and Clicked to create the action source code skeleton, and add the following lines for reading the check box properties (.state).

IO[24] = CB1.state
IO[25] = CB2.state
IO[26] = CB3.state

Compile this panel layout, download it to the COBOTTA, and test.

 

ID : 6886

<< Prev        Next >>