範例:使用 EtherCAT 庫在非 QEC 上進行數位輸入/輸出

範例:使用 EtherCAT 庫在非 QEC 上進行數位輸入/輸出

[QEC教程]

This example shows how to operate QEC-M (EtherCAT Master) and non-QEC EtherCAT Slave (Digital Input & Output Modules) to perform basic applications and to see the actual physical Status: Control the connected external LEDs via the EtherCAT Digital Output Slave Modules and receive the status of their LEDs via the EtherCAT Digital Input Slave Modules.


Process Data Objects (PDOs) are process data transferred by EtherCAT slaves during each cycle, which are cyclically updated or sent to the slave by the application.

This API is a generic driver for EtherCAT Slave and can read or write PDO Inputs/Outputs.


As this document is a continuation of the ” EtherCAT Library範例: QEC的Digital Input/Output“, If you have any questions about the hardware in the tutorial, please read the EtherCAT Library example: Digital Input/Output for QEC.

軟體

硬體說明

  • QEC-M-01
  • QEC-R11DF0: EtherCAT 16數位輸入通道從站模組
  • QEC-R11D0F: EtherCAT 16數位輸出通道從站模組
  • 其他:
    • 網路線
    • 24V 2A 電源

如果這是您第一次運行 86Duino sketch,我們建議您在繼續之前查看如何 為 86Duino 設置 QEC-M-043T 。


教程


學習更多

你可以在下方找到更多關於QEC基礎應用的信息 EtherCAT應用.
You can also explore 程式語法參考 or 函式庫參考 for a more detailed collection of 86Duino IDE programming.

發表評論

上部へスクロール