Arithmetic Test

The arithmetic and comparison blocks are tested in this section. For this test, a CTU counter was added to each one of the four inputs. The CV variable for each CTU was wired to arithmetic blocks to perform the following equation:

C T U 0 . C V + C T U 1 . C V C T U 2 . C V - C T U 3 . C V

The result of the arithmetic expression goes to two Comparator blocks. If the result is greater than 3 or less than -3, the output is set to true. The ladder diagram for this test segment is shown below.

Figure 1. Arithmetic Test