High Speed Counter on siemens PLC S7200 To Count Pulse Per second

How to set the HSC1 S7200 to count pulse per second ??
the code below explain how to calculate Revolution per second:
'--------------------------------------------------
MAIN PROGRAM:

Network 1 
LD     SM0.1
CALL   SBR0

Network2
LD     FRIST_SCAN:SM0.1
MOVB   20, VB536

Network3
LD     SM0.0
AN     T33
TON    T32, 500

Network4
LD     SM0.0
A      T32
TON    T33, 50
'-----------------------------------------------

'------------------------------------------------
SUBROUTINE   initialize_hsc1

Network1
LD     SM0.0
MOVB   16#FC, SMB47
HDEF   1, 0
MOVD   +0, SMD48
ATCH   RPM:INT0, 21
ENI
HSC    1
'------------------------------------------------

'-------------------------------------------------
Interrupt RPM

Network1
LD     SM0.0
MOVD   HC1, VD200
MOVD   +0, SMD48
MOVB   16#C0, SMB47
HSC    1
'------------------------------------

your Interrupt execute every 1 second trigger by Timer 32 on MAIN PROGRAM
and your Revolution per second store in VD200

Enjoy the to programming your PLC