圖片:
圖片:
圖片:
圖片:
圖片:
圖片:
西門子PLC寫重復指令調試比較復雜,需要循環(huán)內部還可以嵌入循環(huán),最近調試好了循環(huán)內嵌套98次循環(huán)的重復指令。
重復指令類似于For循環(huán),重復指令內部嵌套重復指令,嵌套98次循環(huán)如下面For循環(huán)的嵌套:
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循環(huán);
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重新編輯 ]