EtherCAT:EC USER PREOP CONFIG/zh-hans

From SoftMC-Wiki
< EtherCAT:EC USER PREOP CONFIG
Revision as of 08:47, 7 May 2017 by Chi (talk | contribs) (Created page with "{{Languages}} == 描述 == EtherCAT从站配置必须小心。 一些配置必须在从站处于PREOP模式时进行,有些配置在从站处于SAFEOP模式时完成。 ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
语言: English  • 中文(简体)‎

描述

EtherCAT从站配置必须小心。 一些配置必须在从站处于PREOP模式时进行,有些配置在从站处于SAFEOP模式时完成。

该函数及其对应的EC_USER_SAFEOP_CONFIGEC_USER_OP_CONFIG在库EC_USER.LIB中实现。 这些功能的目的是允许用户添加自己的代码来进行EtherCAT从站的具体配置。

当从站仍处于PREOP模式时,EC USER PREOP CONFIG(从站地址)被调用。

输入

Slave address

输出

None

返回值

成功返回0, 失败返回-1. 用户可以更改

声明

public function EC_USER_PREOP_CONFIG(byval slave_addr as long) as long

格式

retVal = EC_USER_PREOP_CONFIG(<Slave address>)

例子

for i = 1 to NUM_OF_SLAVES
	retVal = EC_USER_PREOP_CONFIG(i)
next

参见