我們的品牌

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

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

歡迎訪問我們的網站
		
我们今天能为您提供什么帮助?
How to get same DDT variables alignment between Simulator and M340/M580 PLC

Article available in these languages: 日文

M580 , M340 data are aligned on 32 bits, while Premium, Quantum and Unity Pro PLC Simulator are aligned on 16 bits
So on M580 and M340 , 32 bits data (DINT, REAL, UDINT) must only be aligned on even addresses (eg : %MW10), while on PLC simulator they can be aligned on even or odd (eg : %MW10 or %MW11).
Address of DINT, REAL or UDINT elements mapped in a DDT structure may change when the target is switched from real M580/M340 PLC  to Simulator.

It is possible to arrange DDT in order to have same DDT variable alignment between Simulator and M340/M580 PLC

For that you have to enable the Project setting General/Management of build messages “DDT mapping compatibility generates”,  doing this when an analyze is done potential difference between M580 and simulator are reported by a warning.
With these information for the DDT identified : you have to follow the rules written inside UP documentation: "DDT: Mapping Rules" and rearrange the elements
until not warning is reported.

For example:
my_DDT      %MW10
- W1 INT    %MW10
- DW1 DINT  %MW12

Message at the Built:
{MY_DDT.EN_US}            :              Memory mapping of my_DDT elements might be different between PLC families. Refer to mapping rules in the online help

Effectively with the simulator it becomes:
my_DDT      %MW10
- W1 INT    %MW10
- DW1 DINT  %MW11


if you re-arrange the DDT
my_DDT      %MW10
- DW1 DINT  %MW10
- W1 INT    %MW12

With the simulator it stays the same:
my_DDT      %MW10
- DW1 DINT  %MW10
- W1 INT    %MW12

Nevertheless the message will appears again because the DDT does not contain an even number of element.
The final DDT to be sure to have no difference is the following:

my_DDT      %MW10
- DW1 DINT  %MW10
- W1 INT    %MW12
- free INT  %MW13

Doing an Analyze no more message appears and you will be sure to have the same behaviour between simulator and PLC.

Note: in case you want to keep the initial order of the element  you can also define the DDT like this:
my_DDT      %MW10
- W1 INT    %MW10
- free INT  %MW11
- DW1 DINT  %MW12

施耐德電機Taiwan

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

需要協助?

  • 產品選型工具

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

  • 取得報價

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

  • 購買地點

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

  • 支援中心

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

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