ValueLine IPC and VLC

ValueLine IPC and VLC
ValueLine IPC and VLC
Configuring a ValueLine IPC Network Adapter to operate
with Steeplechase Visual Logic Controller Runtime
AUTOMATION
© PHOENIX CONTACT - 09/2009
co
1
m
Application Note
2760_en_A
Overview
m
Solution
lin
e
co
A three-step approach:
• Passing control of a network adapter (aka Network Interface Card or NIC) to INtime
changes the Windows installed hardware driver to an INtime provided driver, ensuring
that Windows does not access the designated NIC.
• Configuring a NIC for INtime operation.
• Testing configuration and communication.
on
2
po
ne
nt
s.
During runtime the Visual Logic Controller executes in a real-time deterministic operating
system called INtime. In order to deploy an Ethernet-based communication protocol such
as EtherNet/IP® or Modbus® TCP in a VLC runtime on a ValueLine IPC, control of an
internal Ethernet adapter must be passed from the Windows® operating system to the
RTOS (INtime) in the VLC runtime environment. Also if the operating system replaces a
driver for an adapter that was “passed to INtime” with a new driver, it is no longer under
INtime control and needs to be reconfigured for INtime.
The procedure described in this Application Note will need to be repeated if:
– the Steeplechase Visual Logic Controller is re-installed
– the operating system is allowed to update a network adapter previously passed to INtime.
Make sure you always use the latest documentation.
It can be downloaded at www.phoenixcontact.net/download.
ValueLine IPC and VLC
3
Procedure
This procedure requires Visual Logic Controller version 7.2.2 (or above) to be installed and
Ethernet ports X2 ETH and X3 ETH enabled in the BIOS.
3.1
1.
Passing a Network Interface Card to INtime
Choose the Ethernet port (X2 ETH or X3 ETH) that will be controlled by INtime.
Click the “Start” button, and then click the “All Programs… Steeplechase VLC” menu.
Click the “Runtime Configuration” button.
nt
2.
Ethernet port
s.
Figure 1
X2 ETH
co
X3 ETH
X4 USB
m
X5 USB
In the INtime Configuration Panel, click the “INtime Device Manager” button.
on
lin
e
co
m
po
3.
ne
Steeplechase VLC 7.2.2 or higher is required.
Figure 2
2760_en_A
Intime Configuration Panel
PHOENIX CONTACT
2
ValueLine IPC and VLC
4.
Click the “Windows devices… Network Adapters” expand button. Click an adapter/NIC
in the left window to display the details in the right window. The right window shows the
interrupt number assigned to the selected NIC by the operating system and other
devices sharing that interrupt.
– PCI bus 3 = X2 ETH = Inst1 (2nd occurrence)
– PCI bus 2 = X3 ETH = Inst0 (1st occurrence)
– If X3 is disabled in the BIOS, then X2 = Inst=0
m
Use the tooltips to discern that the NIC is controlling the desired Ethernet port (X2 or
X3).
ne
nt
s.
co
PCIBus=3 device=0 function=0
po
PCIBus=2 device=0 function=0
Figure 3
Right-click the port/NIC chosen in Step 1 and click the “Pass to INtime (noninterrupt or
MSI)” option. This removes the chosen option from the right window, indicating the card
will be passed to INtime. The use of Message Signaled Interrupts guarantees that
INtime acquires a unique interrupt message for the card from the Windows operating
system rather than receiving a signal on a shared hardware Interrupt ReQuest line
between devices and the CPU which will not work with INtime.
on
lin
e
co
m
5.
Device details
Figure 4
2760_en_A
Device details
PHOENIX CONTACT
3
ValueLine IPC and VLC
6.
Click the “Save Configuration” button on the toolbar.
Figure 5
Click the “Yes” button in the message box to implement the pending changes.
co
m
7.
Toolbar
A “Hardware Installation” message appears warning that the hardware has not passed
the Windows Logo testing. Click the “Continue Anyway” button.
lin
e
co
m
po
ne
nt
8.
“DevConfig” save changes message box
s.
Figure 6
on
Figure 7
2760_en_A
9.
“Hardware Installation” message box
A “System Settings Change” message appears, prompting the user to reboot the
computer. Click the “Yes” button to initiate the reboot.
PHOENIX CONTACT
4
ValueLine IPC and VLC
3.2
1.
Click the “Start” button, and then click the “All Programs… Steeplechase VLC” menu.
Click the “Runtime Configuration” button.
In the INtime Configuration Panel, click the “Real-time Network” button.
Intime Configuration Panel
on
lin
e
co
Figure 8
m
po
ne
nt
s.
co
m
2.
Configuring a Network Interface Card for INtime
Operation
2760_en_A
PHOENIX CONTACT
5
ValueLine IPC and VLC
From the “INtime Network Stack Configuration” dialog box, click the “NIC
Configuration…” button.
nt
s.
co
m
3.
From the “NIC Configuration” button, click the “Add” button.
on
lin
e
co
m
po
4.
“INtime Network Stack Configuration” dialog box
ne
Figure 9
2760_en_A
Figure 10
“NIC Configuration” button
PHOENIX CONTACT
6
ValueLine IPC and VLC
Use the “Interface Properties:xxx” dialog box (xxx represents the name of the interface)
to assign an IP Address. Two methods can be used to assign the IP Address:
nt
s.
co
m
5.
Static IP Address configuration
ne
Figure 11
To assign a Static IP Address, ensure the following selections are made in the
appropriate fields:
m
a)
po
The IP Addresses shown here are examples and are not intended to represent those used
in actual projects.
Ethernet
Enable DHCP
unchecked
IP Address
desired IP Address
Subnet Mask
desired mask
NIC Driver
Intel Pro/1000
lin
e
co
Interface Type
on
Gigabit Ethernet
Instance
0 = X3 ETH
1 = X2 ETH
If X3 ETH is disabled, then X2 ETH = Instance 0.
Once entered, the device Instance number displays as Inst=x (x is the entered number)
when viewed later
2760_en_A
PHOENIX CONTACT
7
nt
s.
co
m
ValueLine IPC and VLC
Figure 12
DHCP IP Address configuration
Enable DHCP
checked
Primary Interface
checked if more than one DCHP-enabled NIC is passed to
INtime.
m
po
Interface Type
ne
b) To receive an IP Address from a DHCP (Dynamic Host Configuration Protocol)
Server, ensure the following selections are made in the appropriate fields:
if the adapter doesn't receive an address within a period of
time, the default becomes that which is typed in in the
“IP Address” field.
IP Address
desired IP Address if the “Use Static values as defaults”
box is checked.
Subnet Mask
desired mask if “Use Static values as defaults” box is
checked.
Default Gateway
desired address
NIC Driver
Intel Pro/1000 Gigabit Ethernet
Instance
0 = X3 ETH
co
Use Static values as
defaults
lin
e
on
Ethernet
1 = X2 ETH
c)
When finished, click the “OK” button.
Once entered, the device Instance number displays as Inst=x (x is the entered number)
when viewed later.
2760_en_A
PHOENIX CONTACT
8
ValueLine IPC and VLC
The “NIC Configuration” dialog box confirms the choices made, showing ETH0 as the
default number for the card. Click the “OK” button when ready.
s.
co
m
6.
In the “INtime Network Stack Configuration” dialog box, click the “Auto Start Real-time
Networking” button. Click the “OK” button.
on
lin
e
co
m
po
ne
7.
“NIC Configuration” dialog box
nt
Figure 13
Figure 14
2760_en_A
“INtime Network Stack Configuration” dialog box
PHOENIX CONTACT
9
ValueLine IPC and VLC
In the “INtime Configuration” message box, click the “No” button when prompted to
restart INtime services.
Figure 15
3.3
3.3.1
Testing Configuration and Communication
Verifying Configuration
nt
Click the “Start” button, and then click the “All Programs… Steeplechase VLC…
Runtime Explorer” menu. This window allows the monitoring and control over INtime
Processes much the same way Task Manager does for the Windows operating system.
Confirm that the following are running.
lin
e
co
m
po
ne
1.
m
Reboot the PC.
s.
9.
“INtime Configuration” message box
co
8.
on
Figure 16
2.
Click the “File… Load RT app” menu.
Figure 17
2760_en_A
“INtime Explorer” window
“File… Load RT app” menu
PHOENIX CONTACT
10
ValueLine IPC and VLC
Use Explorer and navigate to the “INtime… network” folder. Click the “Open” button.
m
Explorer window
on
lin
e
co
Figure 18
po
ne
nt
s.
co
m
3.
2760_en_A
PHOENIX CONTACT
11
ValueLine IPC and VLC
To make sure the card is configured properly, click the “ifconfig.rta” file, which loads it
into the “File name” field.
Type ETH0 (assigned to the card by the VLC) in the “Arguments” field, and then click
the “Open” button. This opens a DOS window.
a) If the DOS window displays UP.BROADCAST.RUNNING and the IP Address
previously configured (see “Configuring a Network Interface Card for INtime
Operation” on page 5), then the network NIC is passed to INtime and ready for
INtime operation.
b) If the DOS window displays NOTHING, return to “Configuring a Network Interface
Card for INtime Operation” on page 5 and repeat the configuration procedure again
to ensure the card is properly set up.
on
lin
e
5.
“ifconfig.rta” file selection
co
Figure 19
m
po
ne
nt
s.
co
m
4.
Figure 20
2760_en_A
Communication confirmation message
PHOENIX CONTACT
12
ValueLine IPC and VLC
3.3.2
Click the “File… Load RT app” menu.
Use Explorer and navigate to the “INtime… network” folder. Click the “Open” button.
on
lin
e
co
m
po
ne
nt
2.
“File… Load RT app” menu
s.
Figure 21
co
m
1.
Verifying Communication
Figure 22
2760_en_A
Explorer window
PHOENIX CONTACT
13
ValueLine IPC and VLC
To test communication across a network, click the “ping.rta” which loads it into the “File
name” field to do a ping through INtime instead of Windows to another device on the
network.
“ping.rta” file selection
In the “Arguments” field, type the following:
destination IP Address
space
32 bytes
space
number of pings
on
lin
e
4.
–
–
–
–
–
co
Figure 23
m
po
ne
nt
s.
co
m
3.
2760_en_A
PHOENIX CONTACT
14
ValueLine IPC and VLC
Figure 24
s.
nt
on
lin
e
co
m
po
–
–
–
If the ping wasn't successful, make sure the:
Correct Ethernet cable is connected to the “INtime port” on the ValueLine IPC.
IP Address for the destination device is correct.
Destination device has power applied and is operating correctly with a properly
functioning Ethernet card.
Ethernet cable is connected to the destination device.
Designation device is on the same subnet.
Subnet mask is set appropriately (see “Configuring a Network Interface Card for
INtime Operation” on page 5).
Then try the procedure again.
ne
b)
–
–
–
Successful ping message
m
Click the “Open” button. This opens a DOS window.
a) If the network NIC configuration was successful and the destination device is on
the same subnet, the DOS window will display the correct number of pings with no
(zero) packet loss.
co
5.
2760_en_A
PHOENIX CONTACT GmbH & Co. KG • 32823 Blomberg • Germany • Phone: +49-(0) 5235-3-00
PHOENIX CONTACT • P.O.Box 4100 • Harrisburg • PA 17111-0100 • USA • Phone: +717-944-1300
www.phoenixcontact.com
15
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising