EtherCAT:EC SET BUS CYCLETIME

From SoftMC-Wiki
Jump to: navigation, search
Language: English  • 中文(简体)‎

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