Difference between revisions of "MC-Basic:BUS.CYCLETIME"

From SoftMC-Wiki
Jump to: navigation, search
(Explaned dependency between bus[0] and bus[1] cycle time)
Line 10: Line 10:
 
Since Version 4.15.5 bus #0 is reserved for EtherCAT, bus #1 is reserved for CAN.<br>
 
Since Version 4.15.5 bus #0 is reserved for EtherCAT, bus #1 is reserved for CAN.<br>
 
Bus[0] provides master clock period, while bus[1] is slave to bus[0] and it value is set in integer multiplication of cycle time of bus[0].<br>
 
Bus[0] provides master clock period, while bus[1] is slave to bus[0] and it value is set in integer multiplication of cycle time of bus[0].<br>
For instance, is bus[0].cycletime is set to 2000, bus[1].cycletime can be set to 2000, 4000, 6000 uSecs.<br>
+
For instance, if bus[0].cycletime is set to 2000, bus[1].cycletime can be set to 2000, 4000, 6000, 8000 uSecs.<br>
  
 
|DESCRIPTION=
 
|DESCRIPTION=

Revision as of 14:31, 30 March 2016

Set or query automation bus cycle time.

Syntax

?BUS[<bus_number>].Cycletime
BUS[<bus_number>].Cycletime = <expression>

Availability

Since Version 4.9.11
Since Version 4.15.5 bus #0 is reserved for EtherCAT, bus #1 is reserved for CAN.
Bus[0] provides master clock period, while bus[1] is slave to bus[0] and it value is set in integer multiplication of cycle time of bus[0].
For instance, if bus[0].cycletime is set to 2000, bus[1].cycletime can be set to 2000, 4000, 6000, 8000 uSecs.

Type

<return value>: Long
<bus_number>: Long
<expression>: Long, Double

Units

Microseconds

Scope

Configuration, Task or Terminal

Limitations

EtherCAT: Object 0x60c2 shall be updated according to Master Cycle Time use EtherCAT:EC_SET_CYCLETIME to control cycle time.
CANopen: Object 0x60c2 shall be updated according to Master Cycle Time.
Bus[0].cycletime must be set before Bus[1].cycletime.

Examples

?BUS[0].Cycletime
BUS[0].Cycletime = 2000
BUS[1].Cycletime = 2000