西门子PLC限幅器功能块的详细算法介绍和源代码,请查看下面文章链接:
https://rxxw-control.blog.csdn.net/article/details/128701050https://rxxw-control.blog.csdn.net/article/details/128701050信捷PLC限幅器功能块
https://rxxw-control.blog.csdn.net/article/details/131896752https://rxxw-control.blog.csdn.net/article/details/131896752
IF INPUT>=Lower AND INPUT<=Upper THEN OUTPUT:=INPUT; END_IF; IF INPUT>Upper THEN OUTPUT:=Upper; END_IF; IF INPUT<Lower THEN OUTPUT:=Lower; END_IF;