Um en PC Worx SRT 8681 en 00
Um en PC Worx SRT 8681 en 00
User manual
UM EN PC WORX SRT
User manual
Installing and operating the PC WORX SRT Software PLC
2013-11-06
Revision: 00
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 General, scope of supply, and requirements ..............................................................................7
1.1 General.................................................................................................................. 7
1.2 Scope of supply of the Software PLC .................................................................... 7
1.3 System requirements............................................................................................. 7
1.3.1 Supported operating systems ................................................................ 7
1.3.2 Hardware requirements ......................................................................... 8
1.3.3 Programming software .......................................................................... 8
1.4 Requirements for correct operation of the Software PLC....................................... 8
1.1 General
Purpose of this manual The information provided in this manual will assist you in installing, setting, operating, and
programming the PC WORX SRT Software PLC. This information will enable you to install
the software on a PC according to your requirements and to use it in your application for
appropriate control tasks.
We recommend installing and running the PC WORX SRT Software PLC on a Valueline
industrial PC from Phoenix Contact (such as the VL BPC ...). The descriptions in this user
manual refer to the use of such an industrial PC.
For more detailed information on the Valueline industrial PC, please refer to the device-
specific user documentation (see Section “Documentation” on page 69).
Validity of the user manual This manual is only valid for the PC WORX SRT Software PLC in the version indicated on
the inner cover page.
Additional information This document will guide you through the initial steps of installing the Software PLC on a PC
about this manual and adapting any basic settings required in your application.
It is assumed that you know how to operate PCs, especially the PC in the application on
which you want to install the Software PLC. Experience with WindowsR operating systems
and knowledge of IEC 61131 are also assumed.
In order to start up the PC WORX SRT Software PLC according to the descriptions in this
user manual, an active connection to a lower-level PROFINET system is required. You will
require appropriate PROFINET devices in order to follow the example startup shown in this
user manual.
The minimum system requirements must be met in order to install and run the Software
PLC approved PC hardware.
Valueline industrial PCs from Phoenix Contact (such as the VL BPC ..., see Section
“Ordering data” on page 68) offer optimum requirements for operating the Software PLC.
For the ordering data for hardware, software, and additional documentation, please refer
to Section “Ordering data” on page 68.
The PC WORX SRT Software PLC is a PC hardware-based PLC with integrated PROFINET
and Modbus support. It can be used for simple automation tasks without hard realtime
requirements.
Supported hardware Valueline industrial PCs from Phoenix Contact (such as the VL BPC ..., see Section
“Ordering data” on page 68) offer optimum requirements for operating the Software PLC.
IEC 61131 control The PC WORX SRT Software PLC is consistently configured and programmed in
performance accordance with IEC 61131 using the PC Worx automation software. PC Worx can be
installed 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 PCs. The Software PLC is
programmed via the network adapter which is assigned to the Software PLC. If the Software
PLC and PC Worx are installed on the same PC hardware, standard Windows mechanisms
are used for communication between these two applications, just like communication
between the Software PLC and the Windows operating system itself (see Figure 2-2 on
page 10).
For information on installing the PC Worx software, please refer to the quick start guide
for the software (see Section “Documentation” on page 69).
Integrated Ethernet The Software PLC can be assigned to one of the network adapters on the PC. It is used as
functionality/PROFINET an external Ethernet interface. The Software PLC can be programmed via Ethernet with the
help of this interface.
When using the AX OPC server provided in the AUTOMATIONWORX Software Suite
Version 1.81 or later, the Software PLC data is available in the Ethernet network in a
standardized format and can be used for the different visualization packages.
In a PROFINET network, the Software PLC can be used as a PROFINET controller or
PROFINET device. As a PROFINET controller the Software PLC supports up to eight
PROFINET devices depending on the type of PC used.
For additional information on PROFINET, please refer to the following documents (see
also Section “Documentation” on page 69):
– PROFINET Installation Guideline
– UM QS EN PROFINET STARTERKIT 3.0
Quick start guide for the PROFINET starter kit
– UM EN PROFINET SYS
PROFINET basics
– UM EN PROFINET CTRL DEV
PROFINET controller/device functions
Modbus functionality The Modbus TCP communication protocol can be used via the assigned network adapter
on the 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.
Local I/Os Local digital I/Os which are integrated on the Valueline industrial PC (VL BPC MINI) are
(VL BPC MINI only) supported by the Software PLC.
For additional information on local I/Os, please refer to the user documentation for the
Valueline industrial PC used.
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 taskbar. The status monitor displays the operating states of the Software PLC
(see Section “Status monitor of the Software PLC” on page 32).
Ethernet interfaces of the A network adapter on the PC is assigned to the Software PLC for operation. The Ethernet
Software PLC adapter provides the Software PLC with an interface for external communication via
Ethernet. This interface is available to the Software PLC following installation and
assignment. In the example below, the PC has two Ethernet interfaces.
Prior to installing the Software PLC:
PC
Windows
A1 A2
PC
Windows
Software PLC
A2: 192.168.0.2
A1 A2
Key:
Parameterization memory The Software PLC uses some of the PC's memory as a parameterization memory (program
memory, data memory, 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 “Technical data” on
page 67).
For information on interfaces and indication and operating elements, please refer to the
device-specific user documentation of the PC used in your application.
For information on the user documentation for Valueline industrial PCs, please refer to
Section “Documentation” on page 69.
We recommend installing and running the PC WORX SRT Software PLC on a Valueline
industrial PC from Phoenix Contact (such as the VL BPC ...).
For more detailed information on the Valueline industrial PC, especially assembly and
electrical installation, please refer to the device-specific user documentation (see Section
“Documentation” on page 69).
If not installing the Software PLC on a Valueline industrial PC, observe the notes in the
device-specific user documentation for the PC used in your application and familiarize
yourself with the applicable directives and standards relating to assembly and electrical
installation.
• Once you have installed the PC according to the instructions in the device-specific user
documentation and connected it to the power supply, switch on the supply voltage.
If you wish to install the Software PLC and PC Worx on the same PC, please observe the
following installation sequence:
1. Install the AUTOMATIONWORX Software Suite (contains PC Worx).
2. Install the Software PLC.
The installation sequence is not relevant if installing the Software PLC and PC Worx on
different PCs.
Installation via DVD-ROM • Insert the DVD-ROM containing the Software PLC software in the DVD-ROM drive of
your 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 from the DVD-ROM.
• Follow the installation instructions displayed on screen.
Once you have selected the language, the following dialog box appears. This shows the
start screen for installing the Software PLC.
• Click on “Install”.
If the dialog box now prompts you to execute or save the installation file, perform the
necessary actions to execute the installation file.
Installation via installation • In the Download Center, download the installation file to your PC.
file • Double-click on the file to start installation.
Selecting the language • Select the setup language in the following dialog box.
Installation status The installation status of the programs that are needed to operate the Software PLC is
displayed (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 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 “Install” to install the missing programs.
Installation directory • In the following dialog box, enter the destination directory where you want to install the
Software PLC.
Please note that installation of the Software PLC on a network drive is not supported.
• Click on “Next”.
Figure 3-5 “PC WORX SRT Setup” dialog box – destination folder
Selecting the network • In the following dialog box (see Figure 3-6 on page 17), select the network adapter on
adapter/project directory the PC which should allow the Software PLC to communicate with your application.
Set the IP address settings for this network adapter in the Windows Control Panel
according to your application.
• Also specify a directory for the project data of the Software PLC.
If you have installed the Software PLC on a VL BPC MINI Valueline box PC with SD
plug-in card slot, you can specify the SD card as the destination directory. If you need to
change PCs, e.g., in the event of an error, you can use the existing SD card in the
replacement device. All the necessary project data is therefore available. You can access
the stored project data immediately after installing the Software PLC on the replacement
device.
The Software PLC uses the selected network adapter as an external Ethernet interface
(LAN Connection 2 (ETH2) in the example). Following successful installation, this interface
is used by the Software PLC.
Successful installation of the Software PLC is indicated by the following dialog box.
Once installation has been completed, the demo version of the PC WORX SRT Software
PLC is available.
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
installation. 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),
is still available.
Update via DVD-ROM • Insert the DVD-ROM containing the Software PLC software in the DVD-ROM drive of
your 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 box appears. This shows the
start screen for updating the Software PLC.
• Click on “Install”.
If the dialog box now prompts you to execute or save the installation file, perform the
necessary actions to execute the installation file.
Update via update file • In the Download Center, download the update file to your PC.
• Double-click on the file to start the update.
• In the “Welcome” dialog box that opens, click on “Next”.
The installation program now searches for an existing installation of the Software PLC.
Update: Software PLC An existing Software PLC installation is indicated by the following dialog box.
already installed
• Click on “Remove”.
The update process is continued.
Update: installationstatus The installation status of the programs that are needed to operate the Software PLC is
displayed (see Figure 3-13). 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 PC or still need installing.
The contents of Figure 3-13 (installation status) are updated once another of the programs
displayed in Figure 3-13 has been installed.
• Click on “Install” to install the missing programs.
Various messages are displayed during installation.
• Follow the instructions in the messages displayed during the installation process.
Update: installation The “Destination folder” of the previously installed version of the Software PLC is shown in
directory the following dialog box. If required, you can adapt the directory to your application.
Figure 3-14 “PC WORX SRT Setup” dialog box – destination folder
Update: network adapter The “Directory for user project data ...” and “Network interface” settings transferred from the
previously installed version of the Software PLC are shown in the following dialog box.
Figure 3-15 “PC WORX SRT Setup” dialog box – additional settings
Update: installation All previously made settings are shown in the following dialog box.
options/start of
installation
Figure 3-16 “PC WORX SRT Setup” dialog box – settings for the installation
Successful update of the Software PLC is indicated by the following dialog box.
Switching to the operating A boot project of a previously installed version of the Software PLC loaded in the Software
state PLC is processed when the mode selector switch is changed from STOP to RUN/PROG.
The Software PLC switches to the RUN operating state.
The runtime so far of the demo version is displayed when you move the mouse pointer over
the hourglass:
After 60 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 60 minutes, a tooltip is displayed informing you that the
demo version will expire after the specified time has elapsed. The display is updated minute
by minute.
If the test period of the demo version has expired, this is indicated as follows:
Key:
To switch the Software PLC from the demo version to fully functional operation, enter the
license key.
If the demo version is not exited after entering the license key (hourglass disappears),
restart the PC.
Figure 4-5 Menu items of the Software PLC and status monitor
Full functionality of the Software PLC is available once a license key has been entered. For
details of the license key, please refer to the packaging of the ordered item.
• Enter the license key in the Phoenix Contact License Manager to activate the license
(see Figure 4-6 on page 30) and click on “Activate”.
• Confirm your entry with OK.
The Software PLC menu items in the Windows start menu shown in Figure 4-5 on page 29
include the following functions:
PC WORX SRT The “PC WORX SRT Configuration” dialog box displays the following settings:
configuration/settings – Path of the directory where the project data for the Software PLC is saved.
– Network adapter on the PC that has been selected for the Software PLC.
In this dialog box, you have the option to change the directory for project data and/or the
network adapter.
Set the IP address settings of the Ethernet interfaces in the Windows Control Panel
(network settings) on the PC according to your application.
Localhost You can use the localhost function to access the Software PLC directly in Windows via
Windows Explorer or a browser or from software running in Windows (e.g., PC Worx or
WebVisit) using the IP address “127.0.0.1”.
An active connection to the network adapter of the Software PLC is not required for this, nor
is a valid IP address assigned to the Software PLC.
PC WORX SRT The status monitor displays the operating states of the Software PLC. You can use the
status monitor status monitor context menu to:
– Change the operating state of the Software PLC
– Display project information
– Activate/remove a boot project
– Display the operating states of the inputs and outputs of the industrial PC when the
Software PLC is installed on a VL BPC MINI Valueline box PC
PC WORX SRT A popup dialog box shows both the Windows and runtime CPU usage (see Section “System
system monitor monitor” on page 38).
PC WORX SRT switch Displays a representation of the mode selector switch that differs from that of the status
position/mode selector monitor.
switch
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 taskbar.
If the status monitor is not displayed after switching on the PC, you can start it via the
following path:
“Start, All programs, Phoenix Contact, PC WORX SRT, PC WORX SRT Status Monitor”.
Operating states of the The operating states of the Software PLC are indicated in the status monitor using different
Software PLC colors.
• Right-click on the icon in the taskbar 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:
Switch Position Mode selector switch (see Section “Mode selector switch (switch
position)” on page 35).
Show A popup window displays information on the Software PLC (see
Information Section “Project information about the Software PLC” on page 36).
Show System A popup dialog box shows both the Windows and runtime CPU usage
Monitor broken down according to the processor cores used (see Section
“System monitor” on page 38).
Delete Deletes a boot project on the Software PLC.
Bootproject
Use the PC Worx software to load a boot project.
Show MINI I/O Displays the inputs and outputs of a VL BPC MINI, if the Software PLC
has been installed on this type of Valueline industrial PC (see Section
“Show MINI I/O” on page 38).
Exit Closes the status monitor.
If the status monitor has been exited, it can be enabled again via
“Start, All programs, Phoenix Contact, PC WORX SRT,
PC WORX SRT Status Monitor”. After a brief moment, the status
monitor icon appears in the taskbar.
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.
Software PLC reset The mode selector switch does not have a reset function. 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 4-13).
As long as the status monitor is communicating with the Software PLC, i.e., there are no
communication errors, the information dialog box for the Software PLC can be called.
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 (A2) in
Figure 2-2 on page 10)
– MAC address of the network adapter assigned to the Software PLC
– System Up Time – Software PLC runtime since the PC was switched on [hh:mm:ss]
– Firmware version of the Software PLC
– Runtime Version – version of the runtime environment
– Status monitor version
– Serial number of the Software PLC license
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 runtime CPU usage. On PCs with multi-
core CPUs, the usage of all cores used in different processes is shown.
For example, use the system monitor during programming or the test phase to check the
usage of the runtime CPU and of the Windows CPUs used.
If the Software PLC has been installed on a VL BPC MINI Valueline industrial PC, you can
open a dialog box via this menu item which shows the inputs and outputs of the industrial
PC. Green dots in the dialog box indicate TRUE signals at the corresponding inputs and
outputs.
Figure 4-17 Digital inputs and outputs of the VL BPC MINI Valueline industrial PC
A project created with 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.
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
components which were installed when installing the Software PLC must be uninstalled
individually.
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.
Figure 4-18 Status monitor: error affecting the correct operation of the Software PLC
Error descriptions, possible causes, and remedies for operating errors of the Software PLC
can be found in Table 4-4 “Errors affecting the correct operation of the Software PLC” on
page 40:
Table 4-4 Errors affecting the correct operation of the Software PLC
Error Cause Remedy
Connection errors – Invalid firewall settings Check the firewall settings on your
communication errors on the PC PC. Correct any incorrect settings,
if necessary. Disable the firewall
as necessary to ensure correct
connection of the Software PLC.
WLAN network adapter Check the settings for the selected
selected network adapter.
The Software PLC Invalid power options on Check the power options on your
switches to the STOP the PC used PC. Make sure that the power
state or is exited during options for your PC are disabled or
runtime. that correct operation of the
Software PLC is not affected by
Windows switching to energy-
saving mode.
Table 4-4 Errors affecting the correct operation of the Software PLC
Error Cause Remedy
Problems during Software PLC usage too To ensure correct operation of the
operation high Software PLC, use the system
(for example, programs monitor to check the runtime CPU
take too long to process usage.
or program execution is Make sure that the system
repeatedly interrupted) resources required for the correct
operation of the Software PLC are
available.
Reduce the Software PLC usage if
necessary.
System requirements not To ensure correct operation of the
met Software PLC, use the system
monitor to check the usage of the
runtime CPU and of the Windows
CPUs used.
In the event of reoccurring
problems during operation, check
that your PC's system setup meets
the necessary system
requirements for the correct
operation of the Software PLC.
Make sure that the necessary
system requirements for the
correct operation of the Software
PLC are met.
The boot process of the If the CPU load is too Reduce the CPU load, e.g., by
Software PLC takes too high this slows down the reducing the number of software
long. boot process of the tools executed on the PC.
Software PLC.
The control program is Windows switches to the Deactivate the Windows energy-
exited due to a PC power energy-saving state. As saving options on your PC.
status event. a result the Software
PLC switches to the
“Offline” state.
Mini digital I/O: error 1 Overheating is caused Check the wiring of the outputs on
by the output being short the Valueline IPC.
The DO DIAG bit is set
circuited to ground
when the outputs are set Eliminate any existing short
(GND).
to zero due to circuits.
overheating.
Table 4-4 Errors affecting the correct operation of the Software PLC
Error Cause Remedy
Mini digital I/O: error 2 There is no supply Check the power supply at the
voltage at the digital digital inputs and outputs of the
inputs and outputs of the Valueline industrial PC.
VL BPC MINI Valueline
Make sure that the digital inputs
industrial PC.
and outputs are supplied with the
voltage required.
Port conflict The Software PLC and For example, the Software PLC
additional software tools accesses HTTP port 80 and FTP
installed on the PC are ports 20/21 all of which are
accessing the same primarily used for WebVisit.
ports.
If other software tools installed on
the PC access the same ports, this
can affect the correct operation of
the Software PLC.
For correct operation of the
Software PLC, prevent the
simultaneous access of identical
ports.
SNMP conflict The PC has executed a The Software PLC cannot
Windows SNMP respond to SNMP requests or
provider service. services correctly/cannot process
SNMP services correctly if a PC
executes the Windows SNMP
provider service.
If the Software PLC indicates the
execution of this service, make
sure that the PC does not execute
this service further.
SNMP conflict Activated SNMP Active SNMP services detected
services during during installation are deactivated
installation if the user continues with the
installation process.
Firewall/port conflict The firewall settings Change your firewall settings so
prevent the use of certain that the following TCP/UDP ports
ports. can be used: 7, 20, 21, 80, 161,
1059, 1962, 34964, 41100.
The descriptions in this section apply to cases where the Software PLC and PC Worx are
running on the same PC.
When using the Software PLC, make sure you are using the version of PC Worx specified
in Section “Programming software” on page 8 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
phoenixcontact.net/products and is supplied in an electronic form with the software.
PC
Wo
rx
PROFINET
8681A003
• In the “New Project” dialog box, select the “PC WORX SRT V1.0” Software PLC.
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 box (here:
PCWORXSRT_UM).
• Click on “Save” to save the project.
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
subnet mask network (area from 192.168.0.2 to 192.168.0.254, see Figure 5-7 on page 46). 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: PCWORXSRT_UM).) to your application.
If the IP parameters are modified in the project information, the IP address of the network
adapter that you assigned to the Software PLC during installation 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
corresponding address for the local network (e.g., 192.168.0.225) to the PC on which
PC Worx is installed. 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
accepted and displayed with a warning.
If you have installed the Software PLC and PC Worx on different PCs, the IP addresses of
the network adapter assigned to the Software PLC as well as the IP address area preset in
PC Worx must be in the same subnetwork.
PC/network adapter To determine whether your network permits the IP settings used in the example project (see
Figure 5-8 on page 48), 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 5-8 on page 48).
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.
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 9 and onwards). This address entered in the project does not change the IP
address of the PC network adapter that was assigned to the Software PLC during
installation.
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.
Localhost function
The localhost function (see also “Localhost” on page 31) allows you to access the
Software PLC in PC Worx using the IP address “127.0.0.1”, e.g., for program download,
without having assigned an IP address to the Software PLC beforehand.
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.
You can test the localhost function in the bus configuration workspace.
• In the bus configuration workspace in the “Bus Structure” window, select the “PC
WORX SRT” Software PLC.
• In the “Device Details” window, switch to the “Communication” tab.
• Select the “Localhost” entry in the “Connection Name” pull-down menu.
The IP address “127.0.0.1” is set automatically.
• Test the localhost function by clicking on “Test”.
A successful test is indicated by a green background in the status window (see Figure 5-10).
This section describes how to read in PROFINET devices which are connected to the
network adapter that was assigned to the Software PLC during installation on the PC.
In the “Read PROFINET” dialog box that opens, select the corresponding devices for your
application one after the other.
• Click on a device to select it (“ILB PN 24 DI16 DIO16-2TX” in Figure 5-12 on page 52).
• 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 box.
PROFINET device name When reading in the PROFINET network, PC Worx automatically assigns device names
and IP address and IP addresses for the devices read in (see Figure 5-14 on page 53).
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 box (see Figure 5-12 on page 52) 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, and performing a cold restart” on
page 54), 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
complete, 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/warnings is displayed in the “Errors” and/or “Warnings” tabs.
Sending the program to To test the project created so far, send it to the Software PLC using the Project Control
the Software PLC Dialog.
• Click on the “Project Control Dialog” icon in the toolbar.
The Project Control Dialog (see Figure 5-18 on page 55) is opened.
• Click on “Download”.
Download is indicated in the status bar. Once the download is complete, PC Worx displays
a corresponding message in the message window.
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 “Reset” in the Project Control Dialog.
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.
You can read the status of the realtime clock in PC Worx using system variables (see
Section “System time” on page 65).
The PC WORX SRT Software PLC supports the “Download changes” function.
The “Download changes” function can be used to send project modifications to the
controller(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 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.
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
Explorer FTP functionality” on page 58.
The file structure, which is stored on the parameterization memory, is displayed in the
Internet 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 5-21 Internet Options: Enable folder view for FTP sites
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
operations. 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 are valid for the PC WORX SRT Software PLC Version 1.0 or later.
The function blocks for handling files in the parameterization memory are described in the
PC Worx online help.
The function blocks are used to establish Ethernet communication between two
communication partners.
The IP communication blocks listed below enable IEC 61131-5-compliant communication
between controllers via Ethernet or communication between controllers and Ethernet
devices 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
support the specified maximum number of TCP/IP or UDP/IP communication connections:
PC WORX SRT as of Ethernet connections to other
Blocks
version communication partners (maximum)
1.0 IEC 61131-5
1.0 TCP/IP 16
1.0 UDP/IP
6 System variables
Below you will find a list of the system variables in PC Worx of relevance to the Software
PLC.
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 (CPU) of the Software PLC. The Software PLC runtime system runs on
this processor.
The system variables listed below show whether the corresponding Ethernet service has
been executed.
Table 6-3 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, AUTOMATIONWORX controllers provide
the following status information for the PROFINET network.
The table below describes the PROFINET system variables of the integrated PROFINET
controller function.
If one of these values is set, it is now possible to decide from the program whether the
system should continue operating. For example, system errors such as maintenance
requirement 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 function.
For information regarding the technical data for the PC on which the Software PLC is
installed, please refer to the device-specific user documentation (see also Section
“Documentation” on page 69).
General data
Realtime clock Yes
Fieldbus systems PROFINET, Modbus
PROFINET
Type PROFINET controller, PROFINET device
PROFINET specification Version 2.x
Number of PROFINET devices 8, 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 “Devices” ordering data, please visit phoenixcontact.com or
phoenixcontact.net/products.
7.2.1 Devices
7.2.2 Accessories
7.2.3 Software
Use the order number specified for PC Worx to order the current version of the software. The corresponding service pack can be downloaded
from the Download Center on the Phoenix Contact homepage.
7.2.4 Documentation
PROFINET/PROFINET IO
Quick start guide UM QS EN PROFINET STARTERKIT 3.0 – 1
Installing and starting up the PROFINET starter kit 3.0
User manual UM EN PROFINET SYS – 1
PROFINET basics
User manual UM EN PROFINET CTRL DEV – 1
PROFINET controller/device functions
PROFINET Installation Guideline for Cabling and Assembly, For the latest versions of the documents, visit
Version 1.0, January 2009, Order No.: 8072 www.profibus.com/PNInstallationGuide
“PROFINET_Guideline_Assembly_8072_V10_Jan09.pdf” or you can contact your nearest Phoenix Contact representative regarding
the document.
Modbus
Application note AH EN MODBUS TCP – 1
Modbus TCP with Phoenix Contact controllers
For more detailed information on the user documentation, please refer to the ordering
data (see “Documentation” on page 69). The user documentation can be downloaded at
phoenixcontact.net/products.
Connect the Ethernet cable to the Ethernet interface (RJ45 socket/network adapter) of the
PC that was assigned to the Software PLC during installation. It connects the Software PLC
to an Ethernet/PROFINET network. Use an Ethernet cable according to CAT5 of
IEEE 802.3.
Observe the information on the Ethernet interfaces of the device in “Ethernet interfaces of
the Software PLC” on page 10.
For the ordering data for the Ethernet cable, please refer to Section “Accessories” on
page 68.
B1 List of figures
Section 2
Figure 2-1: PC with installed Windows operating system ...................................... 10
Figure 2-2: PC with installed Software PLC and Windows .................................... 10
Section 3
Figure 3-1: DVD start screen ................................................................................ 14
Figure 3-2: Selecting the language ....................................................................... 14
Figure 3-3: PC WORX SRT installer ..................................................................... 15
Figure 3-4: Installation status of the programs to be installed ............................... 15
Figure 3-5: “PC WORX SRT Setup” dialog box – destination folder ...................... 16
Figure 3-6: Software PLC: selecting the network adapter ..................................... 17
Figure 3-7: Start of installation .............................................................................. 18
Figure 3-8: Installation status of the Software PLC ................................................ 18
Figure 3-9: Installation successful ......................................................................... 19
Figure 3-10: DVD start screen ................................................................................ 20
Figure 3-11: PC WORX SRT installer ..................................................................... 21
Figure 3-12: Software PLC version already installed .............................................. 21
Figure 3-13: Installation status of the programs to be installed ............................... 22
Figure 3-14: “PC WORX SRT Setup” dialog box – destination folder ...................... 23
Figure 3-15: “PC WORX SRT Setup” dialog box – additional settings .................... 23
Figure 3-16: “PC WORX SRT Setup” dialog box – settings for the installation ........ 24
Figure 3-17: Update status of the Software PLC ..................................................... 24
Figure 3-18: Installation successful ......................................................................... 25
Section 4
Figure 4-1: PC WORX SRT: indication of demo version ....................................... 27
Figure 4-2: PC WORX SRT: display of demo version runtime .............................. 27
Figure 4-3: PC WORX SRT: demo version will expire in x minutes ....................... 27
Figure 4-4: PC WORX SRT: demo version has expired ........................................ 28
Figure 4-5: Menu items of the Software PLC and status monitor .......................... 29
Figure 4-6: License Manager – Software PLC licensed ........................................ 30
Section 5
Figure 5-1: Example project structure ................................................................... 43
Figure 5-2: Creating a new project – “File, New Project...” menu .......................... 44
Figure 5-3: “New Project” dialog box: project templates ....................................... 44
Figure 5-4: “File, Save Project As / Zip Project As...” menu ................................... 44
Figure 5-5: “Save/Zip project as” dialog box ......................................................... 45
Figure 5-6: “Bus Configuration Workspace” button ............................................... 46
Figure 5-7: Project information after creating a new project .................................. 46
Figure 5-8: Device details – IP address setting of the Software PLC ..................... 48
Figure 5-9: “Device Details” window – testing the communication path ................ 49
Figure 5-10: Testing the localhost function in PC Worx ........................................... 50
Figure 5-11: PROFINET node: Read PROFINET ................................................... 51
Figure 5-12: “Read PROFINET” dialog box ............................................................. 52
Figure 5-13: “Insert PROFINET Device” dialog box ................................................ 52
Figure 5-14: PROFINET device name and IP address ............................................ 53
Figure 5-15: “Build, Rebuild Project” menu ............................................................. 54
Figure 5-16: Compilation process complete ........................................................... 54
Figure 5-17: Opening the Project Control Dialog ..................................................... 54
Figure 5-18: Project Control Dialog ......................................................................... 55
Figure 5-19: Extended Settings: Open FTP Folder on Device ................................ 56
Figure 5-20: File structure on the parameterization memory ................................... 57
Figure 5-21: Internet Options: Enable folder view for FTP sites .............................. 58
Section 4
Table 4-1: Operating states of the Software PLC.................................................. 33
Table 4-2: Options in the context menu of the status monitor ............................... 34
Table 4-3: Switch positions of the mode selector switch....................................... 35
Table 4-4: Errors affecting the correct operation of the Software PLC .................. 40
Section 5
Table 5-1: Overview of function blocks ................................................................. 59
Table 5-2: Overview of function blocks ................................................................. 60
Section 6
Table 6-1: System variables of the IEC 61131 runtime system ............................. 61
Table 6-2: System variables of the control processor ........................................... 62
Table 6-3: System variables of the Software PLC
(status of the Ethernet network) ........................................................... 62
Table 6-4: PROFINET system variables
(PROFINET controller function) ........................................................... 63
Table 6-5: PROFINET system variables
(PROFINET device functionality) ......................................................... 64
Table 6-6: Special system variables of the Software PLC..................................... 65
Table 6-7: System variables of the system time.................................................... 65
A L
Assembly and electrical installation .............................11 License Manager ......................................................... 30
Automatic startup .........................................................29 Licensing ..................................................................... 30
AX OPC server...............................................................9 Local I/Os..................................................................... 10
Localhost ..................................................................... 31
B Localhost function.................................................. 19, 48
Boot process
Automatic startup ...................................................29 M
Modbus........................................................................ 10
C Modbus functionality .................................................... 10
Communication errors Mode selector switch ................................................... 31
Causes ...................................................................40 Switch position ................................................. 34, 35
D N
Demo version...............................................................27 Network adapter .............................................. 10, 16, 30
New installation............................................................ 13
E
Errors and troubleshooting
O
Communication errors ............................................39 Operating systems, supported ....................................... 7
Ethernet functionality......................................................9 Ordering data
Ethernet interfaces .......................................................10 Accessories............................................................ 68
Documentation ....................................................... 69
F Modules ................................................................. 68
Software ................................................................. 68
FTP functionality ..........................................................56
H P
Parameterization memory ............................................ 11
Hardware requirements .................................................8
PC Worx
Creating a new project ........................................... 44
I Project information ................................................. 46
IEC 61131 control performance .....................................9 Saving the project................................................... 44
Installation status ................................................... 15, 22 PROFINET..................................................................... 9
Installing the Software PLC Programming software................................................... 8
New installation ......................................................13
Update....................................................................20
Interfaces .....................................................................71
Selecting the network adapter ................................16
Interfaces, indication elements, and operating
elements ......................................................................11
S
Scope of supply .............................................................7
Software PLC
Demo version .........................................................27
IP address ........................................................ 17, 19
Licensing ................................................................30
MINI I/O ..................................................................38
Network adapter ......................................... 10, 23, 30
Operating states .....................................................33
Project information .................................................36
Reset......................................................................36
Status monitor.................................................. 10, 31, 32
Context menu .........................................................33
Supported hardware ......................................................9
System monitor ...................................................... 31, 38
System requirements .....................................................7
U
Update .........................................................................20
V
VL BPC MINI
MINI I/O ..................................................................38
W
WebVisit.......................................................................39