我們的品牌

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

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

歡迎訪問我們的網站
		
我们今天能为您提供什么帮助?
How to write to the coils of a Quantum PLC using a WRITE_VAR

Issue
How to write to the coils of a Quantum PLC using a WRITE_VAR

Product Line
PL7 and UNITY

Environment
Windows 7, Windows 10

Resolution
The following example demonstrates how to use a WRITE_VAR to write to the coils of a Modicon
Qunatum PLC, using an '140NOE771xx' Ethernet module.

WRITE_VAR(ADR#{3.120}4.0.1,'%M',22,4,%MW920:1,%MW925:4)

Writes coil 000023 through 000026 in a Quantum PLC that is configured for Modbus address 20.

Expression (3.120) instructs the WRITE_VAR to send the command out of XWAY address 3.120.
A value of 100 is added to the Modbus address for defining the XWAY address to a Modbus device.
The XWAY address must also be defined in the 'Connection Configuration' table of the Premium
Ethernet module device port configuration.

Expression 4.0.1 invokes the WRITE_VAR command to send the data out of
'Module 4', 'Channel 0', 'Sender address Ad0=1' in the Premium PLC. For a Modicon
device, the Sender address Ad0 is alsways equal to 1.

Expression '%M',22,4 will write four bits to coil 000023 through coil 0000026 in the Quantum PLC. The
reason for the offset is because Premium starts of with internal bit %M0 and the Quantum starts with
coil 000001.

Expression %MW920:1 is used for the starting word of the 'Transfer Table' with a length of 1 word. The
bit structure is reversed for the transfer table. (i.e., word 920 is represented as 2#0000 0000 0000 1111
in the PL7 animation table for the four bits written in the above instruction.

Expression %MW925:4 is the starting word for the 'Management Word' table with a length of 4 words.

施耐德電機Taiwan

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

需要協助?

  • 產品選型工具

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

  • 取得報價

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

  • 購買地點

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

  • 支援中心

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

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