NC配置的源文件 (<NCSoftwareID>cfg.ncc)

<< 点击显示目录 >>

主页  轴控开发使用手册 > ACP10/ARNC0帮助信息 > 项目创建 > 运动控制 > 配置模块 > NC管理器配置 >

NC配置的源文件 (<NCSoftwareID>cfg.ncc)

源文件 <NCSoftwareID>cfg.ncc(<NCSoftwareID>:"ACP10"、"ARNC0 "等)包含XML格式的数据结构描述,用来配置NC软件。在编译过程中,数据被输入到贝加莱模块 <NCSoftwareID>cfg.br。在PLC上进行热启后,NC软件从该贝加莱模块读取配置数据。

NC配置结构对于每个NC软件程序和每个版本来说都是特定的!

NC配置结构包含所有网络接口的子结构,这些接口要么在物理视图中连接了ACOPOS模块,要么是通过在主菜单中选择插入/接口添加的  。

相关数据必须放在文件中(<NCSoftwareID>cfg.ncc),并提供给外部配置使用。

格式描述

XML元素

子元素和属性

数据类型

数量

描述

NC配置

 

 

 

主元素

 

Version

string

1

NC软件的版本 (例如:1.19.4)

 

NcSwId

string

1

应用于此配置的NC软件的ID号(例如"ACP10", "ARNC0"等)

 

Group

Element

1

数据结构

 

 

 

数据结构 / 数据子结构

 

ID

string

1

"NcConfiguration"中的"Group":

NcSwId

ID (数据结构的名称)

"ACP10"

"ACP10CF1_typ"

"ARNC0"

"ARNC0CFG_typ"

对于所有其他组:

数据子结构组件的名称

 

Description

string

0..1

根据语言设定的描述文本

 

Group

Element

0..1

数据子结构

 

Parameter

Element

0..1

参数 (结构组件)

Parameter

 

 

 

参数 (结构组件)

 

ID

string

1

ID (名称)

 

Value

string

1

 

Description

string

0..1

根据语言设定的描述文本

XML数据结构

<?xmlversion="1.0"encoding="utf-8"?>

<NcConfigurationVersion="..."NcSwId="...">

   <GroupID="..._typ">

 

      Konfigurations-Parameter (siehe unten)

 

   </Group>

</NcConfiguration>

ACP10:配置参数

这里要使用的参数取决于所使用的NC版本。参数的详细说明可以在 NC配置 部分找到

ID

描述

cnt_nettrc_rec_drive

"0".."65535"

默认值:"150"

每个ACOPOS单元驱动器的数据记录数量,用于网络命令跟踪。

bufsize_trace_upload

"300".."65535"

默认值:"1200"

用于跟踪数据上传的数据缓冲区的大小,以字节为单位。

tc_nc_man_task

"Cyclic #1"

"Cyclic #2"

"Cyclic #3"

默认值:"Cyclic #1"

用于NC管理器任务的任务循环等级。

glob_pv_as_ncobject

"Yes"

"No"

默认值:"Yes"

使用全局变量作为NC对象

ncsys_dl_broadcast

"Yes"

"No"

Default: "Yes"

使能通过广播形式下载NCSYS

ncsys_dl_acp_reset

"Yes"

"No"

默认值:"Yes"

NCSYS下载后重置ACOPOS驱动

 

 

network_init

 

网络初始化 (ACOPOS 启动)

 

ncsw_init_execute

"Yes"

"No"

"Wait for ACOPOS"

"Wait for enable"

默认值:"Yes"

在NC软件初始化阶段执行

automatic_execute

"Yes"

"No"

默认值:"No"

ACOPOS重置后自动执行

node_nr_warning

"Yes"

"No"

默认值:"No"

警告:非递增节点号 (仅针对POWERLINK)

net_err_before_ncact

"Yes"

"No"

默认值:"No"

在第一次NC行动前显示网络错误 (仅针对POWERLINK).

nettrc

 

网络命令追踪

 

enter_parsecrec

"Yes"

"No"

默认值:"No"

输入参数序列记录。

 

enter_ncaction

"Yes"

"No"

默认值:"No"

输入PLCopen和NC功能调用

 

save_ring_startidx

"Yes"

"No"

默认值:"No"

处理环形缓冲区的起始索引

can_if[0..n]

 

CAN接口

 

if_name

<AddressString>

接口名称 (e.g. "IF2")

hprio_cobs_appl

"0".."12"

默认值:"0"

CAN功能中HPRIO COBs的数量

hprio_uswrcob

"0".."12"

默认值:"0"

ACP10USCOB中HPRIO WRITE COBs的数量

plk_if[0..n]

 

POWERLINK 接口

 

if_name

<AddressString>

接口名称 (e.g. "IF3")

至少有一个网络接口 can_if[0..n]plk_if[0..n] 必须包含在配置中。

配置中可以包括多个具有不同索引(0...n)的网络接口。

对于 "ACP10",只允许在配置中出现单一类型的网络接口( 只允许can_if[0..n] 或只允许plk_if[0..n])。

如果该参数没有包括在配置中,那么它的默认值将在编译过程中输入贝加莱模块 <NCSoftwareID>cfg.br中。

示例:双POWERLINK接口的ACP10配置:

<?xml version="1.0" encoding="utf-8"?>
<?AutomationStudio Version=4.0.14.62?>
<NcConfiguration Version="2.37.0" NcSwId="Acp10">
    <Group ID="ACP10CF1_typ">
        <Parameter ID="cnt_nettrc_rec_drive" Value="750" />
        <Parameter ID="bufsize_trace_upload" Value="1200" />
        <Parameter ID="tc_nc_man_task" Value="Cyclic #1" />
        <Parameter ID="glob_pv_as_ncobject" Value="Yes" />
        <Parameter ID="ncsys_dl_broadcast" Value="Yes" />
        <Parameter ID="ncsys_dl_acp_reset" Value="Yes" />
        <Group ID="network_init">
            <Parameter ID="ncsw_init_execute" Value="Yes" />
            <Parameter ID="automatic_execute" Value="No" />
            <Parameter ID="node_nr_warning" Value="Yes" />
            <Parameter ID="net_err_before_ncact" Value="Yes" />
        </Group>
        <Group ID="nettrc">
            <Parameter ID="enter_parsecrec" Value="Yes" />
            <Parameter ID="enter_ncaction" Value="Yes" />
            <Parameter ID="save_ring_startidx" Value="Yes" />
        </Group>
        <Group ID="plk_if[0]">
            <Parameter ID="if_name" Value="IF3" />
            <Parameter ID="tc_CycDat_PLCopen" Value="Task class for NC Manager task" />
            <Parameter ID="mc_broadcast_extdat" Value="No" />
        </Group>
        <Group ID="plk_if[1]">
            <Parameter ID="if_name" Value="IF4" />
            <Parameter ID="tc_CycDat_PLCopen" Value="Task class for NC Manager task" />
            <Parameter ID="mc_broadcast_extdat" Value="No" />
        </Group>
    </Group>
</NcConfiguration>