Download Preface
Transcript
32 Ch a pte r III Ge n e ra l De sc r i p t i o n o f F u n c t i o n B l o c k s Time Sequence Frame: Q G_T On=9 Fre fa = 9 fa = 10 fa = 8 fa = 4 Off=5 fa = input frequency Functional Description If the On threshold ≥ Off threshold, then: Q=1, if fa >= On Q=0, if fa < Off If the On threshold < Off threshold, then: Q=1, if n <= fa < Off Notes: 1. The counting frequency is related to filtering duration. If the default filtering duration is 50ms, please choose high-speed running mode when input frequency exceeds 4HZ. 2. I4~I7 are high-speed inputs. Each high-speed input only can be connected with a function block of highspeed counting in a program. 3.3.2 A+ B- Counter (A+B-) Line diagram/ Symbol in APB CW Pin Input R A signal at input R resets the internal count value to zero, and the output (R takes priority over CW and CWW). Input The counter is counting up when there is a signal at input CW (counter). The counter is counting down when there is a signal at input CWW (counter). The function counts the 0 to 1 transitions at input, while 1 to 0 transitions are not counted. Q H CWW R A+B- P Parameter Setting Range of values: 0-99999999 Description Output Q When count value is reached, the Output Q is enabled. Output P Outputs the running value of the block to the Register D.