我們的品牌

Impact-Company-Logo-English Black-01-177x54

歡迎造訪施耐德電機全球網站

歡迎訪問我們的網站
		
我们今天能为您提供什么帮助?
Setting up a READ_REG block in Unity Pro to read data over Ethernet from a Quantum NOE.

Goals and Symptoms

Unity Pro Quantum NOE READ_REG

Causes and Fixes

Start by creating an Ethernet network in Unity. Go to Communication > Networks, Right click and choose New Network.
Choose Ethernet and name the network.



Next configure the network as needed for your application. Be sure to choose the correct Model Family for the Ethernet interface you will be using.
Don't forget to validate your changes.



Next link the network to the Ethernet port of your module by double clicking on the port in the configuration and then choosing the network name.
Once again don't forget to validate your changes.





Open the Variable Declaration and create the following variables.
Note: The RD_Data & Slave_Addr variables are located.



The RD_Data variable is the memory location to where the slave data will be stored in the Quantum.
The Slave_Addr variable is an Array of 5 words where the high byte of the first word is the physical slot that the Ethernet module is in the backplane and the low byte is modbus mapping index.
The remaining 4 words are the IP address of the slave device. In this case 192.168.40.7
Note: If using the embedded port of a Unity Quantum the high byte of the first word should be FE

Next create a new project section, choose a language, and name the section.



In this section add a READ_REG block and link the variables as shown.



The SLAVEREG pin is the starting address in the Slave device from which the data will be read. In this case %MW1500.
The NO_REG pin is the # of registers to be read.
Note: If reading more than 1 register then the RD_Data variable must be an located Array of INT with a length equal to the # of registers to be read.

Build, download and run the program.


施耐德電機Taiwan

探索更多
系列:
探索更多
系列:

需要協助?

  • 產品選型工具

    快速輕鬆地為您的應用找到合適的產品和附件。

  • 取得報價

    立即線上提交您的銷售需求,專業團隊將主動聯繫您。

  • 購買地點

    輕鬆在您所在地區找到最近的施耐德電機經銷商。

  • 支援中心

    在同一位置找到滿足您所有需求的支援資源。

  • 產品文檔
  • 軟體下載
  • 產品選型工具
  • 產品替代和替換
  • 幫助和聯絡中心
  • 尋找我們的辦公室
  • 取得報價
  • 人才招募
  • 公司簡介
  • 舉報不當行為
  • 無障礙
  • 新聞中心
  • 投資者
  • 專業洞察
  • 台灣施耐德電機學院
  • 綠色影響力落差調查
  • Schneider Go Green 2025
  • 隱私政策
  • Cookie通告
  • 使用條款
  • Change your cookie settings