MC-Basic:BUS.CYCLETIME
Language: | English • 中文(简体) |
---|
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 accepts only 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