Api.EoeSetSlaveEoeIp 方法

配置一个 EtherCAT 从站的 EoE (Ethernet over EtherCAT) 网路设定。欲获得更多有关 EoE 的资讯,请见 EtherCAT 乙太网路

命名空间IntervalZero.KINGSTAR.OpcUa.Api

组合: IntervalZero.KINGSTAR.OpcUa.Api (于 IntervalZero.KINGSTAR.OpcUa.Client.dll) 版本:4.4.0.0

语法

C#VB
public KsCommandStatus EoeSetSlaveEoeIp(
       int SlaveId,
       byte[] Mac,
       byte[] Ip,
       byte[] Subnet,
       byte[] Gateway,
       byte[] Dns,
       string DnsName
)
Public Function EoeSetSlaveEoeIp(
       SlaveId As Integer,
       Mac As Byte[],
       Ip As Byte[],
       Subnet As Byte[],
       Gateway As Byte[],
       Dns As Byte[],
       DnsNAme As String
) As KsCommandStatus

参数

SlaveId

型别:int

即从站索引 (Slave Index)。此索引是 KINGSTAR 主站于 EtherCAT 网路启动时,根据实体连接顺序自动指派的。直接连线到主站的第一个装置会被指派为索引 0 (Index 0),接著是索引 1、索引 2,依此类推。即使新增、移除或重新连线装置,这些索引在从站阵列中也会保持一致。请参阅 热插拔 (HotConnect)、修复与重启 中的使用案例以了解更多详细资讯。

 

Mac

型别:byte[]

从站的 MAC 位址。

 

Ip

型别:byte[]

从站的 IP 位址。

 

Subnet

型别:byte[]

从站的子网路。

 

Gateway

型别:byte[]

从站的闸道。

 

Dns

型别:byte[]

从站的 DNS。

 

DnsName

型别:string

从站的 DNS 名称。

回传值

型别:KsCommandStatus

回传 KsCommandStatus 类别。

备注

可用的 EtherCAT 状态

ecatPreOP, ecatSafeOP, ecatOP

范例

C#
                N/A
            

参见

Api 类别

IntervalZero.KINGSTAR.OpcUa.Api 命名空间