由於S7-1200是內建RJ45的Ethernet,所以兩台以上的PLC,要做資料交換當然是使用Switch。
所以西門子已提供範例程式,供各位看倌參考囉!

----------------------------------------------------------------------------------------------------------------------------------------------

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下載點

Content of the downloads下載內容說明

下載

Configuration Example 17 V1.1 (Description)
CE-X17範例說明
Startup Code V1.0 with control program for task A (necessary software: STEP 7 Basic V10.5)
第一個範例A
Startup Code V1.0 with control program for task B (necessary software: STEP 7 Basic V10.5)
第二個範例B



------------------------------------------------------------------------------------------------------------------------------------------

Siemens SIMATIC PLC S7-400 S7-300 S7-1200 S7-200 LOGO HMI 西門子 自動化

相關文章

兩台S7-200透過乙太網路模組進行資料交換


文章標籤
全站熱搜
創作者介紹
創作者 Bob 的頭像
Bob

鮑伯的PLC事件 (Bob's Blog)

Bob 發表在 痞客邦 留言(0) 人氣(4)