图片:
图片:
图片:
图片:
图片:
图片:
西门子PLC写重复指令调试比较复杂,需要循环内部还可以嵌入循环,最近调试好了循环内嵌套98次循环的重复指令。
重复指令类似于For循环,重复指令内部嵌套重复指令,嵌套98次循环如下面For循环的嵌套:
FOR _counter_ := _start_count_ TO _end_count_ DO
FOR _counter_ := _start_count_ TO _end_count_ DO
FOR _counter_ := _start_count_ TO _end_count_ DO
FOR _counter_ := _start_count_ TO _end_count_ DO
FOR _counter_ := _start_count_ TO _end_count_ DO
FOR _counter_ := _start_count_ TO _end_count_ DO
FOR _counter_ := _start_count_ TO _end_count_ DO
FOR _counter_ := _start_count_ TO _end_count_ DO
中间还有90次For循环;
END_FOR;
END_FOR;
END_FOR;
END_FOR;
END_FOR;
END_FOR;
END_FOR;
END_FOR;
虽然手上只有西门子PLC,后面再买基恩士KV5500+KV MC40V 三轴平台物料,用基恩士PLC写二次编程,
阵列指令 ,平面直线插补指令,平面画圆指令 空间直线插补指令 空间画圆指令 空间螺旋指令也在编写。
[ 此帖被hezhen880924在2024-08-02 10:24重新编辑 ]