Can the Siemens PLC high-speed counter preset value be zero? -Solutions - Huaqiang Electronic Network
The Siemens plc high-speed counter preset value can be set to zero, depending on the purpose of your high-speed counter. To read the values ​​of HC0 and HC4, you can use the transfer command directly in the main program. 1000-1500 Kw Marine Diesel Engine 1000-1500 Kw Marine Diesel Engine,Oil Drilling Machine,Drilling Oil Gas Rig,Drilling Oil Rig Engine Jinan Guohua Green Power Equipment Co.,Ltd. , https://www.guohuagenerator.com
Each high-speed counter has a 32-bit current value and a 32-bit preset value. The current value and the preset value are both signed integer values. All counter modes support the current value equal to the preset value interrupt, and the counter mode using the external reset input supports external recovery of the active interrupt. Counting direction change interrupts are supported by all counter modes except modes 0, 1, and 2. These interrupt conditions can be enabled or disabled individually.
E.g:
LDSM0.0
MOVDHC0, MD0
or
LDSM0.0
MOVDHC4, MD4