The counter structure is similar to that of the timer because it also has a preset and accumulator value, also called PRE and ACC.
There are several bits that are set by the counter, including:
CU for counting up,
CD for counting down,
DN to indicate that the counter has reached the preset value,
OV to indicate an accumulator overflow situation,
UN to indicate an accumulator underflow situation,
UA is used only with high-speed counter I/O and indicates the accumulator is updating.
There are various instructions that are used for timers and counters, including timer on and timer off instructions and up and down counter instructions.
Control files are used in conjunction with complex data functions, like FIFO Load, Sequencer, and Bit Shift Left.
File 7, the Integer file, is structured just like the B3 binary file, except the data is integer data.
An integer may have a value of -32768 up to 32767.
Just as with the Binary file, we can change the Radix to view the data in its binary form.
As part of the ladder program, we can use the in...
F8 is the floating-point data file.
Floating-point data cannot be shown in any other manner than floating-point, or real number notation.
Floating-point numbers greater than 9,999,999 are shown in scientific notation.