PC WORX Quickstart IT
PC WORX Quickstart IT
PC WORX Quickstart IT
Quick Start
UM QS EN PC WORX
Order No.: 2699862
PC WorX
AUTOMATIONWORX
Quick Start
PC WorX
05/2007
Designation: UM QS EN PC WORX
Revision: 02
Designation Version
PC WorX 5.10 or later
Part of the AUTOMATIONWORX Software Suite 2007 1.30 SP1 or later
In order to ensure the safe use of the product described, we recommend that you read this
manual carefully. The following notes provide information on how to use this manual.
Phone + 49 - 52 35 - 30 0
Fax + 49 - 52 35 - 34 18 08
E-mail [email protected]
Internet
Up-to-date information on Phoenix Contact products can be found on the Internet at:
www.phoenixcontact.com
7 Example Project for a Simulation With Processor Type "IPC" Control Systems .....................7-1
7.1 Describing the Project ........................................................................................7-1
7.2 Sequence for Creating the Simulation Project ................................................... 7-2
7.3 Creating a New Project ...................................................................................... 7-4
7.4 Specifying Project Information ........................................................................... 7-4
7.5 Checking/Modifying IP Settings for the Controller..............................................7-4
7.6 Manually Inserting INTERBUS Devices ............................................................. 7-5
7.7 Compiling After Completing the Bus Topology................................................... 7-5
7.8 Creating the Program......................................................................................... 7-6
7.9 Compiling After Creating the Program ...............................................................7-6
7.10 Assigning Process Data .....................................................................................7-6
7.11 Setting the Communication Path........................................................................ 7-8
7.12 Compiling and Sending a Project, and Performing a Cold Restart .................... 7-8
7.13 Operation ........................................................................................................... 7-9
7.13.1 Setting the Task Properties ................................................................ 7-9
7.13.2 Simulation and Debug Mode ............................................................ 7-11
7.14 Switching from Simulation to Real Hardware ................................................... 7-13
8 Example Program....................................................................................................................8-1
8.1 Program Description .......................................................................................... 8-1
8.2 Function Blocks Used ........................................................................................8-2
8.3 Programming......................................................................................................8-4
8.4 Setting the Initial Value .................................................................................... 8-10
8.5 Additional Options for PROFINET.................................................................... 8-10
1 General
1.1 Introduction
This document helps you to parameterize a bus configuration and to program the
application program (according to IEC 61131-3) using example projects.
It is assumed the user has knowledge and experience in the operation of PCs and
Windows operating systems, and knowledge in IEC 61131 and Ethernet basics.
More detailed information about the individual functions of PC WorX can be found in the
online help for the program. The entire help function can be called via "Help" in the menu
bar. Help for specific functions can be called via F1.
No functions or commands that require communication with the control system can be
executed without a physical bus configuration.
However, complete parameterization is possible in the "offline" state. The application
program can also be created and compiled.
All versions support all five IEC programming languages according to IEC 61131-3.
However, the license key is version-specific.
When PC WorX is started for the first time, it runs in demo mode with limited resources.
If the upper limits for demo mode are exceeded, the following error messages are
generated when compiling:
– Too many inputs in I/O configuration (8 maximum, 65535 specified)! PC WorX running
with limited resources.
– Too many outputs in I/O configuration (8 maximum, 65535 specified)! PC WorX
running with limited resources.
– Resource file cannot be compiled!
Regardless of the bus configuration, these error messages always appear when compiling
for various control systems (e.g., ILC 370 ...) in demo mode as all system variables are
entered in the I/O configuration.
If you wish to switch from demo mode to the full version, enable your PC WorX license.
More detailed information about the individual functions of PC WorX can be found in the
online help for the program. The entire help function can be called via "Help" in the menu
bar. Help for specific functions can be called via F1.
When installing the software, the language in which PC WorX should be started can be
selected. The program language can be changed at any time.
• Select the "Tools/Options..." menu.
• Select the "General" tab.
• Select the language.
• Confirm your selection with "Apply" and "OK".
In addition, texts previously created in one language can be exported, translated, and
imported into PC WorX in the new language.
• Open the "File/Export..." menu.
• Select the data you wish to export.
• Confirm your selection with "OK".
The user interface consists of the following main components: menu bar, toolbars, main
window, and status bar. The contents of the main window depend on the workspace.
Menu bar
Toolbars
Main window
Status bar
3.4 Toolbars
The program contains several toolbars with different icons, which enables frequently used
operations to be executed quickly. Alternatively, these operating steps can be called via
menu items or predefined shortcuts.
By default, all the toolbars are shown. To display or hide a specific toolbar, use the
"Tools/Options" dialog box.
When the mouse pointer is placed over an icon (without clicking on it), a tool tip appears.
The tool tip displays the name of the current icon. In addition, a short function description
appears in the status bar. If tool tips are not displayed, this feature can be activated in the
"Tools/Options/Toolbars" dialog box.
Which windows will actually be displayed depends on which windows have been toggled
on (see also "Windows in the Workspaces" on page 3-7). The last setting for each
workspace is saved when the program is closed and restored when it is started again.
3.5 Workspaces
The windows that you wish to display can be defined at any time for each workspace.
Table 3-1 lists which windows are set by default when PC WorX is started for the first time
and which windows can be usefully added.
Key:
1
When inserted manually
2
For PROFINET
3
For troubleshooting
4
When using Excel
D Default
A Useful addition
Toggling on/off Each window can be toggled on/off via the "View" menu by selecting the corresponding
menu item.
For the windows recommended for the relevant workspace, please refer to "Workspaces"
on page 3-4.
Docking/undocking For each window, you can specify whether it is to be docked in the other windows or not.
There are various options for docking/undocking windows:
1. Permanent docking/undocking:
In title bar or the gray frame of the relevant window right-click with the mouse and
activate/deactivate the "Allow Docking" menu item.
Move an undocked window to the position where it is to be inserted in the desktop.
2. Temporary undocking:
Double-click on the gray window frame or the title bar of the window. The window is
then displayed as a "normal" window. Its size can be modified and it can be moved to
any position on the screen. In order to re-dock the window, i.e., to reinsert it in the
desktop, double-click on the title bar.
The "Bus Structure" window is used to display and edit the bus topology.
Icon Meaning
Control system resource
When creating the project using a template, the control system resource
is inserted below this icon.
When creating the project using the wizard, the control system resource
is inserted below this icon.
PROFINET IO controller
Insert all PROFINET IO devices below this icon in the lower level.
INTERBUS master
Below this icon, insert the INTERBUS devices that are directly
connected to the device that this icon refers to (local bus and remote
bus).
Inline
Below this icon, insert the Inline terminals that are connected to the Inline
bus coupler (local bus).
PROFINET IO devices: device proxy and modules
For PROFINET IO devices, the display is divided into the device proxy
(bus interface) and its modules.
The device proxy is indicated with "@".
The slot number is specified after the graphical representation of the
device proxy or modules (setting in context menu under "Edit Device
Representation").
The icons for the device proxy and modules are stored in the device
description file (e.g., FDCML, GSD). They may vary from manufacturer
to manufacturer.
PROFINET IO devices from Phoenix Contact
(example: ILB PN 24 DI16 DIO16-2TX)
Default icons, if none are stored in the device description file.
Icon Meaning
The device is hidden or the bus is deactivated.
The pin indicates a module that is a fixed component of a device. This element
cannot be deleted or replaced.
The display in the "Bus Structure" window can be adapted to your requirements.
• Switch to the bus configuration workspace.
• In the context menu, open a device via the "Edit Device Representation..." menu item.
• Select the criteria that you would like to see in the display.
The selected representation only affects the representation of a specific device group.
Groups include, for example:
– Control systems
– PROFINET IO devices
– INTERBUS devices
For example, the setting for PROFINET IO devices does not have any influence on the
representation of the ILC 370 PN (see Figure 3-12).
For more detailed information on the Excel link, please refer to the online help for
PC WorX.
To toggle the "EXCEL Link" window on, select the "View/EXCEL Link" menu item.
The Excel link help can be called by pressing F1 in the active window.
Diag+ is a diagnostics tool for the seamless diagnostics of INTERBUS and PROFINET.
When installing PC WorX, Diag+ is installed automatically and is integrated in PC WorX. It
can be called from PC WorX via the "Diag+" window.
Diag+ can be started separately via "Start... All Programs... Phoenix Contact...
AUTOMATIONWORX Software Suite... Diag+ 2.xx".
• Under "Communication Path", select the device with which you would like to establish
a connection.
The diagnostics represented depends on the communication path:
– PROFINET IO controller: INTERBUS Diagnostic and Diagnostic Archive
– PROFINET IO devices: INTERBUS Diagnostic
• Select, e.g., the ILC 370 PN 2TX-IB PROFINET IO controller as the communication
path.
View: Settings • At the bottom of the section under "View", select which information is to be
represented.
View: Diagnostic Archive All events that have occurred are displayed in list format. The display can be adapted to
your individual requirements via the filter options at the top of the section.
View: INTERBUS INTERBUS modules in an INTERBUS system can be diagnosed with Diag+ as usual.
Diagnostic Various information can be called via the different tabs.
To indicate the functions, the ILC 370 PN 2TX-IB communication path changes to
FL IL 24 BK-PN-PAC here.
• Disconnect the existing communication path by clicking on "Disconnect".
• Select FL IL 24 BK-PN-PAC as the new communication path and activate it.
• Under "View/Device Representation", select "INTERBUS Devices" as the device type.
• At the top of the section, select "INTERBUS Diagnostic" as the view.
3.9 Visualization
The data generated in PC WorX can be used in other programs, e.g., to visualize
processes (e.g., Visu+, WebVisit).
The AX OPC Server is provided in order to enable the use of data in OPC clients.
See also "AX OPC Server and WebVisit" on page C-1.
IB INTERBUS project
PN PROFINET project
General
OFFLINE ONLINE
Start
IB PN SIM
IB PN SIM IB PN
IB PN SIM
Yes No
Specify project information SIM IB PN
Check/modify IP settings
for controller A
IB PN SIM IB PN
Yes IB PN Yes
System Program created?
installed? Assign IP address Process data
for controller assigned?
No No
PN IB PN IB PN
PN IB PN
PN
Check/modify PROFINET
Yes Assign process data
settings for IO devices IO devices
inserted?
IB PN SIM
No A
Manually insert PN IB PN SIM
INTERBUS devices
Read IO devices Compile and send project,
IB PN SIM and perform cold restart
Create program PN
IB PN SIM
Check/modify PROFINET
settings Operation (end)
IB PN SIM
PN
7127B018
Assign PROFINET device
name / IP settings
• Select the "New Project..." command from the "File" menu to create a new project
using a template.
The tree structure and the selection of the control system are now prepared.
• Select the control system.
For some control systems, there are several templates depending on the hardware
and firmware version of the control system used.
• Confirm your selection with "OK".
Figure 4-2 Project templates (here: "ILC 350 PN Rev. > 01/4.6F/1.41")
"List" view has been selected in Figure 4-2. The view can be switched via the
icons.
The ">" character in the selection stands for "later than" and not "greater than" in a
mathematical sense. The specified version is the first supported version.
During project creation, PC WorX automatically assigns an IP address area for a local
network (area from 192.168.0.2 to 192.168.0.254). If you would like to use another
address area (e.g., a global network), adapt the start and end address on the project
node (here: Quickstart_PN) to your application.
Make sure that all the components are in the same subnetwork.
For information on the IP parameters to be used within your system, please contact your
system administrator.
If the start address of the new address area to be entered is higher than the previous end
address, please modify the end address first.
PN • Assign the name suffix for the PROFINET device name (here: quickstart.de) in the
"Device Details" window under "Domain Postfix".
The following characters are permitted for the "Domain Postfix":
Uppercase letters without umlauts are permitted, however, they will be converted to
lowercase letters internally. The entry is therefore not case sensitive.
If the "Domain Postfix" is entered at the start of the project, it will be used automatically for
all subsequent PROFINET IO devices that are inserted in the PROFINET device name
(see also "DNS/PROFINET Device Name" on page 4-11).
If the PROFINET IO devices are read, the PROFINET device name for the devices is
also read. In this case, the Domain Postfix may differ. Adapt it accordingly.
• Make sure that your PC has been assigned IP parameters that can be used to
communicate with the connected network.
If, e.g., when using PROFINET, you are working with a local network that is set by
default (192.168.0.2 to 192.168.0.254), the IP parameters for the PC must be
192.168.0.1, with subnet mask 255.255.255.0.
The IP settings for the controller are made when the project is created.
If any modifications are made to the project information that affect the IP settings for the
controller, a warning is displayed. However, the modification is not implemented
automatically. When a new project is created, the default settings are specified as the IP
settings.
• If an IP address has still not been assigned, assign one according to "Assigning the IP
Address for the Controller" on page 4-24.
The IP parameters that are assigned here for the controller are also implemented as the
IP parameters for the communication path via TCP/IP.
If your system is installed, you can work online. In this case, skip this section and proceed
to Section 4.17, "Setting the Communication Path".
If your system is not installed or you wish to work offline, proceed as follows:
– For PROFINET, see Section 4.7, "Inserting PROFINET IO Devices".
– For INTERBUS or Simulation, see Section 4.9, "Manually Inserting INTERBUS
Devices".
• Hold down the left mouse button and move the first PROFINET IO device in the "Bus
Structure" window to the right of the PROFINET IO controller icon until the "Insert in
the lower level" icon appears (see page 3-10).
• Move all other PROFINET IO devices to below the preceding PROFINET IO device
until the "Insert at the same level" icon appears (see page 3-10).
Figure 4-9 illustrates the bus configuration with inserted PROFINET IO devices.
When inserting each PROFINET IO device, the PROFINET settings are assigned
automatically according to the entries defined in the project information.
The PROFINET settings can be checked and modified via the "PROFINET Settings" tab.
DNS/PROFINET This name is the unique identification for the PROFINET IO device in the network. It must
Device Name be known to the PROFINET IO device before it can be used in the network.
PC WorX automatically ensures that each device is assigned a PROFINET device name
that is unique throughout the entire project. The "Domain Postfix" that was set on the
project node is attached to this name (here: quickstart.de).
The PROFINET device name can be freely modified.
The following characters are permitted for the PROFINET device name:
Uppercase letters without umlauts are permitted, however, they will be converted to
lowercase letters internally. The entry is therefore not case sensitive.
The procedure that makes the device name known to the PROFINET IO device is either
called "assigning device names" or "device naming". This procedure is described under
"Transmitting PROFINET Device Names and IP Settings to PROFINET IO Devices" on
page 4-37.
IP Address During operation, the device can be accessed via the IP address. PC WorX selects the
address from the area that is set on the project node.
If the area for the IP addresses is later modified in the project node, you will also have to
adapt the addresses of the PROFINET IO devices accordingly.
Subnetmask The subnet mask that was specified on the project node is assigned to each PROFINET IO
device as the default subnet mask. It can be modified specifically for each individual
device.
Default Gateway If a default gateway is used, enter its IP address here. The default gateway specified on
the project node is automatically assigned to each PROFINET IO device.
IP Address, Subnet Mask, and Default Gateway represent the IP parameters for a
device.
Reduction ratio input/ The time in which the inputs/outputs of the PROFINET IO device are updated. It can be set
Reduction ratio output individually for each PROFINET IO device for both data directions.
The update time directly affects the number of PROFINET IO devices that can be operated
on a PROFINET IO controller. The default setting displayed in PC WorX is the value that
was stored in the FDCML file for the corresponding PROFINET IO device. If this setting
exceeds the performance level of the PROFINET IO controller, a corresponding error
message appears when translating the project. In this case, select a longer update time for
certain devices.
Watchdog Sensitivity (ms) The watchdog sensitivity (monitoring time) can be set automatically by PC WorX according
to the update times. The monitoring time specifies how long PROFINET IO devices may
receive no valid PROFINET telegrams before substitute values are enabled at the outputs.
This setting can affect the "noise immunity" of the network.
Please note that excessively high settings can result in errors in the process as the
PROFINET IO device "freezes" the last output value until the error is detected.
If the bus configuration is not actually available yet or you wish to create the configuration
offline, the bus configuration can be created manually.
• Select a point in the "Bus Structure" window where a device is to be inserted
(e.g., INTERBUS node for the control system).
• In the device catalog, open the product range for the inserted device (e.g., IL for Inline)
under " Phoenix Contact".
• Under the product range, open the product group (e.g., I/O analog).
• Select the device to be inserted (e.g., IB IL AO 1/SF).
• Hold down the mouse button and drag the selected device to the insertion point.
Please refer to the information about the mouse pointer in "Icons in the "Bus Structure"
Window" on page 3-9.
Example Configurations
Example 1: Simple bus configuration
RFC 430
ETH-IB
IBS IL 24 IB IL 24 IB IL 24
BK-T/U DO 8 DI 8
IBS IL 24 IB IL 24 IB IL
BK-T/U DI 16 AI 2/SF
7127A010
Folders in the device catalog where the listed devices can be found:
3.0
FLS IB M12
DIO 8/8
IBS IL 24 IB IL 24 IB IL
BK-T/U DO 2 AO 1/SF
5.0
ILB IB 24
DI 32
7127A011
Example 3: Bus configuration with bus coupler for connecting a remote bus branch
2.0
(1) 3.0 3.1 3.2
IBS IL 24 BK RB-LK IB IL 24 IB IL 24
(2) DI 4 DI 2
4.0
FLS IB M12
DIO 8/8
Folders in the device catalog where the devices listed in Figure 4-14 and Figure 4-15 can
be found:
• Insert the required INTERBUS devices from the device catalog at the "INTERBUS"
node of the INTERBUS proxy (e.g., FL PN/IBS).
• Insert the required Inline terminals from the device catalog at the "Inline" node of the
PROFINET IO bus coupler (e.g., FL IL 24 BK-PN-PAC).
Manually insert the INTERBUS modules connected to the PROFINET IO controller in the
same way as described above.
• Insert the required INTERBUS modules from the device catalog at the INTERBUS
node of the PROFINET IO controller (e.g., ILC 370 PN 2TX-IB).
At this point you can compile your project in order to detect any errors that may have
occurred.
Compiling a project • When compiling a project for the first time, select the "Rebuild Project" command from
the "Build" menu. For subsequent compiling processes, the "Make" command in the
"Build" menu can also be used (see also "Compiling (Additional Information)" on
page 4-18).
• If errors occur when compiling, remove the errors and repeat the compiling process
until it is completed successfully. Error messages must be removed. Warning
messages do not have to be removed.
If you are compiling the project but have not yet programmed anything, you will receive
the "Empty worksheet" warning message. This does not affect the next step. You can
ignore it.
The results of the compiling process are displayed in the message window together with
details of the number of errors and warnings.
Rebuild Project Use this command to compile an entire project for the first time or after modifying a user
library.
"Rebuild Project" compiles and links all worksheets. Errors and warnings that are
discovered by the compiler are logged in the message window. After the syntax has been
checked successfully, the system automatically generates the IEC code and the special
PLC code. Finally, the project can be sent to the PLC.
The "Rebuild Project" command should only be used if errors occurred when compiling
with "Make" or your project was unpacked without frontend.
Make The "Make" command is the standard mode for compiling. Use this command after editing
and completing your project.
When the "Make" menu item is executed, all modified worksheets are compiled/linked and
the modified PLC code is generated.
This command can be executed from the menu bar via "Build/Make", with the "Make" icon
in the toolbar or using the shortcut <F9>.
Modified worksheets in the project tree are identified by an asterisk that appears after the
worksheet name.
Both After the compiler has been started, the message window appears automatically if it was
closed before. This window indicates the steps the compiler is currently executing. In
addition, errors, warnings, and additional information about the process are logged here.
Once the compiling process has been completed successfully, i.e., no errors have been
reported, the modified project can be sent to the PLC.
It is now assumed that you have created the program. If you skip this point, this may
result in deviations.
At this point you can compile your project in order to detect any errors that may have
occurred.
This section provides a general description for generating variables and assigning process
data. Process data assignment for the example bus configuration is explained in later
sections.
Usually, variables are either generated during program creation or they are created
individually. When all the previous steps for creating a project including programming have
been performed, variables have already been created.
Variables can also be generated automatically for the process data of all devices
(PROFINET IO and INTERBUS). The variable names are assigned automatically
according to the following pattern:
<I or Q>_<PROFINET device name>_<IBS segment>_<IBS position>_<PD name>
Key:
I or Q I = Input; Q = Output
IBS INTERBUS
PD name Name of the process data item
For direct inputs/outputs or PROFINET IO status data, no INTERBUS data is required.
To generate variables, proceed as follows:
• In the top right window, select the device for which you would like to link the process
data to variables (e.g., IB IL AO 1/SF in Figure 4-19).
• Select the process data item for which you would like to generate a variable (~AO 16
in Figure 4-19).
• In the context menu for the process data item, select the "Create Variable" menu item.
Process data and control variables are assigned in the process data assignment
workspace.
The assignment is seamless for INTERBUS and PROFINET IO.
• Switch to the process data assignment workspace to assign the variables to the
process data.
• Select the control system in the top right window. The standard configuration is then
displayed in the top left window, "Symbols/Variables".
• In the top left window, "Symbols/Variables", select the standard resource (STD_RES
RFC450ET in Figure 4-21).
• In the top right window, select the device for which you would like to link the process
data to variables (e.g., IB IL 24 DO 8 in Figure 4-21).
• Select the process data item to be linked (1.1.1 in Figure 4-21).
• Using drag & drop, link the selected variable with one of the variables (OUT1 in
Figure 4-21) on the left-hand side.
In the bottom left window, the assignment between variables and process data is
displayed.
• Repeat this procedure for all inputs to be evaluated and for all outputs to be controlled.
PN Please note for a PROFINET IO device with inputs and outputs that this is represented with
its modules.
• In this case, select the module where the required inputs or outputs are located.
The result of the process data assignment is displayed in the following figure.
SIM
4.14 Setting the Communication Path: Simulation
This function is only available for processor type "IPC" controllers. For a list of controllers
that support this function, please refer to Appendix D "Overview of Phoenix Contact
Control Systems".
This item can be used to select a simulation environment and thus create a bus and
develop and check a program without the hardware having to be available.
• Switch to the bus configuration workspace to set the communication path between the
programming PC with PC WorX and the control system.
• In the "Bus Structure" window select the node for the control system.
• Select the "Communication" tab in the "Device Details" window.
• Select the "Simulation" interface type.
• Activate the simulation environment by clicking "Apply".
Apart from during simulation, the following work can only be carried out if a system has
been installed and a connection has been established between your PC with PC WorX and
the controller.
For some controllers (e.g., RFC 430 ETH-IB), the IP address can only be set via the
diagnostic display or a special firmware service (see user manual for the controller).
For a number of controllers (e.g., ILC 350 ..., ILC 370 ...) BootP is activated by default upon
delivery for assigning the IP address via Ethernet. In this case, when setting the IP address
for the first time a BootP server can be used.
However, the first IP address can also be set manually using the PC WorX software via the
serial interface. The IP address can be changed later via the serial connection or Ethernet
using the PC WorX software. In the following, address assignment via PC WorX is
described.
After assigning the IP parameters, PC WorX automatically creates a link via TCP/IP as
a communication path to the controller.
If the IP parameters were assigned using the BootP server, this section can be skipped.
• If you would like to change the network settings, specify the new settings.
• Confirm the display or your entry via "Send".
• Reset the control system in the "Activate Network Settings" area via "Reset Control
System".
The controller needs some time before it is ready to operate again. It indicates that it is
ready via the RUN LED that is either permanently ON or flashing cyclically.
IB PN
4.17 Setting the Communication Path
For a control system that supports Ethernet (e.g., ILC 3xx ETH, ILC 350 PN,
ILC 370 PN 2TX-IB), the communication path is automatically set to "Ethernet" by
default with the IP parameters of the controller specified under IP Settings. If you would
like to send your project to the control system via this Ethernet connection, the
communication path does not have to be set.
Since both the INTERBUS and PROFINET project have been created using the example
of an ILC 370 PN 2TX-IB, the communication path setting displayed applies to this
controller.
• Switch to the bus configuration workspace to set the communication path between the
programming PC with PC WorX and the control system.
• In the "Bus Structure" window select the node for the control system.
• Select the "Communication" tab in the "Device Details" window.
• Select the communication path to the control system.
BootP is activated by default upon delivery for assigning IP parameters with an Inline
Controller via Ethernet.
If you would like to change this setting, select the serial port as the communication path
and specify the IP parameters in the "Extended Settings" dialog box. This setting is
activated following a control system reset.
Ordering data:
Connecting cable for connecting the controller to a PC (V.24 (RS-232)) for PC WorX,
length 3 m (Order Designation PRG CAB MINI DIN, Order No. 2730611).
• In the in the "Device Details" window, select the "Serial Port" interface type in the
"Communication" tab.
• Select the interface (e.g., COM1).
• Check the specified communication path by clicking on "Test".
The communication path has been tested successfully if a green status indicator
appears in the window. If a red status indicator appears, check the communication
path and change it, if necessary.
• Save your settings in the project via "Apply".
• Check the specified communication path and therefore the IP address by clicking "Test".
The communication path has been tested successfully if a green status indicator
appears in the window. If a red status indicator appears, check the communication
path and the settings and change, if necessary.
If a red status indicator appears, an IP address may not have been assigned or the IP
address needs to be changed. To assign and change the TCP/IP settings, please
proceed as described in "Assigning the IP Address for the Controller" on page 4-24
(general), "Assigning the IP Address for the Controller" on page 5-5 (for INTERBUS)
or "Assigning the IP Address for the PROFINET IO Controller" on page 6-7 (for
PROFINET).
• Save your settings in the project via "Apply".
The Inline Controller can be accessed via a network using the Ethernet interface and the
TCP/IP protocol. Please note that with all networked devices/computers, there is a risk
that third parties may access the Inline Controller or the PC WorX computer and make
changes, either intentionally or unintentionally. Prevent unauthorized access to the Inline
Controller and your PC.
If you have inserted the PROFINET IO devices manually, skip this section.
All the connected PROFINET IO devices are displayed. When reading, the device name
and the IP parameters are read for each device - provided it is present.
• Select the devices that are to be included in your project.
If a PROFINET device name does not yet exist for a device, a name should be assigned
at this point.
The settings can also be checked in the "Read PROFINET" window. All PROFINET IO
devices should now have a PROFINET device name. The IP parameters are assigned
later.
If a device is displayed in the list without a device name, assign the PROFINET device
name to this device.
• Select the device in the bus configuration.
• In the "Device Details" window, switch to the "PROFINET Stationnames" tab.
• Select the device with no name.
If you have made the PROFINET settings for the PROFINET IO devices offline after
inserting the PROFINET IO devices, skip this section.
When reading, the PROFINET settings of the relevant PROFINET IO devices are included
with default values. Check these settings and modify, if necessary.
Figure 4-42 All devices with PROFINET device names and IP addresses
When the tab is selected, the list is updated. If you would like to update the list again later,
click on "Refresh".
In order to limit the search results, different options are available:
No constraints All devices that are available in the network are listed.
Unnamed All those devices that do not yet have a PROFINET device
name are listed.
Not in project All those devices that are not included in the project are
listed.
For additional information about assigning PROFINET device names and IP addresses,
please also refer to "Additional Information" on page 6-15.
If you have inserted the INTERBUS devices manually, skip this section.
The bus configuration must actually be available and power must be supplied to the
modules.
• Select the "Connected Bus" command from the "View" menu to read the connected
INTERBUS system.
For PROFINET, the PROFINET IO devices can also be selected as the control system
(FL IL 24 BK-PN-PAC in Figure 4-44).
This activates the "online" operating state and the control system reads the connected
INTERBUS configuration.
Once the control system has read the connected INTERBUS system, the INTERBUS
devices must be accepted in the project.
• Select the control system in the "Connected Bus" window.
• Open the context menu and select the "Import to Project... With Device Description"
command.
The "Select Device" window lists the modules, whose device description corresponds to
that of the connected devices.
• Select the device that is actually connected in the INTERBUS system, and repeat this
step until all the devices are linked to their device description.
• Disconnect the link to the control system by selecting "Offline" under "Selected Control
System" in the "Connected Bus" window.
PROFINET IO controller After the communication path to the PROFINET IO controller has been set, the INTERBUS
devices connected to the controller can be read.
PROFINET IO device After device names and IP parameters for the PROFINET IO devices have been assigned,
the INTERBUS devices connected to the PROFINET IO devices can be read.
• Select all the "control systems" that are connected to the INTERBUS devices. These
include the Inline Controller as well as all the PROFINET IO devices displayed in the
"Connected Bus" window.
• Read the INTERBUS devices as described above.
The product designation or the station name is displayed under "Selected Control
System". If several devices of the same type are used in a project, first assign the
devices a station name. This enables the unique identification of the devices.
At this point you can compile your project in order to detect any errors that may have
occurred.
At this point you can compile your project in order to detect any errors that may have
occurred.
If the process data has been assigned offline, skip this section.
To assign the process data, proceed as described in "Generating Variables and Assigning
Process Data" on page 4-19.
When working online, the project is written to the main memory of the control system.
When working in simulation mode, the project is written to the simulated main memory of
the control system.
If only the "Close" button is enabled in the project control dialog box that opens, there is
no valid connection to the control system. In this case, check the communication path.
• Click on "Download".
Another dialog box opens. There are various options for sending the project to the control
system or the simulated control system.
1. Click on "Download" in the "Project" area.
2. Click on "Download" in the "Bootproject" area.
3. Activate the "Include Bootproject" checkbox in the "Project" area and click on
"Download" in this area.
In the first option, the project is sent. However, it is not loaded automatically when booting
the control system.
For option 2 and 3, the project is written as a boot project to the parameterization memory
of the control system and is loaded automatically after the control system has been booted.
Option 3 is shown in Figure 4-49.
• Activate the "Include Bootproject" checkbox in the "Project" area and click on
"Download" in this area.
For control systems that support the "Download Changes" function, the "Download" dialog
box appears as shown in Figure 4-50. If the "Download Changes" function is used, activate
the "Ensure realtime for Download Changes" and "Include Bootproject" checkboxes.
The project is now in the real or simulated main memory of the control system.
If the system cannot be started up, a corresponding error message appears on the
diagnostic display (for control systems with diagnostic display) and in the message window
in PC WorX and Diag+.
For an explanation of the error message, please refer to the Diagnostics Guide
(IBS SYS DIAG DSC UM E, Order No. 2747293).
For example, the ILC 350 ETH controller has been started up successfully if the green
PLC RUN LED is ON.
Communication to the PROFINET IO devices has been established successfully if the
BF LED does not flash on any of the PROFINET IO devices.
If no settings have been made for the task, a default task is used. If necessary, change the
properties of the task (in the example below a default task is changed to a cyclic task).
In order to use debug mode, a program must have been created in your project. The
method of operation of the program can be monitored in debug mode.
For PROFINET IO devices, the system variable PNIO_DATA_VALID can be assigned, for
example. The status can be read here. Only if this bit is set does the PROFINET IO device
supply valid data and all other process values are valid. In this way, you can check in this
window whether all PROFINET IO devices supply valid data. For information on system
variables, please refer to Appendix B "Status Information for a PROFINET IO System".
Figure 4-58 Variables in debug mode: System variables of the PROFINET IO devices
The program status of a POU is displayed by opening the program worksheet (in
Figure 4-59 under "Main" in the "Project Tree Window" or under "Main:Main" on the tab in
the worksheet).
The status of all global variables is displayed under "Global Variables" in the "Project Tree
Window".
• Switch to the window that provides the best display of the required information.
• Perform the simulation. For an example, please refer to "Simulation and Debug Mode"
on page 7-11.
If the PLC is set to STOP, all outputs are set to their safe state. On control system startup,
process values are output again.
Once you have successfully completed the simulation for your program, you can switch to
your hardware. To do this, the actual bus configuration must correspond to the simulated
bus configuration.
• Stop the simulation. To do so, click on "Stop" in the project control dialog box.
• Stop debug mode. To do this, click on "Debug on/off".
• Switch to the bus configuration workspace.
• In the "Device Details" window, switch to the "Communication" tab.
• Select the communication path (see "Setting the Communication Path" on page 4-27).
• Send the project to the control system and perform a cold restart (see "Compiling and
Sending a Project, and Performing a Cold Restart" on page 4-42).
In the following, an example project is developed using function block diagram (FBD)
programming language.
In order to obtain the best possible results, please use the same identifiers and names
as used in this user manual.
PC with
PC WorX
LNK
ACT INLINE CONTROL
ILC 370 PN 2TX-IB 11 22 11 22 11 22 11 22 11 22 11 22 11 22 11 22 11 22 11 22 11 22 11 22 11 22 11 22 11 22 11 22 11 22
100
Ord. No.: 2876915
RESET 1 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 1
IB RB IN RB OUT
2 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 2
xxxxxxx (Seriennr.)
RC IL
PRG 3 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 3
BA RDY / RUN
RD BSA
4 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 4
TR FAIL
PF
5 55 55 55 5 5 55 55 55 5
6 66 66 66 6 6 66 66 66 6
IB IL 24 DO 16
IB IL 24 DO 8
IB IL 24 DI 8 7127A002
Inputs and
outputs/process data
Table 5-1 Inputs and outputs used in the example including process data and assigned variables
Device Input/Output Signal at Variable Process Data
According to the Item
Device Data Sheet
ILC 370 PN 2TX-IB Input IN11 Co 3 TP 1.4 ONBOARD_INPUT_BIT10 3.1.4
IB IL 24 DI 8 Input IN2 Co 1 TP 2.1 IN2 1.2.1
Input IN5 Co 3 TP 1.1 IN3 3.1.1
IB IL 24 DO 8 Output OUT1 Co 1 TP 1.1 OUT1 1.1.1
Output OUT6 Co 3 TP 2.1 OUT2 3.2.1
IB IL 24 DO 16 Outputs OUT1 to Co 1 to 4 V0 ~DO16
OUT16 TP x.1 and x.4
No assignment required T1
T2
Co Connector
TP Terminal point
x Row on the Inline connector
INTERBUS
OFFLINE ONLINE
Start
IB PN SIM
IB PN SIM IB PN
IB PN SIM
Yes No
Specify project information SIM IB PN
Check/modify IP settings
for controller A
IB PN SIM IB PN
Yes IB PN Yes
System Program created?
installed? Assign IP address Process data
for controller assigned?
No No
PN IB PN IB PN
PN IB PN
PN
Check/modify PROFINET
Yes Assign process data
settings for IO devices IO devices
inserted?
IB PN SIM
No A
Manually insert PN IB PN SIM
INTERBUS devices
Read IO devices Compile and send project,
IB PN SIM and perform cold restart
Create program PN
IB PN SIM
Check/modify PROFINET
settings Operation (end)
IB PN SIM
PN
7127B020
Assign PROFINET device
name / IP settings
The IP settings for the controller are made when the project is created.
If any modifications are made to the project information that affect the IP settings for the
controller, a warning is displayed. However, the modification is not implemented
automatically. When a new project is created, the default settings are specified as the
IP settings.
The IP address that is assigned here for the controller is also implemented as the
IP address for the communication path via TCP/IP.
See also "Assigning the IP Address for the Controller" on page 4-24.
For a control system that supports Ethernet (e.g., ILC xxx ETH, ILC 370 PN 2TX-IB), the
communication path is automatically set to "Ethernet" by default with the IP address of
the controller specified under IP Settings. If you would like to send your project to the
control system via this Ethernet connection, the communication path does not have to
be set.
If not using this path, please proceed as described in "Setting the Communication Path"
on page 4-27.
• Select the "Connected Bus" command from the "View" menu to read the connected
INTERBUS system.
• Select the control system (here: "ILC 370 PN") in the "Connected Bus" window.
• Open the context menu and select the "Import to Project... With Device Description"
command.
The "Select Device" window lists the modules, whose device description corresponds to
that of the connected devices.
• Select the device that is actually connected to the INTERBUS system, and repeat this
step until all the devices are linked to their device description. According to the
example, the following I/O modules are connected: IB IL 24 DO 16, IB IL 24 DO 8,
and IB IL 24 DI 8.
• Disconnect the link to the control system by selecting "Offline" under "Selected Control
System" in the "Connected Bus" window.
See also "Compiling After Completing the Bus Topology" on page 4-17.
It is now assumed that you have created the program. If you skip this point, this may
result in deviations.
See also "Generating Variables and Assigning Process Data" on page 4-19.
• Switch to the process data assignment workspace to assign the variables to the
process data.
• Select the control system in the top right window. The standard configuration is then
displayed in the top left window, "Symbols/Variables".
• In the top left window, "Symbols/Variables", select the standard resource (in the
example: STD_RES ILC370PN).
• In the top right window, select the device for which you would like to link the process
data to variables (IB IL 24 DI 8 in Figure 5-4).
• Select the process data item to be linked (3.1.1 in Figure 5-4).
• Variables are created when the program is created. Using drag & drop, link the
selected variable with one of the variables (IN3 in Figure 5-4) on the left-hand side.
If you would like to link further process data but no corresponding variables have been
created yet, select "Create Variable" in the context menu.
The generated variable is displayed in the bottom left window.
• Repeat this procedure for all inputs to be evaluated and for all outputs to be controlled.
The result of the process data assignment is displayed in the following figure.
See also "Compiling and Sending a Project, and Performing a Cold Restart" on
page 4-42.
Compiling a project
Sending a project
5.14 Operation
In the following, an example project is developed using function block diagram (FBD)
programming language.
In order to obtain the best possible results, please use the same identifiers and names
as used in this user manual.
Project hardware Specify the system structure during configuration. A system consisting of PROFINET IO
and INTERBUS comprises the PROFINET IO controller (control system), PROFINET IO
devices, and INTERBUS devices. The example system is shown in Figure 6-1.
PC
PC WorX
ILC 370 PN 2TX-IB FL SWITCH MCS 16TX
ETH 1 PLC
MRESET 1 3 5 7 9 11 13 15
LNK RUN FL SWITCH MCS 16TX
Ord. No. 28 32 70 0
ACT
STP FAIL I1 I5 I9 Q1 E US
I2 I6 I10 Q2 UM
100 RUN / PROG I3 I7 I11 Q3 UL
I4 I8 I12 Q4
10/100
MODE
LNK
ACT INLINE CONTROL 2 4 6 8 10 12 14 16
ILC 370 PN 2TX-IB 11 22 11 22 11 22 11 22 11 22 11 22
100
Ord. No.: 2876915 MAC US1 US2 FAIL
Address 00.A0.45.1B.D2.1D
RESET 1 11 11 11 11 11 1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
IB X17 X18 X19
RB IN RB OUT US1 GND US2 GND R1 R2 V.24 ACT 100 FD
2 22 22 22 22 22 2
xxxxxxx (Seriennr.)
RC IL
PRG 3 33 33 33 33 33 3
BA RDY / RUN
RD BSA
4 44 44 44 44 44 4
TR FAIL
PF
5 55 55 55 5
6 66 66 66 6
IB IL AO 1/SF
ILB PN 24 DI16
FL IL 24 BK-PN-PAC DIO16-2TX
FL PN/IBS
US D D
1 1
UM 2 2 UL RDY/RUN
3 3 BSA
RESET UL 4 4
DO4 DI4
FAIL
PF
100
1 2 1 2 1 2
100
INTERBUS
FD
FD Reset REMOTE
COL 1 1 1 1 COL
XMT
XMT RCV
2 2 2 2
RCV
LNK 3 3 3 3 3 3
10/100 10/100
00A0451B8D
4 4 4 4 4 4
INTERBUS LB D LB LB D LB
IB IL 24 DO 4-ME U LS
US E
U LS U LS
US E
U LS
I1 I2 I1 I2
I3 I4 I3 I4
01 02 01 02
03 04 03 04
UA UA11 UA UA UA11 UA
Several PROFINET IO controllers can be used within one project. In this example, only
one PROFINET IO controller is used.
Inputs and
outputs/process data
Table 6-2 Inputs and outputs used in the example including process data and assigned variables
Device Connected at Input/Output Signal at Variable Process
According to Data
the Device Item
Data Sheet
FL SWITCH MCS 16TX
ILC 370 PN 2TX-IB Input IN11 Co 3 TP 1.4 ONBOARD_ 3.1.4
INPUT_BIT10
ILB PN 24 DI16 DIO16-2TX Outputs OUT1 Co 1 to 4 V0 ~DO16
to OUT16 TP x.1 and x.4
IB IL AO 1/SF ILC 370 PN 2TX-IB
IB IL 24 DO 4-ME FL IL 24 BK-PN-PAC Output OUT3 TP 1.4 OUT1 1.4
IB IL 24 DI 4-ME FL IL 24 BK-PN-PAC Input IN1 TP 1.1 IN2 1.1
FLS IB M12 DI 8 M12 FL PN/IBS Input IN3 FC 3 pin 4 IN3 IN3
FLS IB M12 DO 8 M12-2A FL PN/IBS Output OUT3 FC 3 pin 4 OUT2 OUT3
No assignment required T1
T2
Co Connector
TP Terminal point
FC Female connector
PROFINET
OFFLINE ONLINE
Start
IB PN SIM
IB PN SIM IB PN
IB PN SIM
Yes No
Specify project information SIM IB PN
Check/modify IP settings
for controller A
IB PN SIM IB PN
IB PN
System Yes Program created? Yes
installed? Assign IP address Process data
for controller assigned?
No No
PN IB PN IB PN
PN IB PN
PN
Check/modify PROFINET
Yes Assign process data
settings for IO devices IO devices
inserted?
IB PN SIM
No A
Manually insert PN IB PN SIM
INTERBUS devices
Read IO devices Compile and send project,
IB PN SIM and perform cold restart
PN
7127B021
Assign PROFINET device
name / IP settings
The IP settings for the controller are made when the project is created.
If any modifications are made under "Project Information" that affect the IP settings for
the controller, a warning is displayed. However, the modification is not implemented
automatically. When a new project is created, the default settings are specified as the
IP settings.
The IP address that is assigned here for the controller is also implemented as the
IP address for the communication path via TCP/IP.
See also "Assigning the IP Address for the Controller" on page 4-24.
For a control system that supports Ethernet (e.g., ILC 350 PN, ILC 370 PN 2TX-IB), the
communication path is automatically set to "Ethernet" by default with the IP address of
the PROFINET IO controller specified under IP Settings. If you would like to send your
project to the control system via this Ethernet connection, the communication path does
not have to be set.
If not using this path, please proceed as described in "Setting the Communication Path"
on page 4-27.
When reading, the PROFINET settings of the relevant PROFINET IO devices are included
with default values. Check these settings and modify, if necessary.
For additional information about assigning PROFINET device names and IP addresses,
please also refer to "Additional Information" on page 6-15.
The process for reading INTERBUS modules that are connected to a PROFINET IO
controller or a PROFINET IO device is the same.
PROFINET IO controller After the communication path to the PROFINET IO controller has been set, the INTERBUS
devices connected to the controller can be read.
PROFINET IO device After device names and IP parameters for the PROFINET IO devices have been assigned,
the INTERBUS devices connected to the PROFINET IO devices can be read.
• Select the "Connected Bus" command from the "View" menu to read the connected
INTERBUS system.
• Select one of the control systems displayed in the "Connected Bus" window.
• Open the context menu and select the "Import to Project... With Device Description"
command.
The "Select Device" window lists the modules, whose device description corresponds to
that of the connected devices.
• Select the device that is actually connected to the INTERBUS system, and repeat this
step until all the devices are linked to their device description.
• Select all the "control systems" that are connected to the INTERBUS devices. These
include the Inline Controller as well as all the PROFINET IO devices displayed in the
"Connected Bus" window.
• Disconnect the link to the control system by selecting "Offline" under "Selected Control
System" in the "Connected Bus" window.
See also "Compiling After Completing the Bus Topology" on page 4-17.
It is now assumed that you have created the program. If you skip this point, this may
result in deviations.
See also "Generating Variables and Assigning Process Data" on page 4-19.
• Switch to the process data assignment workspace to assign the variables to the
process data.
• Select the control system in the top right window. The standard configuration is then
displayed in the top left window, "Symbols/Variables".
• In the top left window, "Symbols/Variables", select the standard resource (in the
example: STD_RES ILC370PN).
• In the top right window, select the device for which you would like to link the process
data to variables.
Please note for a PROFINET IO device with inputs and outputs that this is represented with
its modules.
• In this case, select the module where the required inputs or outputs are located
(DIO16: ILB PN 24 DI16 DIO16-2TX in Figure 6-6).
• Select the process data item to be linked (~DO16 in Figure 6-6).
• Variables are created when the program is created. Using drag & drop, link the
selected variable with one of the variables (V0 in Figure 6-6) on the left-hand side.
The generated variable is displayed in the bottom left window.
• Repeat this procedure for all inputs to be evaluated and for all outputs to be controlled.
• For the specified example, assign the inputs and outputs to the created variables
according to Table 6-2 on page 6-3.
The result of the process data assignment is displayed in the following figure.
See also "Compiling and Sending a Project, and Performing a Cold Restart" on
page 4-42.
Compiling a project
Sending a project
6.18 Operation
If, following device naming, you wish to modify device names, proceed as follows:
If a project is located on the PROFINET IO controller, the controller attempts to start up the
PROFINET IO devices with the information stored in the project. In this case, a PROFINET
device name cannot be assigned. Therefore if there are Ethernet connections between the
PROFINET IO devices and the PROFINET IO controller with the project, these
connections must be aborted first. To do this, proceed as follows:
Figure 6-8 List of all PROFINET IO devices that can be accessed in the network
In the "Selected Device" area, the PROFINET IO device name specified under
"IP Settings" is displayed.
• From the list, select the corresponding PROFINET IO device (e.g., using the indicated
MAC address).
A flashing display can be triggered on the device via "Flashing On". This display can be
used to find the selected device in the field.
When the button is activated, the devices in the example system flash as follows:
If you receive an error message, first delete the name via "Delete Name" and then assign
the name again.
The PROFINET device name is transferred from the PC to the PROFINET IO device. The
previous parameters are still displayed as the IP parameters. The IP parameters are only
assigned in the next step.
• Assign the appropriate PROFINET device name to each PROFINET IO device.
• Compile the project, send it to the control system, and perform a cold restart (see
"Compiling and Sending a Project, and Performing a Cold Restart" on page 4-42).
In this example, the newly specified names (e.g., ilb-di16-dio16) are extended to include
the Domain Postfix quickstart.de specified in the project node. This is the complete
PROFINET device name.
• To view the IP addresses in the bus configuration in ascending order, renumber the
IP addresses as well.
All the devices in the project now have the correct IP parameters. In the following section,
these parameters must actually be assigned to the devices.
• Compile the project, send it to the control system, and perform a cold restart
(see "Compiling and Sending a Project, and Performing a Cold Restart" on page 4-42).
In order to enable the connected INTERBUS modules to be read in the bus configuration,
the IP parameters must be assigned to the PROFINET IO devices.
There are two options for assigning IP parameters. Select an option based on the specified
requirements.
Figure 6-12 All devices with PROFINET device names and IP parameters
Figure 6-13 All devices with PROFINET device names and IP parameters
If error messages are displayed and if the IP parameters are not accepted:
• Check whether the BF LED is flashing.
If so: Check all Ethernet connections as well as your previous actions.
If not: You cannot assign any IP parameters. Either interrupt communication or
proceed according to "Option 1: IP Parameter Assignment During PROFINET IO
Controller Startup" on page 6-19.
In the following, an example project is developed for the simulation using function block
diagram (FBD) programming language.
In order to obtain the best possible results, please use the same identifiers and names
as used in this user manual.
PC with
PC WorX
RFC 450 ETH-IB
FCR
/PR UN
OG
FCR
UN
STO
P
FCR
ES
10/
100
Bas
LIN e-T
K
TRA
FFI
C
RU
N
SYS
FAIL
CO
FCR M1
UN
FCD
BG
I/O
IBS IL 24 BK T/U
Ord.No.: 27 30 20 0
RE
RFC 450 ETH-IB
SE
T
PR
G
RE
MO
TE
INT
ER +
BUS
–
+
–
24V
DC
BA RD UL US 1 D 1 1 1 1 D 1 1 1 1 D 1 1 1
2 2 2 2 2 2 2 2 2 2 2 2
RC LD UM 3 3 3 3
4 4 4 4
BK-T/U
1 2 1 2 1 2 1 2 11 22 11 22 11 22 11 22 11 22 11 22 11 22 11 22 11 22 11 22 11 22 11 22
1 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 1
2 22 22 22 22 22 22 22 22 22 22 22 22 22 22 22 2
3 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 3
4 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 4
5 55 55 55 5
6 66 66 66 6
IB IL 24 DO 16
IB IL 24 DO 8
IB IL 24 DI 8 7127A013
Inputs and
outputs/process data
Table 7-1 Inputs and outputs used including process data and assigned variables
Co Connector
TP Terminal point
x Row on the Inline connector
The sequence for creating the simulation project is shown in Figure 7-2.
When implementing the project all of the tasks are performed offline (without a connection
to the system).
Simulation
OFFLINE ONLINE
Start
IB PN SIM
IB PN SIM IB PN
IB PN SIM
Yes No
Specify project information SIM IB PN
Check/modify IP settings
for controller A
IB PN SIM IB PN
Yes IB PN Yes
System Program created?
installed? Assign IP address Process data
for controller assigned?
No No
PN IB PN IB PN
PN IB PN
PN
Check/modify PROFINET
Yes Assign process data
settings for IO devices IO devices
inserted?
IB PN SIM
No A
Manually insert PN IB PN SIM
INTERBUS devices
Read IO devices Compile and send project,
IB PN SIM and perform cold restart
Create program PN
IB PN SIM
Check/modify PROFINET
IB PN SIM settings Operation (end)
PN
7127B019
Assign PROFINET device
name / IP settings
If you want to use a different control system for the example project then select a different
project template. Please note that the following descriptions may differ.
Always select only one processor type "IPC" control system.
The IP settings for the controller are made when the project is created.
If any modifications are made to the project information that affect the IP settings for the
controller, a warning is displayed. However, the modification is not implemented
automatically. When a new project is created, the default settings are specified as the IP
settings.
The IP address that is assigned here for the controller is also implemented as the IP
address for the communication path via TCP/IP.
See also "Compiling After Completing the Bus Topology" on page 4-17.
It is now assumed that you have created the program. If you skip this point, this may
result in deviations.
See also "Generating Variables and Assigning Process Data" on page 4-19.
• Switch to the process data assignment workspace to assign the variables to the
process data.
• Select the control system in the top right window. The standard configuration is then
displayed in the top left window, "Symbols/Variables".
• In the top left window, "Symbols/Variables", select the standard resource (in the
example: STD_RES: RFC450ET).
• In the top right window, select the device for which you would like to link the process
data to variables (IB IL 24 DO 16 in Figure 7-4).
• Select the process data item to be linked (~DO16 in Figure 7-4).
• Variables are created when the program is created. Using drag & drop, link the
selected variable with one of the variables (V0 in Figure 7-4) on the left-hand side.
See also "Compiling and Sending a Project, and Performing a Cold Restart" on
page 4-42.
Compiling a project
Sending a project
Cold restart Perform a cold restart as described in "Compiling and Sending a Project, and Performing
a Cold Restart" on page 4-42.
The cold restart activates the project. The simulation can now be started.
7.13 Operation
If no settings have been made for the task, a default task is used. If necessary, change the
properties of the task (in the example below a default task is changed to a cyclic task).
In the program output state, Start = FALSE, only the status LED of the set output
(V0 = 16#0001) is ON.
In "DEMOIO-DRIVER" activate the IN0 LED, so that Start = TRUE and the program is
started. The following actions are performed:
– Pulse output S1 = TRUE (see S1 in the "MainV" window)
– The counter for the elapsed time T2 is started (see T2 in the "MainV" window).
– Output 0 of IB IL 24 DO 8 (variable OUT1) is set. This module is displayed in slot 2
(OUT/8) of the rack in "DEMOIO-DRIVER". The OUT0 status LED lights up.
– The chasing light is started (see V0 in the "MainV" window). This module is displayed
in slot 0 (OUT/8) and slot 1 (OUT/8). The status LEDs for these two slots light up in
succession.
If input IN0 is set to TRUE when the maximum time is reached, T2 remains set to 15000.
As soon as IN0 switches to the FALSE state, T2 is set to 0.
• Activate and deactivate IN0 to check the validity of this program part.
The program part with the AND block operates independently of the program part with the
pulse timer.
• Activate and deactivate the LEDs that are assigned to inputs IN2 and IN5.
Output OUT5 of module IB IL 24 DO 8 responds according to the result of ANDing.
Once you have successfully completed the simulation for your program, you can switch to
your hardware. To do this, the actual bus configuration must correspond to the simulated
bus configuration.
• Stop the simulation. To do so, click on "Stop" in the project control dialog box.
• Stop debug mode. To do this, click on "Debug on/off".
• Switch to the bus configuration workspace.
• In the "Device Details" window, switch to the "Communication" tab.
• Select the communication path (see "Setting the Communication Path" on page 4-27).
• Send the project to the control system and perform a cold restart (see "Compiling and
Sending a Project, and Performing a Cold Restart" on page 4-42).
8 Example Program
A different example project is described in each of the previous sections. The various
sections focus on the following topics:
– Section 5, "Example Project for an INTERBUS System"
– Section 6, "Example Project for a System Consisting of PROFINET IO and
INTERBUS"
– Section 7, "Example Project for a Simulation With Processor Type "IPC" Control
Systems"
The procedure for creating the program in the software is the same. This is described in
this section.
ONBOARD_INPUT_BIT10) In the example, when using an Inline Controller a system variable is used for the onboard
/ S1 inputs and outputs (here: ONBOARD_INPUT_BIT10).
Otherwise a user variable is used (S1).
VAR (VAR_EXTERNAL) If a variable will only be used internally and will not be assigned to a process data item, it
can be declared as VAR. However, if this variable is to be monitored in debug mode or in
the simulation, declare it as VAR_EXTERNAL. This is why in the example program the
variables are declared as VAR_EXTERNAL.
8.3 Programming
• Enter the name "TP_1" for this function block in the "Variable Properties" window and
confirm your entry with "OK".
• Double-click on the "IN" input parameter of the function block to define the variable
properties.
Select the relevant next step depending on whether you would like to assign the "IN" input
parameter for a user variable or a system variable:
Action User variable S1 System variable
ONBOARD_INPUT_BIT10
(Used for the simulation example) (Used for the example with the
ILC 370 ETH 2TX-IB)
• To set the scope of validity, open all folders
under "Global Variable Groups" and select
the following in the "STD_RES" folder: "Default" "System Variables"
• At the top of the section, select the scope of
validity as: "Local" "Global"
• In the "Variable Properties" window, enter or • Enter the name S1. • Select the corresponding
select the name for the "IN" input parameter variable.
under "Name". For input 11 of the
ILC 370 ETH 2TX-IB this is
ONBOARD_INPUT_BIT10.
Setting the scope of validity is only necessary when creating a variable for the first time
in the corresponding scope of validity. All other variables are also assigned to the
selected group.
• Specify the data type. The variable is a bit variable and thus a "BOOL" data type.
• Select "VAR_EXTERNAL" (for "Local" scope of validity) or "VAR_GLOBAL" (for
"Global" scope of validity) in the "Usage" selection box because the variable will later
be assigned to a process data item.
If you have created a variable as VAR, which you later would like to use as
VAR_EXTERNAL, proceed as follows to change it:
• Select "VAR_EXTERNAL" in the "Usage" selection box.
• Create the variable in the "Project Tree Window" as a global variable under
"Global_Variables".
• Insert function block BOOL_TO_DINT. A parameter declaration is not required for this
block.
• Insert block ROL.
• Declare the required parameters according to Table 8-2 "Rotate to left ROL" on
page 8-3.
• Insert block AND.
• Declare the required parameters according to Table 8-3 "ANDing function block AND"
on page 8-3.
All function blocks are shown in Figure 8-7 with the required parameters.
Figure 8-7 All function blocks inserted with the required parameters
Deleting Variables
If variables are created during program creation, they are created in different worksheets.
When variables are deleted or renamed in the program, they are not automatically deleted
or renamed in the other worksheets.
An error message is therefore displayed when compiling.
• In this case, delete the variables that are not used from the areas marked in the tabs
in Figure 8-9 ("Global_Variables" and "MainV:Main").
Specify the project name • In the bus configuration, select the "Safe Control" node on the PROFINET proxy with
for the INTERBUS Safety integrated safe controller.
project • Assign the project name in the "Device Details" window.
Preparing a project Make all the settings for the project according to the user manual for the PROFINET proxy
with safe controller that is used. This includes, for example:
– PROFINET settings
– Process data exchange with the standard control system
(exchange, acknowledgment, and standard variables)
Starting SafetyProg Once the project has been completed in PC WorX, SafetyProg can be started.
• Make sure you are in the bus configuration or process data assignment workspace.
• Select the "Safe Control" node on the PROFINET proxy with integrated safe controller.
• In the context menu select the "SafetyProg" menu item.
For detailed information about operating the SafetyProg software, please refer to the
online help or the Quick Start Guide for the software.
Some control systems have an internal system clock (e.g., ILC 350..., ILC 370...). In the
"Extended Settings" tab, the time and date can be set for the internal system clock of the
control system.
The current control system time is read and displayed every time the "Extended Settings"
tab is opened. The display then indicates this value until the "Extended Settings" tab is
opened again.
If you want to apply the system time and date from your PC:
Requirement: A connection between the PC and control system.
• Switch to the bus configuration workspace.
• Select the control system node (e.g., "ILC 370 PN").
• Select the "Extended Settings" tab in the "Device Details" window.
• Click on "System Time".
• Then immediately click on "Send" to transmit the data in the "Realtime Clock Settings"
tab to the control system.
If you want to set different values:
• Enter the values for the time and date.
• Then click on "Send" to transmit the data in the "Realtime Clock Settings" tab to the
ILC 350 PN.
PC WorX provides two functions that can be used to send project modifications to the
control system(s) and activate them there without having to stop the active PLC.
The "Download Changes" function is only available for controllers with an "IPC_40" or
"ARM_L_40" processor (see also Table D-1 on page D-2).
Download
If realtime violations are permitted, first ensure that your PLC application is running within
safe limits. Please note that each realtime violation may result in unexpected
consequences in the automation system, as under certain circumstances user tasks are
not processed for a short time. Therefore, check the level of risk before disabling this
option.
For more detailed information on the "Download Changes" function and on ensuring
realtime with detailed background information, please refer to the online help for
PC WorX.
To determine when the "Download Changes" function can or cannot be used, please refer
to the table below.
In principle, modifications in SFC POUs are permitted. However, they can result in critical
PLC states if the "Download Changes" function is executed when the PLC is running. For
example, the execution of an SFC step chain could be blocked if an active step is deleted.
These SFC modifications include:
– Modifying a previous/subsequent relationship.
– Modifying step properties (type).
– Modifying step/action relationships.
– Modifying qualifiers (action qualifiers).
In these cases, a warning is generated. Check the existing level of risk before continuing the
process by confirming the warning.
Table A-2 Application options and restrictions for "Download Changes" (Continued)
Area Can Be Used After Cannot Be Used After
Data types – Modifying the data type of variables, whereby
the variables are reinitialized
– Adding/deleting data types
– Modifying data type declarations. Modified data
variables are initialized.
– Modifying the data area
Function – Declaring new function block instances (user/
blocks firmware)
Program – Modifying comments in the program code
– Adding/deleting program instances
Tasks – Modifying task cycle times – Adding or deleting tasks
– Modifying watchdog times for tasks – Modifying task properties other than the cycle
time and the watchdog time (i.e., task type,
priority, event number, SPG assignment, stack
size)
I/O – Modifying driver parameters in the I/O – Modifying VAR_CONF groups in the I/O
configuration configuration configuration
– Adding/deleting an I/O group in the – Modifying I/O group properties other than the
I/O configuration driver parameters (e.g., addresses, the driver
itself, task assignment, etc.)
Other – Adding new configurations and resources
If a restriction is not observed, the system displays an error message in the message
window. Call the help information for the error message by right-clicking on the entry in the
message window and selecting the "Message Help" context menu item. Undo the relevant
modification, rebuild the project, and execute "Download Changes" again.
For additional information, please refer to the online help for PC WorX.
"Online modification" of a POU means that in a single step the modifications in the project
are compiled and the code is generated and automatically sent to the active PLC. During
the entire process the PLC continues running, i.e., the program executed on the PLC is not
interrupted during compilation and transmission.
The "Online Modifications" menu item is only available in offline mode. The affected
worksheet can be set to online and offline mode via the "Debug ON/OFF" icon in the
toolbar.
"Online Modifications" can be called via the "Build/Online Modifications" menu item or via
the corresponding icon (see "Frequently Used Icons for Compiling and Debugging" on
page 3-3).
The "Online Modifications" command can be used in two ways:
1. Correcting errors in the code.
If a programming error is discovered in online mode and you have switched to offline
mode to correct the error, the modifications made can be compiled with "Online
Modifications".
2. Further development of a basic project.
In some cases it is easier and more convenient to develop a project using online
modifications rather than via the "Make" command. Once a basic project has been
compiled for the first time with "Make", this "skeleton project" can be completed by
editing the individual POU code worksheets and using "Online Modifications" to add
these extensions to the PLC program, which is already running on the target system.
In both cases, the modifications are sent automatically to the PLC without interrupting PLC
operation, i.e., the modifications can then be seen in online mode.
To determine when the "Online Modifications" function can be used, please refer to the
table below.
Please observe the following when modifying functions and function blocks:
For online modifications to be possible in the above cases, the project must have been
compiled with "Make" and sent to the target system. In addition, online mode must
already be active.
For additional information, please refer to the online help for PC WorX.
Retentive variables are declared with the keyword "RETAIN". The value of a retentive
variable is retained even if the PLC is switched off. The last value of the variable is used
for a warm start.
With the "Download Changes" function, the retain data is only retained if the current
project has been saved to the parameterization memory.
Therefore when sending activate "Include Bootproject" (see Figure A-2 on page A-2) to
avoid inconsistencies.
For a list of control systems that support the function, please refer to Table D-1
"Phoenix Contact control systems" on page D-2.
For additional information, please refer to the online help for PC WorX.
A4 Simulation
For processor type "IPC" control systems PC WorX can be used to develop a project
completely without hardware and to simulate operation. If you then install the hardware
according to the simulated configuration, you can start up your project on the hardware by
changing the communication path.
For an example of the simulation, please refer to Section 7, "Example Project for a
Simulation With Processor Type "IPC" Control Systems".
To simply replace one control system with another, a wizard is provided for replacing
complex devices. It may be necessary to replace the control system, e.g., if you have
carried out the simulation of a project with an RFC 450 ETH-IB, but would like to use an
ILC 370 PN 2TX-IB for the actual project.
• Switch to the bus configuration workspace.
• In the "Bus Structure" window select the control system to be replaced
(RFC 450 ETH-IB in Figure A-3 on page A-9).
• Open the context menu for the control system.
• Select the "Replace..." menu item.
If the window is empty, the control system that is currently used cannot be replaced with
another one.
• Select the new control system to be used (e.g., ILC 370 PN).
The wizard indicates whether the control system was replaced successfully and also
displays special information.
In this example, it would be better to connect the Inline terminals directly to the Inline
Controller instead of using a branch terminal and a bus coupler.
• In this case, adapt the bus configuration.
• Move the Inline I/O terminals directly to the INTERBUS node of the control system.
• First delete the bus coupler (IBS IL 24 BK-T/U) and then the branch terminal
(IBS IL 24 RB-T).
Figure A-8 Manually adapted bus configuration with new control system
If a control system has been replaced with a different type of control system, as shown in
the example, the following error message is displayed in the message window: "Resource:
Invalid configuration type for resource "STD_CNF.STD_RES". The current type is
"IPC_40". However, type "ARM_L_40" is expected."
• In this case, first adapt the configuration then the resource.
• Switch to the IEC programming workspace.
• Open the context menu for the configuration and select the "Properties..." menu item.
• Open the context menu for the resource and select the "Properties..." menu item.
Device description files are FDCML or GSD files, which provide a complete description of
a device. If the device catalog does not contain a corresponding device description file, it
must be imported.
When PC WorX is reinstalled, the device description files for the devices available at the
time are also installed. These descriptions are also found in the device catalog. When
installing PC WorX service packs, new device description files are installed in folder
...\FDCML10\...\Phoenix Contact. These new descriptions are not included in the device
catalog yet. They must be imported where necessary.
• Select "Phoenix Contact" in the "Device Catalog" window in PC WorX.
• Open the context menu and select "Import Device...".
• Select the device description file. If you have used the suggested standard installation,
the files are located in directory
C:\Program Files\Common Files\FDCML10\xxx\Phoenix Contact.
xxx = system (e.g., ETHERNET, INTERBUS, PROFINET)
If you have used the suggested standard installation, the device description files together
with all configuration options for Inline Controllers are located in directory
C:\Program Files\Common Files\FDCML10\INTERBUS\
Phoenix Contact\modification
GSD files can be used to integrate devices from manufacturers other than Phoenix Contact
in PC WorX.
• Copy the GSD file for your device, e.g., from the Internet to your PC hard disk.
• Select "Phoenix Contact" in the "Device Catalog" window in PC WorX.
• Open the context menu and select "Import GSD File...".
PC WorX creates an entry for the device in the device catalog. The entry is located in
directory "C:\Program Files\Common Files\FDCML10\...." (for standard installation).
The message window indicates whether the device has been imported successfully.
When reading a modular device, only the device, and not its modules, is displayed in the
bus configuration.
Manually insert the modules for these devices. To do this, proceed as follows:
• Open the module catalog via "View... Module Catalog...".
• Select the device modules one at a time from the module catalog and drag and drop
them in the lower level below the device entry.
If a device description file is not available, one can be created. For this, a device description
editor is included on the AUTOMATIONWORX Software Suite CD.
A7 Visualization
The data generated in PC WorX can be used in other programs, e.g., to visualize
processes.
In order to use the data, INTERBUS OPC Server and/or a visualization software program
are required.
A8 Ethernet Topology
PC WorX can be used to automatically detect Ethernet topologies. All the Ethernet devices
in the project can be displayed with connections in the "Ethernet Topology" window. For all
devices with LLDP functions, the connections are displayed automatically with the port
number.
The other functions are explained in the example. A complete bus configuration is required.
• Open the window via "View... Ethernet Topology".
• In the "Ethernet Topology" window, select "Topology... Refresh" in the context menu.
A device must now be selected as the starting point for the representation. Since
connections are only automatically created between devices with LLDP functions, it is
useful to select this type of device.
• Double-click on the switch.
• Activate the "Use device as root element of representation" option in the window that
opens.
If not all connections are displayed, proceed as follows to include the connections that are
not displayed:
• In the context menu of the "Ethernet Topology" window select "Edit... Link Mode".
• Press and hold down the mouse button over a device and draw a line to the device it
is connected to.
• Repeat this step for all connections.
• Set the link mode ("Edit... Link Mode" in the context menu).
The data that you wish to be displayed in the topology can be specified in the context menu
of the "Ethernet Topology" window via "Topology... Settings".
To create a visual assignment between the icons and the actual system, an image can be
placed in the background.
• Create an image and place it in the relevant directory on your PC.
• In the context menu of the "Ethernet Topology" window select "Topology... Settings".
• Open the "Background Image" tab.
• Import the image.
• Activate the "Display" checkbox.
• Select the image under "Settings".
• Adjust the transparency and zoom.
Further options:
– The device context menu can be used to open the web interface of the device
(if present; e.g., for the switch).
– The context menu of the "Ethernet Topology" window and the device context menu
can be used to make various settings.
– The connection information is displayed by double-clicking on an automatically
created connection or a port number.
– The window context menu ("Topology... Print...") can be used to print the topology.
– If the "Online View... Show Accessibility" menu item is selected via the context menu
of the "Ethernet Topology" window, the accessibility of all devices is displayed.
Devices that can be accessed are indicated with a green dot, devices that cannot be
accessed are indicated with a red dot with a white cross. Changes to the connection
status are displayed when the view is refreshed.
A9 INTERBUS Topology
If this function is used with PROFINET, only the INTERBUS topology is displayed that is
connected to the INTERBUS node for the control system.
To print the entire bus topology, another function can be used in PC WorX:
• In the bus configuration, activate the context menu via any element.
• Select the "Print Bus Configuration" menu item.
A 10 Comparing Projects
The "Project... Compare Projects" menu can be used to compare two compiled projects.
• Open the first of the projects to be compared.
• In the "Project" menu select the "Compare Projects" menu item.
• In the dialog box that opens, open the second of the projects to be compared.
• Open the project comparison workspace.
All the differences are displayed in table format in the "Project Comparison Result
Window".
The PROFINET IO controller has status information that indicates its configuration status.
This can be requested via the system variable PNIO_CONFIG_STATUS. The system
variable is available as a word and as individual bits under "Global_Variables".
PNIO_CONFIG_ The variable is set if the PROFINET IO controller has been initialized correctly. No desired
STATUS_READY configuration has been loaded by PC WorX yet.
PNIO_CONFIG_ The variable is set if the desired configuration for the PROFINET IO controller has been
STATUS_ACTIVE loaded. In this state the PROFINET IO controller attempts to establish a connection
cyclically to all devices in the desired configuration (under the PROFINET icon). In this
way, it attempts to find each device with the corresponding "PROFINET device name" in
the current subnetwork.
If the connection to a PROFINET IO device has been established successfully, the
corresponding "PNIO_DATA_VALID" process data item is set.
For inaccessible devices, the PROFINET IO controller cyclically attempts to establish a
connection approximately every 5 seconds.
A connection cannot be established, e.g., if the corresponding device is ready, but a
correct PROFINET device name has not yet been assigned to it.
PNIO_CONFIG_ This system variable is set if an error occurred when configuring the PROFINET IO
STATUS_FAULT controller.
The status of a PROFINET IO device can be requested using predefined process data.
The "~PNIO_DATA_STATE" byte that contains corresponding status bits is available. A
PROFINET IO device only provides valid data if this bit is set.
PNIO_DATA_VALID For PROFINET IO, it may be normal during operation that a PROFINET IO device within
the network cannot be accessed (e.g., undocking devices).
Use this variable to specify for your application whether or not the operation of all other
PROFINET IO devices is to be continued despite a device failure.
In both cases the application program must receive information on whether a
PROFINET IO device is supplying valid data or not. This is why each PROFINET IO device
has a PNIO_DATA_VALID process data item.
Only if this bit is set does the PROFINET IO device supply valid data and all other process
values are valid.
PNIO_IS_PRIMARY This process data item is reserved for future redundancy functions.
PNIO_APPL_RUN This bit indicates that the application is running on the PROFINET IO device.
Not all bits of the "~PNIO_DATA_STATE" byte are used. To prevent unused bits being
used by mistake, hide them in the control program by linking to a corresponding bit mask.
B3 INTERBUS Register
The registers for an INTERBUS master are directly available as process data. If necessary,
assign the corresponding process data to the variables for the control system.
If the variable is set, all the PROFINET IO devices output zero points or defined substitute
values (the substitute values are currently set to "0" by default). The corresponding inputs
are set to zero.
C1 AX OPC Server
• Select the "Register" menu item and enter the registration code.
• When sending the project, activate the "Include OPC data" checkbox.
• Under "IP Address" enter the IP address for the control system for which you would
like to use the OPC data.
This completes the configuration for using OPC data through an OPC client.
• In the window that opens, enter the name of the group (e.g., "Quickstart_PN") and
confirm your entry with "OK".
The connection between PC WorX, OPC, and Test Client can now be tested via the
context menu for the individual variables.
C2 WebVisit
The WebVisit software is used to visualize the global variables of the Inline Controllers
used under PC WorX. WebVisit is a software tool used to generate web pages. The
software runtime component is a web server, which is stored in PC WorX. The variable
values are actually visualized via a Java-compatible standard browser.
To visualize variables from your PC WorX project in WebVisit, activate the "PDD"
checkbox:
– In the "Variable Properties" window (Figure C-17)
– In the variables worksheet (Figure C-18)
When compiling the project, a file called "pdd.csv" is generated, which is used by WebVisit
for the visualization.
In WebVisit, enter the PC WorX project used (recommended) or the corresponding
pdd.csv file. For standard installation:
– The project is located in directory
C:\Program Files\Phoenix Contact\Software Suite ...\Projects
– The corresponding pdd.csv file is located in directory C:\Program Files\Phoenix
Contact\Software Suite ...\Projects\xxx\C\STD_CNF\R\STD_RES
(xxx = project name)
Example:
You have an ILC 350 ETH Inline Controller.
Marked version 01/46F/120
This corresponds to:
Hardware version 01
Firmware version 4.6F/1.2
Select the ILC 350 ETH with ARM_L_40 according to the table.
If a controller is used with a firmware version, which is not listed in the table, select the older
firmware version. For an ILC 350 ETH controller with firmware 1.15, select ARM_L_32
(firmware Version 1.13 or later).
PC WorX
PHOENIX CONTACT
Table D-1 Phoenix Contact control systems