Technology instructions
10.1 Counting (High-speed counters)
S7-1200 Programmable controller
584 System Manual, V4.2, 09/2016, A5E02486680-AK
Legacy CTRL_HSC (Control high-speed counter) instruction
10.1.4.1
Table 10- 12 CTRL_HSC instruction (For general purpose counting)
hsc:=W#16#0,
dir:=False,
cv:=False,
rv:=False,
period:=False,
new_dir:=0,
new_cv:=L#0,
new_rv:=L#0,
new_period:=0,
busy=>_bool_out_,
Each CTRL_HSC (Control high-speed
counter) instruction uses a structure
stored in a DB to maintain counter data.
You assign the DB when the CTRL_HSC
instruction is placed in the editor.
When you insert the instruction, STEP 7 displays the "Call Options" dialog for creating the associated DB.
2
In the SCL example, "CTRL_HSC_1_DB" is the name of the instance DB.