Siemens PLC Learning note 10-(counter)

Source: Internet
Author: User

The s7-300/400 counter typically accounts for two bytes and is 16 bits. The CPU can use a maximum of 64~512 counters with the counter address number c0~c511

1.s_cud (plus and minus counter)


Add and subtract counter waveform diagram:


2.S_CU (plus counter)


3.S_CD (minus counter)


4. Three kinds of counters corresponding to the coil representation

1) Basic Coil instruction


2) Implementation of the plus count instruction


3) Reduce the count of instructions to achieve:


4) The addition and subtraction of the Count command to achieve:


5. Small example of counter application

The following program is implemented: When the button is pressed 3 This, the output high level; When pressed 7 times, the output low level


Siemens PLC Learning note 10-(counter)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.