Difference between revisions of "EtherCAT:EC SLAVE NMT STATESET/zh-hans"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with "{{Languages}} == 描述 == 此功能最多可以尝试设置从机的运行状态10次,如果失败,则会抛出异常。 == 输入 == Axis' address (example: Ax.dAdd), ...")
 
m
 
Line 1: Line 1:
{{Languages}}
+
{{Languages|EtherCAT:EC_SLAVE_NMT_STATESET}}
  
 
== 描述 ==
 
== 描述 ==
Line 19: Line 19:
 
== 声明 ==
 
== 声明 ==
 
public sub EC_Slave_NMT_StateSet(byval slaveaddr as long, byval new_state as long)
 
public sub EC_Slave_NMT_StateSet(byval slaveaddr as long, byval new_state as long)
 
  
 
== 例子 ==
 
== 例子 ==

Latest revision as of 06:50, 7 May 2017

语言: English  • 中文(简体)‎

描述

此功能最多可以尝试设置从机的运行状态10次,如果失败,则会抛出异常。

输入

Axis' address (example: Ax.dAdd), new state as long where:
EC_STATE_INIT - 0x01
EC_STATE_PREOP - 0x02
EC_STATE_SAFEOP - 0x04
EC_STATE_OP - 0x08

输出

None

返回值

None

声明

public sub EC_Slave_NMT_StateSet(byval slaveaddr as long, byval new_state as long)

例子

call EC_Slave_NMT_StateSet(slaveaddr, EC_STATE_PREOP)

参见