Professional Documents
Culture Documents
Um Qs en Plcnext Engineer 107838 en 01
Um Qs en Plcnext Engineer 107838 en 01
software
Quick start guide
UM QS EN PLCNEXT ENGINEER
Quick start guide
Installing and operating the PLCnext Engineer software
Table of contents
1 General information ...................................................................................................................5
1.1 Marking of warning notes.......................................................................................5
1.2 Qualification of users .............................................................................................5
1.3 Field of application of the product ..........................................................................5
1.4 Information about this document............................................................................6
1.5 PLCnext Engineer licenses....................................................................................6
A Appendixes...............................................................................................................................47
A1 List of figures .......................................................................................................47
1 General information
Read this user manual carefully and keep it for future reference.
This document provides you with a brief overview of how to install and operate the PLCnext
Engineer software. For additional information, refer to the online help for PLCnext Engineer.
The basic functions of PLCnext Engineer are available as a free of charge license. Once in-
stalled, these functions are available without limitation and free of charge. Further functions
can be added for a fee (even at a later stage). The licenses are bound to the hardware of a
PC or a USB dongle.
To order further licenses, proceed as follows:
• Log in with your access data at phoenixcontact.net/products or register for the first time.
• Select the PLCNEXT ENGINEER product (Order No. 1046008).
• Select “Configure” on the PLCNEXT ENGINEER product page to configure your per-
sonal license.
Once you have sent your order, within 48 hours you will receive an email from Phoenix
Contact that contains a ticket ID. You need the ticket ID to activate the license.
The Phoenix Contact Activation Wizard is used for the activation process of licenses for
further functions. The Phoenix Contact Activation Wizard is a part of the PLCnext Engineer
installation package. In order to start the application you will find an .EXE-file under the
installation path (Default path: „C:\Program Files (x86)\PHOENIX CONTACT\Phoenix
Contact Activation Wizard\“).
The USB dongle ESL STICK USB A (Order No. 1080084) for saving licenses for various
software products is delivered without licenses. The Phoenix Contact Activation Wizard is
also used for the activation process of USB dongle licenses.
• To activate a license, follow the instructions in the Phoenix Contact Activation Wizard.
Figure 2-1 Start page, “Empty AXC F 2152 project” project template
1
2
3
5
4
7
Figure 3-1 User interface
1. Menu bar
2. Tool bar
3. “PLANT” area
4. Editors Area
5. “COMPONENTS” area
6. Cross Function Area
7. Status Bar
“PLANT” area You display all physical and logical components of your application in the form of a hierar-
chical tree structure in the “PLANT” area.
Editors Area If a node in the “PLANT” area or an element in the “COMPONENTS” area is double-clicked,
the associated editor group opens in the Editors Area. Editor groups are always displayed
in the center of the user interface. You can identify by the color of the editor group whether
it is an instance editor (green; opened from the “PLANT” area) or is a type editor (blue;
opened from the “COMPONENTS” area). Each editor group contains several editors which
can be opened and closed using buttons in the editor group.
In many editors, you can either display all information or filter out the relevant information.
When the “All” view is selected, all information will be displayed. Specific information is in-
dicated using the corresponding views below it (e.g., “Identity” in Figure 3-3).
“COMPONENTS” The “COMPONENTS” area contains all the components available for the project. The com-
area ponents can be divided into the following categories based on their function:
– Developing program code (“Data Types”, “Programs” and “Functions & Function
Blocks”)
– Showing all devices available for the “PLANT” area and adding them via GSDML or FD-
CML (“Devices”)
– Editing HMI pages (“HMI”)
– Adding libraries such as firmware libraries, IEC user libraries or libraries provided by
Phoenix Contact (“References”)
Cross Function Area The Cross Function Area includes functions that extend across the entire project.
– ERROR LIST:
Shows all errors, warnings and messages of the current project.
– GLOBAL FIND AND REPLACE:
Finds and replaces strings in the project.
– CROSS REFERENCES:
Displays all cross-references within the project, for example, the use and declaration of
all variable types or HMI tags.
– WATCHES:
Debug tool; shows the current values of the added variables in online mode.
– BREAKPOINTS:
Debug tool for setting and resetting break points when debugging within the applica-
tion.
– CALL STACKS:
Debug tool that shows the order for calling up when executing the code and contains
commands for debugging with breakpoints.
– LOGIC ANALYZER:
Records and visualizes variable values at runtime.
– LOGGING:
Shows all errors, warnings and messages. A distinction is made between “online” (mes-
sages from the runtime environment, as well as errors and warnings that concern online
communication) and “engineering” (messages on events concerning software, for ex-
ample, GSDML or FDCML files; not project-related).
– RECYCLE BIN:
Elements that have been recently deleted from the “PLANT” or “COMPONENTS” areas
are moved to the recycle bin. When required, you can restore deleted elements.
4 Creating a project
Setting the IP address au- • Select “automatic” from the “IP address assignment mode” drop-down list.
tomatically
PLCnext Engineer automatically assigns an IP address to the controller from the set IP ad-
dress range (see Section 4.1.1, “Setting the IP address range”) as soon as a connection to
the controller is established (see Section 4.2 “Connecting to the controller”).
Setting the IP address • Select “manual” from the “IP address assignment mode” drop-down list.
manually • In the respective input fields, enter the IP address, subnet mask and gateway.
PLCnext Engineer automatically assigns an IP address to the controller from the set IP ad-
dress range (see Section 4.1.1, “Setting the IP address range”) as soon as a connection to
the controller is established (see Section 4.2 “Connecting to the controller”).
• Click on the button (“Scan the network.”) to search the network for connected de-
vices.
You can see the configured devices under “Name of station (Project)”.
You can see the devices that have been found online in the network (online devices) under
“Name of station (Online)”.
By clicking on the arrow next to “Name of station (Project)” and “Name of station (Online)”
(see Figure 4-5), you can show detailed information or hide the detailed information.
When you select the device (“Select online device here”) under “Name of station (Online)”,
the controller found in the network (the online device) receives the IP settings of the config-
ured controller.
When you select the device (“Select project device here”) under “Name of station (Project)”,
the configured controller receives the IP settings of the online device found in the network.
• Select the desired device.
The configured controller has now been assigned to an online device.
When the IP address of an online device found in the network already matches the IP ad-
dress of the configured controller, the online device is automatically assigned to the con-
figured controller. In this case, you do not need to select the desired device for the
assignment.
Successful assignment is shown in the “Status” column by the icon.
Once the configured controller has been assigned to an online device, you can connect
PLCnext Engineer to the controller:
• Double-click on the controller node in the “PLANT” area.
The editor group of the controller opens.
• Select the “Cockpit” editor.
Figure 4-10 Added Axioline F modules in the “PLANT” area and in the device list
The PROFINET device is automatically added and shown under the “Profinet (x)” node in
the “PLANT” area.
• Proceed as described for other PROFINET devices.
Figure 4-12 PROFINET devices in the “PLANT” area and in the device list
• Click on the button to search the network for connected PROFINET devices.
You can see the configured PROFINET devices under “Name of station (Project)”.
You can see the PROFINET devices that have been found online in the network (online de-
vices) under “Name of station (Online)”.
When you select the PROFINET device (“Select online device here”) under “Name of sta-
tion (Online)”, the PROFINET device found in the network (the online device) receives the
IP settings of the configured PROFINET device.
Please note:
By default, the PROFINET device has no IP address.
• On initial start-up of the PROFINET device, choose the device under “Name of station
(Online)”.
The PROFINET device receives the IP settings of the configured PROFINET device.
When you select the device (“Select project device here”) under “Name of station (Project)”,
the configured PROFINET device receives the IP settings of the online device found in the
network.
• Select the desired device.
The configured PROFINET device has now been assigned to an online device. Successful
assignment is shown in the “Status” column by the icon.
Adding I/O modules manu- Proceed as follows to add I/O modules manually:
ally
Double-click in the “PLANT” area on the PROFINET device of whose I/O modules you wish
to add.
The editor group of the selected PROFINET device opens (“axf-f-bk-pn-1”
in the example).
• Select the “Module List” editor.
• Select “Select type here” in the first row in the “Module List” editor.
The role picker opens. Only the elements from the “COMPONENTS” area that you can ac-
tually use are shown to you in the role picker.
Figure 4-17 I/O modules of a PROFINET device in the “PLANT” area and in the module
list
Reading I/O modules auto- In order to automatically read the I/O modules of a PROFINET device, the following require-
matically ments must be met:
– The controller has valid IP settings (see Section 4.1).
– The PROFINET device has valid IP settings and is connected with PLCnext Engineer
(see Section 4.4.2).
In order to automatically read the I/O modules of a PROFINET device, proceed as follows:
• Right-click in the “PLANT” area beneath the “Profinet” node on the PROFINET device
of whose I/O modules you wish to read.
• Then in the context menu, select the “Read Profinet modules” entry.
The I/O modules connected to the PROFINET device are now read automatically.
Please note:
Programming with C++ or MATLAB® Simulink® is not described in this quick start guide.
Detailed information on programming with C++ or MATLAB® Simulink® can be found in
the PLCnext community at plcnext-community.net.
You will find operating instructions, tutorials, FAQs, and software and firmware down-
loads in the PLCnext community.
Figure 4-19 Selecting the programming language for the first worksheet
Creating variables Once you have created a POU and selected a programming language, the editor group of
the POU opens.
• Select the “Variables” editor.
• Create the variables that you need for the selected POU.
Once you have created all the necessary variables, create the program for the selected
POU (see Section 4.5.2).
Adding worksheets The code for a POU can consist of several worksheets and of different programming lan-
guages. For each required programming language, you add a corresponding worksheet
(code worksheet) to the POU. Each worksheet is inserted in the editor group of the POU as
another “Code” code editor.
Proceed as follows to add additional worksheets to a POU:
• Select a code editor (in Figure 4-23: “Code” editor).
• Click on the arrow on the right next to the designation of the code editor.
• From the opening drop-down list, select the desired code worksheet.
Creating a function or To create your own functions and function blocks, proceed as follows:
function block • Click on “Functions & Function Blocks” in the “COMPONENTS” area.
• Right-click on “Local”.
• In the context menu, select the suitable entry for the new function or function block to
be created.
The newly created function or function block is inserted below the “Local” entry in the “COM-
PONENTS” area.
• Right-click to open the context menu for the newly created function or function block.
• Select “Rename”.
• Enter a unique and meaningful name (“Moving_Light” in the example).
No spaces are allowed within a name.
• Press the “Enter” key to accept the entry.
After you have created a new function or function block, you must program the logic for the
function or the function block. To do this, initially select the programming language for the
first worksheet.
Selecting the program- • Double-click on the function or function block in the “COMPONENTS” area.
ming language for the first
The editor group of the function or function block opens. You are prompted to select the pro-
worksheet
gramming language for the first worksheet of the function or function block.
Figure 4-26 Selecting the programming language for the first worksheet
Creating variables Once you have chosen the programming language, create the required variables. To do
this, proceed as follows:
• Select the “Variables” editor.
• Create the variables that you need for programming the function or function block.
Figure 4-27 Creating variables for a function block (“Moving_Light” in the example for
the function block)
Once you have created all the required variables, program the logic for the function or func-
tion block.
Adding worksheets The program can consist of several worksheets and of different programming languages.
For each required programming language, you add a corresponding worksheet (code work-
sheet) to the function or the function block. Each worksheet is inserted in the editor group of
the function or function block as another “Code” editor.
Proceed as follows to add additional worksheets to a function or function block:
• Select the code editor of a worksheet.
• Click on the arrow on the right next to the designation of the code editor.
From the opening drop-down list, select the desired code worksheet.
Opening the “Tasks and To open the “Tasks and Events” editor, proceed as follows:
Events” editor • Double-click on the “PLCnext” node in the “PLANT” area.
The “PLCnext” editor group opens.
• Select the “Tasks and Events” editor.
Figure 4-29 Tasks and program instances in the “Tasks and Events” editor
Assigning a process data In order to assign a process data item to a variable, proceed as follows:
item to a variable • Double-click on the “PLC” node in the “PLANT” area.
The editor group of the “/ PLC” controller opens.
• Select the “Data List” editor.
You can see an overview of all available variables in the “Data List” editor.
You also get an overview of all available variables when you click on the node of the con-
troller in the “PLANT” area and also open the “Data List” editor there. You can also assign
the process data at this point.
• In order to assign a process data item to a variable, click on “Select Process Datum
here” in the “Process Datum” column.
The role picker opens. Only the process data that you can actually assign to the respective
variable are shown to you in the role picker.
• Select the process data item in the role picker that you want to assign to the relevant
variable.
The process data item is assigned to the variable.
• Proceed as described for other variables.
Assigning a variable to a In order to assign a variable to a process data item, proceed as follows:
process data item • Double-click on the “Axioline F (x)” node in the “PLANT” area (for Axioline F modules)
or
• Double-click on the “Profinet (x)” node in the “PLANT” area (for PROFINET devices).
The editor group of the “/ Axioline F” controller (for PROFINET devices: “/ Profinet”) opens.
• Select the “Data List” editor.
You can see an overview of all available process data in the “Data List” editor.
• In order to assign a variable to a process data item, click on “Select Variable (PLC)
here” in the “Variable (PLC)” column.
The role picker opens. Only the variable that you can actually assign to the respective pro-
cess data item are shown to you in the role picker.
• Select the variable in the role picker that you want to assign to the relevant process data
item.
The variable is assigned to the process data item.
• Proceed as described for other process data.
Opening the “Data List” • Double-click on the “PLCnext” node in the “PLANT” area.
editor
The “PLCnext” editor group opens.
• Select the “Data List” editor.
You can see an overview of all available IN and OUT ports in the “Data List” editor.
IN and OUT ports are only shown the “Data List” editor of the “PLCnext” node.
Assigning an IN port to an • In order to assign an IN port to an OUT port, click on “Select IN Port here” in the “IN Port”
OUT port column.
The role picker opens. Only the IN ports that you can actually assign to the respective OUT
port are shown to you in the role picker.
• Select the IN port in the role picker that you want to assign to the relevant OUT port.
The IN port is assigned to the OUT port.
• Proceed as described for other IN ports.
Assigning an OUT port to • In order to assign an OUT port to an IN port, click on “Select OUT Port here” in the “OUT
an IN port Port” column.
The role picker opens. Only the OUT ports that you can actually assign to the respective IN
port are shown to you in the role picker.
• Select the OUT port in the role picker that you want to assign to the relevant IN port.
The OUT port is assigned to the IN port.
• Proceed as described for other OUT ports.
Requirement for a You need a finished project for a PLCnext Engineer HMI application. Observe the informa-
PLCnext Engineer HMI ap- tion in Section “Creating a project” on page 13 here.
plication
The HMI tag is created automatically. The name of the HMI tag is derived from that of the
associated variable.
• Proceed as described for other variables.
Each HMI page can be assigned its own name. To do so, select the corresponding HMI
page in the “PLANT” area, press “F2” and enter the desired name.
Setting a HMI page as start Proceed as follows to set a HMI page as start page:
page • In the “PLANT” area, right-click the HMI page you want to set as start page.
• In the context menu, select the “Set HMI Page as Startup” entry.
Process data assignment Once you have designed a HMI page, you need to assign process data to the inserted ele-
ments. To do this, proceed as follows:
• Select the corresponding element in the “Main” editor.
• Select the “Dynamics” subeditor (for objects) or “Parameters” subeditor (for symbols).
For objects:
• In the “Dynamics” subeditor, click into the input field next to “Variable”.
The role picker opens.
• Select the relevant process data item.
Figure 5-3 Role picker for selecting the process data item in the “Dynamics” subeditor
For symbols:
• In the “Parameters” subeditor, click in the input field of the “Source Value” column.
The role picker opens.
• Select the relevant process data item.
Figure 5-4 Role picker for selecting the process data item in the “Parameters” subedi-
tor
A Appendixes
A1 List of figures
Section 1
Section 2
Figure 2-1: Start page, “Empty AXC F 2152 project” project template .....................7
Section 3
Figure 3-1: User interface .......................................................................................9
Figure 3-2: Example for the “PLANT” area ............................................................10
Figure 3-3: Example for the Editors Area ..............................................................10
Figure 3-4: Example for the “COMPONENTS” area ..............................................11
Figure 3-5: Example for the Cross Function Area ..................................................12
Section 4
Figure 4-1: Setting the IP address range ...............................................................13
Figure 4-2: Setting the IP address automatically ...................................................14
Figure 4-3: Setting the IP address manually ..........................................................15
Figure 4-4: Setting TCP/IP ....................................................................................16
Figure 4-5: Selecting the network card ..................................................................16
Figure 4-6: Assigning online devices .....................................................................17
Figure 4-7: Successful assignment of the configured controller to an online device .
17
Figure 4-8: Connection to the controller was established successfully .................18
Figure 4-9: Role picker for selecting Axioline F modules .......................................19
Figure 4-10: Added Axioline F modules in the “PLANT” area and in the device list 20
Figure 4-11: Role picker for selecting PROFINET devices ......................................21
Figure 4-12: PROFINET devices in the “PLANT” area and in the device list ...........22
Figure 4-13: Selecting the network card ..................................................................22
Figure 4-14: Assigning online devices .....................................................................23
Figure 4-15: Successful assignment of the configured PROFINET device to an online
device .................................................................................................23
Figure 4-16: Role picker for selecting I/O modules ..................................................24
Figure 4-17: I/O modules of a PROFINET device in the “PLANT” area and in the
Section 5
Figure 5-1: Adding a HMI tag ................................................................................42
Figure 5-2: User interface of a HMI page interface ................................................43
Figure 5-3: Role picker for selecting the process data item in the “Dynamics”
subeditor .............................................................................................44
Figure 5-4: Role picker for selecting the process data item in the “Parameters”
subeditor .............................................................................................45
Appendix A
PHOENIX CONTACT 49 / 50
50
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.