Difference between revisions of "EtherCAT:EC REMAP MINIMUM PDOS"
(Created page with "{{Template:EtherCAT-Function |DESCRIPTION= This subroutine remaps the PDO's of a certain drive to the required minimum objects that allow sync position mode. {{Note/Importa...") |
|||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| + | {{Languages|EtherCAT:EC_REMAP_MINIMUM_PDOS}} | ||
{{Template:EtherCAT-Function | {{Template:EtherCAT-Function | ||
|DESCRIPTION= | |DESCRIPTION= | ||
| − | This subroutine remaps the PDO's of a certain drive to the required minimum objects that allow sync position mode. | + | This subroutine remaps the PDO's of a certain drive to the required minimum objects that allow sync position mode.<br/> |
| + | These objects are:<br/> | ||
| + | Rx - Control Word 0x6040;0x0, Position Command 0x607A;0x0<br/> | ||
| + | Tx - Status Word 0x6041;0x0, Position Feedback 0x6064;0x0, Digital Inputs 0x60FD;0x0<br/> | ||
| + | Use this subroutine when integrating a softMC with a new or unknown motion drive to make sure it has the required minimum PDO entries to allow sync position motion. | ||
| + | |||
| + | {{Note| | ||
| + | Use this subroutine as an example how to create you own PDO mapping}} | ||
{{Note/Important| | {{Note/Important| | ||
| − | This subroutine must be invoked before [[:Category:EtherCAT:EC SETUP|EC_SETUP.PRG]] | + | This subroutine must be invoked before [[:Category:EtherCAT:EC SETUP|EC_SETUP.PRG]] is executed, or right at the beginning of it, to allow MC to first rescan the slaves and get updated with the new PDO mapping of the devices}} |
|INPUT= | |INPUT= | ||
| − | + | Slave address | |
| − | |||
|OUTPUT= | |OUTPUT= | ||
| Line 20: | Line 27: | ||
|DECLARATION= | |DECLARATION= | ||
| − | + | Public Sub EC_REMAP_MINIMUM_PDOS(byval drive_addr as long) | |
|SYNTAX= | |SYNTAX= | ||
| − | call | + | call EC_REMAP_MINIMUM_PDOS(<Slave address>) |
|EXAMPLE= | |EXAMPLE= | ||
| − | call | + | call EC_REMAP_MINIMUM_PDOS(2) |
|SEE ALSO= | |SEE ALSO= | ||
| − | |||
* [[:Category:EtherCAT:EC SETUP|Setup EtherCAT]] - How to setup EtherCAT | * [[:Category:EtherCAT:EC SETUP|Setup EtherCAT]] - How to setup EtherCAT | ||
}} | }} | ||
Latest revision as of 14:47, 6 May 2017
| Language: | English • 中文(简体) |
|---|
This subroutine remaps the PDO's of a certain drive to the required minimum objects that allow sync position mode.
These objects are:
Rx - Control Word 0x6040;0x0, Position Command 0x607A;0x0
Tx - Status Word 0x6041;0x0, Position Feedback 0x6064;0x0, Digital Inputs 0x60FD;0x0
Use this subroutine when integrating a softMC with a new or unknown motion drive to make sure it has the required minimum PDO entries to allow sync position motion.
| NOTE | |
| Use this subroutine as an example how to create you own PDO mapping |
| IMPORTANT | |
| This subroutine must be invoked before EC_SETUP.PRG is executed, or right at the beginning of it, to allow MC to first rescan the slaves and get updated with the new PDO mapping of the devices |
Input
Slave address
Output
None
Return Value
None
Declaration
Public Sub EC_REMAP_MINIMUM_PDOS(byval drive_addr as long)
Syntax
call EC_REMAP_MINIMUM_PDOS(<Slave address>)
Examples
call EC_REMAP_MINIMUM_PDOS(2)
See Also
- Setup EtherCAT - How to setup EtherCAT