MC-Basic:BUS.CYCLETIME/zh-hans

From SoftMC-Wiki
< MC-Basic:BUS.CYCLETIME
Revision as of 07:39, 24 April 2017 by Chi (talk | contribs) (Created page with "{{Languages}} == 缩写 == == 格式 == ?BUS[''<bus_number>''].Cycletime<br> BUS[''<bus_number>''].Cycletime = <''expression''> == 可用版本 == 从版本4.9.11起<br> 由...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
语言: [[::MC-Basic:BUS.CYCLETIME|English]]  • [[::MC-Basic:BUS.CYCLETIME/zh-hans|中文(简体)‎]]

缩写

格式

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

可用版本

从版本4.9.11起
由于版本4.15.5 bus #0被保留用于EtherCAT, bus #1 被保留用于CAN。.
Bus[0] 提供主时钟周期, 而bus[1]从属于bus[0] ,并且只接受bus[0]周期时间的整数乘数倍时间。
例如, 如果bus[0].cycletime 设置为2000, bus[1].cycletime 可以设置为 2000, 4000, 6000, 8000 us.

描述

设置或查询自动总线周期时间。

类型

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

取值范围

单位

Microseconds

默认

使用范围

Configuration, Task or Terminal

限制

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. |EXAMPLE= ?BUS[0].Cycletime
BUS[0].Cycletime = 2000
BUS[1].Cycletime = 2000

参见