Beruflich Dokumente
Kultur Dokumente
User manual
User manual
Installing and operating the PC WORX RT BASIC software PLC with
Valueline industrial PCs and PROFINET
2016-04-14
Revision: 03
Order No.:
How to contact us
Internet Up-to-date information on Phoenix Contact products and our Terms and Conditions can be
found on the Internet at:
phoenixcontact.com
Make sure you always use the latest documentation.
It can be downloaded at:
phoenixcontact.net/products
Subsidiaries If there are any problems that cannot be solved using the documentation, please contact
your Phoenix Contact subsidiary.
Subsidiary contact information is available at phoenixcontact.com.
PHOENIX CONTACT
Please observe the following notes
PHOENIX CONTACT
Table of contents
1 Foreword ...................................................................................................................................9
1.1 General information about this user manual .......................................................... 9
1.2 Industrial PCs for use with the Software PLC......................................................... 9
1.3 Scope of supply of the Software PLC .................................................................... 9
1.4 System requirements........................................................................................... 10
1.4.1 Supported operating systems .............................................................. 10
1.4.2 Hardware requirements ...................................................................... 10
1.4.3 Programming software .................................................................... 10
1 Foreword
Aim The information provided in this manual will assist you in installing, setting, operating, and
programming the PC WORX RT BASIC Software PLC. This information will enable you to
install the Software PLC on an industrial PC from Phoenix Contact according to your re-
quirements and to use it in your application for appropriate control tasks.
Validity This user manual is only valid for the PC WORX RT BASIC Software PLC in the version in-
dicated on the inner cover page.
Further information This document will guide you through the initial steps of installing the Software PLC on an
industrial PC and adapting any basic settings required in your application.
It is assumed that you know how to operate PCs, especially the industrial PC in the applica-
tion on which you want to install the Software PLC. Experience with Windows operating
systems and knowledge of IEC 61131 are also assumed.
In order to start up the PC WORX RT BASIC Software PLC as described in this user man-
ual, an active connection to a lower-level PROFINET system is required. You will require ap-
propriate PROFINET devices in order to follow the example startup shown in this user man-
ual.
We recommend installing and running the PC WORX RT BASIC Software PLC on an indus-
trial PC from Phoenix Contact. The descriptions in this user manual refer to the use of such
an industrial PC. For more detailed information on industrial PCs from Phoenix Contact,
please refer to the device-specific user documentation (see Section Documentation on
page 71). For the ordering data for industrial PCs from Phoenix Contact, please refer to
Section Ordering data on page 70.
The scope of supply of the Software PLC includes the following components:
DVD with the following contents:
Installation file for the Software PLC including all additional programs required for
installation (e.g., the INtime real-time operating system and USB dongle drivers)
UM DE PC WORX RT BASIC
UM EN PC WORX RT BASIC
EULA
USB dongle (in the form of a USB stick)
The following minimum system requirements must be met in order to install and run the
Software PLC approved PC hardware. The installation program checks that the system
requirements are met at the start of installation.
If Intel Turbo Boost technology and/or Intel SpeedStep technology are activated on the
industrial PC used, deactivate them in the BIOS of the industrial PC in order to ensure cor-
rect operation of the Software PLC.
For the ordering data for hardware, software, and additional documentation, please refer
to Section Ordering data on page 70.
Supported hardware In its current version, the Software PLC is approved for certain industrial PCs from
Phoenix Contact (see Section Ordering data on page 70). An industrial PC with multi-core
processor provides the optimum requirements for operating the Software PLC. In this case,
one processor core can be used for the INtime real-time operating system of the Software
PLC and another core can be used for the standard operating system (e.g., Windows 8.1).
If the industrial PC has two network adapters, one network adapter is permanently assigned
to the Software PLC for the INtime real-time operating system and the other to the Windows
operating system. This ensures reliable and high-performance operation of the Software
PLC (see Figure 2-1 on page 12 (R)).
IEC 61131 control perfor- The PC WORX RT BASIC Software PLC is consistently configured and programmed in ac-
mance cordance with IEC 61131 using the PC Worx automation software. PC Worx can be in-
stalled locally on the same PC as the Software PLC or on a separate PC. Programming in
all five IEC 61131 languages is supported.
The Software PLC can be used independently of the PC Worx software. For example, the
Software PLC and PC Worx can be installed on separate industrial PCs. In this case, pro-
gramming is via the network adapter which is permanently assigned to the Software PLC. If
the Software PLC and PC Worx are installed on the same PC hardware, programming is via
an internal virtual Ethernet interface. Communication between Windows and the Software
PLC runtime environment generally takes place via this interface too (see Figure 2-1 on
page 12 (R)).
For information on installing the PC Worx software, please refer to the quick start guide
for the software (see Section Documentation on page 71).
Integrated Ethernet func- The network adapter reserved on the industrial PC serves as an external Ethernet interface
tionality/PROFINET for the Software PLC. The Software PLC can be programmed via Ethernet using this inter-
face. The Software PLC can also be used as a PROFINET controller/PROFINET device.
When using the AX OPC server provided in the AUTOMATIONWORX Software Suite Ver-
sion 1.60 or later, the Software PLC data is available in the Ethernet network in a standard-
ized format and can be used for the different visualization packages.
Modbus functionality The Modbus/TCP and Modbus/UDP communication protocols can be used via the network
adapter reserved on the industrial PC. In this case, the Software PLC can be used as a
Modbus client. The Software PLC can be used as a Modbus server with the aid of function
blocks.
For more detailed information on Modbus, please refer to the AH EN MODBUS/TCP ap-
plication note.
INTERBUS Function as an INTERBUS master is possible after adapting the hardware. The PCI slot of
the industrial PC from Phoenix Contact can be used for this by installing an INTERBUS con-
troller board in PCI format here.
USB dongle In order to run, the PC WORX RT BASIC Software PLC requires a (plug-in) dongle in the
form of a USB stick. The USB dongle serves as the software license key; it must always be
plugged in following installation of the Software PLC in order to run the Software PLC. The
USB dongle is supplied as standard with the Software PLC. If the USB dongle is not plugged
in, the demo version of the Software PLC will run.
Status monitor of the The status monitor of the Software PLC is displayed as an icon in the information area of the
Software PLC Windows task bar. The status monitor displays the operating states of the Software PLC
(see Section Status monitor of the Software PLC on page 33).
Ethernet interfaces of the One of the network adapters of the industrial PC is permanently assigned to the Software
Software PLC PLC and serves as an interface for external communication via Ethernet. Following installa-
tion and assignment, this interface is only available to the Software PLC. During installation,
a virtual Ethernet interface is also set up and is used for communication between the INtime
operating system and Windows.
L: IPC with installed Windows operating system R: IPC with installed Software PLC and Windows
Industrial PC Industrial PC
Windows Windows INtime
Software PLC
A1: 192.168.254.20
A A A A
Figure 2-1 Before (L) and after (R) installing the Software PLC
Key:
A Ethernet interfaces of the industrial PC/Ethernet communication
(A1: physical network card/runtime)
B Virtual Ethernet interface
(B1: virtual network card/Windows; B2: virtual network card/runtime)
Figure 2-1 (L) shows that prior to installing the Software PLC, both of the industrial PC's
Ethernet interfaces are available in Windows for communication.
Figure 2-1 on page 12 (R) shows that after successfully installing the Software PLC:
The INtime operating system runs parallel to the Windows operating system on the in-
dustrial PC.
The Software PLC runs within the INtime operating system.
A virtual Ethernet interface has been created between the Software PLC and the Win-
dows operating system.
This interface is only available for internal communication between the Software
PLC and Windows.
This interface (B2 in Figure 2-1 on page 12) is assigned the IP address
192.168.255.20 by the installation wizard, for example.
We recommend that you leave the address suggested by the installation wizard.
If required by your application, you can adapt this address using the ... Configuration di-
alog (see Section PC WORX RT BASIC Configuration on page 30).
The PC Worx software uses this interface, for example, to communicate with the
Software PLC, if PC Worx has been installed on the industrial PC.
One of the industrial PC's Ethernet interfaces is assigned to the Software PLC. The in-
terface is only available to the Software PLC and cannot be addressed from Windows.
During installation, the IP address 192.168.254.20 (A1 in Figure 2-1 on page 12) is as-
signed by the installation wizard, for example.
If required by your application, you can adapt the address when installing the Software
PLC using the dialog for selecting the network adapter and setting the IP address (see
Figure 3-8 on page 19) or change it later in the ... Configuration dialog (see Section
PC WORX RT BASIC Configuration on page 30).
Parameterization memory The Software PLC uses some of the industrial PC's memory as a parameterization memory
(program memory, mass storage, and memory for retentive data). This memory can be
used to save programs and configurations which belong to your project. Please refer to the
technical data for the available size of the parameterization memory (see Section Techni-
cal data on page 69).
For additional information on the parameterization memory, please refer to Section Pa-
rameterization memory and Internet Explorer on page 55.
For information on interfaces and indication and operating elements, please refer to the
device-specific user documentation of the industrial PC (see Section Documentation on
page 71).
We recommend installing and running the PC WORX RT BASIC Software PLC on an in-
dustrial PC from Phoenix Contact.
For more detailed information on the relevant industrial PC, especially assembly and elec-
trical installation, please refer to the device-specific user documentation (see Section
Documentation on page 71).
Once you have installed the industrial PC according to the instructions in the device-
specific user documentation and connected it to the power supply, switch on the supply
voltage.
The following steps must be performed when installing the Software PLC on your PC for the
first time.
Insert the DVD-ROM containing the Software PLC software in the DVD-ROM drive of
your industrial PC.
The installation program starts automatically and guides you through the entire installation.
The installation program performs all the installations and settings required to operate the
Software PLC. If the installation program does not start automatically, execute the
start.exe file.
Follow the installation instructions displayed on screen.
Once you have selected the language, the following dialog appears. This shows the start
screen for installing the Software PLC.
Click on Install.
If the dialog now prompts you to execute or save the installation file, perform the necessary
actions to execute the installation file.
If the Found New Hardware wizard is displayed by the Windows operating system
during installation, click on the Cancel button to acknowledge it. This dialog box is dis-
played due to the PCI card installed in the industrial PC (see Section Installing the
INTERBUS controller board on page 73). It can be ignored at this point in the installation.
The installation status of the programs that are needed to operate the Software PLC is dis-
played (see Figure 3-4). The installation program checks the software already installed. All
missing programs are installed automatically.
Please note that the complete installation process may take a few minutes.
The installation time varies depending on whether the components required are already
installed on the industrial PC or still need installing.
The contents of Figure 3-4 (installation status) are updated once another of the programs
displayed in Figure 3-4 has been installed.
Click on the Install button to install the missing programs.
Various messages are displayed during installation.
Follow the instructions in the messages displayed during the installation process.
An active Internet connection is required in order to install some components (e.g., .NET
Framework 3.5). If required by the installation program, make sure an active Internet con-
nection is present.
If the following message appears, click on the Install button to acknowledge it.
In the following dialog, enter the destination directory where you want to install the
Software PLC.
In the following dialog, enter the destination directory where you want to save project-
specific files for the PLC project.
Click on the Next button.
Selecting the network In the following dialog (see Figure 3-8 on page 19), select the network adapter on the
adapter industrial PC which is to be reserved for the Software PLC.
Figure 3-8 Software PLC: selecting the network adapter and IP settings
The network adapter reserved on the industrial PC serves as an external Ethernet interface
for the Software PLC. Following successful installation, this interface is only used by the
Software PLC. The interface is managed by the INtime real-time operating system and is not
available in Windows. All settings previously implemented in Windows for this interface are
overwritten during installation of the Software PLC.
You have the option of installing the PC WORX RT BASIC Software PLC without select-
ing a network adapter. To do so, enter the command /AllowNoRTNic in the command
line. The option none can then be selected in the Network Adapter and IP Settings di-
alog.
In the IP Settings area, you can assign a specific IP address, including the subnet mask
and address for a default gateway, to the network adapter reserved for the Software PLC.
Click on the Next button to apply your settings.
The following steps must be performed if you want to update the Software PLC.
When updating the Software PLC, certain settings are transferred from the initial installa-
tion. Therefore, following a successful update, the program that was loaded in the
Software PLC prior to the update, including all the settings present (e.g., IP addresses,
etc.), is still available.
Update via DVD-ROM Insert the DVD-ROM containing the Software PLC software in the DVD-ROM drive of
your industrial PC.
The installation program starts automatically and guides you through the entire update. The
installation program performs all the installations and settings required to operate the
Software PLC.
Follow the installation instructions displayed on screen.
Once you have selected the language, the following dialog appears. This shows the start
screen for updating the Software PLC.
Click on Install.
If the dialog now prompts you to execute or save the installation file, perform the necessary
actions to execute the installation file.
If the Found New Hardware wizard is displayed by the Windows operating system
during installation, click on the Cancel button to acknowledge it. This dialog box is dis-
played due to the PCI card installed in the industrial PC (see Section Installing the
INTERBUS controller board on page 73). It can be ignored at this point in the installation.
Update via update file In the download area, download the update file to your industrial PC.
Double-click on the file to start the update.
If the Wrong INtime found dialog is displayed, proceed as follows. The dialog states
that the installation process cannot be performed with the INtime version that is already
installed.
Switch to the Windows Control Panel and uninstall the PC WORX RT BASIC software
there.
Then restart the installation process by double-clicking on the update file.
Select the setup language.
In the Welcome dialog that opens, click on the Next button.
The installation program now searches for an existing installation of the Software PLC.
Once the industrial PC has been restarted, the Welcome dialog shown in Figure 3-13 on
page 23 is displayed again.
Click on the Next button in this dialog.
The installation status of the programs that are needed to operate the Software PLC is dis-
played (see Figure 3-16). The installation program checks the software already installed. All
missing programs are installed automatically.
Please note that the complete installation process may take a few minutes.
The installation time varies depending on whether the components required are already
installed on the industrial PC or still need installing.
The contents of Figure 3-16 (installation status) are updated once another of the programs
displayed in Figure 3-16 has been installed.
Click on the Install button to install the missing programs.
Various messages are displayed during installation.
Follow the instructions in the messages displayed during the installation process.
If the following message appears, click on the Install button to acknowledge it.
The Installation Directory, User Project Directory, and Network Adapter settings trans-
ferred from the previously installed version of the Software PLC are displayed in the follow-
ing dialog.
Figure 3-18 PC WORX RT BASIC Setup dialog box transferred settings (Ready to
Install)
Once the Software PLC has been successfully installed and the industrial PC restarted, the
menu items shown in Figure 3-21 on page 28 are available to the Software PLC in the Win-
dows start menu. The status monitor of the Software PLC is also displayed as an icon in the
task bar.
Figure 3-21 Menu items of the Software PLC and status monitor
For information on the status monitor, especially its display and setting options, please
refer to Section Status monitor of the Software PLC on page 33.
The Software PLC menu items in the Windows start menu shown in Figure 3-21 on page 28
include the following functions:
B2
ETH2 (A1)
IP settings If required by your application, you can specify the IP settings of the Software PLC here. In
standard view, you can adapt Ethernet interface ETH2 (A1) of the industrial PC to your ap-
plication; in extended view, you can also change the virtual Ethernet interfaces (B1/B2)
(ETH2 (A1) / B1/B2: see Figure 2-1 on page 12).
Interface ETH2 (A1) This interface of the industrial PC is only available to the
Software PLC for communication. The Software PLC can
be included as a device in an Ethernet network using the
set IP address.
Interfaces B1/B2 The Software PLC and Windows operating system use
these virtual interfaces to communicate with one another.
These interfaces cannot be accessed externally.
For additional information on the interfaces, refer to Ethernet interfaces of the Software
PLC on page 12.
Directory for user project In the dialog, you can also specify a destination directory for project-specific files for the PLC
data project.
Standard view: Extended view:
If the Autostart PC WORX RT BASIC option is disabled in the status monitor when switch-
ing off or before restarting the industrial PC, the status monitor indicates a communication
error after booting the industrial PC (see Figure 3-27).
Select the Autostart PC WORX RT BASIC option in the context menu to start the
Software PLC.
In the Start PC WORX RT BASIC? dialog that opens, click on the Yes button.
The subsequent process of starting the Software PLC may take a few minutes.
If a boot project has not yet been loaded on the Software PLC, the Software PLC enters the
ON operating state following successful start.
If a boot project has been loaded, the Software PLC enters the RUN operating state follow-
ing successful start.
Figure 3-30 Status monitor: Software PLC in the RUN operating state
The status monitor (status indicator) of the Software PLC starts automatically once the
Software PLC has been installed and Windows has been started. The indicator appears as
an icon in the task bar.
If the status monitor is not displayed after switching on the industrial PC, you can start it via
the following path:
Start, All Programs, Phoenix Contact, PC WORX RT BASIC,
PC WORX RT BASIC Status Monitor.
The operating states of the Software PLC are indicated in the status monitor using different
colors.
Right-click on the icon in the task bar to open the context menu of the status monitor.
Depending on the operating state of the Software PLC, the following options are available
in the context menu of the status monitor:
Options Description
Start The Software PLC is in the RUN state after execution.
Stop The Software PLC is in the STOP state after execution.
Reset The Software PLC switches to the ON state once it has been reset. Re-
tain data and the application program are deleted.
This option is only available if the Software PLC is in the STOP state
(see Resetting the Software PLC on page 36).
Activate Boot- Activate the boot project.
project
The boot project is loaded in the memory.
This option is available if there is a boot project in the PLC memory and
if the Software PLC is in the ON state or the STOP state. After execu-
tion, the Software PLC switches to the STOP state (ON STOP) or re-
tains its current state (STOP STOP).
Switch Position Mode selector switch (see Section Mode selector switch (switch po-
sition) on page 36).
Show Informa- A popup window displays information about the Software PLC (see
tion Section Project information about the Software PLC on page 37).
Show System A popup dialog shows both the Windows and real-time/runtime CPU
Monitor utilization (see Section System monitor on page 38).
Delete Bootproj- Remove boot project.
ect
The boot project is deleted from the Software PLC memory.
This option is available if there is a boot project in the Software PLC
memory and if the Software PLC is in the ON, STOP, RUN or HALT
state.
The mode selector switch is emulated in the software. It is used to specify the operating
state of the Software PLC and control the processing of the application program.
The Software PLC must be in the STOP state in order to be reset. Then perform the reset
using the Reset item in the status monitor context menu (see Figure 3-35).
The following information about the project currently loaded in the parameterization memory
of the Software PLC is displayed:
DNS/PROFINET device name of the Software PLC in the PC Worx project
Project Name name of the PC Worx project
State operating state of the Software PLC
Switch Position position of the mode selector switch
Has Bootproject Yes/No
Bootproject Name name of the boot project created with PC Worx
Variable(s) Forced are variables currently forced? Yes/No
IP address of the network adapter assigned to the Software PLC (ETH2 (A1) in
Figure 2-1 on page 12)
MAC address of the network adapter assigned to the Software PLC
System Up Time Software PLC runtime since the industrial PC was switched on
[hh:mm:ss]
Firmware version of the Software PLC
Runtime Version version of the runtime environment
Status monitor version
You can update the project information displayed by again clicking on Show Information
in the context menu of the status monitor.
The system monitor shows both the Windows and real-time/runtime CPU utilization. If you
use systems/industrial PCs with dual-core CPUs, one characteristic curve shows the utili-
zation of one core and the other curve shows the utilization of the other core.
The real-time operating system of the Software PLC runs regardless of a user login.
Login/logoff functions of the Windows operating system do not generally influence the run-
time environment of the Software PLC.
Behavior in the event of If a blue screen system error message indicates that the Windows operating system is no
Windows blue screen longer functioning correctly while the Software PLC is running, the Software PLC remains
system error message fully functional. The Windows system error message does not affect the INtime real-time op-
erating system. All system variables remain available. PC Worx can access system vari-
ables using an external PC (e.g., PLCMODE_RUN = TRUE, WINDOWS_BSOD = TRUE,
FLASHCARD_PRESENT = FALSE). These system variables can also be used to detect a
Windows blue screen system error message.
All devices connected via PROFINET, Modbus, and INTERBUS continue to function cor-
rectly. The Software PLC can undergo a hot restart during a Windows blue screen system
error message. A cold restart or warm start and project or boot project downloads are not
possible.
Remote access in the Diag+ can also be used to establish a connection to the Software PLC during a Windows
event of Windows blue blue screen system error message. All SNMP data remains available. Access via FTP,
screen system error mes- HTTP, and WebVisit is not possible.
sage
Support for WebVisit and The Software PLC supports FTP access by means of WebVisit. A project created with
FTP access WebVisit can be loaded in the Software PLC parameterization memory via FTP access. For
additional information on creating a WebVisit project, please refer to the quick start guide
for the PC Worx software.
The demo version of the Software PLC provides the option of testing Software PLC func-
tions without the USB dongle (which contains the license key) being plugged in. Full func-
tionality of the Software PLC is therefore available.
Operation in the demo version is indicated by the hourglass icon and the following tool tip,
which pops up:
The runtime so far of the demo version is displayed when you move the mouse pointer over
the hourglass:
After 120 minutes have elapsed, the Software PLC switches to the STOP state and exits
program processing. The states of the I/O bits and system variables used during test mode
are set to zero.
15 minutes before the end of the 120 minutes, a tool tip is displayed informing you that the
demo version will expire after the specified time has elapsed. The display is updated minute
by minute.
Key:
To switch the Software PLC from the demo version to fully functional operation, insert the
USB dongle.
If the demo version cannot be exited after inserting the USB dongle, please switch the
supply voltage to the industrial PC off and back on again while the USB dongle is plugged
in.
You can uninstall the Software PLC in the Programs and Features part of the Windows
Control Panel. This only results in the Software PLC being uninstalled. Other software com-
ponents which were installed when installing the Software PLC must be uninstalled individ-
ually.
When uninstalling other software components which were installed when installing the
Software PLC, make sure that you do not uninstall any software that will affect the stability
of your Windows operating system.
The INtime real-time operating system is the runtime environment for the Software PLC.
This runtime environment is automatically set up on the industrial PC when installing the
Software PLC.
Do not make any settings in the INtime real-time operating system. The INtime real-time
operating system is configured accordingly for correct operation of the Software PLC
during installation.
Communication errors If the status monitor indicates a communication error after the Software PLC has been
started (see Figure 3-44), this may be due to one of the causes listed in the table below.
Cause Remedy
The Autostart Activate the Autostart PC WORX RT BASIC op-
PC WORX RT BASIC option is not tion in the context menu of the status monitor. Refer
activated or has been deactivated to the information in Section Starting the Software
since the last instance of correct op- PLC with automatic start disabled on page 32.
eration.
The network settings are not correct Check the IP address settings of the network
or have been changed since the last adapter which was reserved for internal communi-
instance of correct operation. cation between the Software PLC and Windows
Communication error between the when the Software PLC was installed. For exam-
INtime operating system and Win- ple, set the IP address 192.168.255.21 and subnet
dows. mask 255.255.255.0 or adapt the IP address set-
tings accordingly to your application (see Ethernet
interfaces of the Software PLC on page 12).
The descriptions in this section apply to cases where the Software PLC and PC Worx are
running on two separate PC systems.
If the Software PLC and PC Worx software are both being run on a single industrial PC,
the differences are indicated at relevant points in the user manual.
When using the Software PLC, make sure you are using the version of PC Worx specified
in Section Programming software on page 10 at the very least.
For information on installing and using PC Worx, please refer to the online help for the
software and the corresponding quick start guide. It can be downloaded at phoenixcon-
tact.net/products and is supplied in electronic form with the software.
PC Wo
rX
PROFINET
8047A010
In the New Project dialog, select the PC WORX RT BASIC PN V1.3 Rev. > 00/5.50
Software PLC.
If you have installed an IBS PCI SC/I-T INTERBUS controller board in the industrial PC
in order to operate INTERBUS devices on the Software PLC, select the
PC WORX RT BASIC PN/IB V1.3 Rev. > 00/5.50 template.
Saving the project Select the File, Save Project As / Zip Project As... command in the File menu.
Enter a name for your project in the Save/Zip project as dialog (here: PCWORXRT-
BASIC_UM).
After creating a new project, the project information is displayed in the bus configuration
workspace.
Adapt the project information to your project.
First and last IP address, During project creation, PC Worx automatically assigns an IP address area for a local net-
subnet mask work (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:
PCWORXRTBASIC_UM) to your application.
If the IP parameters are modified in the project settings, the IP addresses of the controller
may have to be modified manually (see Section Assigning/checking the IP address for the
Software PLC on page 48).
If you are using the addresses of a local network in your project, also assign a correspond-
ing address for the local network (e.g., 192.168.0.225) to the PC on which PC Worx is in-
stalled. Otherwise the devices in the local network cannot be accessed.
For information on the IP addresses 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.
If you manually assign IP parameters that are outside the defined area, they will be ac-
cepted and displayed with a warning.
Default IP addresses of Because the IP addresses for the Ethernet interfaces of the industrial PC are preset by de-
the Software PLC fault during the installation of the Software PLC (see Section General description on
page 11 and onwards), the IP address area automatically assigned by PC Worx must be
adapted regardless of the requirements of your application. If your application also requires
modification, please also take this into account when adapting the IP address settings.
Please note that on installation of the Software PLC the default address 192.168.254.20
was set for the Ethernet interface of the industrial PC, which is reserved for external
Software PLC communication (see Section General description on page 11 and on-
wards). This address determines the addresses to be set later because the PROFINET
devices are connected to this interface.
Please also note that these addresses must be adapted if required by your application. IP
addresses other than those used in the example then result.
Set the last and first IP address according to your application in the project device de-
tails (in the example: see Figure 4-8 on page 47).
PC/network adapter To determine whether your network permits the IP settings used in the example project (see
Figure 4-8 on page 47), proceed as follows:
In the Windows Control Panel, check the settings for your PC network adapter.
If necessary, adjust these settings so that the Software PLC can be accessed in your
network via the IP address used in the example project.
If your network does not permit the use of the IP address used in the example project, adjust
the settings in the project information accordingly (see Figure 4-8 on page 47).
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 automat-
ically.
According to the IP address settings in the project information (see Section Checking/spec-
ifying project information on page 46 and onwards) and as a result of the default IP address
settings of the Software PLC made during installation, the IP address for the Software PLC
must be set in the device details in the IP Settings tab.
Set IP address 192.168.254.20 (see Section Device details IP address setting of
the Software PLC on page 48).
This address is needed to ensure communication between PC Worx and the Software
PLC (e.g., for project download to the Software PLC) (see Section General description
on page 11 and onwards). This address entered in the project does not change the IP ad-
dress that was assigned to the external Ethernet interface of the industrial PC.
If you are running the Software PLC and PC Worx on the same industrial PC, with regard
to this example, the IP address 192.168.254.20 should be set in the project instead of
192.168.255.20. This is because the industrial PC used in the example only has one
Ethernet interface. This interface is assigned the example IP address 192.168.254.20
during installation of the Software PLC. This interface is either used to download the
PC Worx project to the Software PLC or to connect the PROFINET devices to the
Software PLC in the application. If required by your application, this address must be
adapted to your network.
You can test the communication path between PC Worx and the Software PLC in the bus
configuration workspace.
In the bus configuration workspace in the Bus Structure window, select the
PC WORX RT BASIC Software PLC.
In the Device Details window, switch to the Communication tab.
To test the communication path, click on the Test button.
A successful test is indicated by a green background in the status window (see Figure 4-10).
NOTE: The Software PLC 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 Software PLC or the PC Worx PC and make
changes, either intentionally or unintentionally. Prevent unauthorized access to the
Software PLC and your PC.
In the Read PROFINET dialog that opens, select the corresponding devices for your ap-
plication one after the other.
Click on a device to select it (ILB PN 24 DI16 DIO16-2TX in Figure 4-12 on page 51).
Repeat this step until you have inserted all of the PROFINET devices in your network in
the project.
Click on the Close button to close the Read PROFINET dialog.
PROFINET device name When reading the PROFINET network, PC Worx automatically assigns device names and
and IP address IP addresses for the read devices (see Figure 4-14 on page 52).
If necessary, adapt the automatically assigned device names and IP addresses for your
application.
Please note that the IP addresses of the devices connected to the controller only exist in
the project at this point. If you switch the supply voltage off and on again at this point, the
devices read in the Read PROFINET dialog (see Figure 4-12 on page 51) as described
above will appear again without IP addresses. It is only once the project has been
compiled in PC Worx and downloaded to the controller (see Compiling and sending
a PC Worx project to the Software PLC on page 53), that the Software PLC assigns
the settings saved in the project on every power up.
The previous steps have prepared the project so that the example structure can be started
up.
The program code that has been created is compiled. Once the compilation process is com-
plete, PC Worx displays a corresponding message in the message window.
If the compilation process has not been carried out properly, the message indicates the
number of errors and warnings (Build tab). More detailed information about errors/warn-
ings is displayed in the Errors and/or Warnings tabs.
Sending the program to To test the project created so far, send it to Software PLC using the project control dialog
the Software PLC box.
Click on the project control dialog box icon in the tool bar.
The project control dialog box (see Figure 4-18 on page 54) is opened.
Perform the following steps if you have since changed the PROFINET configuration of
your project (e.g., added devices):
1. Recompile the project.
2. Reset the Software PLC by clicking on the Reset button in the project control dialog
box.
3. Then perform a cold restart.
Performing a cold restart To activate the project, perform a cold restart for the Software PLC.
To do so, click on the Cold button in the project control dialog box.
You can read the status of the real-time clock in PC Worx using system variables (see Sec-
tion System time on page 67).
The PC WORX RT BASIC Software PLC supports the Download changes function.
The Download changes function can be used to send project modifications to the control-
ler(s) and activate them there without having to stop the active PLC.
For more detailed information on this function, please refer to the online help for PC Worx.
NOTE: If real-time violations are permitted, first ensure that your PLC application is run-
ning within safe limits. Please note that each real-time 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 op-
tion.
To delete files or store user-specific files on the internal parameterization memory, proceed
as follows:
The FTP functionality must be activated in Internet Explorer. See Section Internet Explor-
er FTP functionality on page 56.
The file structure, which is stored on the parameterization memory, is displayed in the Inter-
net Explorer window.
Data may only be copied or deleted on the parameterization memory. Do not edit any files
as Internet Explorer does not store modified data.
For the current state to be displayed, refresh the display after every action by means of
the View, Refresh command.
Activate this setting in Internet Explorer under Tools, Internet Options, Advanced.
Figure 4-21 Internet Options: Enable folder view for FTP sites
To protect the Software PLC against unauthorized access, it may be necessary to deacti-
vate the FTP server. The CPU_Set_Value_Request service with Var ID 0172hex is used for
this. This service activates or deactivates the FTP server for the runtime of the firmware. The
set FTP server state is stored retentively and mapped to the ETH_SRV_FTP_ACTIVE sys-
tem variable. This setting is restored the next time the Software PLC is restarted.
Value range for the CPU_Set_Value_Request service:
Var ID 0172hex
Value 0000hex Deactivate FTP server
0001hex Activate FTP server
To protect the Software PLC against unauthorized access, it may be necessary to deacti-
vate the HTTP server. The CPU_Set_Value_Request service with Var ID 0173hex is used
for this. This service activates or deactivates the HTTP server for the runtime of the firm-
ware. The set HTTP server state is stored retentively and mapped to the ETH_S-
RV_HTTP_ACTIVE system variable. This setting is restored the next time the Software PLC
is restarted.
Value range for the CPU_Set_Value_Request service:
Var ID 0173hex
Value 0000hex Deactivate HTTP server
0001hex Activate HTTP server
The function blocks are used to access files from within the application program. Some of
the blocks support multiple instantiation. This means that it is possible to work with a number
of different files within the same project. The blocks perform the standard functions that are
required for typical file access operations.
The FILE_NOTIFY block is available in addition to the blocks for typical file access opera-
tions. This block can be used to detect files that have been modified in a directory containing
user files. These modifications may include:
Deletion of one or more files
Writing one or more new files
Modification of one or more existing files
Both modifications made to this directory via FTP (remote) and modifications made locally
via function blocks or firmware services can be detected.
The function blocks for handling files on the parameterization memory are described in
the PC Worx online help.
The function blocks are used to establish Ethernet communication between two communi-
cation partners.
The IP communication blocks listed below enable IEC 61131-5-compliant communication
between controllers via Ethernet or communication between controllers and Ethernet de-
vices via TCP/IP or UDP/IP.
Implement all time and connection monitoring in the application program.
The function blocks are valid for the Software PLC version listed in the table below and sup-
port the specified maximum number of TCP/IP or UDP/IP communication connections:
PC WORX RT BASIC Blocks Ethernet connections to other communi-
as of version cation partners (maximum)
1.1 IEC 61131-5
1.1 TCP/IP 32
1.1 UDP/IP
The function blocks are used to establish PCP communication between the Software PLC
and PCP devices in INTERBUS.
The function blocks are valid for the Software PLC version listed in the table below and sup-
port the specified maximum number of PCP communication connections:
PC WORX RT BASIC as of ver- Connections to PCP devices (maximum)
sion
1.1 631
1
Applies for the IBS PCI SC/I-T INTERBUS controller board installed in the industri-
al PC; for more detailed information, please refer to the controller board-specific
user documentation.
For more detailed information on communication via Modbus, refer to the AH EN MOD-
BUS/TCP application note.
5 System variables
Below you will find a list of the system variables in PC Worx of relevance to the Software
PLC. The variables of relevance to INTERBUS (MASTER_DIAG; IBS_FORCE_SYS-
FAIL) and a variable designed to detect Windows system crashes (blue screen) (Win-
dows_BSOD) are also listed.
The INTERBUS registers are only available if an INTERBUS controller board is installed
in the industrial PC and the corresponding template has been selected in PC Worx.
Information regarding the operating state of the Software PLC is stored in the diagnostic sta-
tus register. Each bit in the diagnostic status register is assigned a specific Software PLC
state.
The following system variables can be used to read the diagnostic status register informa-
tion.
The INTERBUS registers are only available if an INTERBUS controller board is installed
in the industrial PC and the corresponding template has been selected in PC Worx.
The diagnostic parameter register provides additional information on the error indicated in
the diagnostic status register. The following information is stored in the diagnostic parame-
ter register:
Error location
Error code
15 8 7 0
3 1
Segment nummer Position in the segment
Example: device number 3.1 8047A011
Figure 5-1 Error location in the diagnostic parameter register
15 8 7 0
0 A 5 0
Error code
Example: address overlap, code 0A50hex 8047A012
Figure 5-2 Error code in the diagnostic parameter register
Special case: if a local bus error cannot be located, the value 128 is indicated in the di-
agnostic parameter register, i.e., bit 7 is set.
The diagnostic parameter register is rewritten whenever an error occurs. The diagnostic pa-
rameter register contains the value 0 if no errors are detected.
There is a separate group of system variables for the IEC 61131 runtime system.
The system variables listed below show the states of the diagnostic status register on the
control processor (one of the two processor cores of the dual-core CPU) of the Software
PLC. The INtime real-time operating system runs on this processor core.
The system variables listed below show whether the corresponding Ethernet service has
been executed.
Table 5-6 System variables of the Software PLC (status of the Ethernet network)
PROFINET provides extremely detailed diagnostic information from each device down to
the channel.
Diagnostic states are important for system operation. If error messages occur, the process
has to be stopped in case of doubt. To this end, controllers and industrial PCs from
Phoenix Contact provide the following status information for the PROFINET network.
The table below describes the PROFINET system variables of the integrated PROFINET
controller functionality.
If one of these values is set, it is now possible to decide from the program whether the sys-
tem should continue operating. For example, system errors such as maintenance require-
ment and maintenance demand can only result in a message to service personnel, which
informs them of the location, cause, and urgency of the error.
The table below describes the PROFINET system variables of the integrated PROFINET
device functionality.
The system time of the Software PLC is continuously synchronized with the Windows sys-
tem time. The refresh interval is 5 minutes.
The technical data for the Software PLC depends on the industrial PC used and the
INTERBUS controller board installed as an option in the industrial PC.
For information on the technical data for the industrial PC on which the Software PLC is
installed and the optional INTERBUS controller board, please refer to the device-specific
user documentation (see Documentation on page 71).
General data
Real-time clock Yes
Fieldbus systems PROFINET, Modbus, INTERBUS
INTERBUS
The INTERBUS functionality is only available if a corresponding PCI extension card (INTERBUS controller board) has been installed in the
industrial PC. For the INTERBUS-specific technical data, please refer to the user documentation for this controller board (see Section Docu-
mentation on page 71).
PROFINET
Type PROFINET controller, PROFINET device
PROFINET specification Version 2.x
Number of PROFINET devices 256, maximum
Update time for inputs and outputs 1 ms, minimum, depending on the size of the bus system
Conformance class B
Approvals
Approvals depend on the device. For the latest approvals for the devices listed in the Modules ordering data, please visit phoenixcontact.net/products.
6.2.1 Modules
6.2.2 Accessories
6.2.3 Software
6.2.4 Documentation
Data sheets for configurable industrial PCs, for example: DB EN VL2 BPC 2000 1
VL2 BPC 2000 (order number: 2400332)
PROFINET
Quick start guide UM QS EN AXC 1050 PN STARTERKIT 1
Installing and starting up the AXC 1050 PN starter kit
User manual UM EN PROFINET SYS 1
PROFINET basics
PROFINET Installation Guideline for Cabling and Assembly, For the latest versions of the document visit www.profinet.com or you can
Version 1.0, January 2009, Order No.: 8.072 contact your nearest Phoenix Contact representative regarding the docu-
PROFINET_Guideline_Assembly_8072_V10_Jan09.pdf ment
Modbus
Application note AH EN MODBUS TCP 1
Modbus TCP with Phoenix Contact controllers
INTERBUS (general)
Data sheet DB GB IBS PCI SC/I-T 1
Controller board for PC systems with PCI bus
Driver Reference Manual IBS PC SC SWD UM E 1
for G4-based controller boards using PC bus and Ethernet
Quick start guide IBS PCI SC QS UM E 1
Installing and starting up the controller board for PC systems
User manual IBS SYS INTRO G4 UM E 1
General introduction to the INTERBUS system
User manual IBS SYS PRO INST UM E 1
Configuring and installing INTERBUS
User manual IBS SYS DIAG DSC UM E 1
INTERBUS Diagnostics Guide
User manual IBS SYS FW G4 UM E 1
Firmware services and error messages
User manual IBS SYS PCP G4 UM E 1
Peripherals Communication Protocol (PCP)
For more detailed information on the user documentation, please refer to the ordering
data (see Section Documentation on page 71).
The user documentation can be downloaded at phoenixcontact.net/products.
If you want to use the Software PLC as the INTERBUS master, you must first install a suit-
able INTERBUS interface card (INTERBUS controller board) in the industrial PC. For infor-
mation on the INTERBUS controller board and the PCI slots available in the industrial PC,
please again refer to the device-specific user documentation.
The following sections contain descriptions of the contact assignment for the INTERBUS in-
terface and assembly of the INTERBUS connectors. Information about connecting an
Ethernet/PROFINET network can be found at the end of this appendix.
The following diagram shows the configuration of the remote bus connection and the re-
mote bus cable (D9/D9 cable type).
DI 7 DI 7 Pink 7 DI
COM 3 5 9 5 9 COM 3 Brown 3 COM 9 5
Figure A-1 Remote bus connection and example for a remote bus cable
The braided shield of the remote bus cable connected to the metal-plated connector hous-
ing via the strain relief creates a conductive connection with functional earth ground (FE) on
the INTERBUS controller board used.
A 2.1 IBS DSUB 9/L remote bus connector with solder connec-
tion
20 mm
(0.79 in.)
8 mm (0.32 in.)
3 mm (0.12 in.)
Strain relief
Figure A-2 Remote bus cable with D-SUB connector for soldering
1. Strip 20 mm off the cable sheath and shorten the braided shield to 8 mm. Strip 3 mm off
the wire ends and connect the signal lines according to the drawing.
2. Fold the braided shield uniformly back over the cable sheath.
3. Clamp the braided shield under the strain relief according to Figure A-2, so that a con-
ductive connection to the metal-plated connector housing is created, thereby creating
a connection to functional earth ground (FE).
1 50 mm (1.97 in.)
10 mm
(0.39 in.)
2 5 mm (0.20 in.)
3
1
6
6
2
7
7
8
3
9
8
4
9
5
1
2
3
4
5
Strain relief
Figure A-3 Remote bus cable with D-SUB connector for screwing
1. Strip 50 mm off the cable sheath and shorten the braided shield to 10 mm. Strip 5 mm
off the wire ends and connect the signal lines according to the drawing.
2. Fold the braided shield uniformly back over the cable sheath.
3. Clamp the braided shield under the strain relief according to Figure A-3, so that a con-
ductive connection to the metal-plated connector housing is created, thereby creating
a connection to functional earth ground (FE).
Remote bus cable Connect the remote bus cable, which goes to the first INTERBUS remote bus device, to the
remote bus connection (REMOTE) of the INTERBUS controller board installed in the indus-
trial PC.
For the ordering data for the remote bus connectors, please refer to Section Ordering data
on page 70.
FO adapter As an alternative to the remote bus cable connector, the 9-pos. D-SUB socket can be con-
nected to an adapter for converting to fiber optics.
For additional information on FO adapters, please visit the Phoenix Contact homepage at
phoenixcontact.net/products.
Connect the Ethernet cable to the Ethernet interface (RJ45 socket) of the industrial PC
which is reserved for external Software PLC communication. It connects the Software PLC
to an Ethernet/PROFINET network. Use an Ethernet cable according to CAT5 of IEEE
802.3.
Observe the information regarding the Ethernet interfaces of the device in Ethernet inter-
faces of the Software PLC on page 12.
For the ordering data for the Ethernet cable, please refer to Section Accessories on
page 70.
B1 List of figures
Section 2
Figure 2-1: Before (L) and after (R) installing the Software PLC ........................... 12
Section 3
Figure 3-1: DVD start screen ................................................................................ 15
Figure 3-2: Selecting the language ....................................................................... 16
Figure 3-3: PC WORX RT BASIC installer ............................................................ 16
Figure 3-4: Installation status of the programs to be installed ............................... 17
Figure 3-5: Windows Security Install device software dialog ............................ 17
Figure 3-6: PC WORX RT BASIC Setup dialog Destination Folder .................. 18
Figure 3-7: PC WORX RT BASIC Setup dialog Additional Settings ................. 18
Figure 3-8: Software PLC: selecting the network adapter and IP settings ............. 19
Figure 3-9: Start of installation .............................................................................. 20
Figure 3-10: Installation status of the Software PLC ................................................ 20
Figure 3-11: Installation successful ......................................................................... 21
Figure 3-12: DVD start screen ................................................................................ 22
Figure 3-13: PC WORX RT BASIC Installer ............................................................ 23
Figure 3-14: Software PLC version already installed .............................................. 24
Figure 3-15: Update reboot required .................................................................... 24
Figure 3-16: Installation status of the programs to be installed ............................... 25
Figure 3-17: Windows Security Install device software dialog ............................ 25
Figure 3-18: PC WORX RT BASIC Setup dialog box transferred settings
(Ready to Install) ................................................................................. 26
Figure 3-19: Update status of the Software PLC ..................................................... 26
Figure 3-20: Installation successful ......................................................................... 27
Figure 3-21: Menu items of the Software PLC and status monitor .......................... 28
Figure 3-22: Reading the hardware key .................................................................. 29
Figure 3-23: Hardware key version ......................................................................... 29
Figure 3-24: INtime network configuration window
(interfaces ETH2 (A1) and B2) ............................................................ 29
Figure 3-25: IP settings (standard and extended) ................................................... 30
Figure 3-26: Mode selector switch .......................................................................... 31
Section 4
Figure 4-1: Example project structure ................................................................... 43
Figure 4-2: Creating a new project File, New Project... menu .......................... 44
Figure 4-3: New Project dialog: project templates .............................................. 44
Figure 4-4: File, Save Project As / Zip Project As... menu ................................... 44
Figure 4-5: Save/Zip project as dialog ................................................................ 45
Figure 4-6: Bus configuration workspace button ................................................. 46
Figure 4-7: Project information after creating a new project .................................. 46
Figure 4-8: Adapting IP address settings .............................................................. 47
Figure 4-9: Device details IP address setting of the Software PLC ..................... 48
Figure 4-10: Device Details window testing the communication path ................ 49
Figure 4-11: PROFINET node: Read PROFINET ................................................... 50
Figure 4-12: Read PROFINET dialog ................................................................... 51
Figure 4-13: Insert PROFINET Device dialog ....................................................... 51
Figure 4-14: PROFINET device name and IP address ............................................ 52
Figure 4-15: Build, Rebuild Project menu ............................................................. 53
Figure 4-16: Compilation process complete ........................................................... 53
Figure 4-17: Opening the project control dialog box ............................................... 53
Section 5
Figure 5-1: Error location in the diagnostic parameter register .............................. 62
Figure 5-2: Error code in the diagnostic parameter register .................................. 62
Appendix A
Figure A-1: Remote bus connection and example for a remote bus cable ............ 73
Figure A-2: Remote bus cable with D-SUB connector for soldering ...................... 74
Figure A-3: Remote bus cable with D-SUB connector for screwing ....................... 75
Section 3
Table 3-1: Operating states of the Software PLC.................................................. 34
Table 3-2: Options in the context menu of the status monitor ............................... 35
Table 3-3: Switch positions of the mode selector switch....................................... 36
Table 3-4: Communication errors causes .......................................................... 41
Section 4
Table 4-1: Overview of the function blocks ........................................................... 58
Table 4-2: Overview of the function blocks ........................................................... 59
Table 4-3: Overview of the function blocks ........................................................... 60
Section 5
Table 5-1: System variables of the diagnostic status register ............................... 61
Table 5-2: Error code (example: 0A50hex) ............................................................ 62
Table 5-3: System variables of the diagnostic parameter register ........................ 62
Table 5-4: System variables of the IEC 61131 runtime system ............................. 63
Table 5-5: System variables of the control processor ........................................... 64
Table 5-6: System variables of the Software PLC
(status of the Ethernet network) ........................................................... 64
Table 5-7: PROFINET system variables (PROFINET controller functionality) ...... 65
Table 5-8: PROFINET system variables (PROFINET device functionality)........... 66
Table 5-9: Special system variables of the Software PLC..................................... 67
Table 5-10: System variables of the system time.................................................... 67
C M
Communication errors................................................. 41
Mode selector switch, switch position ................... 35, 36
Causes .................................................................. 41
Status monitor ....................................................... 32
N
Network adapter ................................................... 12, 19
D
New installation........................................................... 15
Demo version.............................................................. 39
O
E
Operating systems, supported .................................... 10
Electrical installation
Ordering data
Connecting the INTERBUS system ....................... 76
Accessories........................................................... 70
Errors and troubleshooting
Documentation ...................................................... 71
Communication errors ........................................... 41
Modules ................................................................ 70
Ethernet functionality................................................... 11
Software ................................................................ 71
Ethernet interfaces ...................................................... 12
Physical network card ........................................... 12
Virtual network card............................................... 12
P
Parameterization memory ........................................... 13
PC Worx
F
Creating a new project .......................................... 44
FTP functionality ......................................................... 55
Project information ................................................ 46
Saving the project.................................................. 44
H PROFINET.................................................................. 11
Hardware key.............................................................. 29 Programming software................................................ 10
Hardware requirements .............................................. 10
S
I Scope of supply ............................................................ 9
IEC 61131 control performance .................................. 11 Software PLC
Installation status .................................................. 17, 25 Demo version ........................................................ 39
Installing the Software PLC ......................................... 15 Reset..................................................................... 36
New installation ..................................................... 15 Software PLC, operating states .................................. 34
Update................................................................... 22 Software PLC, project information .............................. 37
INTERBUS connection Status monitor................................................. 12, 31, 33
Remote bus connector with screw connection ...... 75 Status monitor, context menu ..................................... 34
Remote bus connector with solder connection ...... 74 Supported hardware ................................................... 11
Interfaces .................................................................... 73 System requirements .................................................. 10
INTERBUS remote bus connection ....................... 73
Selecting the network adapter ............................... 19
U
Update ........................................................................ 22
USB dongle................................................................. 12
W
Windows system error message
(Blue screen) ......................................................... 39