Difference between revisions of "EtherCAT:EC SLAVE NMT STATESET"
m (Miborich moved page Axystems:EtherCAT:EC SLAVE NMT STATESET to EtherCAT:EC SLAVE NMT STATESET: Global renaming of Axystems: namespace into (Main):) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{Languages|EtherCAT:EC_SLAVE_NMT_STATESET}} |
+ | {{Template:EtherCAT-Function | ||
|DESCRIPTION= | |DESCRIPTION= | ||
− | This function attempts up to 10 times to set the slave's operational state and throws an exception if it fails. | + | This function attempts up to 10 times to set the slave's operational state, and throws an exception if it fails. |
|INPUT= | |INPUT= | ||
Line 25: | Line 26: | ||
|SEE ALSO= | |SEE ALSO= | ||
− | * [[ | + | * [[EtherCAT:EC SLAVE SET STATE|EC_SLAVE_SET_STATE]] |
* [[EtherCAT:EC SLAVE GET STATE|EC_SLAVE_GET_STATE]] | * [[EtherCAT:EC SLAVE GET STATE|EC_SLAVE_GET_STATE]] | ||
}} | }} |
Latest revision as of 06:46, 7 May 2017
Language: | English • 中文(简体) |
---|
This function attempts up to 10 times to set the slave's operational state, and throws an exception if it fails.
Input
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
Output
None
Return Value
None
Declaration
public sub EC_Slave_NMT_StateSet(byval slaveaddr as long, byval new_state as long)
Examples
call EC_Slave_NMT_StateSet(slaveaddr, EC_STATE_PREOP)