StartFromConfiguration

使用 KINGSTAR 设定工具 创建的配置档案启动 KINGSTAR 子系统。

语法

KsCommandStatus StartFromConfiguration(
     char* Configuration
);

参数

Configuration:使用KINGSTAR 设定工具 创建 .kst 档案的位置。

回传值

返回 KsCommandStatus 结构。

备注

取代用来创建、配置及启动 KINGSTAR 子系统与轴的功能。此功能是同步的,一旦子系统与轴配置完成后将会回传。

可用的 EtherCAT 状态

ecatOffline

范例

复制
nRet = Create(0, 0);

// Save all your system settings in a .kst file and pass the path to the API.
// Using this function can separate the configuration from program logic.
char path[260] = "C:\\Users\\currentUser\\Documents\\KINGSTAR Configuration Tool\\Standard\\Standard.kst";
Command = WaitForCommand(30, TRUE, StartFromConfiguration(path));

使用需求

  RT Win32
最低支援版本 4.0 4.0
标头档 ksapi.h ksapi.h
程式库 KsApi_Rtss.lib KsApi.lib

参见

Create

Start