所以西門子已提供範例程式,供各位看倌參考囉!
----------------------------------------------------------------------------------------------------------------------------------------------
Automation task自動化需求:
Data is to be transferred between two S7-1200 CPUs via Ethernet.
The task is divided into the following two cases.
兩台S7-1200透過Ethernet網路,達到資料交換的需求.
資料交換有兩種不同方案.
Task 方案A
Independently of the data type, data with a fixed data length is to be transferred from one S7-1200 PLC to another.
單獨的資料格式且固定資料長度,由一台S7-1200傳到另一台PLC.
Task 方案B
A dynamically changeable number of data elements is to be transferred from one array of an S7-1200 PLC to another.
可變的資料區,以陣列的方式由一台S7-1200傳到另一台PLC.
架構圖
Automation solution 任務A
Using使用
-
◎the T communication blocks with integrated connection management (TSEND_C / TRCV_C)
主要指令:TSEND_C / TRCV_C -
◎via TCP
通訊協定:TCP -
◎2 bytes of absolutely addressed data
Automation solution 任務B
Using使用
-
◎the T communication blocks with manual connection management (TCON, TSEND, TRCV, TDISCON)
主要指令:TCON, TSEND, TRCV, TDISCON -
◎via ISO-on-TCP
通訊協定:ISO-on-TCP -
◎1 array with 3 elements of symbolically addressed data
Downloads下載點
------------------------------------------------------------------------------------------------------------------------------------------
Siemens SIMATIC PLC S7-400 S7-300 S7-1200 S7-200 LOGO HMI 西門子 自動化
相關文章