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 following dialog box appears.

  3. Select the Data Display shape from [Select Shape].

  4. In [Monitor Word Address], set the address that will store the Value to display..

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

  6. As needed, set the Data Display color and text on the [Alarm/Color] tab and [Display] tab, 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. Set the address (D100) where you want to write data when you touch the switch in [Word Address].

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

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

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

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

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

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

  17. Set the address (D100) where you want to write data when you touch the switch in [Word Address].

  18. Choose [Subtract Data] from [Word Action].

  19. Set the address (D100) which will subtract the data in [Subtraction Base Word Address].

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