Load A New Preset Value (Any Mode); Disable A High-Speed Counter (Any Mode) - Siemens SIMATIC S7-200 System Manual

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

Advertisement

SIMATIC Instructions

Load a New Preset Value (Any Mode)

The following steps describe how to change the preset value of HSC1 (any mode):
1.
Load SMB47 to write the desired preset value:
SMB47 = 16#A0 Enables the counter
2.
Load SMD52 (double word size value) with the desired preset value.
3.
Execute the HSC instruction to cause the S7-200 to program HSC1.

Disable a High-Speed Counter (Any Mode)

The following steps describe how to disable the HSC1 high-speed counter (any
mode):
1.
Load SMB47 to disable the counter:
SMB47 = 16#00 Disables the counter
2.
Execute the HSC instruction to disable the counter.
Although the above sequences show how to change direction, current value, and
preset value individually, you may change all or any combination of them in the
same sequence by setting the value of SMB47 appropriately and then executing
the HSC instruction.
9-46
Writes the new preset value
S7-200 Programmable Controller System Manual
A5E00066097-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents