Nothing Special   »   [go: up one dir, main page]

0% found this document useful (0 votes)
93 views80 pages

Um en PC Worx SRT 8681 en 00

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views80 pages

Um en PC Worx SRT 8681 en 00

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 80

Installing and operating the

PC WORX SRT Software PLC

User manual
UM EN PC WORX SRT
User manual
Installing and operating the PC WORX SRT Software PLC

2013-11-06

Designation: UM EN PC WORX SRT

Revision: 00

Order No.: —

This user manual is valid for:

Designation Revision Order No.


PC WORX SRT 1.0 2701680

PHOENIX CONTACT 8681_en_00


Please observe the following notes
User group of this manual
The use of products described in this manual is oriented exclusively to:
– Qualified electricians or persons instructed by them, who are familiar with applicable
standards and other regulations regarding electrical engineering and, in particular, the
relevant safety concepts.
– Qualified application programmers and software engineers, who are familiar with the
safety concepts of automation technology and applicable standards.
Explanation of symbols used and signal words
This is the safety alert symbol. It is used to alert you to potential personal injury
hazards. Obey all safety measures that follow this symbol to avoid possible
injury or death.
There are three different categories of personal injury that are indicated with a
signal word.
DANGER This indicates a hazardous situation which, if not avoided, will
result in death or serious injury.
WARNING This indicates a hazardous situation which, if not avoided, could
result in death or serious injury.
CAUTION This indicates a hazardous situation which, if not avoided, could
result in minor or moderate injury.
This symbol together with the signal word NOTE and the accompanying text
alert the reader to a situation which may cause damage or malfunction to the
device, hardware/software, or surrounding property.
This symbol and the accompanying text provide the reader with additional
information or refer to detailed sources of information.

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.

Published by PHOENIX CONTACT GmbH & Co. KG


Flachsmarktstraße 8
32825 Blomberg
GERMANY
Should you have any suggestions or recommendations for improvement of the contents and
layout of our manuals, please send your comments to:
tecdoc@phoenixcontact.com

PHOENIX CONTACT
Please observe the following notes

General terms and conditions of use for technical documentation


Phoenix Contact reserves the right to alter, correct, and/or improve the technical
documentation and the products described in the technical documentation at its own
discretion and without giving prior notice, insofar as this is reasonable for the user.
The same applies to any technical changes that serve the purpose of technical progress.
The receipt of technical documentation (in particular user documentation) does not
constitute any further duty on the part of Phoenix Contact to furnish information on
modifications to products and/or technical documentation. You are responsible to verify the
suitability and intended use of the products in your specific application, in particular with
regard to observing the applicable standards and regulations. All information made
available in the technical data is supplied without any accompanying guarantee, whether
expressly mentioned, implied or tacitly assumed.
In general, the provisions of the current standard Terms and Conditions of Phoenix Contact
apply exclusively, in particular as concerns any warranty liability.
This manual, including all illustrations contained herein, is copyright protected. Any
changes to the contents or the publication of extracts of this document is prohibited.
Phoenix Contact reserves the right to register its own intellectual property rights for the
product identifications of Phoenix Contact products that are used here. Registration of such
intellectual property rights by third parties is prohibited.
Other product identifications may be afforded legal protection, even where they may not be
indicated as such.

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

2 Description of the PC WORX SRT Software PLC .......................................................................9


2.1 General description ............................................................................................... 9
2.2 Interfaces, indication elements, and operating elements ..................................... 11
2.3 Assembly and electrical installation ..................................................................... 11
2.4 Connecting the PC's supply voltage .................................................................... 12

3 Installing the Software PLC.......................................................................................................13


3.1 Prior to installation .............................................................................................. 13
3.2 Starting the installation program .......................................................................... 13
3.2.1 New installation of the Software PLC ................................................... 13
3.2.2 Updating the Software PLC .................................................................. 20

4 Useful information for working with the Software PLC...............................................................27


4.1 Demo version of the Software PLC...................................................................... 27
4.2 Initial steps following successful installation ........................................................ 29
4.2.1 Licensing of the Software PLC ............................................................. 30
4.2.2 Windows start menu – Software PLC menu items ................................ 30
4.3 Status monitor of the Software PLC..................................................................... 32
4.3.1 Context menu of the status monitor ..................................................... 33
4.3.2 Mode selector switch (switch position) ................................................. 35
4.3.3 Project information about the Software PLC ........................................ 36
4.3.4 System monitor .................................................................................... 38
4.3.5 Show MINI I/O ...................................................................................... 38
4.4 Support for WebVisit and FTP access ................................................................. 39
4.5 Uninstalling the Software PLC ............................................................................. 39
4.6 Errors and troubleshooting .................................................................................. 39

5 Software PLC and PC Worx – program creation .......................................................................43


5.1 Example project structure.................................................................................... 43
5.2 Creating and saving a new project....................................................................... 44
5.3 Checking/specifying project information .............................................................. 46
5.4 Assigning/checking the IP address for the Software PLC .................................... 48

8681_en_00 PHOENIX CONTACT 5


PC WORX SRT

5.5 Communication path/localhost function............................................................... 49


5.5.1 Testing the communication path .......................................................... 49
5.5.2 Testing the localhost function .............................................................. 50
5.6 Reading in the PROFINET network ..................................................................... 51
5.7 Compiling and sending a PC Worx project to the Software PLC,
and performing a cold restart............................................................................... 54
5.8 Reading the realtime clock .................................................................................. 55
5.9 Download changes.............................................................................................. 55
5.10 Parameterization memory and Internet Explorer.................................................. 56
5.10.1 Internet Explorer FTP functionality ....................................................... 58
5.10.2 Activating/deactivating the HTTP server .............................................. 58
5.11 Function blocks for handling files in the parameterization memory...................... 59
5.12 Function blocks for Ethernet communication ....................................................... 60

6 System variables ......................................................................................................................61


6.1 IEC 61131 runtime system................................................................................... 61
6.2 Control processor (CPU) ..................................................................................... 62
6.3 Variables of the Software PLC for the status of the connected
Ethernet network ................................................................................................. 62
6.4 PROFINET system variables ............................................................................... 63
6.5 Special variables of the Software PLC................................................................. 65
6.6 System time......................................................................................................... 65

7 Technical data and ordering data .............................................................................................67


7.1 Technical data ..................................................................................................... 67
7.2 Ordering data ...................................................................................................... 68
7.2.1 Devices ................................................................................................ 68
7.2.2 Accessories ......................................................................................... 68
7.2.3 Software ............................................................................................... 68
7.2.4 Documentation ..................................................................................... 69

A Appendix: interfaces of the PC WORX SRT Software PLC.......................................................71


A1 Connecting an Ethernet/PROFINET network...................................................... 71

B Appendix for document lists......................................................................................................73


B1 List of figures ...................................................................................................... 73
B2 List of tables ....................................................................................................... 77
B3 Index................................................................................................................... 79

6 PHOENIX CONTACT 8681_en_00


General, scope of supply, and requirements

1 General, scope of supply, and requirements

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.

1.2 Scope of supply of the Software PLC


The Software PLC is supplied with a DVD that contains the following:
– Installation file for the Software PLC including all additional programs required for
installation
– EULA

1.3 System requirements

1.3.1 Supported operating systems

– WindowsR XP Service Pack 3


– WindowsR 7 (32/64-bit)
– WindowsR Embedded 2009
– WindowsR Embedded Standard 7

8681_en_00 PHOENIX CONTACT 7


PC WORX SRT

1.3.2 Hardware requirements

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.

WindowsR XP WindowsR 7 WindowsR 7 WindowsR WindowsR


SP 3 32-bit 64-bit Embedded Embedded
2009 Standard 7
CPU INTELR Atom™, 1.1 GHz
Main memory 512 Mbytes 1 Gbyte 2 Gbytes 512 Mbytes 1 Gbyte
Free hard disk space
8 Gbytes 16 Gbytes 32 Gbytes 4 Gbytes 8 Gbytes
(free memory)
Interfaces 1 x Ethernet (RJ45)
Monitor XGA, resolution of 1024 x 768 pixels
Operating devices Keyboard, mouse (recommended)
Web browser Internet Explorer 7 or later

1.3.3 Programming software

PC Worx Version 6.3x or later, part of the AUTOMATIONWORX


Software Suite 2013 1.81

For the ordering data for hardware, software, and additional documentation, please refer
to Section “Ordering data” on page 68.

1.4 Requirements for correct operation of the


Software PLC
Since the Software PLC does not offer realtime capability, there may be unforeseen
interactions with other software tools running under Windows on the PC or with Windows
itself. This behavior may disrupt correct operation of the Software PLC.
For stable and high-performance operation of the Software PLC, we recommend the
following:
– Select the PC in accordance with the system requirements (see Section “System
requirements” on page 7).
– Make sure that the power options for your PC are disabled or that correct operation of
the Software PLC is not affected by Windows switching to energy-saving mode.
– Make sure that as few additional software tools as possible are installed on the PC in
addition to the Software PLC and, if they are absolutely necessary, that as few
additional software tools as possible are executed at the same time as the Software
PLC.

8 PHOENIX CONTACT 8681_en_00


Description of the PC WORX SRT Software PLC

2 Description of the PC WORX SRT Software PLC

2.1 General description

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

8681_en_00 PHOENIX CONTACT 9


PC WORX SRT

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.

For additional information on Modbus, please refer to the AH EN MODBUS TCP


application note.

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

ETH1 ETH2 8681A001


Figure 2-1 PC with installed Windows operating system

After installing the Software PLC:

PC
Windows

Software PLC

A2: 192.168.0.2

A1 A2

ETH1 ETH2 8681A002

Figure 2-2 PC with installed Software PLC and Windows

10 PHOENIX CONTACT 8681_en_00


Description of the PC WORX SRT Software PLC

Key:

Ax Ethernet interfaces of the PC/Ethernet communication


(A2: network adapter assigned to the Software PLC)
Figure 2-1 on page 10 shows that prior to installing the Software PLC, both of the PC's
Ethernet interfaces are available in Windows. Figure 2-2 on page 10 shows that after
installing the Software PLC:
– The Software PLC runs within the Windows operating system.
– One of the PC's Ethernet interfaces is assigned to the Software PLC. The interface is
available to the Software PLC. The IP address that is to be set for this network adapter
in the Windows Control Panel according to your application is “192.168.0.2” in the
example (A2 in Figure 2-2 on page 10).

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 additional information on the parameterization memory, please refer to Section


“Parameterization memory and Internet Explorer” on page 56.

2.2 Interfaces, indication elements, and operating


elements

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.

2.3 Assembly and electrical installation

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.

8681_en_00 PHOENIX CONTACT 11


PC WORX SRT

2.4 Connecting the PC's supply voltage

• 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.

12 PHOENIX CONTACT 8681_en_00


Installing the Software PLC

3 Installing the Software PLC

3.1 Prior to installation

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.

Prior to installation, close all open Windows applications.

3.2 Starting the installation program

3.2.1 New installation of the Software PLC

You can install the Software PLC on your PC in two ways:


1 Installation via DVD-ROM.
2 Installation via installation file, which can be downloaded at
phoenixcontact.net/products.

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.

8681_en_00 PHOENIX CONTACT 13


PC WORX SRT

Figure 3-1 DVD start screen

• 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.

Figure 3-2 Selecting the language

14 PHOENIX CONTACT 8681_en_00


Installing the Software PLC

• In the “Welcome” dialog box that opens, click on “Next”.

Figure 3-3 PC WORX SRT installer

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.

Figure 3-4 Installation status of the programs to be installed

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.

8681_en_00 PHOENIX CONTACT 15


PC WORX SRT

Various messages are displayed during installation.


• Follow the instructions in the messages displayed during the installation process.

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.

NOTE: Do not select a WLAN network adapter


Communication via PROFINET or Modbus TCP can be restricted when using a WLAN
network adapter. We therefore recommend that you do not use this type of network
adapter.

• 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.

16 PHOENIX CONTACT 8681_en_00


Installing the Software PLC

Figure 3-6 Software PLC: selecting the network adapter

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.

Reading in the IP address of the Software PLC – Ethernet connection required


Please note that the Software PLC can only read in the IP address of the assigned
network adapter if an Ethernet connection exists at the assigned network adapter via
which there is an active connection to at least one network device.
We recommend establishing the connection at this point in the installation. Following
successful installation, you can check the IP address in the “Information” dialog box (see
Section “Project information about the Software PLC” on page 36).
• Click on “Next” to apply your settings.

8681_en_00 PHOENIX CONTACT 17


PC WORX SRT

Installation options/start The selected installation options are displayed.


of installation

Figure 3-7 Start of installation

• Click on “Install” to start installation.


• The following dialog box shows the installation status of the Software PLC.

Figure 3-8 Installation status of the Software PLC

18 PHOENIX CONTACT 8681_en_00


Installing the Software PLC

Successful installation of the Software PLC is indicated by the following dialog box.

Figure 3-9 Installation successful

• Click on “Finish” to complete the installation.

Software PLC startup


The Software PLC starts automatically after booting the PC. To prevent automatic startup,
the mode selector switch is set to the STOP position when starting.

Once installation has been completed, the demo version of the PC WORX SRT Software
PLC is available.

Reading in the IP address of the Software PLC – restart required if there is no


Ethernet connection
If there is no Ethernet connection at the network adapter, the Software PLC will not have
read in the IP address. If you subsequently establish the Ethernet connection, you must
restart the PC to read in the IP address.
Localhost function
Alternatively, the localhost function allows you to access the Software PLC using the
IP address “127.0.0.1”, e.g., for test purposes or during programming, without an Ethernet
connection in place (see also “Localhost” on page 31).

8681_en_00 PHOENIX CONTACT 19


PC WORX SRT

3.2.2 Updating the Software PLC

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.

The Software PLC update can be started in two ways:


1 Update via DVD-ROM
2 Update via update file, which can be downloaded at phoenixcontact.net/products.

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.

Figure 3-10 DVD start screen

• Click on “Install”.

20 PHOENIX CONTACT 8681_en_00


Installing the Software PLC

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”.

Figure 3-11 PC WORX SRT installer

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

Figure 3-12 Software PLC version already installed

• Click on “Remove”.
The update process is continued.

8681_en_00 PHOENIX CONTACT 21


PC WORX SRT

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.

Figure 3-13 Installation status of the programs to be installed

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.

22 PHOENIX CONTACT 8681_en_00


Installing the Software PLC

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.

NOTE: Do not select a WLAN network adapter


Communication via PROFINET or Modbus TCP can be restricted when using a WLAN
network adapter. We therefore recommend that you do not use this type of network
adapter.

Figure 3-15 “PC WORX SRT Setup” dialog box – additional settings

8681_en_00 PHOENIX CONTACT 23


PC WORX SRT

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

• Click on “Install” to continue the update.


• The following dialog box shows the update status of the Software PLC.

Figure 3-17 Update status of the Software PLC

24 PHOENIX CONTACT 8681_en_00


Installing the Software PLC

Successful update of the Software PLC is indicated by the following dialog box.

Figure 3-18 Installation successful

• Click on “Finish” to complete the update.

Software PLC startup


The Software PLC starts automatically after booting the PC. To prevent automatic startup,
the mode selector switch is set to the STOP position when starting.
• Restart the PC.
Once update installation has been completed, either the demo version or the full version of
the PC WORX SRT Software PLC is available. This depends on whether you previously
entered a license key. A previously entered valid license key is still valid for the update.

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.

8681_en_00 PHOENIX CONTACT 25


PC WORX SRT

26 PHOENIX CONTACT 8681_en_00


Useful information for working with the Software PLC

4 Useful information for working with the Software PLC

4.1 Demo version of the Software PLC

Demo version – time-limited functionality


Do not use the demo version of the Software PLC for normal operation.
Only use the demo version for testing in order to familiarize yourself with the Software
PLC.
Following installation, the demo version of the Software PLC starts immediately. The demo
version provides the option of testing Software PLC functions without having to enter a
license key. Full functionality of the Software PLC is available for a period of 60 minutes.
After this time, the Software PLC stops operating. Further operation is only possible when a
license key is entered (see Section “Licensing of the Software PLC” on page 30).
Operation in the demo version is indicated by the hourglass icon and the following tooltip,
which pops up:

Figure 4-1 PC WORX SRT: indication of demo version

The runtime so far of the demo version is displayed when you move the mouse pointer over
the hourglass:

Figure 4-2 PC WORX SRT: display of demo version runtime

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.

Figure 4-3 PC WORX SRT: demo version will expire in x minutes

8681_en_00 PHOENIX CONTACT 27


PC WORX SRT

If the test period of the demo version has expired, this is indicated as follows:

Figure 4-4 PC WORX SRT: demo version has expired

Key:

Demo version has expired

Software PLC in the STOP state

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.

28 PHOENIX CONTACT 8681_en_00


Useful information for working with the Software PLC

4.2 Initial steps following successful installation

WARNING: Automatic startup


The Software PLC starts up automatically after booting the PC. A boot project loaded in
the Software PLC is processed immediately if the mode selector switch is set to
RUN/PROG (see Section “Mode selector switch (switch position)” on page 35).
Outputs can be set according to the application/programming.
Once the Software PLC has been successfully installed and the PC restarted, the menu
items shown in Figure 4-5 on page 29 are available to the Software PLC in the Windows
start menu. The status monitor of the Software PLC is also displayed as an icon in the
taskbar.

Figure 4-5 Menu items of the Software PLC and status monitor

Status monitor – additional information


For information on the status monitor, especially its display and setting options, please
refer to Section “Status monitor of the Software PLC” on page 32.

8681_en_00 PHOENIX CONTACT 29


PC WORX SRT

4.2.1 Licensing of the Software PLC

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.

Figure 4-6 License Manager – Software PLC licensed

4.2.2 Windows start menu – Software PLC menu items

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.

Figure 4-7 “PC WORX SRT Configuration” dialog box


(Network adapter “LAN Connection 2”: Ethernet interface ETH2 (A2) in
Figure 2-2 on page 10)

30 PHOENIX CONTACT 8681_en_00


Useful information for working with 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

Figure 4-8 Mode selector switch

8681_en_00 PHOENIX CONTACT 31


PC WORX SRT

4.3 Status monitor of the Software PLC

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.

Figure 4-9 Status monitor of the Software PLC

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”.

Figure 4-10 Starting the status monitor

32 PHOENIX CONTACT 8681_en_00


Useful information for working with the Software PLC

Operating states of the The operating states of the Software PLC are indicated in the status monitor using different
Software PLC colors.

Table 4-1 Operating states of the Software PLC


Display State Color Description

For example, no boot project and


ON Gray
no application project loaded.

For example, project loaded but


STOP Yellow
not running.

RUN Green Project running.

The Software PLC is in the debug


state and has stopped on reaching
HALT Orange
the next breakpoint in the program
sequence.
Gray with Error affecting the operation of the
Error white cross Software PLC (see Section “Errors
in red circle and troubleshooting” on page 39).

4.3.1 Context menu of the status monitor

• Right-click on the icon in the taskbar to open the context menu of the status monitor.

Figure 4-11 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:

8681_en_00 PHOENIX CONTACT 33


PC WORX SRT

Table 4-2 Options 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.
Retain data and the application program are deleted.
This option is only available if the Software PLC is in the STOP state
(see “Software PLC reset” on page 36).
Activate Activates the boot project.
Bootproject
The boot project is loaded in the 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 state or the STOP state.
After execution, the Software PLC switches to the STOP state
(ON → STOP) or retains its current state (STOP → STOP).

WARNING: Automatic startup


The Software PLC starts up automatically after booting the PC. A boot project
loaded in the Software PLC is processed immediately if the mode selector
switch is set to RUN/PROG (see Section “Mode selector switch (switch
position)” on page 35).
Outputs can be set according to the application/programming.

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.

34 PHOENIX CONTACT 8681_en_00


Useful information for working with the Software PLC

4.3.2 Mode selector switch (switch position)

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.

Prevention of automatic startup


When the PC is restarted, the previously set position of the mode selector switch is noted
and retained. If the mode selector switch was set to the STOP position prior to a restart,
automatic startup can therefore be prevented after restart.

Figure 4-12 Switch positions of the mode selector switch

Table 4-3 Switch positions of the mode selector switch


Switch position Description
RUN/PROG The Software PLC is in the RUN state, the application program is
processed.
The PC Worx software can be used for program and configuration
modifications.
The monitoring and online functions can be used.
STP STOP
The Software PLC is in the STOP state, application program
processing has been stopped.

8681_en_00 PHOENIX CONTACT 35


PC WORX SRT

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).

Figure 4-13 Status monitor – resetting the Software PLC

4.3.3 Project information about the Software PLC

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.

Figure 4-14 Status monitor – Software PLC: Show Information

36 PHOENIX CONTACT 8681_en_00


Useful information for working with the Software PLC

Figure 4-15 Information about the current project

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.

8681_en_00 PHOENIX CONTACT 37


PC WORX SRT

4.3.4 System monitor

Figure 4-16 System 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.

NOTE: Correct operation – observe system usage


To ensure correct operation of the Software PLC, use the system monitor to check the
usage of the runtime CPU and of the Windows CPUs used.

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.

4.3.5 Show MINI I/O

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

38 PHOENIX CONTACT 8681_en_00


Useful information for working with the Software PLC

4.4 Support for WebVisit and FTP access

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.

4.5 Uninstalling the Software PLC

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.

4.6 Errors and troubleshooting

Requirements for correct operation of the Software PLC


Since the Software PLC does not offer realtime capability, there may be unforeseen
interactions with other software tools running under Windows on the PC or with Windows
itself. This behavior may disrupt correct operation of the Software PLC.
For stable and high-performance operation of the Software PLC, we recommend the
following:
– Select the PC in accordance with the system requirements (see Section “System
requirements” on page 7).
– Make sure that the power options for your PC are disabled or that correct operation
of the Software PLC is not affected by Windows switching to energy-saving mode.
– Make sure that as few additional software tools as possible are installed on the PC in
addition to the Software PLC and, if they are absolutely necessary, that as few
additional software tools as possible are executed at the same time as the Software
PLC.
The status monitor indicates any errors affecting the correct operation of the Software PLC
as shown in Figure 4-18.

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:

8681_en_00 PHOENIX CONTACT 39


PC WORX SRT

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.

NOTE: Do not select


a WLAN network
adapter
Communication via
PROFINET or
Modbus TCP can be
restricted when using a
WLAN network
adapter. We therefore
recommend that you
do not use this type of
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.

40 PHOENIX CONTACT 8681_en_00


Useful information for working with the Software PLC

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.

8681_en_00 PHOENIX CONTACT 41


PC WORX SRT

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.

42 PHOENIX CONTACT 8681_en_00


Software PLC and PC Worx – program creation

5 Software PLC and PC Worx – program creation

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.

5.1 Example project structure

PC
Wo
rx

PROFINET

8681A003

Figure 5-1 Example project structure

8681_en_00 PHOENIX CONTACT 43


PC WORX SRT

5.2 Creating and saving a new project

Creating a new project in • Start PC Worx.


PC Worx • Select the “New Project...” command from the “File” menu to create a new project using
a template.

Figure 5-2 Creating a new project – “File, New Project...” menu

• In the “New Project” dialog box, select the “PC WORX SRT V1.0” Software PLC.

Figure 5-3 “New Project” dialog box: project templates

• Confirm your selection with “OK”.

Saving the project • Select the “File, Save Project As / Zip Project As...” command in the “File” menu.

Figure 5-4 “File, Save Project As / Zip Project As...” menu

44 PHOENIX CONTACT 8681_en_00


Software PLC and PC Worx – program creation

• Enter a name for your project in the “Save/Zip project as” dialog box (here:
PCWORXSRT_UM).
• Click on “Save” to save the project.

Figure 5-5 “Save/Zip project as” dialog box

8681_en_00 PHOENIX CONTACT 45


PC WORX SRT

5.3 Checking/specifying project information

• Switch to the bus configuration workspace.

Figure 5-6 “Bus Configuration Workspace” button

After creating a new project, the project information is displayed in the bus configuration
workspace.
• Adapt the project information to your project.

Figure 5-7 Project information after creating a new 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.

Observe the IP address settings of the network adapter


If necessary, adjust the IP address area in the project information according to the IP
address settings of the network adapter you selected when installing the Software PLC
(see “Selecting the network adapter/project directory” on page 16). For the address set in
the example (192.168.0.2), no further adjustment is required. It is in the subnet of the
default address area proposed by PC Worx.

46 PHOENIX CONTACT 8681_en_00


Software PLC and PC Worx – program creation

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.

8681_en_00 PHOENIX CONTACT 47


PC WORX SRT

5.4 Assigning/checking the IP address for the


Software PLC

According to the IP address settings in the project information (see Section


“Checking/specifying project information” on page 46 and onwards), the IP address for the
Software PLC must be set in the device details in the “IP Settings” tab.
• Set the IP address “192.168.0.2” (see Figure 5-8).

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.

Figure 5-8 Device details – IP address setting of the Software PLC

48 PHOENIX CONTACT 8681_en_00


Software PLC and PC Worx – program creation

5.5 Communication path/localhost function

5.5.1 Testing the communication path


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 SRT” Software PLC.
• In the “Device Details” window, switch to the “Communication” tab.
• To test the communication path, click on “Test”.
A successful test is indicated by a green background in the status window (see Figure 5-9).

Figure 5-9 “Device Details” window – testing the communication path

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.

8681_en_00 PHOENIX CONTACT 49


PC WORX SRT

5.5.2 Testing the localhost function

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).

Figure 5-10 Testing the localhost function in PC Worx

50 PHOENIX CONTACT 8681_en_00


Software PLC and PC Worx – program creation

5.6 Reading in the PROFINET network

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.

For additional information on PROFINET, especially reading in a PROFINET network,


please refer to the UM EN PROFINET SYS – PROFINET basics user manual.

To read in the PROFINET network connected to the Software PLC


(“ILB PN 24 DI16 DIO16-2TX” in the example), proceed as follows:
• In the context menu of the PROFINET node, select the “Read PROFINET...” command.

Figure 5-11 PROFINET node: Read PROFINET

In the “Read PROFINET” dialog box that opens, select the corresponding devices for your
application one after the other.

8681_en_00 PHOENIX CONTACT 51


PC WORX SRT

• Click on a device to select it (“ILB PN 24 DI16 DIO16-2TX” in Figure 5-12 on page 52).

Figure 5-12 “Read PROFINET” dialog box

• Click on the “Insert” button.


• In the “Insert PROFINET Device” dialog box which opens, click “OK” to confirm the
device to be inserted.

Figure 5-13 “Insert PROFINET Device” dialog box

• 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.

52 PHOENIX CONTACT 8681_en_00


Software PLC and PC Worx – program creation

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).

Figure 5-14 PROFINET device name and IP address

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.

8681_en_00 PHOENIX CONTACT 53


PC WORX SRT

5.7 Compiling and sending a PC Worx project to the


Software PLC, and performing a cold restart

The previous steps have prepared the project so that the example structure can be started
up.

Compiling a project Compile the project.


• Select the “Build, Rebuild Project” menu item.

Figure 5-15 “Build, Rebuild Project” menu

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.

Figure 5-16 Compilation process complete

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.

Figure 5-17 Opening the Project Control Dialog

The Project Control Dialog (see Figure 5-18 on page 55) is opened.

54 PHOENIX CONTACT 8681_en_00


Software PLC and PC Worx – program creation

Figure 5-18 Project Control Dialog

• 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.

5.8 Reading the realtime clock

You can read the status of the realtime clock in PC Worx using system variables (see
Section “System time” on page 65).

5.9 Download changes

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.

8681_en_00 PHOENIX CONTACT 55


PC WORX SRT

5.10 Parameterization memory and Internet Explorer

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.

• Switch to the bus configuration workspace in PC Worx.


• Select the controller, e.g., PC WORX SRT, in the “Bus Structure” window.
• Select the “Extended Settings” tab in the “Device Details” window.
• Open Internet Explorer from this window by clicking on the “Open FTP Folder on
Device” button (see Figure 5-19).

Figure 5-19 Extended Settings: Open FTP Folder on Device

56 PHOENIX CONTACT 8681_en_00


Software PLC and PC Worx – program creation

The file structure, which is stored on the parameterization memory, is displayed in the
Internet Explorer window.

Figure 5-20 File structure on the parameterization memory

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.

8681_en_00 PHOENIX CONTACT 57


PC WORX SRT

5.10.1 Internet Explorer FTP functionality

• Activate this setting in Internet Explorer under “Tools, Internet Options, Advanced”.

Figure 5-21 Internet Options: Enable folder view for FTP sites

5.10.2 Activating/deactivating the HTTP server

To protect the Software PLC against unauthorized access, it may be necessary to


deactivate 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
firmware. The set HTTP server state is stored retentively and mapped to the
ETH_SRV_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

58 PHOENIX CONTACT 8681_en_00


Software PLC and PC Worx – program creation

5.11 Function blocks for handling files in the


parameterization memory

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.

All file operations are subject to the following restrictions:


No directory hierarchies are supported. All file operations only affect the root directory of
the parameterization memory.

The function blocks are valid for the PC WORX SRT Software PLC Version 1.0 or later.

Table 5-1 Overview of function blocks


Function block Short description
FILE_OPEN Opens a file with a specific name.
FILE_CLOSE Closes a file with a specific handle.
FILE_READ Reads from a file with a specific handle.
FILE_WRITE Writes to a file with a specific handle.
FILE_REMOVE Deletes a file with a specific name.
FILE_TELL Determines the current position of the file pointer in a file.
FILE_SEEK Moves the current file pointer to a new position.
FILE_NOTIFY Displays files that have recently been created, deleted or
modified.

The function blocks for handling files in the parameterization memory are described in the
PC Worx online help.

8681_en_00 PHOENIX CONTACT 59


PC WORX SRT

5.12 Function blocks for Ethernet communication

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

Table 5-2 Overview of function blocks


Function block Short description
IP_CONNECT Establishes a connection between two communication partners.
IP_USEND Transmits data to a communication partner.
IP_URCV Receives data from a communication partner.
IP_TIME This function block enables the local system time to be
displayed. The local system time cannot be set or synchronized.

The communication blocks are described in the PC Worx online help.


The extensions for the TCP/IP and UDP/IP function blocks are described in the “TCP/UDP
COMMUNICATION” application note.

60 PHOENIX CONTACT 8681_en_00


System variables

6 System variables
Below you will find a list of the system variables in PC Worx of relevance to the Software
PLC.

6.1 IEC 61131 runtime system

There is a separate group of system variables for the IEC 61131 runtime system.

Table 6-1 System variables of the IEC 61131 runtime system

System variable Type Meaning


PLCMODE_ON BOOL PLC status ON: the runtime system of the Software PLC is
ready to operate.
PLCMODE_RUN BOOL PLC status RUN: the application program is running.
PLCMODE_STOP BOOL PLC status STOP: the application program is currently not
running.
PLCMODE_HALT BOOL PLC status HALT: the application program was stopped at an
unspecified point.
PLCDEBUG_BPSET BOOL Breakpoint set: at least one breakpoint has been set in the
application program.
PLCDEBUG_FORCE BOOL Variable(s) forced: at least one variable is being continuously
overwritten (forced) by PC Worx.
PLCDEBUG_POWERFLOW BOOL Powerflow ON: in “Powerflow” mode, you can see which parts
of your application program are being processed. This bit
indicates whether “Powerflow” mode is active.
PLC_TICKS_PER_SEC INT System ticks per second: this variable shows how many pulses
the system clock of the runtime system delivers per second.
PLC_SYS_TICK_CNT DINT Number of system ticks: this variable shows the total number of
pulses delivered by the system clock since the last startup.
PLC_TASK_AVAILABLE INT Number of available PLC tasks.
PLC_SYSTASK_AVAILABLE INT Number of available system tasks.
PLC_MAX_ERRORS DINT Maximum possible number of errors present.
PLC_ERRORS DINT Number of errors currently present.
PLC_TASK_DEFINED INT Number of PLC tasks used.
PLC_TASK_1 Extended_ Task_Info Information on task 1
: : :
PLC_TASK_16 Extended_ Task_Info Information on task 16

8681_en_00 PHOENIX CONTACT 61


PC WORX SRT

6.2 Control processor (CPU)

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.

Table 6-2 System variables of the control processor


System variable Type Meaning
COP_DIAG_STATUS_REG_RT_ERR BOOL A runtime error (out of realtime) has occurred on the control
processor.
COP_DIAG_STATUS_REG_FAT_ERR BOOL A fatal error has occurred on the control processor. Division by
zero, for example, leads to a fatal error.
COP_DIAG_STATUS_REG_WARN BOOL A warning has been issued on the control processor.
COP_DIAG_STATUS_REG_PON BOOL Power ON (COP): the control processor is ready to operate.
COP_DIAG_STATUS_REG_FC_RUN BOOL Runtime system RUN
COP_DIAG_STATUS_REG_FC_STOP BOOL Runtime system STOP
COP_DIAG_STATUS_REG_FC_HALT BOOL Runtime system HALT
COP_DIAG_STATUS_REG_FC_LDG BOOL Runtime system LOADING
COP_DIAG_STATUS_REG_FC_DBG BOOL Runtime system DEBUG
COP_DIAG_STATUS_REG_FC_RDO BOOL Runtime system READONLY
COP_DIAG_PARAM_REG WORD Diagnostic parameter register of the control processor
COP_DIAG_PARAM_2_REG WORD Extended diagnostic parameter register of the control processor
COP_CPU_LOAD_WARNING BOOL The control processor is reaching the limits of its capacity.

6.3 Variables of the Software PLC for the status of the


connected Ethernet network

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)

System variable Type Meaning


ETH_SRV_FTP_ACTIVE BOOL FTP Ethernet service has been activated.
ETH_SRV_HTTP_ACTIVE BOOL HTTP Ethernet service has been activated.
ETH_SRV_SNTP_ACTIVE BOOL SNTP Ethernet service has been activated.

62 PHOENIX CONTACT 8681_en_00


System variables

6.4 PROFINET system variables

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.

Table 6-4 PROFINET system variables (PROFINET controller function)


System variable Type Meaning
PNIO_SYSTEM_BF BOOL No connection to a configured PROFINET device
An error has occurred in the PROFINET network, i.e., a
connection could not be established to at least one configured
device. This value is not set if the “Control BF” parameter is set
to FALSE for a device. This device has therefore been excluded
from connection monitoring.
PNIO_SYSTEM_SF BOOL Diagnostic alarm on a configured PROFINET device
At least one PROFINET device is indicating a system error
(diagnostic alarm or maintenance alarm). The error priority can
be determined from the PNIO_DIAG_AVAILABLE,
PNIO_MAINTENANCE_DEMANDED, and
PNIO_MAINTENANCE_REQUIRED variables.
PNIO_DIAG_AVAILABLE BOOL Diagnostics available
At least one PROFINET device is indicating a diagnostic alarm
for an active connection. The corresponding device(s) can be
identified using the RALRM diagnostic block or by requesting the
diagnostic status byte of each PN_DA_NO_DIAG device.
The application must decide, for example, whether outputs of the
other PROFINET devices in the network may continue to be
operated.
PNIO_MAINTENANCE_DEMANDED BOOL Maintenance demanded – maintenance demand
At least one PROFINET device is indicating the “maintenance
demand” alarm (high-priority maintenance alarm) for the active
connection. The device can be identified using the RALRM
diagnostic block.
PNIO_MAINTENANCE_REQUIRED BOOL Maintenance required – maintenance requirement
At least one PROFINET device is indicating the “maintenance
requirement” alarm (low-priority maintenance alarm) for the
active connection. The device can be identified using the
RALRM diagnostic block.
PNIO_FORCE_FAILSAFE BOOL All PROFINET devices are prompted to set/assume their
configured substitute values.

8681_en_00 PHOENIX CONTACT 63


PC WORX SRT

Table 6-4 PROFINET system variables (PROFINET controller function)


System variable Type Meaning
PNIO_CONFIG_STATUS BOOL Connection establishment to the devices is active.
PNIO_CONFIG_STATUS_READY BOOL Connection establishment to the devices has been completed.
PNIO_CONFIG_STATUS_ACTIVE BOOL Communication started
The PROFINET controller configuration has been applied and
the PROFINET controller is started. Connection establishment is
active.
PNIO_CONFIG_STATUS_CFG_FAULT BOOL Configuration error
The PROFINETcontroller configuration has not been applied
due to a serious error and the PROFINET controller is not
started. Please contact Phoenix Contact.

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.

Table 6-5 PROFINET system variables (PROFINET device functionality)

System variable Type Meaning


PND_S1S1_PLC_RUN BOOL Status of the higher-level controller
Information indicating whether the higher-level controller is
active. The value is TRUE if the higher-level controller is in
the RUN state (program). The display only applies when
there is an existing PROFINET connection
(PND_S1S1_VALID_DATA_CYCLE).
PND_S1S1_VALID_DATA_CYCLE BOOL PROFINET controller has established the connection
Information indicating whether a connection exists and
cyclic data is being exchanged between the PROFINET
controller and PROFINET device and whether the last frame
received contained valid data (DATA_VALID_BIT).
PND_S1S1_OUTPUT_STATUS_GOOD BOOL IOP status of the higher-level controller
Information indicating whether the IN process data of the
PROFINET device (PNS_S1S1_INPUTS) was received by
the PROFINET device with “valid” status. The value is TRUE
if the output data of the higher-level controller is valid
(provider status).
PND_S1S1_INPUT_STATUS_GOOD BOOL IOC status of the higher-level controller
Information indicating whether the OUT process data of the
PROFINET device (PNS_S1S1_OUTPUTS) was received
by the PROFINET controller with “valid” status. The value is
TRUE if the input data of the higher-level controller has been
processed (consumer status).

64 PHOENIX CONTACT 8681_en_00


System variables

Table 6-5 PROFINET system variables (PROFINET device functionality)


System variable Type Meaning
PND_S1S1_DATA_LENGTH WORD Process data length configured for the integrated
PROFINET device.
PND_S1S1_OUTPUTS PND_IO_512 OUT process data
Memory area for OUT process data that the PROFINET
device sends to the higher-level controller/higher-level
PROFINET controller.
PND_S1S1_INPUTS PND_IO_512 IN process data
Memory area for IN process data that the PROFINET device
receives from the higher-level controller/higher-level
PROFINET controller.

6.5 Special variables of the Software PLC

Table 6-6 Special system variables of the Software PLC

System variable Type Meaning


LICENSE DWORD License information

6.6 System time

Table 6-7 System variables of the system time

System variable Type Meaning


RTC_HOURS INT System time (hours)
RTC_MINUTES INT System time (minutes)
RTC_SECONDS INT System time (seconds)
RTC_DAY INT System time (day)
RTC_MONTH INT System time (month)
RTC_YEAR INT System time (year)

8681_en_00 PHOENIX CONTACT 65


PC WORX SRT

66 PHOENIX CONTACT 8681_en_00


Technical data and ordering data

7 Technical data and ordering data

7.1 Technical data

The technical data of the Software PLC depends on the PC used.

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

IEC 61131 runtime system


Programming system PC Worx
Processing speed Depends on the host system used
Shortest cycle time (for cyclic task) Depends on the host system used
Program memory 1 Mbyte
Data memory 1 Mbyte
Memory for retentive data 48 kbytes (file on hard disk)
Number of control tasks 8
Number of data blocks Depends on data memory
Number of timers and counters Depends on data memory

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.

8681_en_00 PHOENIX CONTACT 67


PC WORX SRT

7.2 Ordering data

7.2.1 Devices

Description Type Order No. Pcs. / Pkt.


Software PLC PC WORX SRT 2701680 1
Industrial PC, configurable VALUELINE IPC 2913108 1
Industrial PC, configurable VL BPC 1000 2701291 1
Industrial PC, with 2 GB RAM, preconfigured VL BPC 1001 2701290 1
Industrial PC, configurable VL BPC MINI 2700773 1

7.2.2 Accessories

Description Type Order No. Pcs. /


Pkt.
Gray RJ45 plug set for linear cable FL PLUG RJ45 GR/2 2744856 2
Green RJ45 plug set for crossed cable FL PLUG RJ45 GN/2 2744571 2
Assembly tool for RJ45 plugs FL CRIMPTOOL 2744869 1
Patch cable, CAT5, pre-assembled, 0.3 m long FL CAT PATCH 0,3 2832250 10
Patch cable, CAT5, pre-assembled, 0.5 m long FL CAT PATCH 0,5 2832263 10
Patch cable, CAT5, pre-assembled, 1.0 m long FL CAT PATCH 1,0 2832276 10
Patch cable, CAT5, pre-assembled, 1.5 m long FL CAT PATCH 1,5 2832221 10
Patch cable, CAT5, pre-assembled, 2.0 m long FL CAT PATCH 2,0 2832289 10
Patch cable, CAT5, pre-assembled, 3.0 m long FL CAT PATCH 3,0 2832292 10
Patch cable, CAT5, pre-assembled, 5.0 m long FL CAT PATCH 5,0 2832580 10
Patch cable, CAT5, pre-assembled, 7.5 m long FL CAT PATCH 7,5 2832616 10
Patch cable, CAT5, pre-assembled, 10.0 m long FL CAT PATCH 10 2832629 10

7.2.3 Software

Description Type Order No. Pcs. /


Pkt.
Software package for PC-based automation solutions, PC WORX DEMO, PC WORX DEMO 2985725 1
contains all 5 IEC languages, with MSFC compiler, maximum of 16 bytes of
input and output data, version-specific license key
Software package for PC-based automation solutions, PC WORX BASIC PC WORX BASIC LIC 2985275 1
license, contains all 5 IEC languages, without MSFC compiler, maximum of
256 bytes of input and output data, version-specific license key
Software package for PC-based automation solutions, PC WORX PRO PC WORX PRO LIC 2985385 1
license, contains all 5 IEC languages, with MSFC compiler, maximum of 128
kbytes of input and output data, version-specific license key

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.

AX OPC SERVER, communication interface for OPC-compatible AX OPC SERVER 2985945 1


visualization with PC Worx-based controllers

68 PHOENIX CONTACT 8681_en_00


Technical data and ordering data

7.2.4 Documentation

Make sure you always use the latest documentation.


It can be downloaded at phoenixcontact.net/products.

Description Type Order No. Pcs. /


Pkt.
Valueline industrial PC
User manual UM EN VALUELINE IPC – 1
Configuring and installing the Valueline industrial PC
Data sheet for a configurable Valueline industrial PC DB EN VALUELINE IPC – 1
Data sheet for a configurable Valueline box PC DB EN VL BPC 100... – 1

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

Documentation for software


Quick start guide UM QS EN PC WORX – 1
PC Worx

8681_en_00 PHOENIX CONTACT 69


PC WORX SRT

70 PHOENIX CONTACT 8681_en_00


A Appendix: interfaces of the PC WORX SRT Software PLC
The Software PLC interfaces available depend on the PC on which the Software PLC is
installed. For more detailed information, please read the device-specific user
documentation on this matter or contact the manufacturer of the PC used.
For more detailed information on the interfaces and extension options of the
Phoenix Contact Valueline industrial PC used in the example, please refer to the device-
specific user documentation.

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.

A1 Connecting an Ethernet/PROFINET network

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.

8681_en_00 PHOENIX CONTACT 71


PC WORX SRT

72 PHOENIX CONTACT 8681_en_00


B Appendix for document lists

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

8681_en_00 PHOENIX CONTACT 73


PC WORX SRT

Figure 4-7: “PC WORX SRT Configuration” dialog box.......................................... 30


Figure 4-8: Mode selector switch .......................................................................... 31
Figure 4-9: Status monitor of the Software PLC .................................................... 32
Figure 4-10: Starting the status monitor .................................................................. 32
Figure 4-11: Context menu of the status monitor .................................................... 33
Figure 4-12: Switch positions of the mode selector switch ...................................... 35
Figure 4-13: Status monitor – resetting the Software PLC ....................................... 36
Figure 4-14: Status monitor – Software PLC: Show Information .............................. 36
Figure 4-15: Information about the current project .................................................. 37
Figure 4-16: System monitor ................................................................................... 38
Figure 4-17: Digital inputs and outputs
of the VL BPC MINI Valueline industrial PC ........................................ 38
Figure 4-18: Status monitor: error affecting the correct operation
of the Software PLC ............................................................................ 39

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

74 PHOENIX CONTACT 8681_en_00


B2 List of tables

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

8681_en_00 PHOENIX CONTACT 75


PC WORX SRT

76 PHOENIX CONTACT 8681_en_00


B3 Index

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

8681_en_00 PHOENIX CONTACT 77


PC WORX SRT

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

78 PHOENIX CONTACT 8681_en_00


Index

8681_en_00 PHOENIX CONTACT 79


PC WORX SRT

80 PHOENIX CONTACT 8681_en_00

You might also like