EasyManuals Logo

Siemens Simatic S7 Series System Manual

Siemens Simatic S7 Series
726 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #234 background imageLoading...
Page #234 background image
Program instructions
7.6 Counters
S7-200 SMART
234 System Manual, 09/2015, A5E03822230-AC
HSC0
HSC1
HSC2
HSC3
Description (used only when HDEF is executed)
SM37.0 Not sup-
ported
SM57.0 Not sup-
ported
Active level control bit for Reset
1
:
0 = Reset is active high
1 = Reset is active low
SM37.2 Not sup-
ported
SM57.2 Not sup-
ported
Counting rate selection for AB quadrature phase counters
1
:
0 = 4X counting rate
1 = 1X counting rate
1
The default setting of the reset input is active high, and the AB quadrature phase counting rate is 4x (or four times the
input clock frequency).
Example: High-speed counter definition
LAD
STL
MAIN
On the first scan:
1. Select the reset input to be active
high and select 4x mode.
2. Configure HSC0 for AB quadrature
phase with reset input (mode 10).
Network 1
LD SM0.1
MOVB 16#F8, SMB37
HDEF 0, 10
HSC instruction enables counters, sets counting direction, and loads preset/current count values
The HSC instruction uses the control byte during execution. After you assign the counter and
the counter mode, you can program the dynamic parameters of the counter. Each high-
speed counter has a control byte in SM memory that allows the following actions:
Enabling or disabling the counter
Controlling the direction (modes 0 and 1 only), or the initial counting direction for all other
modes
Loading the current value
Loading the preset value

Table of Contents

Other manuals for Siemens Simatic S7 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens Simatic S7 Series and is the answer not in the manual?

Siemens Simatic S7 Series Specifications

General IconGeneral
CPUVaries by model (e.g., S7-300, S7-400, S7-1200, S7-1500)
Communication InterfacesPROFIBUS, PROFINET, Ethernet, MPI
ProgrammingTIA Portal, STEP 7
Programming LanguagesLAD, FBD, STL, SCL, GRAPH
I/O ModulesDigital, Analog, Specialty modules available
Operating Temperature0°C to 60°C (standard models)
MountingDIN rail mounting
Operating Voltage24V DC or 120/230V AC (varies by model)
Protection ClassIP20 (standard models)
MemoryVaries depending on the S7 model. Includes work memory (RAM) for program execution, load memory (EEPROM or Flash) for program storage, and system memory for operating system functions. Memory sizes range from kilobytes to megabytes.

Related product manuals