Technology instructions
10.1 Counting (High-speed counters)
S7-1200 Programmable controller
558 System Manual, V4.2, 09/2016, A5E02486680-AK
3. Create a global data block named "Data_block_1" (You can also use an existing global
data block.):
– Within "Data_block_1", locate an empty row and add a variable named "MyHSC".
– In the "Data type" column, add one of the following System Data Types (SDT). Select
the SDT that corresponds to the HSC’s configured type of counting. More HSC SDT
information can be found later in this section. The dropdown list does not contain
these types so ensure that you enter the SDT name exactly as shown: HSC_Count,
HSC_Period, or HSC_Frequency
– After you enter the data type, you can expand the "MyHSC" variable to see all the
fields contained in the data structure. Here, you can find the data type of each of the
fields and change the default starting values: