PLC間通訊之第二集

2026/1/29 10:49:21

    PLC1采集PLC2的時(shí)鐘寄存器字節(jié),提取其中三個(gè)比特位來(lái)控制3個(gè)燈負(fù)載的亮滅,3個(gè)燈負(fù)載有亮滅變化基本就確定通訊成功。

    PLC2側(cè):提供數(shù)據(jù)源。

一:硬件組態(tài)及建立連接

    PLC2 IP地址為192.168.5.2,網(wǎng)關(guān)192.168.5.1;

二:PLC2側(cè)配置

三:PLC1側(cè)配置

四:三層設(shè)備配置(XM400)

    1、System-Ports修改端口模式

    添加端口IP地址做為PLC的網(wǎng)關(guān)

0 (2).png

0 (3).png

燈亮滅交替變化。

PS:XM400交換機(jī)是控制網(wǎng)絡(luò)和IT網(wǎng)絡(luò)連接的堅(jiān)實(shí)的橋梁,全千兆卡軌式。XM400根植于Profinet,兼容Ethernet/IP,向后兼容IPv6。

<p pingfang="" sc",="" system-ui,="" -apple-system,="" blinkmacsystemfont,="" "helvetica="" neue",="" "hiragino="" sans="" gb",="" "microsoft="" yahei="" ui",="" yahei",="" arial,="" sans-serif;="" font-size:="" 17px;="" letter-spacing:="" 0.544px;="" text-align:="" justify;="" text-wrap-mode:="" wrap;="" background-color:="" rgb(255,="" 255,="" 255);="" visibility:="" visible;="" box-sizing:="" border-box="" !important;="" overflow-wrap:="" break-word="" !important;"="">

審核編輯(
王靜
)

提交

查看更多評(píng)論