命令:--startInstallation 功能 :该命令启动指定的安装。 称呼 : APInstaller.CLI 表 33 . 选项 --location <location> 必需的 安装目录的完全限定路径 --startArgs <start args> 启动安装时应使用的参数 例 22 . 例子 APInstaller.CLI --startInstallation --locatio
命令:--uninstallAddOn 功能 :该命令从指定的安装中卸载指定的附加组件。 称呼 : APInstaller.CLI 表 34 . 选项 --location <location> 必需的 安装目录的完全限定路径 --id <id> 必需的 ID (Guid) 或 ID2 (字符串);单个或两个;以分号分隔。示例: "<Guid>;<ID2>" 例 23 . 例子 APInstall
GUI 命令 这 APInstaller.GUI 提供使用预定义行为直接打开用户界面(GUI)的命令。 句法 APInstaller.GUI <command> <option1> <option2> ... 本节内容如下 :
命令:--view 功能 :该命令打开指定安装的详细视图 CODESYS Installer 。 称呼 : APInstaller.GUI 表 35 . 选项 --location <location> 必需的 显示的安装根目录 --perspective <perspective> 要显示的详细视图的视角: installed : 看法 已安装 browse : 看法 浏览 updates :
命令:--open 功能 :该命令打开一个项目并使用匹配的 CODESYS 安装。如果找到多个匹配的安装,则会打开一个对话框供选择。该命令支持项目、库和项目档案。如果未找到匹配的安装,则会提供一个按钮来创建安装。 称呼 : APInstaller.GUI 表 36 . 选项 --project <project path> 必需的 项目文件、库文件或项目存档文件的路径 例 25 . 例子 APIn
Assert_LDate_Greater (FUN) ¶ FUNCTION Assert_LDate_Greater : BOOL Assertion function to check that a value of LDATE is greater then the given threshold InOut: Scope Name Type Initial Comment Return Assert_LDate_Greater BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . referenceValue LDATE The value indicating the threshold actualValue LDATE The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
Assert_LDate_GreaterEqual (FUN) ¶ FUNCTION Assert_LDate_GreaterEqual : BOOL Assertion function to check that a value of LDATE is greater or equal the given threshold InOut: Scope Name Type Initial Comment Return Assert_LDate_GreaterEqual BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . referenceValue LDATE The value indicating the threshold actualValue LDATE The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
Assert_LDate_Less (FUN) ¶ FUNCTION Assert_LDate_Less : BOOL Assertion function to check that a value of LDATE is less then the given threshold InOut: Scope Name Type Initial Comment Return Assert_LDate_Less BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . referenceValue LDATE The value indicating the threshold actualValue LDATE The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
Assert_LDate_LessEqual (FUN) ¶ FUNCTION Assert_LDate_LessEqual : BOOL Assertion function to check that a value of LDATE is less or equal the given threshold InOut: Scope Name Type Initial Comment Return Assert_LDate_LessEqual BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . referenceValue LDATE The value indicating the threshold actualValue LDATE The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .
Assert_LDate_NotEqual (FUN) ¶ FUNCTION Assert_LDate_NotEqual : BOOL Assertion function to check unequality of two values of type LDATE InOut: Scope Name Type Initial Comment Return Assert_LDate_NotEqual BOOL TRUE if the assertion passes succesfully, FALSE otherwise Input context IBaseIecUnitTest The instance of the test function block calling this function. This instance can be provided by using THIS^ . referenceValue LDATE The reference value actualValue LDATE The value to check wsErrorMsg WSTRING(Constants.WSTRING_LENGTH) “” A custom error message, that is added to the error message of the assertion itself. If this parameter is used, it is recommended to adapt the value of the library parameter Constants.WSTRING_LENGTH .