圖片:
圖片:
圖片:
圖片:
圖片:
圖片:
西門子PLC寫重復(fù)指令調(diào)試比較復(fù)雜,需要循環(huán)內(nèi)部還可以嵌入循環(huán),最近調(diào)試好了循環(huán)內(nèi)嵌套98次循環(huán)的重復(fù)指令。
重復(fù)指令類似于For循環(huán),重復(fù)指令內(nèi)部嵌套重復(fù)指令,嵌套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 三軸平臺(tái)物料,用基恩士PLC寫二次編程,
陣列指令 ,平面直線插補(bǔ)指令,平面畫圓指令 空間直線插補(bǔ)指令 空間畫圓指令 空間螺旋指令也在編寫。
[ 此帖被hezhen880924在2024-08-02 10:24重新編輯 ]