我們的品牌

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

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

歡迎訪問我們的網站
		
我们今天能为您提供什么帮助?
Unity Pro : why the mapping of DDT can be different between M580/M340 and simulator.

It is due to the storage alignment in M580/M340.
To be sure that the application does not contain such problem, check in the "Project setting" in the "General Tab" and the "Warning field", the "DDT Mapping Compatibility" option. With this option on a build, a warning will be displayed if the mapping is different between M580/M340 and simulator.

Example of mapping difference :
On simulator :
Inst_my_DDT My_DDT %MW10
- My_word INT %MW10
- my_Dword DINT %MW11

On M340/M580 :
Inst_my_DDT My_DDT %MW10
- My_word INT %MW10
- my_Dword DINT %MW12 <= mapping rule

To avoid this kind of situation it is advised to put all double words (Real, DINT... at the begining of the DTT it is also a way to optimize the number of %MW consumed).

Here after extract of the documentation which explains the M580/M340 mapping rule :

Principle for Modicon M580/M340

The storage principle for Modicon M580/M340 PLCs is as follows:
- Elements are stored in the order in which they are declared in the structure,
- The basic element is the byte,
- One alignment rule and function of the element:
- the BOOL and BYTE types are aligned on either even or uneven bytes,
- the INT, WORD and UINT types are aligned on even bytes,
- the DINT, UDINT, REAL, TIME, DATE, TOD, DT and DWORD are aligned on double words,
- structures and tables are aligned according to the rules of their elements

Warning :
Bad exchanges between a Modicon M580/M340 project and a Premium or Quantum project.
Check if the structure of the exchanged data have the same alignments in the two projects.
Otherwise, the data will not be exchanged properly.
Failure to follow these instructions can result in death, serious injury, or EQUIPMENT damage.

Note: It is possible that the alignment of data are not the same when the project is transferred from the simulator of Unity Pro to a M580/M340 PLC. So check the structure of the data of the project.
Note: Unity Pro indicates where the alignments seems to be different. Check the corresponding instances in the data editor. See the page of Project settings to know how enable this option.

施耐德電機Taiwan

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

需要協助?

  • 產品選型工具

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

  • 取得報價

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

  • 購買地點

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

  • 支援中心

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

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