[PLC] St Language Five: STL/RET/CMP/ZCP

Source: Internet
Author: User

One: STL/RET/CMP/ZCP

Description: Simple Shun control instructions do not do other instructions.

Control requirements : None

Programming Ladder diagram:

Structured Programming ST Language:

(* Step instruction STL (EN,S); *) SET (M8002,S3); STL (TRUE,S3) m419:=true;out_t (TRUE,TC0,K10); SET (TS0,S20); STL (TRUE,S20); m420:=true;out_t (TRUE,TC1,K15); s3:=ts1; (* Step instruction ret (EN); *) ret (TRUE);(* Compare instruction CMP (EN,S1,S2,D); *) CMP (M37,K100,D51,M38); M421:=m37 and M38; M422:=m37 and M39; M423:=m37 and M40; (* interval comparison ZCP (en,s1,s2,s3,d); *) ZCP (M41,K5,K10,D52,M42); M424:=m41 and M42; M425:=m41 and M43; M426:=m41 and M44; ZCP (M45,K10,K5,D53,M46); M427:=m45 and M46; M428:=m45 and M47; M429:=m45 and M48;

  

[PLC] St Language Five: STL/RET/CMP/ZCP

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.