Special memory (SM) and system symbol names
D.14 SMB36-SMB45 (HSC0), SMB46-SMB55 (HSC1), SMB56-SM65 (HSC2), SMB136-SMB145 (HSC3), SMB146-
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
811
You use SMD38 to set HSC0 current value to any value you choose. To
update the current value, write the new current value to SMD38; write 1 to
SM37.6; and execute the HSC instruction. The instruction then writes the
new current value to HSC0's current count register.
You use SMD42 to set HSC0 preset value to any value you choose. To
update the preset value, write the new preset value to SMD42; write 1 to
SM37.5; and execute the HSC instruction. The instruction then writes the
new preset value to HSC0's preset register.
Table D- 10 HSC1 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.
HSC1 current counting direction status bit: TRUE: Counting up
HSC1 current value equals preset value status bit: TRUE: Equal
HSC1_Status_7 SM46.7 HSC1 current value is greater than preset value status bit: TRUE: Greater
HSC1 direction control bit: TRUE: Count up FALSE: Count down
HSC1 update direction: TRUE: update direction
HSC1 update preset value: TRUE: Write new preset value to HSC1 preset
HSC1_CV_Update SM47.6 HSC1 update current value: TRUE: Write new current value to HSC1 cur-
rent
HSC1 enable bit: TRUE: enable HSC FALSE: disable HSC
HSC1_CV SMD48
You use SMD48 to set HSC1 current value to any value you choose. To
update the current value, write the new current value to SMD48; write 1 to
SM47.6; and execute the HSC instruction. The instruction then writes the
new current value to HSC1's current count register.
HSC1_PV SMD52
You use SMD52 to set HSC1 preset value to any value you choose. To
update the preset value, write the new preset value to SMD52; write 1 to
SM47.5; and execute the HSC instruction. The instruction then writes the
new preset value to HSC1's preset register.