Difference between revisions of "EtherCAT:EC SET CYCLETIME"

From SoftMC-Wiki
Jump to: navigation, search
m
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Axystems:Template:EtherCAT-Function
+
{{Languages|EtherCAT:EC_SET_CYCLETIME}}
 +
{{Template:EtherCAT-Advanced_Function
  
 
|DESCRIPTION=
 
|DESCRIPTION=
Set EtherCAT cycle time. Cycle time units are MICRO seconds [uSec].<br/>
+
Set EtherCAT cycle time to ALL the drives. Cycle time units are MICRO seconds [uSec].<br/>
 +
This subroutine is called from EC_SETUP.PRG. The user shouldn't invoke this subroutine.
 +
Global variable used: EC_BUS_CYCLETIME
  
 
|INPUT=
 
|INPUT=
Slaves' addresses array, new cycle time in MICRO seconds [uSec]
+
None
  
 
|OUTPUT=
 
|OUTPUT=
Line 14: Line 17:
  
 
|DECLARATION=
 
|DECLARATION=
public sub EC_SET_CYCLETIME(slave_addr[*] as long, byval user_cycletime as long) '[usec]
+
public sub EC_SET_CYCLETIME
  
 
|LIMITATIONS=
 
|LIMITATIONS=
Line 20: Line 23:
  
 
|SYNTAX=
 
|SYNTAX=
call EC_SET_CYCLETIME(<slaves' addresses array>, <user cycle time>)
+
call EC_SET_CYCLETIME
  
 
|EXAMPLE=
 
|EXAMPLE=
call EC_SET_CYCLETIME(EC_SLAVE_ADDRESSES, user_cycletime)
+
call EC_SET_CYCLETIME
  
 +
|SEE ALSO=
 +
* [[EtherCAT:EC_SET_BUS_CYCLETIME|EC_SET_BUS_CYCLETIME]]
 +
* [[EtherCAT:EC_GET_BUS_CYCLETIME|EC_GET_BUS_CYCLETIME]]
  
 
}}
 
}}

Latest revision as of 09:15, 7 May 2017

Language: English  • 中文(简体)‎

Set EtherCAT cycle time to ALL the drives. Cycle time units are MICRO seconds [uSec].
This subroutine is called from EC_SETUP.PRG. The user shouldn't invoke this subroutine. Global variable used: EC_BUS_CYCLETIME

Input

None

Output

None

Return Value

Void

Declaration

public sub EC_SET_CYCLETIME

Syntax

call EC_SET_CYCLETIME

Limitations

user_cycletime must be greater than 0, and in MICRO SECONDS

Examples

call EC_SET_CYCLETIME

See Also