Siemens SIMATIC S7 System Manual page 812

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

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
Table D- 11
HSC2 configuration and operation
S7-200 SMART
symbol name
HSC2_Status
HSC2_Status_5
HSC2_Status_6
HSC2_Status_7
HSC2_Ctrl
HSC2_Reset_Level
HSC2_Rate
HSC2_Dir
HSC2_Dir_Update
HSC2_PV_Update
HSC2_CV_Update
HSC2_Enable
HSC2_CV
HSC2_PV
812
SM address
Description
SMB56
HSC2 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.
SM56.0–SM56.4
Reserved
SM56.5
HSC2 current counting direction status bit: TRUE: Counting up
SM56.6
HSC2 current value equals preset value status bit: TRUE: Equal
SM56.7
HSC2 current value is greater than preset value status bit: TRUE: Greater
than
SMB57
HSC2 control
SM57.0
HSC2 active level control bit for Reset: FALSE: Reset is active high; TRUE:
Reset is active low
SM57.1
Reserved
SM57.2
HSC2 counting rate selection for Quadrature counters: FALSE: 4x counting
rate; TRUE: 1x counting rate
SM57.3
HSC2 direction control bit: TRUE: Count up
SM57.4
HSC2 update direction: TRUE: update direction
SM57.5
HSC2 update preset value: TRUE: Write new preset value to HSC2 preset
SM57.6
HSC2 update current value: TRUE: Write new current value to HSC2 cur-
rent
SM57.7
HSC2 enable bit: TRUE: enable
SMD58
HSC2 new current value
You use SMD58 to set HSC2 current value to any value you choose. To
update the current value, write the new current value to SMD58; write 1 to
SM57.6; and execute the HSC instruction. The instruction then writes the
new current value to HSC2's current count register.
SMD62
HSC2 new preset value
You use SMD62 to set HSC2 preset value to any value you choose. To
update the preset value, write the new preset value to SMD62; write 1 to
SM57.5; and execute the HSC instruction. The instruction then writes the
new preset value to HSC2's preset register.
System Manual, V2.3, 07/2017, A5E03822230-AF
S7-200 SMART

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart

Table of Contents