Counting Forms

Linear Counting

Linear Counting
If linear counting is selected, input pulses are counted in the range from –2147483648 to 2147483647.
This is used in the combination of presetting function and coincidence output function.

 

image-20240325-070316.png

 

Overflow Error
This occurs when the value is linear-counted down over –2147483648 or linear-counted over 2147483647.
If overflow occurs, the devices for detecting overflow in buffer memory (ch1:02H,ch2:22H) will be set and the counting is stopped. Even though pulse inputs come continuously, the counted value is fixed as – 2147483648 or 2147483647.
If the value is preset, overflow error will be cleared and the device for detecting overflow in buffer memory will be 0.

Point

When values are linear-counted and ring-counted
In case that a currently counted value is greater than the maximum ring-counted value, it is to be preset as the value less than or equal to the maximum ring-counted value to ring-count when being linear-counted, and it is to be preset as the value greater than or equal to the minimum ring-counted value to ring-count when being linear-counted down.
If the value is not preset, it will be linear-counted. (The case that Max. ring-counted value > Min. ring-counted value)

 

Ring Counting

Ring Counting
If ring counting is selected, input pulses are counted repeatedly between the minimum ring-counted value(ch1:16H,17H ch2:36H,37H) and the maximum ring-counted value(ch1:18H,19H ch2:38H,39H). The overflow for ring counting does not occur. Ring counting is used in the combination of presetting and coincidence output function.

 

image-20240325-070333.png

 

Range of Ring Counting
The range of ring-counted pulses is from the minimum value(ch1:16H,17H ch2:36H,37H) to maximum value(ch2:18H,19H ch2:38H,39H).

Min. ring-counted Value <= Current Value <= Max. ring-counted Value

Counting
In the case that a current value reaches the maximum ring-counted value, the minimum ring-counted value is automatically stored in the current value.

Counting down
In the case that a current value reaches the min. ring-counted value, when the next counting-down pulse comes, the value "Max. ring-counted value – 1" is stored in the current value.

While input pulses are being counted or counted down, the maximum ring-counted value is not stored in the currently counted value of buffer memory.

 

 

Current Value <= Min. ring-counted Value or Current Value >= Max. ring-counted Value

Counting
In the case that a current value reaches the minimum ring-counted value, when next counting pulse comes, the value "Max. ring-counted value + 1" is stored in the current value.

Counting down
In the case that a current value reaches the maximum ring-counted value, the minimum ring-counted value is automatically stored in the current value.

While input pulses are being counted or counted down, the maximum ring-counted value is not stored in the currently counted value of buffer memory.

 

 

The maximum ring-counted value equals to the minimum ring-counted value
Any value in signed 32-bit binary can be ring-counted regardless of current value.