EtherCAT Async SDO Download
将数据异步传输至由服务数据对象表示的下级设备
库:
Simulink Real-Time /
EtherCAT
描述
EtherCAT Async SDO Download 模块根据指定 EtherCAT® 从属设备中的 Index 值选择一个 CANopen 寄存器,并发送写入请求。随后,该模块会立即继续处理其输入数据。
示例
EtherCAT Protocol with Beckhoff Analog IO Subordinate Devices EL3062 and EL4002
Communicate with EtherCAT devices using the Beckhoff® analog I/O terminals EL3062 and EL4002.
EtherCAT Protocol with Beckhoff Digital IO Subordinate Devices EL1004 and EL2004
Communicate with EtherCAT devices using the Beckhoff digital I/O terminals EL1004 and EL2004.
EtherCAT Protocol Sequenced Writing SoE Subordinate Device Configuration Variables
Use SoE blocks and a simple state machine to write configuration values to variables that can only be written before going to EtherCAT Op state.
EtherCAT Protocol Sequenced Writing CoE Subordinate Device Configuration Variables
Use CoE blocks and a simple state machine to write configuration values to variables that can only be written before going to EtherCAT Op state.
EtherCAT Protocol Detect Network Failure and Reset
Use the EtherCAT Notifications block to detect a failure in the connected network and to restart the network when the failure is corrected.
EtherCAT Protocol Motor Velocity Control with Accelnet Drive
Control the velocity of a motor by using EtherCAT communication.
EtherCAT Protocol Motor Position Control with Accelnet Drive
Control the position of a motor by using EtherCAT communication.
端口
输入
用于写入 EtherCAT 从属设备的输入数据。
值 0 将禁用下载功能。当该值大于或等于 1 时,该模块即可下载数据。
输出
异步数据传输的状态:
0— 邮箱传输对象处于空闲状态,传输未运行1— 邮箱传输对象正在运行,传输尚未完成2— 传输已成功执行3— 传输请求过程中发生错误
如果未发生错误,该端口将发送 0。否则,它将发送非零值。有关错误代码列表,请参阅 EtherCAT Error Codes。
参数
请指定 CANopen 寄存器的十六进制(例如 0x7)或十进制索引。
如果指定了无效的索引,该模块将通过 Status 输出返回 3,并通过 Error 输出返回一个非零值。
编程用法
模块参数:index |
当 Access Mode 为 Complete Access 时,CoE 访问变量的协议规定:
通过单个终端设备,访问 CoE 字典中与单个索引关联的所有子索引。
在读取或写入单个子索引所需的时间内,读取或写入所有子索引。
在写入调优参数集时,同时更新所有子索引
捕获所有子索引的并发读取操作
允许使用需要完全访问权限进行配置的 EtherCAT 设备
编程用法
模块参数:complete |
请指定 CANopen 寄存器的十六进制(例如 0x7)或十进制子索引。
如果指定了无效的子索引,该模块将通过 Error 输出返回一个非零值。
编程用法
模块参数:subIndex |
从列表中选择 CANopen 寄存器的数据类型。
如果选择的数据类型与条目的类型不匹配,该模块将通过 Error 输出返回一个非零值。
编程用法
模块参数:sig_type |
请指定 CANopen 寄存器的行和列维度。
请输入该从属设备手册中 CoE 描述中所列的向量长度。
编程用法
模块参数:sig_dim |
要将一个模块与 EtherCAT 网络关联,请将代表该网络的 EtherCAT Init 模块中的 Network Device Index 值输入到该模块的 Network Device Index 中。
编程用法
模块参数:device_id |
从列表中选择包含 CANopen 寄存器的设备名称。
该模块会将配置文件中的内容填入此下拉列表中。
编程用法
模块参数:subdevice_name |
输入基本采样时间或其倍数。-1 表示采样时间被继承。
编程用法
模块参数:sample_time |
扩展功能
C/C++ 代码生成
使用 Simulink® Coder™ 生成 C 代码和 C++ 代码。
版本历史记录
在 R2020b 中推出您可以为 EtherCAT Async SDO Upload 模块和 EtherCAT Async SDO Download 模块选择访问模式。
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
- América Latina (Español)
- Canada (English)
- United States (English)
欧洲
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)







