Difference between revisions of "EtherCAT:EC SET BUS CYCLETIME"

From SoftMC-Wiki
Jump to: navigation, search
(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: 4000us, 2000us, 1000us, 500us or 250us.
+
Motion cycle time: 4000 μs, 2000 μs, 1000 μs, 500 μs or 250 μs.
If 500us or 250us cycle time is chosen, add to /FFS0/FWCONFIG the line: hpetfreq = 2000
+
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