Siemens Simatic S7 Series System Manual page 676

Hide thumbs Also See for Simatic S7 Series:
Table of Contents

Advertisement

Special memory (SM) and system symbol names
D.14 SMB36-45 (HSC0), SMB46-55 (HSC1), SMB56-65 (HSC2), SMB136-145 (HSC3): high-speed counters
Table D- 10
High-speed counter 1 configuration and operation
S7-200 SMART
symbol name
HSC1_Status
HSC1_Status_5
HSC1_Status_6
HSC1_Status_7
HSC1_Ctrl
HSC1_Dir
HSC1_Dir_Update
HSC1_PV_Update
HSC1_CV_Update
HSC1_Enable
HSC1_CV
HSC1_PV
Table D- 11
High-speed counter 2 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
676
SM address
Description
SMB46
HSC1 counter status
Note: Counter status bits are valid only while an interrupt routine triggered
by a high-speed counter event is being executed
SM46.0–SM46.4
Reserved
SM46.5
HSC1 current counting direction status bit: 1 = counting up
SM46.6
HSC1 current value equals preset value status bit: 1 = equal
SM46.7
HSC1 current value is greater than preset value status bit: 1 = greater than
SMB47
HSC1 control
SM47.0-SM47.2
Reserved
SM47.3
HSC1 direction control bit: 1 = count up 0 = count down
SM47.4
HSC1 update direction: 1 = update direction
SM47.5
HSC1 update preset value: 1 = write new preset value to HSC1 preset
SM47.6
HSC1 update current value: 1 = write new current value to HSC1 current
SM47.7
HSC1 enable bit: 1 = enable HSC 0 = disable HSC
SMD48
HSC1 new current value
SMD48 is used to set HSC1 current value to any value you choose. To
update the current value, write SMD48 with the desired new current value,
write SM47.6 to 1, and execute the HSC instruction. The new current value
is then written to HSC1's current count register.
SMD52
HSC1 new present value
SMD52 is used to set HSC1 preset value to any value you choose. To up-
date the current value, write SMD52 with the desired new current value,
write SM47.5 to 1, and execute the HSC instruction. The new preset value
is then written to HSC1's preset register.
SM address
Description
SMB56
HSC2 counter status
Note: Counter Status bits are valid only while an interrupt routine triggered
by a high-speed counter event is being executed.
SM56.0–SM56.4
Reserved
SM56.5
HSC2 current counting direction status bit: 1 = counting up
SM56.6
HSC2 current value equals preset value status bit: 1 = equal
SM56.7
HSC2 current value is greater than preset value status bit: 1 = greater than
SMB57
HSC2 control
SM57.0
HSC2 active level control bit for Reset: 0 = Reset is active high; 1 = Reset is
active low
SM57.1
Reserved
SM57.2
HSC2 counting rate selection for AB quadrature phase counters: 0 = 4x
counting rate; 1 = 1x counting rate
System Manual, 09/2015, A5E03822230-AC
S7-200 SMART

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart series

Table of Contents