Instructions For Reading The Diagnostic Status Of The Devices; High-Speed Counter (Hsc) - Siemens SIMATIC S7-1200 Manual

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

Advertisement

6.5.4.2

Instructions for reading the diagnostic status of the devices

STEP 7 also includes instructions for reading the status information that is provided by the
hardware devices on your network.
Table 6- 26
Diagnostic instructions
LAD / FBD
6.6

High-speed counter (HSC)

Use the high-speed counters (HSC) for counting events that occur faster than the OB
execution rate. The CTRL_HSC instruction controls the operation of the HSC.
Note
If the events to be counted occur within the execution rate of the OB, use CTU, CTD, or
CTUD counter instructions. If the events occur faster than the OB execution rate, then use
the HSC.
You configure the parameters for each HSC in the device configuration for the CPU:
counting mode, I/O connections, interrupt assignment, and operation as a high-speed
counter or as a device to measure pulse frequency.
Easy Book
Manual, 11/2011, A5E02486774-04
SCL
ret_val := #GET_DIAG(
mode:=_uint_in_,
laddr:=_hw_any_in_,
channel:=_uint_in_,
cnt_diag=>_uint_out_,
diag:=_uint_inout_,
detail:=_variant_inout_);
ret_val := DeviceStates(
laddr:=hw_io_in_,
mode:=_uint_in_,
state:=_variant_inout_);
ret_val := ModuleStates(
laddr:=_hw_io_in_,
mode:=_uint_in,
state:=_variant_inout);
Programming made easy
6.6 High-speed counter (HSC)
Description
The GET_DIAG instruction reads the diagnostic
information from a specified hardware device.
The DeviceStates instruction reads the status of
the PROFINET IO or PROFIBUS DP devices.
The ModuleStates instruction reads the status of
the PROFINET IO devices.
115

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents