在某些應用中可能需要將信號集中再同一個Word裡,或一個Word控制多個信號。
那麼有沒有比較簡單的指令呢?
其實這只是資料的搬移,不過西門子還是提供了Library,讓使用者更加簡單的在STEP7 Basic裡使用。
此檔提供了兩個FC
"Word to Bool" function [FC1] you can extract up to 16 signals
"Bool to Word" function [FC2] groups up to 16 bits in one word
下載後請使用STEP7 Basic開啟後,自行轉成Global Library。
那麼有沒有比較簡單的指令呢?
其實這只是資料的搬移,不過西門子還是提供了Library,讓使用者更加簡單的在STEP7 Basic裡使用。
此檔提供了兩個FC
"Word to Bool" function [FC1] you can extract up to 16 signals
"Bool to Word" function [FC2] groups up to 16 bits in one word
下載後請使用STEP7 Basic開啟後,自行轉成Global Library。
------------------------------------------------------------------------------------------------------------------------------------------
Siemens SIMATIC PLC S7-400 S7-300 S7-1200 S7-200 LOGO HMI 西門子 自動化
全站熱搜
留言列表