Siemens SIMATIC S7-1200 Manual page 82

Hide thumbs Also See for SIMATIC S7-1200:
Table of Contents

Advertisement

Easy to use the built-in pulse generators
7.1 High-speed counters
Configuration of the HSC
Using the CTRL_HSC instruction
Parameter
HSC
DIR
CV
RV
PERIOD
NEW_DIR
NEW_CV
NEW_RV
82
The CPU allows you to configure up to 6 high-speed
counters. You edit the "Properties" of the CPU to configure
the parameters of each individual HSC.
Configure the parameters for the high-speed counters by
editing the "Properties" of the CPU, such as such as counter
function, initial values, reset options and interrupt events.
After configuring the HSC, use the CTRL_HSC instruction in
your user program to control the operation of the HSC.
The CTRL_HSC instruction controls the high-speed counters for
counting events that occur faster than the CPU scan rate.
Each CTRL_HSC instruction stores the data in an instance DB.
Inserting the CTRL_HSC instruction into your user program
creates this instance DB.
Data type
Description
HW_HSC
HSC identifier
BOOL
1 = Request new direction
BOOL
1 = Request to set new counter value
BOOL
1= Request to set new reference value
BOOL
1 = Request to set new period value
(only for frequency measurement mode)
INT
New direction: 1= forward, -1= backward
DINT
New counter value
DINT
New reference value
Easy Book
Manual, 11/2009, A5E02486774-01

Advertisement

Table of Contents
loading

Table of Contents