Difference between revisions of "EtherCAT:EC USE SLAVE"

From SoftMC-Wiki
Jump to: navigation, search
m (Text replace - "Axystems:" to "")
Line 3: Line 3:
 
|DESCRIPTION=
 
|DESCRIPTION=
 
This subroutine notifies the master with which slaves to use (out of the entire topology) according to their address.<br/>
 
This subroutine notifies the master with which slaves to use (out of the entire topology) according to their address.<br/>
I receives a string that indicates the slave's type. There are two possible types:<br/>
+
It receives a string that indicates the slave's type. There are two possible types:<br/>
 
"ECAT_AXIS_SLAVE" - This string indicates that the slave is a motion drive<br/>
 
"ECAT_AXIS_SLAVE" - This string indicates that the slave is a motion drive<br/>
 
"ECAT_IO_SLAVE" - This string indicates that the slave is a IO module<br/>
 
"ECAT_IO_SLAVE" - This string indicates that the slave is a IO module<br/>

Revision as of 08:39, 14 August 2014

This subroutine notifies the master with which slaves to use (out of the entire topology) according to their address.
It receives a string that indicates the slave's type. There are two possible types:
"ECAT_AXIS_SLAVE" - This string indicates that the slave is a motion drive
"ECAT_IO_SLAVE" - This string indicates that the slave is a IO module

Input

Slave address, vendor ID, product ID, slave type.

Output

None

Return Value

Void

Declaration

public sub EC_USE_SLAVE(byval slaveaddress as long, byval vendor as long, byval product as long, byval slave_type as string)

Syntax

call EC_USE_SLAVE(<slave address>, <slave vendor>, <slave product>, <slave type>)

Examples

call EC_USE_SLAVE(slaveAddr, slave0_vendor, slave0_product, "ECAT_AXIS_SLAVE")

See Also