Difference between revisions of "EtherCAT:EC SET BUS CYCLETIME"
(Created page with "{{Template:EtherCAT-Function |DESCRIPTION= This function sets the motion bus cycle time. It is invoked from within the context of EC_SETUP.PRG...") |
m |
||
Line 5: | Line 5: | ||
|INPUT= | |INPUT= | ||
− | Motion cycle time: | + | Motion cycle time: 4000 μs, 2000 μs, 1000 μs, 500 μs or 250 μs. |
− | If | + | If 500 μs or 250 μs cycle time is chosen, add to /FFS0/FWCONFIG the line: hpetfreq = 2000 |
|OUTPUT= | |OUTPUT= |
Revision as of 13:40, 13 January 2015
This function sets the motion bus cycle time. It is invoked from within the context of EC_SETUP.PRG before EC_SET_CYCLE and EC_STARTMASTER are invoked.
Input
Motion cycle time: 4000 μs, 2000 μs, 1000 μs, 500 μs or 250 μs. If 500 μs or 250 μs cycle time is chosen, add to /FFS0/FWCONFIG the line: hpetfreq = 2000
Output
None
Return Value
None
Declaration
public sub EC_SET_BUS_CYCLETIME(byval cycle_time as long)
Syntax
call EC_SET_BUS_CYCLETIME(<cycle_time>)
Examples
call EC_SET_BUS_CYCLETIME(4000)
See Also
- EC_GET_BUS_CYCLETIME
- Setup EtherCAT - How to setup EtherCAT