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
S7-200 SMART
symbol name
SM address
Description
HSC4_Status
SMB146
HSC4 counter status
Note: Counter status bits are valid only while the CPU is executing an inter-
rupt routine that a high-speed counter event triggered.
SM146.0–
SM146.4
Reserved
HSC4_Status_5
SM146.5
HSC4 current counting direction status bit: TRUE: Counting up
HSC4_Status_6
SM146.6
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
than
HSC4_Ctrl
SMB147
HSC4 counter control
HSC4_Reset_Level
SM147.0
HSC4 active level control bit for Reset: FALSE: Reset is active high, TRUE:
Reset is active low
SM147.1
Reserved
HSC4_Rate
SM147.2
HSC4 Counting rate selection for Quadrature counters: FALSE: 4x counting
rate; TRUE: 1x counting rate
HSC4Dir
SM147.3
HSC4 direction control bit: TRUE: Count up
HSC4_Dir_Update
SM147.4
HSC4 update direction: TRUE: update direction
HSC4_PV_Update
SM147.5
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-
rent
HSC4_Enable
SM147.7
HSC4 enable bit: TRUE: enable
HSC4_CV
SMD148
HSC4 new current value
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.
HSC4_PV
SMD152
HSC4 new preset value
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.