Siemens PLC high-speed counter preset value can be zero right?

Siemens PLC high-speed counter preset value can be set to zero, the purpose you want to use based on the high-speed counter.

every one has a 32-bit high-speed counter current value and a 32-bit preset value,Current and preset values ​​are unsigned integer value.
All counter modes are supported by the current value equal to preset interrupt,
The use of external inputs counter mode support recovery will recover active external interrupt. In addition to modes 0, 1 and 2 except that all counter mode support count direction change interrupt. These can be individually enabled or disabled interrupt condition. To read the value HC0, HC4, and You can use to send commands directly in the main program can be friends.
For example:
LD SM0.0
MOVD HC0, MD0
Or
LD SM0.0
MOVD HC4, MD4
For example:
LD SM0.0
MOVD HC0, MD0
Or
LD SM0.0
MOVD HC4, MD4

Leave a Reply

Your email address will not be published. Required fields are marked *