Job Valid rangeWriting pulse duration* 0 ... 510ms*) Only even values allowed. Odd values are automatically rounded.As soon as during a count process an edge 0-1 is recognized at the "Latch" input of acounter, the recent counter value is stored in the according latch register.You may access the latch register via LATCHVAL of the SFB 47.A just in LATCHVAL loaded value remains after a STOP-RUN transition.6.6.3 Counter - FunctionsYou may count forward and backwards and choose between the following counter func-tions:n Count endless, e.g. distance measuring with incremental encodern Count once, e.g. count to a maximum limitn Count periodic, e.g. count with repeated counter processIn the operating modes "Count once" and "Count periodic" you may define a counterrange as start and end value via the parameterization. For every counter additionalparameterizable functions are available like gate function, comparison, hysteresis andprocess interrupt.Via the parameterization you have the opportunity to define a main counting direction forevery counter. If "none" is chosen, the complete counting range is available:Limits Valid value rangeLower count limit -2 147 483 648 (-231)Upper count limit +2 147 483 647 (231-1)Main counting direction forwardUpper restriction of the count range. The counter counts 0 res. load value in positivedirection until the parameterized end value -1 and jumps then back to the load value withthe next following encoder pulse.Main counting direction backwardsLower restriction of the count range. The counter counts from the parameterized start-res. load value in negative direction to the parameterized end value +1 and jumps thenback to the start value with the next following encoder pulse.If the HW gate is enabled, only the HW gate may be influenced by the gate functions. Anopening and closing of the SW gate aborts or interrupts the count process.Abort count processThe count process starts after closing and restart of the gate beginning with the loadvalue.Interrupt count processThe count process continuous after closing and restart of the gate beginning with the lastrecent counter value.Latch functionOverviewMain counting directionGate function abort/inter-ruptVIPA System 300S+Deployment I/O peripheryCounter > Counter - FunctionsHB140 | CPU-SC | 313-5BF23 | en | 19-01116