Special memory (SM) and system symbol names
D.14 SMB36-SMB45 (HSC0), SMB46-SMB55 (HSC1), SMB56-SM65 (HSC2), SMB136-SMB145 (HSC3),
SMB146-SMB155 (HSC4), SMB156-SMB165 (HSC5): high-speed counters
S7-200 SMART
814 System Manual, V2.3, 07/2017, A5E03822230-AF
Table D- 13 HSC4 configuration and operation
: Counter status bits are valid only while the CPU is executing an inter-
rupt routine that a high-speed counter event triggered.
SM146.0–
Reserved
HSC4 current counting direction status bit: TRUE: Counting up
HSC4 current value equals preset value status bit: TRUE: Equal
HSC4_Status_7 SM146.7 HSC4 current value is greater than preset value status bit: TRUE: Greater
HSC4_Reset_Level SM147.0 HSC4 active level control bit for Reset: FALSE: Reset is active high, TRUE:
HSC4_Rate SM147.2 HSC4 Counting rate selection for Quadrature counters: FALSE: 4x counting
rate; TRUE: 1x counting rate
HSC4 direction control bit: TRUE: Count up
HSC4 update direction: TRUE: update direction
HSC4 update preset value: TRUE: Write new preset value to HSC4 preset
HSC4_CV_Update SM147.6 HSC4 update current value: TRUE: Write new current value to HSC4 cur-
HSC4 enable bit: TRUE: enable
You use SMD148 to set HSC4 current value to any value you choose. To
update the current value, write the new current value to SMD148; write 1 to
SM147.6; and execute the HSC instruction. The instruction then writes the
new current value to HSC4's current count register.
You use SMD152 to set HSC4 preset value to any value you choose. To
update the preset value, write the new preset value to SMD152; write 1 to
SM147.5; and execute the HSC instruction. The instruction then writes the
new preset value to HSC4's preset register.