我們的品牌

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

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

歡迎訪問我們的網站
		
我们今天能为您提供什么帮助?
Does the M221 controller support read Modbus request with object %I (FC02)?
  • M221 acting as Modbus Master or Modbus TCP Client and sending a read request:

When executing the Read_Var function block with the parameter ObjType defined as %I, according SoMachine/Machine Expert - Basic Help:

ObjType: The type of objects to read can be:
  • 0 : %MW (Mbs 0x03): memory words (default)
  • 1 : %I (Mbs 0x02): input bits
  • 2 : %M or %Q (Mbs 0x01): internal or output bits
  • 3 : %IW (Mbs 0x04): input words
The types of Modbus read function codes are:
  • Mbs 0x03: equivalent to Modbus function code FC03
  • Mbs 0x02: equivalent to Modbus function code FC02
  • Mbs 0x01: equivalent to Modbus function code FC01
  • Mbs 0x04: equivalent to Modbus function code FC04

Depending on the type of slave and the slave address, an internal bit should be a %M or %Q; an input bit should be a %I or %S, an input register should be a %IW or a %SW and an internal register should be a %MW or a %QW.


If the Slave device or Modbus Server supports the Modbus request FC02 and provides the content of its %Ix values within the response, then the M221 will find within the %MW reception table (defined by the parameter IndexData) the values of %I inputs of the device.

  • M221 acting as Modbus Slave or Modbus TCP Server and receiving a read request:

When receiving a read Modbus request with a Modbus function code 02, the M221 behaves same as it received a read Modbus request with a Modbus function code 01. In consequence,  it will provide into the response the content of its %Mx internal bits area.

Explanation:
The M221 does not support read %I request, but instead of rejecting the function code FC02, it has been decided to provide the same response content as when receiving Modbus function code FC01 (also to have the same behavior as a Twido PLC application) with %M values.

Note:
The above explanations are valid for both Modbus RTU and Modbus TCP/IP communications.

施耐德電機Taiwan

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

需要協助?

  • 產品選型工具

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

  • 取得報價

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

  • 購買地點

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

  • 支援中心

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

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