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 #243 background imageLoading...
Page #243 background image
Program instructions
7.6 Counters
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
243
Change direction in modes 0 and 1
The following steps describe how to configure HSC0 for change direction for single-phase
counter with internal direction (modes 0 and 1):
1. Load SMB37 to write the desired direction:
SMB37 = 16#90
Enables the counter
Sets the direction of the HSC to count down
SMB37 = 16#98
Enables the counter
Sets the direction of the HSC to count up
2. Execute the HSC instruction to cause the CPU to program HSC0.
Loading a new current value (any mode)
The following steps describe how to change the counter current value of HSC0 (any mode):
1. Load SMB37 to write the desired current value:
SMB37 = 16#C0
Enables the counter
Writes the new current value
2. Load SMD38 (double-word-sized value) with the desired current value (load with 0 to
clear it).
3. Execute the HSC instruction to cause the CPU to program HSC0.
Loading a new preset value (any mode)
The following steps describe how to change the preset value of HSC0 (any mode):
1. Load SMB37 to write the desired preset value:
SMB37 = 16#A0
Enables the counter
Writes the new preset value
2. Load SMD42 (double-word-sized value) with the desired preset value.
3. Execute the HSC instruction to cause the CPU to program HSC0.

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