14.10.1 Procedure - Use a Switch to Add/Subtract Values

  1. From the [Parts (P)] menu, point to [Data Display (D)] and select [Numeric Display (N)], or click the icon, and place it on the screen.

  2. Double-click the placed Data Display. The Data Display dialog box appears.

  3. Select a part shape as necessary. Deselect the [No Shape], and select a shape from [Select Shape].

  4. In [Monitor Word Address], set up the address to store the displayed numeric value.

  5. Set the type of data that will be displayed (for example, "16 Bit Bin") in [Data Type].

  6. Set the font and/or color in the [Color/Alarm] and [Display] tabs as necessary and click [OK].

  7. Next, set the switch which will operate the addition action. From the [Parts (P)] menu, point to [Switch Lamp] and select [Word Switch], or click and place it on the screen.

  8. Double-click the placed Switch part. The following dialog box appears.

  9. In [Select Shape], select the Switch shape.

  10. In the [Word Address] field, set the address where you want to write data when you touch the switch (the same address as the [Monitor Word Address] in Data Display, for example, D100).

  11. From [Word Action] choose [Add Data].

  12. Set the address which will add the data in [Addition Base Word Address] (for example, D100).

  13. Set [Data Type] to [Bin] and [Constant] to "1" and click [OK]. The addition action's Word switch function is now set.

  14. Repeat the steps above to create a Word Switch for [Subtract Data].