Writing a Value

Touch the Switch and a constant (for example, 100) will be written to the specified variable.

Example Operation

Setting Workflow

  1. Add Variables
  2. Set up Parts

Add Variables

Project Explorer : [Variables] ➞ [All Variables]

Add the below variable(s).

Variables property:

[Name] [Data Type]

Var1

[WORD]

Set up Parts

Project Explorer : [Screen Design] ➞ [Screens] ➞ [Screen1]

Drag and drop the following objects from the [Tool Chest] to the screen.

Switch object (Name: Switch1) properties:

Tab Sub Tab Property Value
[Function] [Touch] [Operation] [Type] [Word]
[Operation] [Set]
[Source] 100
[Destination] [Variable] [Name]: Var1