<< 点击显示目录 >> 主页 mappVision帮助助手 > 机器视觉帮助 > mapp Vision > 开始 > 网络配置 - 项目设置 |
在物理视图中右击组件并从列表中选择 "配置",即可打开组件的配置。
必须对以下组件进行更改:
•控制器的以太网接口(例如 X20CP1586 上的接口 2)
•控制器的 POWERLINK 接口(例如 X20CP1586 上的接口 3)
•摄像机模块
此处在 <冗余参数>/<单 CPU 参数>/<模式> 下选择选项 "手动输入 IP 地址"。
图编辑以太网接口的网络设置
然后就可以为公司网络中的一个地址输入 IP 地址和相关子网掩码。重要的是,同一子网中不能有两台设备拥有相同的 IP 地址,因为如果分配了重复的 IP 地址,就会出现通信问题。
在 POWERLINK 接口中,MTU 大小(最大传输单位)设置为最大值 1500;周期时间设置为 400 微秒(推荐值)。有关 PLK 接口配置的其他信息,请参阅SG4 的 PLK 接口配置。
此外,POWERLINK 以太网必须配置有效的 IP 地址和子网掩码。作为最佳实践,建议使用子网掩码 255.255.255.0 和私有地址空间中以 .240 结尾的 POWERLINK 以太网 IP 地址(如 192.168.200.240)。有关更多信息和背景,请参阅配置 POWERLINK 以太网页面。
图编辑 POWERLINK 接口配置
为避免网络时间和本地系统时间之间出现时间偏移,建议将控制器的系统计时器配置为一个接口(选项 "EPL/X2X 接口")。在本示例项目中,使用摄像机模块所连接的接口是合理的。
图将接口用作 "系统计时器
A component's configuration is opened from the Physical View by right-clicking on the component and selecting "Configuration" from the list.
•Changes must be made in the following components:
•Ethernet interface of the controller (for example, interface 2 on X20CP1586)
•POWERLINK interface of the controller (for example, interface 3 on X20CP1586)
•Camera module
Option "Enter IP address manually" is selected here under <Redundant parameter> / <Single CPU parameters> / <Mode>.
Fig.: Editing the network settings for the Ethernet interface
An IP address and the associated subnet mask for an address in the company network can then be entered. It is important that no two devices in the same subnet have the same IP address since communication problems can occur if duplicate IP addresses are assigned.
In the POWERLINK interface, MTU size (maximum transmission unit) is set to the maximum value 1500; the cycle time is set to 400 microseconds (recommended values). For additional information about the PLK interface configuration, see PLK interface configuration for SG4.
In addition, POWERLINK Ethernet must be configured with a valid IP address and subnet mask. As a mapp Vision best practice, subnet mask 255.255.255.0 and a POWERLINK Ethernet IP address in a private address space that ends in .240 (e.g. 192.168.200.240) are recommended. For additional information and background, see page Configuring POWERLINK Ethernet.
Fig.: Editing the POWERLINK interface configuration
To avoid a time offset between the network time and local system time, it is recommended to configure the system timer of the controller to an interface (option "EPL/X2X interface"). In this example project, it makes sense to use the interface to which the camera module is connected.
Fig.: Using an interface as a "system timer"