Home

Quick Start UM QS EN PC WORX - Digi-Key

image

Contents

1. Figure C 3 Activating OPC in the variables worksheet e When sending the project activate the Include OPC data checkbox Download Project Bootproject Download Changes Activate Ensure real time for Download Changes arma C Include Bootproject al a Include Sources Download Source User Libraries C Include User Libraries Include Frontend Code C Include Pagelayouts C Include Backend Code Download File Figure C 4 Download Include OPC data C 1 2 OPC Configurator e Start the OPC Configurator program The configurator commands can be accessed via context menus e Select the resource type SA OPC Co nfigurator OpeProject Resource type ILC Pw gt v1 41 Tih DpcProject TestResource Description Timeout 2000 ms DLL SoComm dll State ONLINE Settings Figure C 5 Selecting the resource type 7127 en 03 7127_en_03 AX OPC Server e Open the context menu for the TestResource entry e Select the Settings menu item SA OPC Configurator OpcProject Resource type ILC Sux FW gt 1 41 Y OpeProject Qum Description Delete Resource Rename Resource Settings Settings Figure C 6 Settings e Under IP Address enter the IP address of the controller for which you would like to use the OPC data Settings Communication path C Simulati
2. 5 7 5 13 Compiling and sending a project and performing a cold restart 5 8 DD 5 8 6 Example project for a system consisting of PROFINET IO and INTERBUS 6 1 6 1 PIOJSCMOCSCMDUOM ENTRE TU D TULIT 6 1 6 2 Sequence for creating the PROFINET 6 3 6 3 Creating a new 6 5 6 4 Specifying project IDTOFfriatlOni uou cue ei Ee 6 5 6 5 Preparing the PC for communication enne nnne 6 5 6 6 Checking modifying IP settings for the PROFINET IO controller 6 6 6 7 Assigning the IP address for the PROFINET lOcontroller 6 7 6 8 Setting the communication path nnne 6 7 6 9 Reading and importing PROFINET IO 6 8 6 10 Checking modifying the PROFINET settings for PROFINET IO devices 6 9 7127 en 03 PHOENIX CONTACT PC Worx 7 8 iv 6 11 Transferring PROFINET device names and IP settings to PROFINET IO E E renee 6 10 6 12 55 Est 6 11 6 13 Compili
3. 3 20 3 10 3 Installing DIM IIbrari8S scire E 3 21 3 10 4 Creating a project and integrating DTMs in PC Worx 3 24 3 10 5 Reading in the bus configuration and or manually inserting CEVIGCS D MO EDEN 3 25 Sale Calling T EU 3 27 3 11 1 General DTM TURCHOHS 3 27 3 11 2 DTM functions of the controller 2 3 28 3 11 3 DTM functions of devices 3 30 7127 en 03 PHOENIX CONTACT i PC Worx 4 Sequence for creating a 4 1 4 1 Sequence for creating a 4 2 4 2 Creating a new 4 3 4 3 SPECITVING DroJecb InfetfniallOn seo nate sie 4 4 4 4 Preparing the PC for communication 000 4 6 4 5 Checking modifying IP settings for the 4 7 4 6 Decision Working online or offline 4 8 4 7 Inserting PRHOFINET IO uoc iS doa bu sera mete ou dos 4 8 4 8 Checking modifying the PROFINET settings for PROFINET IO devices 4 10 4 9 Manually inserting INTERBUS 4 12 4 9 1 Manually inserting INTERBUS devices General 4 12 4
4. _ Libraries Ey Data Types eye flag Sy Logical POUs 8 MainT M ains c Physical Hardware Bmw STD ENF ARM_L_40 E B BEES Insert 8 0 STD TSK Delete ENTF n Main f Ma Cut STRG A X Global Variable 2 copy STRG4C Canfiguratiot p Expand All Exclude Create Global Variables From Externals Update External variables From Globals Properties m Settings Poule E Libraries FE Hardware Oo instances Project Figure A 12 Resource context menu Properties e Switch to the Plc Processor tab e Select the corresponding processor type for the controller In the example this is ILC370PN Mame Plc Processor Attributes Security Processor Type ILC S50 T CPS FL3S8UPUI ILC33UET ULCS3UPN ILCS50E T ILC S50PN ILC370E T ILC30PH ILC33U0PN CES Figure A 13 Selecting the processor type e Confirm your selection with Apply A 14 PHOENIX CONTACT 7127 en 03 7127_en_03 Replacing a controller hardware replacement A message then informs you that under certain circumstances other parts of your project may have to be adapted Confirm the warning with OK Confirm the processor type selection with OK Compile the project to detect any errors If special POUs have been used adapt them accordingly Compile the project PHOENIX CONTACT 15 PC Worx
5. Refresh View FS Figure 3 13 Edit Device Representation menu item e Select the criteria that you would like to see in the display 3 12 PHOENIX CONTACT 7127 en 03 Helpful information about PC WorX Device Representation Display Order of Characteristics Available Station name gt Designation NT Device name ype Module equipment id lt IP Address Order number DN5 PR FIMET Device Mame Separator 1 Separator 2 Separator 3 Cancel Figure 3 14 Device representations Examples for different device representations Bg Quickstart PN Quickstart PN c HN ILC 390 PN 2Tx IB 182 168 0 2 NE ILC 390 PN 2TX IB 192 168 0 2 B A Resource Fe Resource R sTD RES ILC380PN R STD RES ILC390PN 8 PROFINET SHH PROFIMET ILB PN 24 0116 01016 2 PN Bk DIS DO4 2TX 5 9 INTERBUS D 0 11BIL24 DO 4 MED 1 11611 2400 4 MED 1 2 IB IL 24 DI 4 ME 0 2 2 IBIL 24 DI 4 ME 0 2 Unconnected LInconnecked Product designation DNS PROFINET device name separator and IP address Figure 3 15 Examples for different device representations The selected representation only affects the representation of a specific device group Groups include for example Controllers PROFINET IO devices NTERBUS devices For example the setting for PROFINET IO devices does not have any influence on the representation of the ILC 390 PN 2TX IB see Figure 3 15 7127
6. amp C FC3xx Cg FDT amp Q3 FL amp 9 FLM C3 FLS gg FP Sit 2 Bus Coupler Drive 2 Drive Motor Starter 9 E A Funktionsmodul C3 EXIS C Gateway 2 1 0 analog Wi ib Al 274 20 Wi LA 2 5F Wi IB IL Al 2 5F ME Bl IB IL Al 2HART PAC BB Ie Lal 4a Pac Wi ie IL Al 4 U PAC Build Errors Warnings Infos A PLC Errors Print Multi User Bus Configurator For For Help press F1 Figure 3 9 FDT workspace 7127 en 03 PHOENIX CONTACT 3 7 PC Worx 3 5 1 Windows in the workspaces The windows that you wish to display can be defined at any time for each workspace Table 3 1 lists which windows are set by default when PC WorX is started for the first time and which windows can be usefully added Table 3 1 Windows in the workspaces programming configuration assignment comparison _ ee comparison pA TD TAT DI A Pe ee ee ee NER SR CN Edtwizara Ye Ye _ Cross References Window Yes Pea pee AE fp AR LogicAnayzer Analyzer Project Comparison Result 2 Window statusbar Yes Yes Yes Yes Yes Yes Yes Yes ves vos esum o Dye To Dre Device Detais ves ves 1 1 ves Device Gataig Yes ves ves Module Gataig Process DataAssignnent ves ves comeses vs
7. 2 1 2 2 AUTOMATIONWORX Software 2 1 2 3 Starting the installation program 2 2 2 4 SIGNING PO WORK iu cored Oir mte Dei Mte dns 2 2 2 5 Enabling the PC Worx 4 2 3 2 6 License WAN ACCT D cU 2 4 3 Helpful information about PC 3 1 3 1 Online Pel esse A 3 1 3 2 Selecting the IA NGUA GS iison intai 3 1 3 3 The PC WOoDX user IntelTa6O ocupado exe od E ERa 3 3 3 4 WEE EIU PEE 3 4 3 5 o ORO E 3 5 3 5 1 Windows the workspaces 3 8 3 5 2 Toggling windows on off and docking undocking windows 3 9 3 5 3 Autoshide TUN CHOM idiota eod ident 3 9 3 6 BUS Str cture WIN GOW scsi 3 10 3 6 1 Icons in the Bus Structure window 3 10 3 6 2 Display in the Bus Structure window 2 3 12 3 7 EXCEL CNK WIBOONW Pelee d P otis 3 14 3 8 WAGON H 3 15 3 9 MISUGIIZAUION UU 3 19 3 10 FDT Field Device Tool 3 20 SOs MOGUCOM t t t ooo 3 20 93 10 2 Xaehelalu
8. If you are using a default gateway Assign the address for the default gateway under Default Gateway in the Device Details window This address must be within the specified IP address area If the default gateway is entered at the start of the project it will be used automatically for all subsequent PROFINET IO devices that are inserted see also Default Gateway on page 4 11 PN Assign the name suffix for the PROFINET device name here quickstart de in the Device Details window under Domain Postfix The following characters are permitted for the Domain Postfix Lower case letters without umlauts atoz As separator Dot Upper case letters without umlauts are permitted however they will be converted to lower case letters internally The entry is therefore not case sensitive If the Domain Postfix is entered at the start of the project it will be used automatically for all subsequent PROFINET IO devices that are inserted in the PROFINET device name see also DNS PROFINET Device Name on page 4 10 If the PROFINET IO devices are read in the PROFINET device name for the devices will also be read in In this case the Domain Postfix may differ Adapt it accordingly 7127 en 03 PHOENIX CONTACT 4 5 PC Worx 4 6 Device Details v Quickstart_PN Project Project name Project name Creator Computer name at project creation MULTIPROG version at project creation PC WORX version at project cr
9. Windows Media Player F Diag NetScan 1 30 56 Remote Assistance S Windows Movie Maker PC WORX 6 10 56 3 Empirum Inventory PC WORM EXPRESS 6 10 56 k Ir PHOENIX CONTACT Li SUTOMATIONWORS Software Suite 2010 1 60 56 2 Webvisit 5 14 Startup OPC Server 2 40 UCL ip winPcap LA Communication Settings 23 License Manager Fel Log CFF D B iL i Figure 2 1 Starting PC WorX 2 2 PHOENIX CONTACT 7127 en 03 7127_en_03 Installing and enabling the software When PC Worx is started for the first time it runs in demo mode with limited resources A maximum of 16 bytes is available for I O data If the upper limits for demo mode are exceeded the following error messages are generated when compiling e Too many inputs outputs in I O configuration 16 maximum XXXXX specified PC WORX running with limited resources e Resource file cannot be compiled Regardless of the bus configuration these error messages always appear when compiling for various controllers e g RFC 470S PN STX in demo mode as all system variables are entered in the I O configuration If you wish to switch from demo mode to the full version enable your PC WorX license 2 5 Enabling the PC WorX license After starting PC WorX proceed as follows to enable your license e Select the Register command in the menu Enter registration code FL ll bL Figure 2
10. iz fX Resource mi STD RES ILC390PN R STD RES ILC390PN Default System Variables Sat Bu Feswitch mes 16tx quickstart de 192 168 0 3 amp p sr rsk DEFAULT il ilb dio23 quickstart de 192 168 0 4 z m Main Main 7 i pn bk24 quickstart de 192 168 0 5 Default fl pn ibs25 quickstart de 192 168 0 6 ge INTERBUS Symbol Variable Data Type Process Data Item Desc Device Process Data Item IQ Data Type Byte 4 IN2 BOOL IN3 BOOL INTERBUS OLIT2 BOOL OLIT1 BOOL v WORD Ti BOOL MASTER REG OUT Q 5 INTERBUS IB_MASTER_STD_FNC_ST INTERBUS IB MASTER STD PA u r Figure B 4 INTERBUS registers o 2 o PHOENIX CONTACT B 3 PC Worx B 4 Project Tree Window vH Description 1 MainT A MASTER_DIAG_PARAM_2_REG_HI BYTE VAR GLOBAL Extended master diagnostic parameter register 2 high byte Main MASTER_DIAG_PARAM_2 REG LOW BYTE YASR_GLOBAL Extended master diagnostic parameter register 2 low byte Main FORCE FAILSAFE BOOL VAR GLOBAL All PROFINET devices are prompted to set their configured substitute values Physical Hardware 5 9 STD ARM_L_40 2 amp 9 STD_RES ILC390PN gy Tasks IO Configuration lt PHOENIX CONTACT gt 5 GF oa Global Vari B4 Setting all PROFINET IO devices to a defined st
11. 7127 03 Figure 8 9 8 5 Setting the initial value here VO 1 Additional options for PROFINET The following additional data can be evaluated ina PROFINET IO system each PROFINET IO controller System variables that indicate the configuration status For each PROFINET IO device Pre defined process data that indicates the status See also Status information for a PROFINET IO system on page B 1 PHOENIX CONTACT 8 9 PC Worx 8 10 PHOENIX CONTACT 7127 en 03 Additional software functions A Additional software functions 7127_en_03 A 1 Setting the realtime clock In the Extended Settings tab the time and date can be set for the internal system clock of the controller The current controller time is read and displayed every time the Extended Settings tab is opened The display then indicates this value until the Extended Settings tab is opened again If you want to apply the system time and date from your PC Hequirement Connection between the PC and the controller e Switch to the bus configuration workspace e Select the controller node e g ILC 390 PN e Select the Extended Settings tab in the Device Details window e Click on the System Time button e Thenimmediately click on Send to transmit the data in the Real time Clock Settings area to the controller If you would like to set different values e Enter the values for the time and date
12. 7127 en 03 PHOENIX CONTACT 2 1 PC Worx 2 3 Starting the installation program e Insert the AUTOMATIONWORX Software Suite DVD in your DVD ROM drive The installation program usually starts automatically after a few seconds fitdoes not start the SETUP EXE file from the Drive SETUP directory on the DVD ROM This file calls the installation wizard which guides you through the installation process e Follow the instructions in the installation program The installation program generates all the directories required for operation and copies the files for the selected programs Restart the PC Following successful installation you must restart your computer for the changes to the configuration files to take effect To do this click Finish at the end of the installation process e Torestart the PC click Finish at the end of the installation process 2 4 Starting PC WorX e For installation using the default settings start PC WorX via Start All Programs PHOENIX CONTACT AUTOMATIONWORX Software Suite 201x 1 6x PC WORX 6 1 d Internet E My Documents i Internet Explorer Tin Config E 13 Recent Documents 77 Diag e E mail i e 9 at My Pictures ir NeEScan gt My Music Documentation E PC wonRx Windows Catalog cj Tools 7 Accessories wWebvisit Internet Explorer Configt 1 40 56 Dn EJ Diag 2 40 56
13. PC Worx Variable Properties Name Definition scope OK 51 Local O Global Tope Local Variable Groups Help Usage Global Variable Groups VAR EXTERNAL Physical Hardware Initial value 88 STD_CNF 5 88 STD RES Default System Variables 0 Main 1 0 address Description C Show all variables of worksheets Figure 8 4 Variable Properties window 81 VAR GLOBAL e Specify the data type The variable is a bit variable and therefore BOOL data type e Select GLOBAL in the Usage selection box because the variable will later be assigned to a process data item If you have created a variable as VAR and you would like to use this later as VAR GLOBAL to change it select GLOBAL in the Usage selection box and confirm your selection with OK e Confirm your entries with OK e Double click on the PT input parameter of the function block to specify the variable properties e Inthe Variable Properties window enter the name T1 e TIME is specified in the Data Type selection box e Select VAR in the Usage selection box because the variable will only be used internally and will not be assigned to a process data item e Enter a pulse width of 15 seconds T 15000 ms as the Initial value Mame Definition scope OK T Local O Global Data Type Local Variable Groups L OK TIME Ej
14. RHEE Physical Hardware PLCMODE sTOP FALSE BOOL VAR GLOBAL status S Saal STD CNF ARM L 40 PLCMODE HALT FALSE BOOL VAR GLOBAL status H Gaal STD RES ILC3S0PN PLCDEBUG BPSET FALSE BOOL VAR GLOBAL Breakpoint set Tasks PLcbEBUG FORCE FALSE BOOL VAR GLOBAL Varisble s f STD TSK DEFAULT PLcpEBUG POWERFLOW FALSE BOOL GLOBAL Powertlow O Main Main PLC TICKS PER SEC 1000 INT GLOBAL System ticks 28 PLc svs Tick 160193910 DNT GLOBAL Number of s loan Vans PLC TASK AVAILABLE 16 INT VAR GLOBAL Number of a ID Configuration PLC TASK DEFINED 1 INT VAR GLOBAL Number of ta R c Task 1 Ext GLOBAL Task infor R c Task 2 Ext VAR GLOBAL Task2infor PLc TAsK xL VAR GLOBAL Task3infor PLc TASK 4 Ex GLOBAL 4 infor PLc 5 5 Ex VAR GLOBAL Task 5 infor Lees VAR GLOBAL Testi _ lt gt GF Main Main Global Figure 4 63 Variables in debug mode Global variables e Switch to the window that provides the best display of the required information 4273 stop run If the PLC is set to STOP all outputs are set to their safe state When the controller is started process values are output again 4 48 PHOENIX CONTACT 7127_en_03 7127_en_03 8 Se
15. gi INTERBUS 0 0 0 1 Unconnected Symbol Vari Data Type Process Data Item Device Process Data Item IQ Data Type Byte Bit Address Symbol Variable Q O01 AO 16 WORD IB IL AO 1 SF 0 1 1 AO 16 IBILAO 1 SFO 1 1 1 1 Output voltage Q WORD 0 0 IB IL 1 5 0 1 2 1 1 Output current Q WORD 0 0 IB IL 1 5 0 1 2 2 1 Output current WORD 0 0 Q IB IL AO 1 5F 0 1 AO 16 Q WORD STD 5 0 510 0 1 AO 16 Figure 4 19 Variable generated for process data item AO 16 Figure 4 20 shows examples of automatically generated variables Svmbol variable Data Process Data Item IFL 1854 1 2 I3 BOOL 3FLM DI 8 M12 118 Q FL PM 1854 1 3 01 BOOL 4 FLM DIO 4 4 M12 2A VO1 DIO3 DI32 DWORD ILE PN 240116 DIC16 2TX 0132 IFL 1854 PMIO DATA VALID BOOL FL PNVIBS DATA VALID Ili gt Figure 4 20 Examples of generated variables 5 4 13 2 Assigning process data Process data and control variables are assigned in the process data assignment workspace The assignment is seamless for INTERBUS and PROFINET IO a Please note the following Ifthe resource has been selected global variables are generated displayed that can be used in all POUs of the project VAR_GLOBAL Ifthe program POU has been selected global variables are generated displayed that can be used in all POUs of the project VAR_GLOBAL_PG POU Program Organization U
16. Figure 3 39 DTM functions Diagnostics Device list The list of DTM comptatible devices connected to a communication DTM or gateway DTM is displayed and can be modified if required e g entry of FDT identifier Device List ILC 150 ETH ILC 150 ETH Efi il 2 Phoenix Contact 0122 00 2006 11 27 FDT Identifier System Number Segment Number Position Nu Device Name System Identifier gt IB ILIFS MA ID 221 PD 448 01 1 1 IB IL IF5 MA ID 221 PD 448 ce27d 11 e bd 4 IB IL Al 2 HART PAC 01 1 2 IB IL Al 2 HART PAC Scdecfe8 70c3 4a xp Connected planningE ngineer Figure 3 40 DTM functions Controller device list 7127 en 03 PHOENIX CONTACT 3 29 PC Worx 3 11 3 DTM functions of devices e Touse the DIM functions of the devices used connect the relevant device 1 IB IL 5 ID 221 PD 4480 1 Renumber devices gt 2 Unconnected Exchange Data gt Assistent For configuration of multiple devices Ctrl W Process data configuration Copy Device Ctrl C Me Copy with Subdevi P opy with Subdevices r Datasheet Cur Ctrl X Figure 3 41 DTM functions of devices DTM functions of devices Refer to user documentation The order of the functions displayed in the context menu is not the same as the order in which they are processed For the execution of the relevant function please refer to the device specific user documentation 3 30 PHOENIX CON
17. Read PROFINET Selected PROFINET Controller ilc 330 pn1 IP Address 132 158 0 2 Device Type ILC 380 2 Subnet Mask 255 255 255 0 Default Gateway Available on Network IP Address Subnet Mask f zwitch mcs 1 IOC FL SWITCH MES 16T DOE ACD 45 O8 132 158 0 5 255 255 255 0 IDD AIDE ILC 390 PN 2T IB 00 fe 0 0 0 0 0 0 0 0 ILE PN 24 0116 DID T5 2T i 1 12 0 0 0 0 0 0 0 0 IL PN DIS 2T 0 0 0 0 0 0 0 0 Filter C unnamed not in Project Figure 4 35 Connected and selected PROFINET IO devices for the project without PROFINET device names and IP addresses 4 30 PHOENIX CONTACT 7127_en_03 7127_en_03 Sequence for creating a project 4 18 2 Importing PROFINET IO devices into the project e Click on Insert to include the selected PROFINET IO devices in your project 4 18 3 Naming PROFINET IO devices without a PROFINET device name If a PROFINET device name does not yet exist for a device a name should be assigned at this point Insert PROFINET Device Selected Device PROFINET Device Mame fl pn ibs quickstart de Device Type FL PN IBS MAC Adresse 00 40 45 05 09 34 Name Device PR FINET device will be added to the project with the name and IP parameters specified Figure 4 36 Naming a device e Activate the Name Device checkbox e Check the displayed PROFINET device name see also DNS PROFINET
18. tutus Rente die Rien 3 B4 Setting all PROFINET IO devices to a defined state B 4 C AX OPC Server and C 1 C 1 AX OPO SEVER Mod aoe C 1 C 1 1 Preparatory tasks in PC WOrX 2 C 1 C12 OPGGOBNOQUFBlOFE baton Laus C 2 5522 ORC 4 2 ISIE e 6 D Phoenix Contact controllers 7127 en 03 PHOENIX CONTACT V PC Worx vi PHOENIX CONTACT 7127 en 03 General 1 General 1 1 Introduction PC WorX is the automation software which combines programming according to IEC 61131 fieldbus configuration and diagnostics The programming system is based on modern 32 bit Windows technology and enables easy handling for the user by means of zooming drag amp drop and dockable windows IEC configuration elements can be processed and libraries can be integrated In addition the programming system has a powerful debugging system In PC WorX all functions can be easily accessed via the menu and you can create a project using only a few dialog boxes You can then immediately start developing your program 1 2 Information about this manual This document helps you to parameterize a bus configuration and to
19. A8 Device description files Device description files are FDCML or GSD files which provide a complete description of a device If the device catalog does not contain a corresponding device description file it must be imported A 8 1 Phoenix Contact device description files When PC Worx is reinstalled the device description files for the devices available at the time are also installed These descriptions are also found in the device catalog When installing PC WorX service packs new device description files are installed in folder AFDCML10 Phoenix Contact These new descriptions are not included in the device catalog yet They must be imported as necessary e Select Phoenix Contact in the Device Catalog window in PC Worx e Open the context menu and select Import Device Device Catalog Universal Import Device Import 550 File Create new INTERBUS Device Description Import From OTM Catalog Create Catalog Import Catalog View as Grid Ctrl G Edit Catalog Representation Figure A 14 Device Catalog Import Device e Select the device description file If you have used the suggested standard installation the files are located in directory C Documents and Settings All Users Shared Documents FDCML10 xxx Phoenix Contact Xxx System e g ETHERNET INTERBUS PROFINET A 16 PHOENIX CONTACT 7127 en 03 7127_en_03 Device description files a Cj Axioline 3
20. Cold in the project control dialog box State Stop Figure 4 55 Project control dialog box If the system cannot be started up a corresponding error message appears on the diagnostic display for controllers with diagnostic display and in the Message Window in PC WorX and For an explanation of the error message please refer to the Diagnostics Guide IBS SYS DIAG DSC UM E Order No 2747280 For example the ILC 350 ETH controller has been started up successfully if the green PLC RUN LED is on Communication to the PROFINET IO devices has been established successfully if the BF LED does not flash on any of the PROFINET IO devices PHOENIX CONTACT 4 43 PC Worx Simulation following cold When sending the project is written to the main memory of the simulated controller restart Following a successful cold restart you can simulate the behavior of your application Only the states of the global variables that have been linked to a physical address inputs outputs as part of process data assignment are displayed in the simulation Figure 4 56 below shows expert mode for the simulation of an example project in which a run sequence is illustrated for various I O states in the area at the bottom EasySim 1 ESTER J o AHAAA D cn 1 m E Analog 500 E EE D l An 1000 2 Figure 4 56 Easy
21. Communication tab Select the required communication path to enable you to communicate between PC WorX and your hardware see Setting the communication path on page 4 26 Send the project to the controller and perform a cold restart see Compiling and send ing a project and performing a cold restart on page 4 40 PHOENIX CONTACT 7127_en_03 Example program 8 Example program 7127_en_03 A different example project is described in each of the previous sections The various sections focus on the following topics Section 5 Example project for an INTERBUS system Section 6 Example project for a system consisting of PROFINET IO and INTERBUS Section 7 Example project for a simulation with processor type IPC controllers The procedure for creating the program in the software is the same This is described in this section 8 1 Program description The program is created in function block diagram FBD The program controls the following sequence On an edge change from FALSE to TRUE at input IN a timer TP function block generates a pulse which is output at output Q for the period of time PT The associated output is set for this time The state of the output is indicated at the corresponding status LED The elapsed time is output at output ET If IN switches from FALSE to TRUE for a second time while the pulse is still active within PT this does not affect the duration of the pulse generated at
22. Default Help Usage Global Variable Groups VAR ee gt C RETAIN 5 Physical Hardware Initial value BH STD CNF T 15000ms d m 1 0 address E System Variables Main Description PbD 1 C Show all variables of worksheets Figure 8 5 Variable Properties window T1 VAR 8 6 PHOENIX CONTACT 7127 en 03 Example program e Confirm your entries with OK e Proceed in the same way for the output parameters of this block Use the values Table 8 1 Timer TP_1 on page 8 2 51 OUTI Ti T2 Figure 8 6 TP 1 function block with all parameters e Insert the BOOL DINT function block A parameter declaration is not required for this block e Insert the ROL block e Declare the required parameters according to Table 8 2 Rotate to left ROL on page 8 3 e Insert the AND block e Declare the required parameters according to Table 8 3 AND ANDing function block on page 8 3 All function blocks are shown in Figure 8 7 with the required parameters 3 OLN RN OLIT2 vo INS Figure 8 7 All function blocks inserted with the required parameters Link the required inputs and outputs according to Figure 8 8 on page 8 8 To do this proceed as follows e Select variable OUT1 and drag it to the same level as the BOOL_TO_DINT block e Activate the Link icon to link the objects Clickin the part of the line for ou
23. PC Wor RFC 430 FERRER EPR EEE Tot ot T 1 1 1 8 ooloojoo olo alo ola alo alo alo aja alo 5918500 010010010 010010010 OJO OJO OJO OFOO g o ajo olo ala ala olo glo glo alo alo aja 1 iO OJO OfFO OfO OfO OfO OFO OFO aja aja alo alo alo ajo alo ajo alo 1 OOfO OfO Ofo O O OfO O O OO O f l amp 1e Sloj gp gj opo opo o og oo og o d oo Passa p IB IL 24 DO 16 IB IL 24 DO 8 IB IL 24018 719756013 Figure 7 1 Example bus configuration PHOENIX CONTACT 7 1 PC Worx Inputs and outputs process data Device IB IL 24 DI 8 IB IL 24 DO 8 IB IL 24 DO 16 No assignment required 7 2 PHOENIX CONTACT Inputs and outputs used in the example including process data and assigned variables Inputs outputs Signal at according to the device data sheet Input IN1 Co 1 TP 1 1 Input IN2 Co 1 TP 2 1 Input IN5 Co 3 TP 1 1 Output OUT1 Co 1 TP 1 1 Output OUT6 Co 3 TP 2 1 Outputs Co 1 to 4 OUT1 to OUT16 TP x 1 and x 4 Co Connector TP Terminal point X Row on the Inline connector Variable o1 IN2 IN3 OUT1 OUT2 VO T1 T2 Process data item DN 3 2 1 DO16 7 2 Sequence for creating the simulation project The sequence for creating the simulation project is shown in Figure 7 2 When implementing the project al
24. TRUE see 51 in the MainV window The counter for the elapsed time T2 is started see T2 in the MainV window Output O of IB IL 24 DO 8 variable OUT1 is set chasing light is started see change to VO in the MainV window or in I O view Since only the physical outputs that have been linked to a variable as part of process data assignment are displayed in the simulation the individual outputs of the IB IL 24 DO 16 cannot be shown in this example project Display is by means of WORD variable VO Project Tree Wind aro SY Project C Documents and Settingsspypmt Libraries 51 TRUE BOOL e ey Data Types INIT 15 000 e sys_flag_types OUTI TRUE BOOL a Logical POUs 3 240 TIME 5 2 Main vo 1680008 WORD MainT 2 FALSE BOOL Main m FALSE BOOL Main OUT2 FALSE BOOL Physical Hardware s Va EB 2 EasySim 1 gt lt m 1 wme vane Data type Description Termina d 7127 en 03 Figure 7 14 51 has been activated VAR EXTERNAL VAR VAR EXTERNAL VAR VAR EXTERNAL VAR EXTERNAL VAR EXTERNAL VAR EXTERNAL VAR Name Online value Description Address int Retain POD OPC TB IAA Ol T 15000ms L Fi E IAA Ol E Fm Ol EF IAI Ol IAA Ol gt 6 mm After 15 seconds the pulse output variable OUT1 is set to FALSE ou
25. menu item 7127_en_03 Replacing a controller hardware replacement Project Tree Window arg ey Project C Documents and Settings pypmO0 Desktop PC Wore Screens 1 Libraries Sy Data Types sie flag types Sy Logical POUs a Main MainT Ei Main Sa Physical Hardware CHF IPC 40 STD RES F Dx Tasks cut STRG EX Global STRG C IO_Confic Insert Expand All amp Properties project Pous Settings Figure 9 Configuration context menu Properties e Switch to the Plc Processor tab e Select the corresponding processor type for the controller In the example this is ARM_L_40 Name Plc Processor Attributes Security PLC Type Figure A 10 Selecting the processor type e Confirm your selection with Apply A message then informs you that under certain circumstances other parts of your project may have to be adapted Due to the change of the PLC Type please check the settings of the resources and the tasks and correct them if necessary Figure A 11 Warning 7127 en 03 PHOENIX CONTACT 13 PC Worx e Confirm the warning with OK e Confirm the processor type selection with e Open the context menu for the resource and select the Properties menu item Project Tree Window mex Project C Documents and Settingsspupm z D esktap PC Wore Screenshots
26. v Figure 7 9 Standard task Properties e Under type select Cyclic This selects a cyclic task Name Type Task Type EFAULT CYCLIC EVENT SYSTEM Figure 7 10 Standard task Type e Apply your setting with Apply 7127_en_03 Example project for a simulation with processor type IPC controllers e Change the setting e g to 1000 ms see Figure 7 11 on page 7 11 Task settings for IPC_40 Interval ms Watchdog Time ms Stack Options C Small Medium Large O xLarge L Save EPU Mo Suspend Figure 7 11 Changing the setting e Confirm your settings with OK e Compile the project send it to the controller and perform a cold restart If the process is now running too slowly change the settings e Inthe standard task context menu select the Settings menu item e Change the setting e g to 250 ms e Compile the project send it to the controller and perform a cold restart 7127 en 03 PHOENIX CONTACT 7 11 PC Worx 7 13 2 Simulation and debug mode Following the cold restart the animated arrows see figure below indicate that the simulation is running The arrows move from left to right EasySim 1 EasySim 1 1 SEE EasySim 1 M EasySim ProConOS Hide Hide EasySim ProConos EasySim ProConOS Figure 7 12 Simulation running The program simulation can now be started To monitor all variables switch to debug mode The status of the vari
27. 2 Main 1 15 000 TIME VAR_EXTERNAL Physical Hardware 15 000 TIME VAR_EXTERNAL cw STD CNF ARM L 40 5 8 STD RES ILC390PN 5 8 Tasks 5 STD TSK DEFAULT Main Main 22 MainV Global Variables Configuration lt gt Figure 4 60 Variables debug mode Global variables EXTERNAL For PROFINET IO devices the PNIO_DATA_VALID system variable can be assigned for example You can read the status here This bit must be set for the PROFINET IO device to supply valid data and all other process values to be valid In this way you can check in this window whether all PROFINET IO devices supply valid data For information about system variables please refer to Appendix B Status information for a PROFINET IO system Project Tree Window tyo Name Online value Type Usage Description B Project C Documents and Settings pypm07 Desk E Default 20 Libraries E Auto Gy Data Types PN BK24 DATA TRUE BOOL VAR GLOBAL sys flag types IL DIO23 0 DA TRUE BOOL VAR GLOBAL Logical POUs _FL_PN_IBS25_PNIO_DAT TRUE BOOL VAR_GLOBAL_ a Main 11 MainT Main T Main 5 9 Physical Hardware STD ARM L 40 2 3 STD RES ILC390PN 5 8 Tasks B m STD TSK DEFAULT Main Main MainV Global Variables IO Configuration gt lt Ka Ua a dE MainMain 3 Global Vari ES Main Main 55 Mainv S
28. 2 1 Download Changes iesene Pesca tat cent cca A 2 A22 eod odia 5 Extended retain handling eeclesie nnne A 8 4 2 a Pa 9 5 Comparnd Projects doses uade in 9 6 VISUAIIZ ANION CET 9 A 7 Replacing a controller hardware A 9 A8 Device descrpuon files sco Les d esf A 16 A 8 1 Phoenix Contact device description files A 16 A 8 2 Device description files for Inline Controllers A 17 A 8 3 Device description files from other manufacturers GSD files A 18 84 Creating device description files A 18 A 9 aec piierne Econ A 19 AIO INTIEHB SIODOIOGV uccide i e utei ve eee eodein este o a manele A 20 B Status information for a PROFINET IO system B 1 B 1 Status of the PROFINET controller B 1 B2 Status of a PROFINET IO XdeVICO iih aat ee ede epe sonent Sau t On it B 2 B3
29. 2 Registration dialog box for entering the license code e Enter your registration code e Confirm your entry with OK Registration succeeded Figure 2 3 Registration dialog box for entering the license code Alternatively you can also license PC WorX via the License Manager in the AUTOMATIONWORX Software Suite Registration comes into effect the next time PC WorX is started PHOENIX CONTACT 2 3 PC Worx 2 6 License Manager The License Manager can be used to enable all programs in the AUTOMATIONWORX Software Suite Select the relevant program to be licensed and then enter the corresponding license key in the field provided Phoenix Contact License Manager Version License expiration date Serial Number Functionality Config 1 0x Mo License Mot Available Demo Diag 1 2x Mo License Mot Available Demo Diag 2 x No License Mot Available Demo Diag NetScan 1 0x License Mot Available Demo PC Work 6 0 No License Not Available Demo WEBYISIT 1 x No License Not Available License Key Language Figure 2 4 License Manager 2 4 PHOENIX CONTACT 7127 en 03 Helpful information about PC WorX 3 Helpful information about PC WorX 7127 en 03 3 1 Online help More detailed information about the individual functions of PC WorX can be found in the online help for the program The entire help function can be called via Help in the menu bar Help for specific functions can be called via
30. 390 PN 2TX IB 192 168 0 2 Resource R STD RES ILC390PN SH PROFINET 8 fl switch mcs 16tx 192 168 0 6 d F i bk12 quickstart de 192 168 0 4 5 B il ilb diot3 quickstart de 192 168 0 3 2 0 ILB PN 24 DI 16 DIO16 2TX FQ 1DIO16 ILB PN 24 DI 16 DIO16 2TX 9 20116 ILB PN 24 DI 16 DIO16 2TX 7 g fl pn ibs14 quickstart de 192 168 0 5 Ax INTERBUS 0 0 Unconnected 8 STD_CNF ARM_L_40 zi Sal STD RES ILC390PN Default System Variables E n STD TSK DEFALILT Main Main Default Symbol Vvariable Process Data Item Data Type Device Process Data Item 1 0 Byte Bit v WORD 101016 ILB PN 24 DI 16 DIO16 2TX DO16 CNF STD RES 0 I T I 16 DIO16 1 DIO16 ILB PN 24 D Q 1 101016 ILB PN 24 DI 16 DIO16 Q BOOL 35 1 DIO1 amp TIR PN 24 DT 16 DIOTR ROOI 12 Hie gt lt sil gt Figure 4 23 Assigning process data for a PROFINET IO device The result of the process data assignment process is shown in the figure below Quickstart_PN c HH ILC 390 PN 2TX IB 192 168 0 2 GR Resource R STD RES ILC390PN SH PROFINET fl switch mes 16tx 192 168 0 6 c m Fri bk12 quickstart de 192 168 0 4 SIL Inline 0 0 IB 1 24 DO 4 MEO 1 IB IL 24 DI 4 MEO 2 5 8 il ilb dio13 quickstart de 192 168 0 3 9 D ILB PN 24 DI 16 DIO16 2TX FQ 1 DIO16 ILB PN 24 DI 16 DIO16 2TX 9 20116 ILB PN 24 DI 16 DIO16 2
31. 4 6F 3 50 350 PN Rev gt 01 4 3 50 ILC 370 ETH 2TX B Rev gt 01 4 3 50 ILC 370 ETH 2TX B M Rev gt 01 4 6F 73 50 ILC 370 PN 2 Rev gt 01 4 6F 73 50 ILC 370 PN 2TX IB M Rev gt 01 4 3 50 ILC 390 PN 2 Rev gt 01 4 6F 3 00 ILC 390 PN 2TX IB Rev gt 01 4 6F 73 50 Figure 4 2 Project templates here ILC 390 PN 2TX IB Rev gt 01 4 6F 3 00 List view has been selected in Figure 4 2 The view can be switched via the icons The gt character in the selection stands for later than and not greater than in a mathematical sense The specified version is the first supported version e Select the File Save Project As Zip Project As command 7127 en 03 PHOENIX CONTACT 4 3 PC Worx e Enter a project name and save the project Save Zip project as Save in Projects Example My Recent Documents amp File name Quickstart PN mwt My Network Save as type Project Files mwt Zip Options Zip User Libraries Figure 4 3 4 3 DI Save Zip project as window Specifying project information e Switch to the bus configuration workspace After creating a new project the project information is displayed in the bus configuration workspace e Adapt the project information to your project NE ILC 390 PN 27X IB 192 168 0 2 SR Resou
32. 5 1 Project description In the following an example project is developed using function block diagram FBD In order to obtain the best possible results please use the same identifiers and names as used in this manual Project name Quickstart Project hardware Controller ILC 390 PN 2TX IB Inline Controller modules IB IL 24 DO 16 IB IL 24 DO 8 and IB IL 24 DI 8 PC with PC WorX ILC 390 PN 2TX IB UGUUSBSUHUUU UN Ord No 2985314 IB IL 24 DO 16 IB IL 24 DO 8 IB IL 24 DI 8 7127B002 Figure 5 1 Example bus configuration 7127 en 03 PHOENIX CONTACT 5 1 PC Worx Inputs and Inputs and outputs used in the example including process data and assigned variables outputs process data Device Inputs outputs Signal at Variable Process data according to the item device data sheet ILC 390 PN 2TX IB Input IN11 Co 3 TP 1 4 ONBOARD INPUT 10 3 1 4 IB IL 24 DI 8 Input IN2 Co 1 TP 2 1 IN2 1 2 1 Input IN5 TP 1 1 IN3 3 1 1 IB IL 24 DO 8 Output OUT 1 Co 1 TP 1 1 OUT1 1 1 1 Output OUT6 Co 3 TP 2 1 OUT2 3 2 1 IB IL 24 DO 16 Outputs Co 1 to 4 VO DO16 OUT1 to OUT16 TP x 1 and x 4 No assignment required T1 T2 Co Connector TP Terminal point X Row on the Inline connector 5 2 Sequence for creating the INTERBUS project The sequence for creating the Figure 5
33. 9 2 Inserting INTERBUS devices below an INTERBUS proxy 4 15 4 9 3 Inserting Inline terminals below PROFINET IO bus coupler 4 15 4 9 4 INTERBUS devices below the PROFINET IO controller 4 15 4 10 Compiling after completing the bus 4 16 4 11 Creating the enne nennen nnn nennen nnne nnne nnns 4 17 4 12 Compiling after creating the 4 17 4 13 Generating variables and assigning process 4 18 4 T3 T Generating eee 4 18 4 13 2 Assigning process dala ca EE eae 4 19 4 14 Setting the communication path EasySim simulation 4 22 4 15 Switching to working with the system 4 23 4 16 Assigning the IP address for the controller 2 2 4 23 4 16 1 Address assignment via the PC WorX BootP server 4 23 4 16 2 Address assignment with PC WorX via the serial interface 4 25 4 17 Setting the communication 0000 0 4 26 4 17 1 Communication via the serial interface 4 27 4 17 2 Communication vi
34. An IL 1 SF e Insert all the other devices Example 1 Simple bus configuration RFC 430 ETH IB 192 168 0 2 GF Resource R STD RES RFC430ET gfe INTERBUS 0 0 fl 1 16S IL 24 BK T U1 0 2IBIL24D081 1 3IBIL24D181 2 fl 4 185 IL 24 BK T U2 0 518 0 2401162 1 6 IBILAL2 SF 2 2 24 Unconnected RFC 430 ETH IB IBS IL 24 IB IL 24 IB IL 24 BK T U DO 8 DI 8 IBS IL 24 IB IL 24 IB IL BK T U DI 16 Al 2 SF 7127A010 Figure 4 13 Simple bus configuration Folders in the device catalog where the listed devices can be found RFC 430 ETH IB IBS IL 24 BK T U IB IL 24 D IB IL A RFC4xx PLC IL Bus coupler IL I O digital IL I O analog PHOENIX CONTACT 4 13 PC Worx 4 14 PHOENIX CONTACT Example 2 Bus configuration with branch terminals 0 0 1 0 2 0 2 1 2 2 ILC 350 IBS IL 24 IBS IL 24 IBIL24 IB IL 24 ETH RB T RB T DO 8 DI 8 3 0 FLS IB M12 DIO 8 8 Bus Structure RB_2 S E ILC 350 ETH 192 168 0 2 SR Resource R STD RES ILC350ET INTERBUS 0 0 1 IBS IL 24 RB T 1 0 3 2 IBS IL 24 RB T 2 0 3IBIL24DO82 1 4181 240182 2 B 5FLSIBM12DIO 8 8 M12 3 0 un 6 IBS IL 24 BK T U4 0 4718124DO24 1 SIBIL AO 1 5F 4 2 Bg 9 ILB IB 24 DI32 5 0 24 Unconnected 4 0 4 1 IBS IL 24 IB IL 24 IB IL BK T U DO2 AO 1 SF 5 0 7127A011 Figure 4 14 Bus configuration with branch terminals Exa
35. Bus window Bus Structure vEH Quickstart 2 NE ILC 390 PN 2TX IB 192 168 0 2 Fe Resource R STD RES ILC390PN BS PROFINET o fl switch mcs 16tx quickstart de 192 168 0 3 FL SWITCH MCS 16TX E8 1 Management agent 2 Ports Bg il ilb dio23 quickstart de 192 168 0 4 0 ILB PN 24 DI 16 DIO16 2TX FQ 1 DIO16 ILB PN 24 DI 16 DIO16 2TX INS 20116 ILB PN 24 DI 16 DIO16 2TX B il pn bk24 quickstart de 192 168 0 5 ES D IL PN BK DIS DO4 2TX 1 IL PN BK DIS 004 2TX 32768 Interface 32769 Port 1 77 32770 Port 2 SL INLINEO 0 DO40 2 0180 3 J g fl pn ibs25 quickstark de 192 168 0 6 Ei gg INTERBUS 0 0 FLS IB M12 018 12 1 0 FLS IB M12 DO 8 M12 2 2 0 gM INTERBUS 0 0 0 usro 1 ES Unconnected Figure 6 4 Complete bus configuration for the example project 7127 en 03 PHOENIX CONTACT 6 11 PC Worx 6 13 Compiling after completing the bus topology See also Compiling after completing the bus topology on page 4 16 e Select the Build Make command 6 14 Creating the program To program the example program proceed as described in Example program on page 8 1 e Set variable VO to initial value 1 This set bit is then rotated to the left during program processing Itis now assumed that you have created the program If you skip this point this may result in deviations 6 15 Compiling after creating the program See also Compiling after creating
36. Contact AxL CT _ ELR 1 FCS Ax 3 Gateway JH FL IL 24 BK Rev gt 1071 1 24 BE PAC Rev gt 1071 21 FFL IL 24 BE PN PAC Rev gt 1071 00 FL NP PND 4TX IB Rev gt 13 4 73 2 FL NP PND 4T IB Rev gt 13 4 73 2 FL NP PND 4TX IB Rev gt 13 4 73 2 amp p FL NP PND 4TX IB Rev gt 13 4 73 2 fom RID ORIN ATS IPIK Dass 11 2 66 T Figure 4 8 Selecting the PROFINET IO device 7127_en_03 7127_en_03 Sequence for creating a project e Hold down the left mouse button and move the first PROFINET IO device in the Bus Structure window to the right of the PROFINET IO controller icon until the Insert in the lower level icon appears see page 3 11 e Move all other PROFINET IO devices to below the preceding PROFINET IO device until the Insert at the same level icon appears see page 3 11 Figure 4 9 shows the bus configuration with inserted PROFINET IO devices Guickstart_Ph Ez FILC 390 PN 2T IB 192 168 0 2 Re Resource R STD RES ILC390PN 8 PROFIMET 5 8 i ilb dio3 quickstart de 192 168 0 4 LB O MILB PH 24 DI 16 DIO16 2TX Fa 1 DIO16 ILE PN 24 DI 16 DIO16 2TX EB 2 DI16 ILE PN 24 DI 16 DIO16 2TX zu Fl il bke quickstart de 192 168 0 3 IL Inline 0 0 f Fl pn ibs4 quickstart de 192 168 0 5 gfe INTERBUS 0 0 gfe INTERBUS D 0 Unconnected Figure 4 9 PROFINET IO devices
37. DIO16 2TX Subnet Mask 255 255 255 0 0 FL SWITCH MCS 16TX Default Gateway 8 1 Management agent ES 2 Ports Available on Network c Bg il ilb dio23 quickstart de 192 168 0 4 L8 0 ILB PN 24 DI 16 DIO16 2TX Name Type MAC Address IP Address Subnet Mask FQ 1 01016 ILB PN 24 DI 16 DIO16 2T fl switch mes 1Btx IDD FL SWITCH MCS 16 O0 A0 45 05 F0 44 0000 0 0 0 0 UE 20116 ILB PN 24 DI 16 DIO16 2TX ilc 390 pni I0D 0C ILC 390 PN 2 00 40 45 26 3 74 00 0 0 0 0 0 0 7 il pn bk24 quickstart de 192 168 0 5 i ilb dio23 quickstart de IOD ILB PN 24 0116 01016 27 00 40 45 02 FB 15 0000 0 0 0 0 B fl pn ibs25 quickstart de 192 168 0 6 ikpn bk24 quickstatde IOD IL PN BK DIS DO4 2TX 00 40 45 04 50 C8 0 0 0 0 0 0 0 0 gy INTERBUS 0 0 f pn ibs25 quickstar de IOD FL PN IBS 00 40 45 07 81 14 0000 0 0 0 0 a Unconnected Filter _ unnamed C not in Project same Type Flashing On Delete Name Assign IP PROFINET Settings 8 PROFINET Stationnames 4 Bus interfaces B Data sheet Figure 6 8 List of all PROFINET IO devices that can be accessed in the network In the Selected Device area the PROFINET IO device name specified under IP Settings is displayed e From the list select the corresponding PROFINET IO device e g using the indicated MAC address 42 Quickstart PN il ilb dio23 quickstart de 192 168 0 4 PROFINET Stationnames NE ILC 390 PN 2 1 19
38. Data Length 4 Device Type 000 Ident Code Process Data Length ELR PN IP 500 R 11KW Rev 189190490189 4842 IB IL 24 DO 4 189 IB IL 24 DO 4 2MBD 188 4 IB IL 24 DO 4 ME 4 IB IL 24 230 DOR 47W 189 4 IB IL 24 230 DOR 44v 2MBD 189 4 IB IL 24 230 DOR 4 w PC 189 4 IB IL DO 4 189 4 FTI nv ns NMA ATY ncc 3 00 100 Automatically apply to further devices of this type Figure 4 46 Select Device window e Select the device that is actually connected in the INTERBUS system and repeat this step until all the devices are linked to their device description e Disconnect the link to the controller by selecting Offline under Selected Control System in the Connected Bus window Connected Bus Selected Control System ILC 390 PN 2TXHB 192 168 0 2 Config e PC WorX Offline FL PN IBS 192 168 0 6 FLIL 24 192 168 0 7 Ke ILC 390 PN 2TX B 192 168 0 2 y The following colors and characters indicate the result for the comparison of the physically connected bus configuration and the configured bus configuration ID Code and process data length of the devices are different NA E eere eem Figure 4 47 Connected Bus window Please note for PROFINET The process for reading in INTERBUS modules that are connected to a PROFINET IO controller or a PROFINET IO device is essentially the same After the communication path to the PROFINET IO controller has bee
39. Device Name on page 4 10 e Assign the name to the relevant device e Confirm the display or your entry with If you do not wish to assign a name at this point deactivate the Name Device checkbox A name will have to be assigned later to the relevant device here FL PN IBS PHOENIX CONTACT 4 31 PC Worx Read PROFINET Selected PROFINET IO Controller Name ilc 390 pn1 IP Address 132 158 0 2 Device Type ILC 390 PN 2TX B Subnet Mask 255 255 255 0 Default Gateway Available on Network Name Type MAC Address IP Address Subnet Mask fl switch mes 1 6tx IOD FL SWITCH MCS 16TX 00 40 45 05 F0 44 192 158 0 6 255 255 255 0 ilc 390 pn1 ILC 390 PN 2TX IB 00 40 45 26 3 74 192 158 0 2 255 255 255 0 il ilb dio2 IOD ILB PN 24 0116 DIO16 2TX 00 40 45 02 FB 15 192 168 0 3 255 255 255 0 Filter unnamed not in Project A PROFINET devices reachable on the network Figure 4 37 Devices named e Click Close to close the Read PROFINET dialog box 4 18 4 Bus configuration with read in PROFINET IO devices The PROFINET structure is displayed in the Bus Structure window Bus Structure A A Fi Muickstark_ Switch NN ILC 390 PH 27TX IB 192 168 0 2 B F Resource STD_RES ILC390PM SBE PROFINET Fl zwitch mcz 16tbx 192 168 0 6 EB o FL SWITCH MECS 1 5 1 Management agent Eg 2 Ports Bg il ilb dio2 192 158 0 3 LH D ILB PN 24 DI 16 DIO15 zTX
40. F1 3 2 Selecting the language When installing the software the language in which PC WorX should be started can be selected The program language can be changed at any time e Select the Extras Options menu e Select the General tab e Select the language e Confirm your selection with Apply and OK Options Directories Debug Backup Tooltips Logic Analyzer Colors Variables Grid Text editor Text colors Graphical editor Graphical Editor 2 Graphical editor colors FFLD Editor Toolbars Commands General Cross References Pagelayouts Build Language English v Never Convert to Fixed Workbook Style Hide external variables Reset Workspaces Theme Office 2003 v Project tree Project overview POUs Libraries Hardware Instances Figure 3 1 Changing the language setting a The selected language is activated the next time PC Worx is started PHOENIX CONTACT 3 1 PC Worx The Theme element can be used to change the design of the PC WorX user interface Default setting Office 2003 e Close and restart the program Exporting texts importing Texts previously created in one language can be exported and translated The translated translations texts can then be imported back into PC WorX Please ensure that the project language has been set Project Plc Processor Language Pagelayouts Security Project Language English United Kingdom Curre
41. I BOOL 0 5 M16 I WORD 0 0 s 1 DIO16 ILB PN 24 DI 16 DIO16 2TX lt gt PROFINET IO device Predefined process data Figure B 2 The PNIO_DATA_STATE byte that contains corresponding status bits is available A PROFINET IO device only provides valid data if this bit is set For PROFINET IO it may be normal during operation that a PROFINET IO device within the network cannot be accessed e g undocking devices Use this variable to specify for your application whether or not the operation of all other PROFINET IO devices is to be continued despite a device failure In either case the application program must receive information as to whether or not a PROFINET IO device is supplying valid data This is why each PROFINET IO device has a PNIO DATA VALID process data item This bit must be set for the PROFINET IO device to supply valid data and all other process values to be valid This process data item is reserved for future redundancy functions This bit indicates that the application is running on the PROFINET IO device If this bit is set there are no device diagnostics present Not all bits of the PNIO DATA STATE byte are used To prevent unused bits being used by mistake hide them in the control program by linking to a corresponding bit mask To query the status assign the process data to variables e Switch to the process data assignment workspace e Inthe top left window Symbols Variables select the
42. IP parameters Available on Network Mame Type MAC Address IP Address Subnet Mask f zwitch mcs 1Btx IOC FL SWITCH MCS 16Tx 00 40 45 05 0 44 182 158 0 6 255 255 255 0 ilc 390 pri ODOC ILC 380 PN 2TX HB 00 40 45 26 3 4 182 158 0 2 255 255 255 0 1416 9102 ILE PM 24 116 01016 27 00 40 45 02 15 192 168 0 3 255 255 255 0 Filter C unnamed not in Project same Type Figure 4 42 All devices with PROFINET device names and IP addresses When the tab is selected the list is updated If you would like to update the list again later click on Refresh In order to limit the search results various options are available No constraints All devices that are available in the network are listed Unnamed All those devices that do not yet have a PROFINET device name are listed Not in project All those devices that are not included in the project are listed Same type Only those devices that are the same type as the device selected in the bus configuration are listed The BF LED is now off on all PROFINET IO devices The PROFINET network is running For additional information about assigning PROFINET device names and IP addresses please also refer to Additional information on page 6 15 7127 en 03 PHOENIX CONTACT 4 35 PC Worx 4 21 Reading in INTERBUS If you have inserted the INTERBUS devices manually skip this section The bus configuration must actually be available and pow
43. OLIT4 Q BOOL FLS IBM12D08M12 242 OUTS BOOL 0 4 FLS IB M12 DO 8 M12 24 2 OLIT6 BOOL 0 5 FLS IB M12 DO 8 M12 24 2 OUT BOOL D 6 FLS IB M12 DO 8 M12 2A 2 OUTS BOOL D FLS IB M12 DO 8 M12 2A2 DO 8 BYTE 0 0 Address Figure 6 7 All used process data assigned to variables Since the ONBOARD_INPUT_BIT10 variable is a system variable it is not shown in Figure 6 7 6 17 Compiling and sending a project and performing a cold restart See also Compiling and sending a project and performing a cold restart on page 4 40 Compile project e Select the Build Make command Send project Open the project control dialog box Activate the Include Bootproject checkbox in the Project area e Click on Download in the area on the left 6 14 PHOENIX CONTACT 7127 en 03 7127_en_03 Example project for a system consisting of PROFINET IO and INTERBUS 6 18 Operation See Operation on page 4 45 6 19 Additional information 6 19 1 Changing the PROFINET device name If following device naming you wish to change device names proceed as follows If a project is located on the PROFINET IO controller the controller attempts to start up the PROFINET IO devices with the information stored in the project In this case a PROFINET device name cannot be assigned Therefore if there are Ethernet connections between the PROFINET IO devices and the PROFINET IO controller with the project these conn
44. PC WORX EXPRESS 6 10 56 AllPrograms PHOENIX CONTACT gt f AUTOMATIONWORX Software Suite 2010 1 60 56 gt D 9 AX OPC Server 2 40 L4 Communication Settings WebvVisit 5 14 License Manager Figure 3 24 Activating DTP support Phoenix Contact DIMActivate Setup Status DTMActivate is configuring your new software installation Installing Installing DTM Library V2 InstallShield Figure 3 25 DTM support Installing the DTM library Updating DTM Catalog Found DTM GenDtm DeviceDtm Figure 3 26 DTM support Updating the device catalog 7127 en 03 PHOENIX CONTACT 3 21 PC Worx Installing the The AX DTM Library is also installed with AUTOMATIONWORX Software Suite 201x 1 6x AX DTM Library To update the AX DTM Library e g in order to integrate new devices in the software a setup option is available which can be used to install a new version of the AX DTM Library Prior to commencing installation of DTM libraries close PC WorX Ifthe AX DTM Library is already installed an update installation will be performed whenever the setup program is started Only the features that were previously installed will be updated Ifthe AX DTM Library has not yet been installed a brand new installation will be performed when the setup program is started The features that have been selected automatically or manually will be installed Installing the DTM If
45. PHOENIX CONTACT AUTOMATIONWORX Software Suite 201x 1 6x Diag 2 An online connection to the controller is required in order to use Diag For the following description the example bus configuration for the PROFINET and INTERBUS system has been selected see Figure 3 15 on page 3 13 The IB IL 24 DI 4 ME Inline terminal has been removed from the bus configuration in order to prompt an error e Start Diag via View Diag Communication Path ILC 390 PN 2TX IB 192 168 0 2 v View Settings v User Name Password Communication Path O Registry O Assignment File Custom pcp PC WORX View Device Representation Device Type INTERBUS Devices Display Device Number Refresh Manual Status Messages Message Time Offline 05 05 2011 10 32 59 Version Project Mame Offline Figure 3 16 Diag start screen e Under Communication Path select the device with which you would like to establish a connection The diagnostics represented depend on the communication path PROFINET IO controller INTERBUS diagnostics and diagnostics archive PROFINET IO devices INTERBUS diagnostics 7127 en 03 PHOENIX CONTACT 3 15 PC Worx e Select e g the ILC 390 PN 2TX IB PROFINET IO controller as the communication path Communication Path IL PN BK DIB 004 2T 192 168 0 4 v view IL PN BK DIS 004 2T 192 168 0 4 ILC 390 PN 2TX IB 192 168 0 2 User Figure 3 17 Selectin
46. Program created Process data assigned Create program Assign process data Compile and send project and perform cold restart Operation end 7127B020 Sequence for creating the INTERBUS project PHOENIX CONTACT 5 3 PC Worx 5 3 Creating a new project See also Creating a new project on page 4 3 Select the New Project command from the File menu Select the controller here ILC 390 PN 2TX IB Rev gt 01 4 6F 3 00 and confirm your selection with OK Select the File Save Project As Zip Project As command Enter the project name Quickstart and save the project 5 4 Specifying project information See also Specifying project information on page 4 4 e Switch to the bus configuration workspace e Adapt the project information to your project 5 9 Checking modifying IP settings for the controller See also Checking modifying IP settings for the controller on page 4 7 The IP settings for the controller are made when the project is created NOTE Changes to project information are not applied automatically If any modifications are made to the project information that affect the IP settings for the controller a warning is displayed However the modification is not implemented automatically When a new project is created the default settings are specified under the IP settings Adapt these settings if necessary e Switch to the bus configuration workspace s Se
47. Project comparison FDT Field Device Tool Helpful information about PC WorX The View menu or the corresponding icon in the toolbar can be used to switch between the workspaces Following initial installation the IEC programming workspace is the default setting Figure 3 5 to Figure 3 9 below show the default workspaces Table 3 1 on page 3 8 provides an overview of the windows that can be usefully added to the default setting IEC programming workspace 5 PC WORX Untitled MainV Main File Edit View Project Build Layout Online Extras Window DO Qe eo OAs 94 i i i D A Un EN 280 2 3 Project Tree Window Project C Documents and Settings All Users 4 C Libraries BOOL VAR_EXTER Local output OUT Data Types BOOL VAR EXTER Local input IN2 sys types BOOL VAR EXTER BOOL VAR EXTER BOOL VAR JONBOARD_INPUT_BITO BOOL VAR EXTER Localinput IN1 Sa STD CNF ARM L 40 8 STD RES ILC390PN mom Tasks m STD TSK DEFAULT 5 15 Main a Main gh Global Variables Configuration im 2 RET ES MainV Main Main Main 3 Global Vari ES Mainv STD IP PROFINET Configuration is checked Resource is checked STD RES INTERBUS is checked ILC 390 PN 2TX IB 0
48. See also Manually inserting INTERBUS devices on page 4 12 The following devices are used for the example project Controller RFC 430 ETH IB Bus coupler IBS IL 24 BK T U modules IB IL 24 DO 16 IB IL 24 DO 8 and IB IL 24 DI 8 e Selecta point in the Bus Structure window where a device is to be inserted To insert the bus coupler select the INTERBUS node for the controller as the first INTERBUS device can only be inserted here e Inthe device catalog open the product range for the inserted device e g IL for Inline under Phoenix Contact e Under the product range open the product group e g bus coupler I O digital e Select the device to be inserted e g IBS IL 24 BK T U e down the mouse button and drag the selected device to the insertion point e Insert all the other devices In the example Insert the Inline modules I O digital below the bus coupler The bus configuration with the INTERBUS modules used in the example is shown in Figure 7 3 Bus Structure EB SIM e 430 ETH IB 182 168 0 2 5 6 Resource R STD RES RFC430ET gfe INTERBUS IBS IL 24 BK T U IB IL 24 DO 16 IB IL LInconnecked Figure 7 3 Complete bus configuration for the example project 7 7 Compiling after completing the bus topology See also Compiling after completing the bus topology on page 4 16 e Select the Rebuild Project command from the Build menu 7127_en_03 P
49. Task settings for ARM_L_40 g Watchdog Time Stack Options C Small gt Medium Large CO Large Save No Suspend Figure 4 59 Changing the setting e Confirm your settings with OK e Compile the project send it to the controller and perform a cold restart If the process is now running too slowly change the settings e Inthe standard task context menu select the Settings menu item e Change the watchdog time setting e g to 250 ms e Compile the project send it to the controller and perform a cold restart 4 46 PHOENIX CONTACT 7127_en_03 7127_en_03 Ee Sequence for creating a project 4 27 2 Debug mode In order to use debug mode a program must have been created in your project The method of operation of the program can be monitored in debug mode e Activate debug mode e Switch to the IEC programming workspace The status of all global variables used in the program is displayed in the MainV variables worksheet in the Project Tree Window eke Tree Wnt E Tye Usage Description Sy Project C Documents and Settingsspypm 7 D esl C Libraries m2 TRUE BOOL VAR EXTERNAL E Data Types TRUE BOOL VAR EXTERNAL sys flag types OUT2 TRUE BOOL VAR_EXTERNAL Sy Logical POUs M FALSE BOOL VAR EXTERNAL 5 18 Main vO 1540000 WORD VAR_EXTERNAL i MainT TRUE BOOL VAR EXTERNAL Local input IN1 Main 1 VAR
50. WorX the DTM library will be available the next time PC WorX is started Any other DTMs from different manufacturers can be integrated Using DTMs point to point communication even beyond network boundaries enables user friendly parameterization and diagnostics of devices and sensors actuators via e g Ethernet INTERBUS PROFIBUS HART IO Link protocol and also PROFINET IO in the future 7127 en 03 Helpful information about PC WorX 3 10 3 Installing DTM libraries Activating DTM support DTM support must be activated in PC WorX Please note that this functionality is deactivated by default Close PC WorX before activating deactivating DTM support e To activate the DTM functionality in PC WorX select Start All Programs PHOENIX CONTACT AUTOMATIONWORX Software Suite 201 Tools Activate DTM support e My Pictures e My Music windows Catalog m Config gt e Diag m Diag NetScan m Documentation 9 PC WORX 9 Accessories 9 EmpirumInventory gt f B Tools M Activate DTM support 9 Startup 99 webwisit gt i 01 Deactivate DTM support 13 Diag Administration Installer SNMP WMI NetNames 1 30 56 Cal Security Settings TrapGuard Config 1 40 56 al Diag 2 40 56 54 Diag NetScan 1 30 56 9 WinPcap d Internet Explorer Remote Assistance windows Media Player b Windows Movie Maker
51. a library has already been installed there are two options for installing the DTM for the IB IL IFS MA PAC terminal 1 Uninstall the old library Next time setup is executed all automatically or manually selected features will be installed 2 Install the new setup package without uninstalling the old library Following installation the newly added features e g the IB IL IFS MA PAC terminal are not yet available To activate the new features proceed as follows a Select Start Control Panel Add or Remove Programs b Select AX DTM Library c Click on Change d Inthe welcome screen of the installation wizard click Next e Inthe Program Maintenance window that appears select the Modify option and confirm your selection with Next f Theinstallation wizard displays all the features availble in the setup The symbol before an entry indicates the status of the feature Hard disk Installed install Red cross Not installed remove i AX DTM Library InstallShield Wizard Custom Setup Select the program Features you want installed Click on an icon in the list below to change how a feature is installed Feature Description En 84 DTM Librar AUTOMATIONWORX DTM Library SNMP Communication DTI Generic Device DTM amp 9 Device Descriptions For X Device Descriptions For E Device Descriptions For SN This Feature requires OKB on E Interbus Communication DTM your hard dr
52. controller in the top right window The standard configuration is displayed in the top left window Symbols Variables e inthe top left window select the resource or program in Figure 4 19 resource STD RES ILC390PN Please note the following If the resource has been selected global variables are generated displayed that can be used in all POUs of the project VAR GLOBAL If the program POU has been selected global variables are generated displayed that be used in all POUs of the project VAR GLOBAL POU Program Organization Unit see online help for PC WorX or IEC 61131 3 4 18 PHOENIX CONTACT e Inthe top right window select the device for which you would like to link the process data to variables e g IB IL AO 1 SF in Figure 4 21 e Select the process data item for which you would like to generate a variable AO 16 in Figure 4 19 e Inthe context menu for the process data item select the Create Variable menu item 7127 en 03 Sequence for creating a project Process Data Assignment vu Symbols ariables B Quickstart_PN ILC 390 PN 2TX IB 192 168 0 2 wj STD ARM L 40 m rac Re Resource a STD RES ILC390PN R STD RES ILC390PN Variables 28 PROFINET a 0 STD TSK DEFAULT H mai Fl il bk12 quickstart de 192 168 0 4 Main Main Bog il ilb dio13 quickstart de 192 168 0 3 Defaut amp Fl pn ibs14 quickstart de 192 168 0 5
53. in the EasySim simulation In the examples in Section 5 and Section 6 a system variable is used for each of the onboard inputs of the ILC 390 PN 2TX IB Inline Controller OdBOARD INPUT BIT10 If you would like to use the example in this section for the projects in Section 5 and Section 6 do not connect input IN of the TP function block to variable S1 but to system variable ONBOARD_INPUT_BIT10 instead VAR VAR GLOBAL If a variable will only be used internally and will not be assigned to a process data item it can VAR EXTERNAL be declared as VAR However if you would like to monitor this variable in the simulation declare it as VAR GLOBAL This is why in the example program the variables that are linked to a process data item input output are declared as GLOBAL In the Global Variables worksheet these variables are indicated as VAR GLOBAL in the Usage column see Figure 4 63 on page 4 48 and as EXTERNAL in the POU vari ables worksheet see Figure 4 60 on page 4 47 BOOL TO DINT format conversion function block To use the output signal of the TP 1 block as the input signal for the ROL block the format must be converted from BOOL to DINT Variables are not declared for this block 8 2 PHOENIX CONTACT 7127 en 03 Example program ROL rotation function block Table 8 2 Rotate to left ROL Para Variable Data type Initial value Description meter name EN Number of characters to be rotated in the e
54. individual sections or a better overview of extensive network sections The connection information is displayed by clicking on a connection or port number in the topology For a clearer view of extensive networks switches that have a lower level network branch are displayed in a tab To display a different network branch click on the tab for the corresponding switch 7127 en 03 PHOENIX CONTACT 19 PC Worx A10 INTERBUS topology PC WorX can be used to automatically detect INTERBUS topologies The INTERBUS structure can be viewed in the INTERBUS Topology window Bus Structure UNTITLED Bl ILC 390 PN 2 1 192 168 0 2 GR Resource R STD RES ILC390PN HH PROFINET S INTERBUS eng usn 24 n8 IB IL 24 DO 16 IB IL 24 DI 8 IB IL 24 DI 2 c B 185 1 24 Bk T U 1 IB IL 24 DO 32 HD ILC 380 PN 2TX IB IBS IL 24 RB T IB IL 24 DO 16 IB IL24 DI 8 IB IL24 DI 2 4 INTERBUS Topolog IB IL 24 DO 4 IB IL AI 2 5F a Unconnected 0 0 0 1 1 0 1 4 4 1 1 2 1 1 3 5 5 7 8 IBS IL 24 BK T U IB IL 24 DO 32 HD IBIL24 DO 4 IB IL Al 2 SF 1 2 0 1 2 1 1 22 1 2 3 Figure A 18 INTERBUS topology for an INTERBUS system If this function is used with PROFINET only the INTERBUS topology is displayed that is connected to the INTERBUS node for the controller To print the entire bus topology another function can be used in PC WorX e nthe bus configuration activate the context menu via any element e Selec
55. inserted PHOENIX CONTACT 4 9 PC Worx Checking modifying the PROFINET settings for PROFINET IO devices PN 4 8 When inserting each PROFINET IO device the PROFINET settings are assigned automatically according to the entries defined in the project information The PROFINET settings can be checked and modified via the PROFINET Settings tab e sure you are in the bus configuration workspace e Inthe Bus Structure window select the PROFINET IO device e Under Device Details select the PROFINET Settings tab e Check the PROFINET settings and modify them if necessary Device Details i ilb dio3 quickstart de 192 168 0 4 PROFINET Settings NE ILC 390 PN 2TX IB 192 168 0 2 RR Resource R STD RES ILC390PN BH PROFINET LH 0 ILB PN 24 DI 16 DIO16 2TX FQ 1 01016 ILB PN 24 DI 16 DIO16 2TX 20116 ILB PN 24 DI 16 DIO16 2TX a 0 quickstart de 192 168 0 3 IL amp Inline 0 0 T fl pn ibs4 quickstart de 192 168 0 5 ge INTERBUS 0 0 ge INTERBUS 0 0 EN Unconnected Vendor VendorID Designation DeviceID Functional description Device type Device Family Order number Revision DNS PROFINET Device Name Station Name Device Name Module Equipment ID IP Address Subnetmask Default Gateway Realtime class Reduction ratio input Reduction ratio output Faulty telegrams until connection is aborted Monitoring Time Inputs ms Monitoring Time Outputs ms Operation in
56. inserted below this icon When creating the project using the wizard the controller resource is inserted below this icon An PROFIMET PROFINET IO controller Insert all PROFINET IO devices below this icon in the lower level gs INTERBUS INTERBUS master Below this icon insert the INTERBUS devices that are directly connected to the device that this icon refers to local bus and remote bus IL Inline Inline Below this icon insert the Inline terminals that are connected to the Inline bus coupler local bus PROFINET IO devices Device proxy and modules For PROFINET IO devices the display is divided into the device proxy bus interface and its modules The device proxy is indicated with The slot number is specified after the graphical representation of the device proxy or modules setting in context menu under Edit Device Representation The icons for the device proxy and modules are stored in the device description file e g FDCML GSD They may vary from manufacturer to manufacturer FS B2 rH PROFINET IO devices from Phoenix Contact Example ILB PN 24 DI16 DIO16 2TX Default icons if none stored the device description file ILE PN 24 0116 DIO16 2Ts il ilb dioz 192 158 0 3 LH 24 DI 16 DIO15 2T E 1 DIO16 ILE PM 24 DI 16 DIG185 2TX LH 2 D116 ILB PM 24 DI 16 DIO185 2TX Figure 3 11 Device proxy and modules of a PROFINET IO device 7127 en 03 7127_en_03 For the example i
57. o pam 9 ue 0 LAC e Ethernet Topology INTERBUS 1 When inserted manually 2 For PROFINET 5 For troubleshooting When using Excel D Default A Useful addition 3 8 PHOENIX CONTACT 7127 en 03 Toggling on off Docking undocking 7127_en_03 gt Helpful information about PC WorX 3 5 2 Toggling windows on off and docking undocking windows Each window can be toggled on off via the View menu by selecting the corresponding menu item For the windows recommended for the relevant workspace please refer to Workspaces on page 3 5 For each window you can specify whether or not it is to be docked in the other windows There are various options for docking undocking windows 1 Permanent docking undocking In the title bar or the blue gray frame of the relevant window right click with the mouse and activate deactivate the Allow Docking menu item Move an undocked window to the position where it is to be inserted in the desktop 2 Temporary undocking Double click on the gray window frame or the title bar of the window The window is then displayed as a normal window Its size can be modified and it can be moved to any position on the screen In order to re dock the window i e to reinsert it in the desktop double click on the title bar 3 5 3 Auto hide function The auto hide function can be toggled on off for each window This fun
58. ordering data for the individual controllers PHOENIX CONTACT D 1 PC Worx D 2 PHOENIX CONTACT 7127 en 03
59. program the application program according to IEC 61131 3 using example projects It is assumed the user has knowledge of and experience in the operation of PCs and Windows operating systems and knowledge of IEC 61131 and Ethernet basics More detailed information about the individual functions of PC WorX can be found in the online help for the program The entire help function can be called via Help in the menu bar Help for specific functions can be called via F1 Functions and commands requiring communication with the controller cannot be executed without a physical bus configuration However complete parameterization is possible in the offline state The application program can also be created and compiled 7127 en 03 PHOENIX CONTACT 1 1 PC Worx 1 3 System requirements PC system requirements Supported operating systems MS Windows XP Professional SP3 MS Windows Vista Business MS Windows 7 Professional 32 bit 64 bit as of AUTOMATIONWORX Software Suite 1 60 SP1 Hardware requirements CPU Pentium 4 Celeron 1 6 GHz minimum 2 GHz recommended Main memory 1 GB minimum 2 GB recommended Hard disk space 2 GB free memory space DVD ROM drive Yes Interfaces 1 x Serial V 24 RS 232 1 x Ethernet TCP IP Monitor XGA resolution of 1024 x 768 pixels minimum SXGA resolution of 1280 x 1024 pixels recommended Operating devices Keyboard mouse Web browser Internet Explorer Version 7 or later 1 4 O
60. the specified example assign the inputs and outputs to the created variables according to Inputs and outputs process data on page 6 3 The result of the process data assignment process is shown in the figure below i Process Data Assignment 4vo Symbols ariables mu STD_CNF ARM_L_40 cz m STD RES ILC390PN Default System Variables Auto m STD_TSK DEFAULT n Main Main Quickstart_PN NN ILC 390 PN 2TX IB 192 168 0 2 Re Resource STD RES ILC390PN 8 PROFINET E Fl switch mcs 16tx quickstart de 192 168 0 3 Bg il ilb dio23 quickstart de 192 168 0 4 LB D ILB PN 24 DI 16 DIO16 2TX FQ 1 DIO16 ILB PN 24 DI 16 DIO16 2TX cA 2 DI16 ILB PN 24 DI 16 DIO16 2TX B il pn bk24 quickstart de 192 168 0 5 4 D IL PN BK DIS 004 2TX SIL INLINEO 0 Do40 2 0180 3 IB IL 24 DO 4 0 1 IB IL 24 DI 4 ME 0 4 fl pn ibs25 quickstart de 192 168 0 6 5 INTERBUS 0 0 FLS IB M12 018 2 1 0 FLS IB M12 DO 8 M12 2A2 0 i gfe INTERBUS 0 0 ES Unconnected Symbol ariable Process Data Item Device IB IL 24 DI 4 MEO 4 V 1 1 FLSIBMi12DI8MI21 0 VIN3 FLS IB M12 DO 8 M12 2A 2 0 V OUTS IB IL 24 DO 4 MEO 1 11 4 1 DIO16 ILB PN 24 DI 16 DIO16 2TX Y D Data Type Process Data Item 1 0 Data Type Byte Bit FLS IBM12D08M12 242 0 OUT1 Q BOOL 0 0 FLS IBM12D08M12 242 0 OTZ Q BOOL D 1 FLS IB M12 DO 8 M12 2A 2 0 OUT3 O BOOL r FLS IB M12 DO 8 M12 2A2
61. with connection to the PROFINET IO system In Figure 6 2 and in the description in this section it is assumed that the system has been fully installed and all tasks are performed online This is the quickest way to start up a PROFINET system This path is shown in a dark color in Figure 6 2 Other possible paths are grayed out If the PROFINET system has not yet been fully installed or if you would like to perform as many preparatory tasks as possible offline follow the grayed out sequence This is described in detail in Section 4 Sequence for creating a project 7127 en 03 PHOENIX CONTACT 6 3 PC Worx PROFINET OFFLINE ES si Yes Specify project information a Check modify IP settings N for controller Assign address for controller Set communication path devices inserted Read IO devices Check modify PROFINET settings cS Yes System installed Assign PROFINET device name IP settings Figure 6 2 6 4 PHOENIX CONTACT ONLINE INTERBUS devices inserted Program created Process data assigned No IB Create program Assign process data Compile and send project and perform cold restart IB Operation end 7127B021 Sequence for creating the PROFINET project 7127_en_03 Example project for a system consisting of PROFINET IO and INTERBUS 6 3 Creating a new project See als
62. 0 0 Build Errors Warnings Infos PLC Errors A Print Multi User Bus Configurator Arorf For Help press F1 Figure 3 5 IEC programming workspace PHOENIX CONTACT 3 5 PC Worx Bus configuration workspace PC WORX Quickstart_PN i File Edt View Project Buld Online Extras 7 Quickstart_PN c Bl ILC 390 PN 2 1 192 168 0 2 E R Resource R STD RES ILC390PN 5 8 PROFINET 24 0116 DIO16 27X il ilb dio2 192 168 0 3 B IL PN BK 018 004 27 il pn bk 2tx 192 168 0 4 Gd INTERBLS 0 0 11810 240040 1 2181240140 2 Unconnected 5 4 Phoenix Contact t AXL CT ELA H FC2ke FDT amp g FL 2 FLM k FLS b FP Bus Coupler Fd GILB PN 24 DI 16 DIOT6 2TX Rev gt 03 1 00 F 0116 ILB PN 24 DI 16 DIO16 2TX 01016 ILB PN 24 DI 16 DIDT6 2TX IP PROFINET Configuration is checked Resource is checked STD RES INTERBUS is checked ILC 390 PN 2TX IB 0 0 0 gt eats f animas ines Pink BuConiguats B For Help press 1 Figure 3 6 ILB PN 24 0116 DIOL6 2T 5 42 192 168 0 3 PROFINET Value ILB PN 24 DI16 DIO16 2TX t Y 5 dor Order number si CBG ModuleEqupmentID 00000 192 168 0 3 255 255 255 0 Defauk Gateway O RT 24 ye y _Verbindungsaufbau Anlauf yes 18022 1D ID Func
63. 2 168 0 2 R Resource R STD RES ILC390PN SS PROFINET fl switch mes 16tx quickstart de 192 168 0 3 EB 0 FL SWITCH MCS 16 8 1 Management agent 2 Po il ilb dio23 quickstark de 292 168 0 4 D 4 DI 16 DIO16 2TX 19 1 01016 ILB PN 24 DI 16 DIO16 2TX 2 0116 ILB PN 24 DI 16 DIO16 2TX il pn bk24 quickstart de 192 168 0 5 8 fl pn ibs25 quickstart de 192 168 0 6 Selected Device il ilb dio23 quickstart de IP Address 192 168 0 4 Device Type ILB PN 24 DI16 DID16 2TX Subnet Mask 255 255 255 0 Default Gateway Available on Network Name Type MAC Address IP Address Subnet Mask flswitch mes 16tx 00 A0 45 05 F0A4 0000 0 0 0 0 ic 390 pnt OD ACEITE PIU 2T 00404526374 0000 0000 kibdio23quickstatde OD ILB 24DITEDIDTE2TX 00 4045 02 15 0000 0000 ikpnbk24quickstatde IOD IL PN BK 018004 2TX 00AD450450C8 0000 0000 flpribs25 quickstart de IOD FL PNAIBS 00 A0 45 07 81 1A 0000 0000 yy INTERBUS 0 0 a Unconnected Filte J unnamed not in Project same Type Flashing On Delete Name Assign IP PROFINET Settings 8 PROFINET Stationnames 4 Bus interfaces B Data sheet Figure 6 9 Selecting the device 6 16 PHOENIX CONTACT 7127_ 03 Example project for a system consisting of PROFINET IO and INTERBUS A flashing display can be triggered on the device via Flashing On This display can be used to find the selected device in the field When the but
64. 2 project is shown in INTERBUS When implementing the project some of the tasks can be performed offline without a connection to the INTERBUS system All tasks relating to communication must be performed online with connection to the INTERBUS system In Figure 5 2 and in the description in this section it is assumed that the system has been fully installed and all tasks are performed online This is the quickest way to start up an INTERBUS system If the INTERBUS system has not yet been fully installed or if you would like to perform as many preparatory tasks as possible offline follow the sequence described in Section 4 Sequence for creating a project 5 2 PHOENIX CONTACT 7127 en 03 INTERBUS SIM Create new project SIM Specify project information Check modify IP settings for controller System installed Insert IO devices Check modify PROFINET settings for devices IB SIM Manually insert INTERBUS devices OFFLINE SIM Sa Yes Set communication path Assign IP address for controller Set communication path IO devices inserted Yes Read IO devices Check modify PROFINET settings 9 Assign PROFINET device name IP settings Figure 5 2 5 Create program n SIM D oliv Assign process data 7127 en 03 Example project for an INTERBUS system ONLINE INTERBUS devices Yes inserted Read INTERBUS
65. 23 The IP parameters that are assigned here for the controller are also implemented as the IP parameters for the communication path via TCP IP 7127 en 03 PHOENIX CONTACT 4 7 PC Worx 4 8 PHOENIX CONTACT m a 4 6 Decision Working online or offline If your system is installed you can work online In this case skip this section and proceed to Section 4 17 Setting the communication path If your system is not installed or you wish to work offline proceed as follows For PROFINET see Section 4 7 Inserting PROFINET IO devices For INTERBUS or Simulation see Section 4 9 Manually inserting INTERBUS devices 4 7 Inserting PROFINET IO devices e sure you are in the bus configuration workspace Insert the PROFINET IO devices below the PROFINET IO controller node e If the device catalog is hidden show it by selecting the View Device Catalog menu e the Phoenix Contact device catalog For example the specified folders contain the following PROFINET IO devices PROFINET IO device Folder FL IL 24 BK PN PAC FL Gateway ILB PN 24 DI16 DIO16 2TX ILB I O digital FL PN IBS New FL Gateway e Select the first PROFINET IO device here FL IL 24 BK PN PAC Bus Structure 1 A 3 Quickstart _PM NN ILC 390 PN 2 192 168 0 2 Fe Resource 5 0 5 ILC390PN i3 PROFINET IMTERBUS D 0 Unconnected 1 Device Catalog 4 Phoenix
66. 5 9 il ilb dio13 quickstart de 192 168 0 3 fl pn ibs14 quickstart de 192 168 0 5 f INTERBUS 0 0 FLS IB M12 DI 8 M121 0 FLS IB M12 DO 8 M12 2A 2 0 y INTERBUS 0 0 24 Unconnected Figure 4 16 FLM modules inserted below an INTERBUS proxy 4 9 3 Inserting Inline terminals below a PROFINET IO bus coupler e Insert the required Inline terminals from the device catalog at the Inline node of the PROFINET IO bus coupler e g FL IL 24 BK PN PAC Bus Structure Quickskark PM cz Na ILC 390 PN 2 1 152 158 0 2 Sl Re Resource R STD RES ILC390PN 8 PROFIMET Fl il bk12 quickstart de 192 168 0 4 SIL Inline 0 0 IB IL 2400 4 0 1 IB IL 24 DI 4 0 2 5 88 il ilb dio13 quickstart de 182 168 0 3 Fl pn ibs14 quickstark de 192 168 0 5 S INTERBUS FIS5IBMI2DISMI21 0 FLSIBMI2DOSMI2 2A42 0 gfe INTERBUS 0 0 Unconnected Figure 4 17 Inline terminals inserted below a PROFINET IO bus coupler PN 4 9 4 INTERBUS devices below the PROFINET IO controller Manually insert the PROFINET IO modules connected to the INTERBUS controller in the same way as described above e Insert the required INTERBUS modules from the device catalog at the INTERBUS node of the PROFINET IO controller e g ILC 390 PN 2TX IB 7127 en 03 PHOENIX CONTACT 4 15 PC Worx 5 4 10 Compiling after completing the bus topology Compiling a project Rebuild Project 4 16 At this point you can compile your pro
67. 68 0 4 IL PM BK DIS DO4 2TX Type MAC hades IF Address Mask HH IL INLINE 0 I ilb diob quickstart de ID Dev ILB FN 24 0116 01016 27 00 40 45 04 0434 0000 0 0 0 0 f pn ibs49 quickstart de 192 168 0 5 ID Dev FLIL 24 BK PN PAC 00 0 45 05 28538 0000 0 0 0 0 age INTERBUS 0 0 fb INTERBUS 0 0 Unconnected Hon ibs4 quickstart de IO Dev FL PN IBS 00 40 45 05 0954 0 0 0 0 0 0 0 0 Filter unnamed not in Project same Type T m Em PROFIMET Settings B Device parameters EM PROFINET Statiannames Bus interfaces amp Data sheet Figure 4 39 Assigning the PROFINET device name e Click on Assign Name The updated list contains the PROFINET IO devices together with their PROFINET device names Available on Network MAC Address IP Address Subnet Mask 1416 9106 lO Dey 24 0116 DIDTe 2T 00 40 45 04 04 34 0 0 0 0 0 0 0 0 f zwitch mcs 15t 5 ID Dev FL SWITCH MCS 16TH 00 40 45 02 90 217 182 158 0 6 255 255 255 0 fl il bk4 lO Dey FLIL 24 BK PN PAC QA 45 05 2AS3F 0 0 0 0 0 0 0 0 fl pr ibs3 lO Dey FL PN IBS 00 40 45 05 09 34 0 0 0 0 0 0 0 0 Filter C unnamed not in Project Figure 4 40 Example All devices with PROFINET device names 7127_en_03 PHOENIX CONTACT 4 33 PC Worx PN 4 19 Checking modifying the PROFINET settings for PROFINET IO devices If you have made the PROFIN
68. 7127 en 03 Example project for a system consisting of PROFINET IO and INTERBUS All the devices in the project now have the correct IP parameters In the section below these parameters must actually be assigned to the devices e Compile the project send it to the controller and perform a cold restart see Compiling and sending a project and performing a cold restart on page 4 40 6 19 3 A Assigning IP parameters for the PROFINET IO device In order to enable the connected INTERBUS modules to be read into the bus configuration the IP parameters must be assigned to the PROFINET IO devices There are two options for assigning IP parameters Select an option based on the specified requirements 6 19 3 1 Option 1 IP parameter assignment during PROFINET IO controller startup This option always works provided the PROFINET IO controller is able to establish communication with the PROFINET IO devices e sure you are in the bus configuration workspace e Inthe Device Details window select the PROFINET Stationnames tab You can later check whether the IP parameters have been assigned e Compile the project send it to the controller and perform a cold restart Proceed as described in Compiling and sending a project and performing a cold restart on page 4 40 fel During startup the PROFINET IO controller assigns the IP parameters specified in the project to the PROFINET IO devices e Click on Refresh The upd
69. AUTOMATION Quick Start UM QS EN PC WORX Order No PC WorX _ C JcoNac 0 C5 0 INSPIRING INNOVATIONS AUTOMATION Quick Start PC Worx Designation UM QS EN PC WORX Revision 03 Order No This user manual is valid for Designation PC WorX Part of the AUTOMATIONWORX Software Suite 2010 7127 en 03 2011 07 27 Revision ab 6 10 ab 1 60 PHOENIX CONTACT PC Worx Please observe the following notes In order to ensure the safe use of the product described you have to read and understand this manual The following notes provide information on how to use this manual User group of this manual The use of products described in this manual is oriented exclusively to qualified application programmers and software engineers who are familiar with the safety concepts of automation technology and applicable standards Phoenix Contact accepts no liability for erroneous handling or damage to products from Phoenix Contact or third party products resulting from disregard of information contained in this manual Explanation of symbols used and signal words hazards Obey all safety messages that follow this symbol to avoid possible This is the safety alert symbol It is used to alert you to potential personal injury AN injury or death DANGER This indicates a hazardous situation which if not avoided will result in death or serious injury WARNING This indicates a haza
70. CML file for the corresponding PROFINET IO device If this setting exceeds the performance level of the PROFINET IO controller a corresponding error message appears when translating the project In this case select a longer update time for certain devices 7127 en 03 PHOENIX CONTACT 4 11 PC Worx Monitoring Time D O g DI 4 12 PHOENIX CONTACT The monitoring time can be set automatically by PC WorX according to the update times The monitoring time specifies how long PROFINET IO devices may receive no valid PROFINET telegrams before substitute values are enabled at the outputs This setting can affect the noise immunity of the network NOTE Please note that excessively high settings can result in errors in the process as the PROFINET IO device freezes the last output value until the error is detected 4 9 Manually inserting INTERBUS devices 4 9 1 Manually inserting INTERBUS devices General If the bus configuration is not actually available yet or you wish to create the configuration offline the bus configuration can be created manually e Select a point in the Bus Structure window where a device is to be inserted e g INTERBUS node for the controller e nthe device catalog open the product range for the inserted device e g IL for Inline under Phoenix Contact e Under the product range open the product group e g I O analog e Select the device to be inserted e g IB IL AO 1 SF
71. D of a PROFINET IO device does not flash no IP parameters can be assigned to this device as itis currently communicating e Select the device to which you would like to assign the IP parameters Proceed as described in Transferring PROFINET device names and IP settings to PROFINET IO devices on page 6 10 e Send the IP parameters to the device via Assign IP e Assign the IP parameters to each PROFINET IO device Available on Network Mame Type MAC Address IP Address Subnet Mask fl switch mes 1 ID FL SWITCH MCS TBTX 0 0 45 05 0 54 192 168 0 3 255 255 255 0 il lb dio23 quickstart de IOC ILE PN 24 0116 DIO T5 2T 00 40 45 02 FB 15 192 168 0 4 2552552550 il pr bk24 quickstart de OD IL PN BK DIS 004 2T 00 40 45 0450 192 168 0 5 255 255 255 0 fl pn ibs25 quickstart de ID FL PNAIBS 00 40 45 07 61 1A 192 168 0 6 255 255 255 0 Filter C unnamed nat in Project same Type Figure 6 13 All devices with PROFINET device names and IP parameters Now the INTERBUS modules connected to the devices can be read in If there was already a project on the PROFINET IO controller and the connection was aborted in order to send the IP parameters please note the following On startup the PROFINET IO controller starts up the PROFINET IO devices with the IP parameters stored in this project which may be an old one Only after compiling sending and performing a cold restart for the new project can the IP para
72. DIS81 3 E5 Unconnected Symbols V ariables c 9 5 0 CNF IPC 40 c mi STD RES RFC450ET Default System Variables 5 15 STD T5K DEFAULT amp D Main Main Symbol Variable Data Process Data Item Device Process Data Item 10 Data Type Byte Bit Address Symbol Variable Function Text VO WORD IBIL24DO81 2 1111 BOOL 00 RESLOUTI L 51 BOOL IBIL24DO81 2 1 21 Q BOOL D 1 2 1 T2 TIME IBIL24DO81 2 2 1 1 Q BOOL 0 2 ial IN2 BOOL IL Q BOOL D 3 ex IN3 BOOL IBIL24DO81 2 3 1 1 Q BOOL D 4 tail OUT2 BOOL IBIL24DO81 2 3 2 1 Q BOOL 0 5 ail OUT1 BOOL IBIL24D081 2 1 1 1 IBIL24DO81 2 4 1 1 Q BOOL D 6 bi IBIL24DO81 2 4 2 1 Q BOOL D 7 al IBIL24DO81 2 Q BYTE 0 0 gt Figure 4 21 Process data item 1 1 1 assigned to variable OUT1 e Repeat this procedure for all inputs to be evaluated and for all outputs to be controlled Please note for a PROFINET IO device with inputs and outputs that this is represented with its modules il ilb dio13 quickstart de 192 168 0 3 LB O MILB PN 24 DI 16 DIO16 2TX Fa 1 DIO16 ILE PN 24 DI 16 DIO16 2TX EB 2 DI16 ILE PN 24 DI 16 DIO16 2TX Figure 4 22 Representation of a PROFINET IO device with its modules e nthis case select the module where the required inputs or outputs are located 4 20 PHOENIX CONTACT 7127 en 03 Sequence for creating a project Process Da Assianment Symbols ariables 5 gy Quickstart PN c NE ILC
73. Device Station Name Device Name Module Equipment ID IP Address 192 168 0 3 Subnet Mask 255 255 255 0 PROFINET Device Name il ilb dio2 Project Name Quickstart _PN mwt Figure 3 19 Diagnostic Archive 3 16 PHOENIX CONTACT 7127 en 03 View INTERBUS Diagnostic 4 7127 03 Helpful information about WorX INTERBUS modules in an INTERBUS system can be diagnosed with Diag as usual Various information can be called via the different tabs Diagnostics in lower level INTERBUS systems Please note that for direct diagnostics of the Inline devices that are connected to the PROFINET bus terminal in the bus configuration in Figure 3 12 on page 3 11 the communication path can now be changed from the ILC 390 PN 2TX IB to the FL IL 24 BK PN PAC To this end you must disconnect the communication path to the ILC 390 PN 2TX IB change it to the FL IL 24 BK PN PAC and then activate the communication path Connect button Switch to View INTERBUS Diagnostic e Under View Device Representation select INTERBUS Devices as the device type e Atthe top select INTERBUS Diagnostic as the view Communication Path 10 200 PN 2 1 102 1580 2 View INTERBUS Diagnostic hi Statistic SkatisticEx SpecialTen Settings 5 Solution Device Diagnostic History Bus Architecture BusInfo Action mm Optical Diagnostic 390 PN 2 1 O1 0 2 I Communica
74. Device Catalog 24 3 Phoenix Contact 9 AXL CP3xx CT ELR 2 FC3xx FL FLM LLE FLS FP Bus Coupler Drive E Drive Motor Starter 9 E A Funktionsmodul 9 5 Gateway 2 4 170 analog BB IB IL Al 274 20 BB IB IL Al 2 SF Bl iB IL Al 2 5F ME B IB IL AI 2 HART PAC BB iB IL Al 4 1 PAC BB IB IL Al 4 U PAC AI 8 15 BR IB IL AI 8 SF Bl IB IL AI TEMP 4 RTD PAC Bl IB IL Al4 EF PAC BB 0 1 U SF IB IL 0 2 1 57 inti an 2 cF All Figure 4 11 Selecting the device e Hold down the mouse button and drag the selected device to the insertion point Please refer to the information about the mouse pointer in Icons in the Bus Structure window on page 3 10 7127 en 03 Example bus configurations 7127_en_03 NE ILC 390 PN 2TX IB 192 168 0 2 Resource R STD RES ILC390PM BH PROFINET Big il ilb dio3 quickstart de 192 168 0 4 fl il bk2 quickstart de 192 168 0 3 S INTERBUS 0 0 1IBIL AO 1 SFO 1 83 Unconnected fl pn ibs4 quickstart de 192 168 0 5 Sequence for creating a project Device 49 1 0 analog Bl IB IL Al 274 20 BB IB IL Al 2 SF IB IL Al 2 SF ME Bl IB IL Al 2 HART PAC BB iB IL A1 4 1 PAC BB l 4 U PAC BR IB IL AI 8 75 Bl IB IL AI 8 SF Bl IB IL Al TEMP 4 RTD PAC Bl IB IL 4 IB IL AO 1 SF EE RI
75. ET settings for the PROFINET IO devices offline after inserting the PROFINET IO devices skip this section When reading in the PROFINET settings of the relevant PROFINET IO devices are imported with default values Check these settings and modify them if necessary e sure you are in the bus configuration workspace e Inthe Bus Structure window select the PROFINET IO device e Under Device Details select the PROFINET Settings tab e Check the PROFINET settings and modify them if necessary Quickstart_PN NE ILC 390 PN 2 1 192 168 0 2 F Resource STD RES ILC390PN 5 88 PROFINET FQ 1 01016 ILB PN 24 DI 16 DIO16 2TX 20116 ILB PN 24 DI 16 DIO16 2TX 0 quickstart de 192 168 0 3 IL Inline 0 0 T fl pn ibs4 quickstart de 192 168 0 5 Me INTERBUS 0 0 Me INTERBUS 0 0 EN Unconnected Device Details i ilb dio3 quickstart de 192 168 0 4 PROFINET Settings Vendor VendorID Designation DeviceID Functional description Device type Device Family Order number Revision DNS PROFINET Device Name Station Name Device Name Module Equipment ID IP Address Phoenix Contact 0 00 0 ILB PN 24 0116 DIO16 2TX 0 0004 2878146 192 168 0 4 Subnetmask 255 255 255 0 Default Gateway Realtime class Reduction ratio input Reduction ratio output Faulty telegrams until connection is aborted Monitoring Time Inputs ms Monitoring Time Outputs ms Operati
76. Ennii 4 40 4 26 3 Performing a cold uou E Fem Rees peer en ee epe cea nere xs ei Las 4 43 421 Operation RE Tr Pm 4 45 4 27 1 Setting the task properties 2 4 45 4 27 2 WCDUG MOUS isi c 4 47 P2753 PEC SOB Me E 4 48 4 28 Switching from simulation to real 2 4 49 5 Example project for an INTERBUS 5 1 5 1 5 1 5 2 Sequence for creating the INTERBUS 5 2 5 3 Creating a new 5 4 5 4 Specifying project information ccccccseccccsessecececeseeeeceeuseeecesseeecesaseeeessaseess 5 4 5 5 Checking modifying IP settings for the 5 4 5 6 Assigning the IP address for the controller 2 5 5 5 7 Setting the communication path 1 22042200000 5 5 5 8 Readingi I NTERBRBUS e rime qtu 5 6 5 9 Compiling after completing the bus 5 6 5107 CREATING the so d dip 5 6 5 11 Compiling after completing the 5 7 S2 ASSIONNG PROCESS CANO
77. FE 1 DIO186 ILE PH z4DIi156DIOl15 zTx LH 2 DI18 ILE PM 24 DI 16 DIO156 ZTXx il pn bkiz2 quicksbark de 192 168 0 4 D IL BE DIS Di4 zTx L INLINE O 0 Ffl pn ibs28 192 188 0 5 gM IMTERBLIS 0 0 ge IMTERBLIS 0 0 LInconnecked Figure 4 38 Bus configuration with read in PROFINET IO devices The settings can also be checked in the Head PROFINET window All PROFINET IO devices should now have a PROFINET device name The IP parameters are assigned later 4 32 PHOENIX CONTACT 7127 en 03 Sequence for creating a project 4 18 5 Subsequent naming of a PROFINET IO device If a device is displayed in the list without a device name assign the PROFINET device name to this device e Select the device in the bus configuration e Inthe Device Details window switch to the PROFINET Stationnames tab e Select the device with no name Device Details i Bus Structure a Quickstart HB ILC 390 PN 2 5 16 192 158 0 2 12 quickstart de 192 168 0 4 IPROFIMET Stationnames lA Resource STD RES 0 il pn bk 12 guickstart de Address 19215804 H PROFIMET a pp i ib dia2 quckstart de 192 168 0 3 Device Type IL PN BK DIS DD4 2TX Subnet Mask 255 255 255 0 0 ILE PN 24 DI 16 DIO15 2TX Default Gateway FZ 1 DIO16 ILE PN 24 DI 16 DIO15 2TX E 20116 ILE PN 24 DI 16 DIO18 2TX Available on Network E il pn bk12 quickstart de 192 1
78. HOENIX CONTACT 7 5 PC Worx 7 6 PHOENIX CONTACT 7 8 Creating the program To program the example program proceed as described in Example program on page 8 1 e Set variable VO to initial value 1 This set bit is then rotated to the left during program processing Itis now assumed that you have created the program If you skip this point this may result in deviations 7 9 Compiling after creating the program See also Compiling after creating the program on page 4 17 e Select the Build Make command 7 10 Assigning process data See also Generating variables and assigning process data on page 4 18 Switch to the process data assignment workspace to assign the variables to the process data Select the controller in the top right window The standard configuration is then displayed in the top left window Symbols Variables In the top left window Symbols Variables select the standard resource STD RES in the example In the top right window select the device for which you would like to link the process data to variables IB IL 24 DO 16 in Figure 7 4 Select the process data item to be linked DO16 in Figure 7 4 Variables are created when the program is created Using drag amp drop link the selected variable to one of the variables on the left hand side VO in Figure 7 4 7127 en 03 Example project for a simulation with processor type IPC controllers Symbols ariable
79. IO16 2Ts c BER il pn bk24 quickstart de 182 168 0 5 cL PN BK DIS DO 2TX 1 IL PN BE DIS DO 2TX 327868 Interface 7 32769 Port 1 7 32770 Port 2 m L INLINE G D ES Fl pn ibs25 quickstart de 192 168 0 6 gfe INTERBUS 0 0 gfe INTERBLIS O D 24 Unconnected Figure 6 3 Bus configuration with read in PROFINET IO devices 7127_en_03 Example project for a system consisting of PROFINET IO and INTERBUS 6 10 Checking modifying the PROFINET settings for PROFINET IO devices See also Checking modifying the settings for PROFINET IO devices on page 4 34 When reading in the PROFINET settings of the relevant PROFINET IO devices are imported with default values Check these settings and modify them if necessary 7127 03 Make sure you are in the bus configuration workspace In the Bus Structure window select the PROFINET IO device Under Device Details select the PROFINET Settings tab Check the PROFINET settings and modify them if necessary PHOENIX CONTACT 6 9 PC Worx 6 11 Transferring PROFINET device names and IP settings to PROFINET IO devices See also Transferring PROFINET device names and IP settings to PROFINET IO devices on page 4 35 Before a PROFINET IO device can be operated in a PROFINET IO network the PROFINET device name and IP address configured in PC WorX must also be made known to the device itself e Make sure that the PROFINET IO control
80. MP TFTP Configuration menu e Activate the BootP Server active checkbox e Switch to the bus configuration workspace Select the controller node e g ILC 390 PN 2TX IB Select the IP Settings tab in the Device Details window Enter the MAC address of the controller This can be found on a label on the device It starts with 00 A0 45 Reset the controller The controller is temporarily assigned the IP address which is specified in the project for the controller e Select the Extended Settings tab in the Device Details window The specified IP parameters are displayed under Manual definition of the TCP IP settings e Confirm the displayed IP parameters or your modifications via Send The IP address is now permanently stored on the controller parameterization memory 6 8 Setting the communication path See also Setting the communication path on page 4 26 For a controller that supports Ethernet e g ILC 350 PN ILC 390 PN 2TX IB RFC 4xx the communication path is automatically set to Ethernet by default with the IP address ofthe PROFINET IO controller specified under IP Settings If you would like to send your project to the controller via this Ethernet connection the communication path does not have to be set If not using this path please proceed as described in Setting the communication path on page 4 26 PHOENIX CONTACT 6 7 PC Worx 6 8 fa PHOENIX CONTACT 6 9 Re
81. OPC Server To set variables in the test client e g to test the connection proceed as follows e Select the variable to be set and then click on the Write item button Ir PhoenixContact AX Server 21 Phoenix Contact OPC Test Client File Server Group Item View Help vT BOOL 0 vT BOOL 0 vT BOOL Write value to selected item Figure C 11 OPC variables and Write item button e Inthe Write Value window enter the required value in the example IN2 1 BOOL Write Item Value Asynchronous Cancel Figure C 12 variable Specifying the value e Confirm your entry with The result is displayed in the Value field PHOENIX CONTACT 5 PC Worx C 6 C2 WebVisit The WebVisit software is used to visualize the global variables of the Inline Controller used under PC Worx WebVisit is a software tool used to generate web pages The software runtime component is a web server which is stored in PC WorX The variable values are actually visualized via a Java compatible standard browser To visualize variables from your PC WorX project in WebVisit activate the PDD checkbox Inthe Variable Properties window Figure C 13 Orinthe variables worksheet Figure C 14 Variable Properties Mame Niveau m Data Type BOOL v Usage DETAN Initial value 120 address Description Figure C 13 Definition scope Local C Global Local Variable Grou
82. Phoenix Contact 3 CatalogFiles160 3 CatalogFilesExpress160 CPX amp ETHERNET C3 Phoenix Contact Universal FDT INTERBUS 5 Phoenix Contact C3 Universal 2 PROF Inet 73 Festo C3 Phoenix Contact C SERCOS 23 Phoenix Contact Universal Figure A 15 Directory for the device description files e Confirm your selection The Message Window indicates whether the device has been imported successfully A 8 2 Device description files for Inline Controllers If you have used the suggested standard installation the device description files together with all configuration options for Inline Controllers are located in directory C Documents and Settings All Users Shared Documents FDCML10WMNTER BUS Phoenix Contact modification Folders x Name s S 3 Shared Documents lc 370 eth 2tx ib m slave pd 112mcevO1 4 6 Config ilc 370 eth 2tx ib m slave pd 128mcev01 4 6 Diag Cic 370 eth 2tx ib m slave pd 144 01 4 6 Diag NetScan Cic 370 eth 2tx ib m slave pd 160mcevO1 4 6 10 Cic 370 eth 2tx ib m slave pd 192mcevO1 4 6 3 Axioline ilc_370_eth_2tx ib_m_slave_pd_256mcev01_4 6 3 CatalogFiles160 Cic 370 eth 2tx ib m slave pd 384mcevO1 4 6 CatalogFilesExpress160 370 eth 2tx ib m slave pd 416mcev01 4 6 amp C3 CPX Eje 370 eth 2tx ib m slave pd 512 01 4 6 ETHERNET ilc 370 eth 2t
83. Project With Device Description command The Select Device window that opens lists the modules whose device description corresponds to that of the connected devices e Select the device that is actually connected to the INTERBUS system and repeat this step until all the devices are linked to their device description According to the example the following I O modules are connected IB IL 24 DO 16 IB IL 24 DO 8 and IB IL 24 DI 8 e Disconnect the link to the controller by selecting Offline under Selected Control System in the Connected Bus window Bus Structure A Fi Quickstart Na ILC 390 PN 2 1 152 158 0 2 Re Resource R STD RES ILC380PN ix PROFIMET S INTERBUS 0 0 IE IL 24 DO 160 1 IBIL2Z4 DO 80 2 IB IL 240190 3 Unconnected Figure 5 3 Complete bus configuration for the example project 5 9 Compiling after completing the bus topology See also Compiling after completing the bus topology on page 4 16 e Select the Build Make command 5 10 Creating the program To program the example program proceed as described in Example program on page 8 1 e Set variable VO to initial value 1 This set bit is then rotated to the left during program processing Itis now assumed that you have created the program If you skip this point this may result in deviations 5 6 PHOENIX CONTACT 7127 en 03 7127_en_03 Example project for an INTERBUS system 5 11 Compiling after comp
84. R GLOBAL Maintenance required cw STD RES ILC330PN PNIO MAINTENANCE DEMANDED BOOL VAR GLOBAL Maintenance demanded zm Tasks 85 FORCE SYsFAIL BOOL VAR GLOBAL Drive Sysfail amp p STD TSK DEFAULT coP STATUS REG RT ERR BOOL VAR GLOBAL Runtime error control processor amp p Main Main DIAG STATUS REG FAT ERR BOOL VAR GLOBAL Fatal error control processor E3 COP STATUS REG WARN BOOL VAR GLOBAL Warning control processor 43 Global Variables coP pi4c STATUS REG PON BOOL VAR GLOBAL Power on control processor ID Configuration coP DiAG STATUS REG FC RUN BOOL VAR GLOBAL Runtime system RUN coP Di c STATUS REG FC STOP BOOL VAR GLOBAL Runtime system STOP STATUS REG FC HALT BOOL VAR GLOBAL Runtime system HALT lt gt lt gt H Project E POUs 2 Libraries Hardware Wa instances Global Vari Figure B 1 PNIO CONFIG STATUS system variable The variable is set if the PROFINET IO controller has been initialized correctly No desired configuration has been loaded by PC WorX yet Connection establishment to the devices has been completed The variable is set if the desired configuration for the PROFINET IO controller has been loaded In this state the PROFINET IO controller attempts to establish a connection cyclically to all devices in the desired configuration under the PROFINET icon In this way it attempts to find each device with t
85. Server and WebVisit on page C 1 7127 en 03 PHOENIX CONTACT 3 19 PC Worx FDT Group Internet 3 20 PHOENIX CONTACT 3 10 FDT Field Device Tool workspace 3 10 1 Introduction FDT Field Device Tool is the name of the software specification that standardizes the fieldbus independent configuration parameterization and diagnostics of devices in an automation network To this end the device manufacturer provides device specific drivers and user interfaces known as DTMs Device Type Managers The DTM of a device or a device group contains for example a view of selected data from the device description and a device specific user interface Using the DTM a device is integrated into the automation network via an FDT framework application also known as FDT container software e g PC Worx Phoenix Contact is a member of the FDT Group www fdtgroup org Various DTMs are available from Phoenix Contact some of which are certified by the FDT Group Device specific DTMs which are not included in the DTM library installed as part of the AUTOMATIONWORX Software Suite can be downloaded at www phoenixcontact net catalog The latest DTM libraries are available at www automationxplorer phoenixcontact com For DTMs for devices from other manufacturers please contact the relevant manufacturer 3 10 2 General PC WorX software is an FDT framework application for integrating DTMs Once DTM support has been activated for PC
86. Sim simulation I O view Expert mode 4 44 PHOENIX CONTACT 7127 en 03 4 27 Operation 4 27 1 e Select STD TSK DEFAULT Sequence for creating a project Setting the task properties If no settings have been made for the task a default task is used If necessary change the properties of the task in the example below a default task is changed to a cyclic task e Switch to the IEC programming workspace e Inthe context menu select the Properties menu item Project Tree Window 1 Sy Project C Documents and Settingespypm 7 D esl _ Libraries Sy Data Types flag types Sy Logical POUs a Main i MainT Maint Ei Main Dx Physical Hardware zm STD ARM L 40 5 9 STD RES ILC380PN Dx Tasks z n S10_TSK DEFAULT 5 5 Main Main Insert Mairi 22 Delete Configuration jp Cut BF Expand All Ua Figure 4 57 ri Settings Properties Standard task Properties ENTF STRGA STRG HC e Under type select Cyclic This selects a cyclic task Mame Task Type DEFAULT EFALILT CYCLIC EVENT STSTEM x Standard task Cyclic type Figure 4 58 7127_en_03 PHOENIX CONTACT 4 45 PC Worx e Apply your setting with Apply e Inthe standard task context menu select the Settings menu item see Figure 4 57 on page 4 45 e Change the watchdog time setting e g to 1000 ms
87. TACT 7127 en 03 Sequence for creating a project 4 Sequence for creating a project 7127_en_03 This section describes the general procedure for creating a project The aim of this section is to provide an overview of the various options available for achieving a particular objective and to explain some points in detail that are only referred to briefly in later sections The aim is not to create a comprehensive project or to have an operational project at the end of the section If you create a project using the description in this section please note that you must adapt the explanations for your project If you have little or no experience in creating projects please proceed as described in Sections 5 6 or 7 Each of these sections provides a brief description of a specific project creation The various sections focus on the following topics Section 5 Example project for an INTERBUS system Section 6 Example project for a system consisting of PROFINET IO and INTERBUS Section 7 Example project for a simulation with processor type IPC controllers The sections are labeled The symbol next to the heading indicates the applicable versions B INTERBUS project PN PROFINET project sin Simulation project PHOENIX CONTACT 4 1 PC Worx General No Create new project Specify project information Yes Set communication path Check modify IP settings for controller Y
88. TD Figure 4 61 Variables in debug mode System variables of PROFINET IO devices 4 47 PC Worx The program status of a POU is displayed by opening the program worksheet in Figure 4 62 under Main in the Project Tree Window or under Main Main on the tab in the workspace Sy Project C Documents and Settingsspypm 7 D esl C Libraries a Data Types sys flag types 5 6 Logical POUs 8 Main d MainT Main 3 Main 5 8 Physical Hardware cm STD ARM L 40 c STD RES ILC390PN 5 83 Tasks 1 STD TSK DEFAULT Main Main Global Variables IQ Configuration IN2 IN3 gt lt lt Main Main lt eH VO 16 0000 vo 16 0000 UT2 lt Figure 4 62 Variables in debug mode Program variables The status of all global variables is displayed under Global Variables in the Project Tree Window i Project Tres Windom EB Name Online vate Type Usage Description Project E Default Libraries TRUE BOOL VAR GLOBAL Data Types FALSE BOOL VAR GLOBAL ge sys flag types our2 FALSE VAR GLOBAL Sal Logical POUs jom TRUE BOOL VAR GLOBAL 8 8 Main TRUE BOOL GLOBAL 5 System Variables Main __ PLCMODE_ON FALSE BOOL GLOBAL PLC status ON _ 1 Main PLCMODE RUN TRUE BOOL VAR_GLOBAL status
89. TE CONTACTRON DTM IFS 3 23 FDT Container Automation lt plorer OK FDT Container Interface Conf 28771 K Microsoft NET Framework 1 1 OK Microsoft NET Framework 2 0 SP2 Microsoft Windows Installer 3 1 Destination Folder C Program Files Phoenix Contact Browse Space Required on C 99284 K Space Available on C 35125676 K Disk Space lt Back Cancel Figure 3 29 CONTACTRON DTM Selection for PC WorX Follow the instructions of the installation wizard 7127 en 03 PHOENIX CONTACT 3 23 PC Worx 3 24 PHOENIX CONTACT 3 10 4 Creating a project and integrating DTMs PC WorX The next time PC WorX is started a window appears indicating the progress of the search for new installed DTMs in the registry Updating DTM Catalog Found DTM EMMDtm Dtm Figure 3 30 Search progress e Create a new project with the controller used here ILC 150 ETH via the File New Project menu e Save the project via File Project Save Project As Zip Project As here Quickstart_PCW_IFS_MA for example e To integrate the detected DTMs into the device catalog select the Import from DTM Catalog menu item Device Catalog Za 9 Festo OR Universal Import Device Ctrl I Import GSD File Create new INTERBUS Device Description Import from DTM Catalog Create Catalog Import Catalog View as Grid Ctrl G All Edit Catalog Representation Ct
90. TX B 8 Fl pn ibs14 quickstart de 192 168 0 5 ci gf INTERBUS 0 0 FLS IB M12 018 M121 0 FLS IB M12 DO 8 M12 2A 2 0 Pe INTERBUS 0 0 4 Unconnected 5 ymbols ariables 8 STD_CNF ARM L 40 5 88 STD RES ILC390PN Default System Variables 5 0 STD_TSK DEFAULT O Main Main Symbol Variable Data Type Process Data Item Device Process Data Item I Q Data Type Byte Bit Address Symbol BIL24DI4 MEO 2 11 1 FLSIBM12DO08M12 242 0 OUT1 Q BOOL 0 0 BOOL FLSIBM12DI8M121 0 IN3 FLSIBMI2DO8MI12 2A2 0 OUT2 Q BOOL 0 1 BOOL FLS IB M12 DO 8 M12 2A 2 0 V OUT3 FLS IB M12 DO 8 M12 242 0 OUTS Q BOOL 0 2 STD_CNF BOOL IB IL 24 DO 4 ME 0 1 11 4 FLS IB M12 DO 8 M12 2A2 0 OUT4 Q BOOL 0 3 FLS IB M12 DO 8 M12 2A2 0 OUTS 9 BOOL 0 4 FLS IB M12 DO 8 M12 242 0 OLIT6 Q BOOL 0 5 FLS IB M12 DO 8 M12 2A 2 0 OUT Q BOOL 0 6 FLS IB M12 DO 8 M12 2A2 0 OUTS Q BOOL 0 7 FLS IB M12 DO 8 M12 2A2 0 8 Q BYTE 0 0 5I 6 n m E Figure 4 24 All used process data assigned to variables System variables e g ONBOARD_INPUT_BIT10 are not displayed in this process data view 7127 en 03 PHOENIX CONTACT 4 21 PC Worx 4 22 gi m PHOENIX CONTACT 4 14 Setting the communication path EasySim simulation At present this function is only available for processor type IPC controllers RFC 4xx and S MAX 4xx Select the EasySim simulation with thi
91. a 4 28 4 18 Reading in and importing PROFINET IO devices 4 29 4 18 1 Reading in PROFINET IO devices 2 4 29 4 18 2 Importing PROFINET IO devices into the project 4 31 4 18 3 Naming PROFINET IO devices without a PROFINET device name 4 31 4 18 4 Bus configuration with read in PROFINET IO devices 4 32 4 18 5 Subsequent naming of a PROFINET IO device 4 33 4 19 Checking modifying the PROFINET settings for PROFINET IO devices 4 34 4 20 Transferring PROFINET device names and IP settings to PROFINET IO eee 4 35 421 Reading M INTERBUS iiie Rue 4 36 4 22 Compiling after reading in the bus 4 39 423 CreatihG The DrOGI AN E 4 39 PHOENIX CONTACT 7127_en_03 Table of contents 4 24 Compiling after creating the 4 39 425 ASSIGNING Process Aala 4 39 4 26 Compiling and sending a project and performing a cold restart 4 40 4 26 1 X Compiling 4 40 426 2 SONGING ADO EC te onc Na em beo
92. ables can be monitored online in debug mode e Activate debug mode e Switch to the IEC programming workspace e Switch to the window that provides the best display of the required information The MainV window has been selected for the description below e Arrange the screen display so that the MainV and EasySim I O View windows can be seen eelere 4 Japo fore 5 43 Project C Documents and Settings pypmt C Libraries 51 FALSE BOOL EXTERNAL E IAAI 8 43 Data Types 15000 TME VAR 1500 O OODI E sys flag types jour FALSE BOOL VAR EXTERNAL E Logical POUs BE 0000 VAR eg Man 1680001 WORD EXTERNAL gyssmiy MainT fina FALSE BOOL EXTERNAL E HI Main fins FALSE BOOL EXTERNAL AIA ol im t 4 OUT2 FALSE BOOL VAR EXTERNAL E ipsical Hardware 1 TP VAR lt 111 lt 2 Dae EasySim 1 nmm mm f uuu eoram Ecce ID sid Terminal Figure 7 13 Program output state In the program output state 51 FALSE all LEDs are off and variable VO is set to initial value 1 16220001 7 12 PHOENIX CONTACT 7127 en 03 Example project for a simulation with processor type IPC controllers In I O view click on the green LED for input S1 The following actions are performed see Figure 7 14 on page 7 13 Variable S1
93. ading in and importing PROFINET IO devices See also Reading in and importing PROFINET IO devices on page 4 29 e sure you are in the bus configuration workspace e nthe Bus Structure window select the PROFINET node for the controller e Open the context menu and select the Read PROFINET menu item All the connected PROFINET IO devices are displayed When reading in the device name and the IP parameters are imported for each device if present e Select the devices that are to be included in your project e Click on Insert to include the selected PROFINET IO devices in your project If a PROFINET device name does not yet exist for a device a name should be assigned at this point e Activate the Name Device checkbox e Check the displayed PROFINET device name see also DNS PROFINET Device Name on page 4 10 e Assign the name to the relevant device e Confirm the display or your entry with e Click Close to close the Read PROFINET dialog box The PROFINET structure is displayed in the Bus Structure window Bus Structure A E QuicksbarE Nl ILC 390 PN 2zTX IB 192 158 0 2 Fe Resource R STD RES ILC390PN 4 PROFINET Es Fl switch mcs 16tx quickstart de 192 168 0 3 EB DFL SWITCH MCS 16T Eg 1 Management agent 8 2 Ports il ilb dio23 quickstart de 192 168 0 4 LH c ILB PN 24 DI 16 DIO16 2T5 p 1 DIO16 ILE PM 24 DI 16 DIO16 2T5 LH 2 DI156 ILE PN 24 DI 16 D
94. ample project for a system consisting of PROFINET IO and INTERBUS 6 12 Reading in INTERBUS See also Reading in INTERBUS on page 4 36 The process for reading in INTERBUS modules that are connected to a PROFINET IO controller or a PROFINET IO device is the same PROFINET IO controller After the communication path to the PROFINET IO controller has been set the INTERBUS devices connected to the controller can be read in PROFINET IO device After device names and IP parameters for the PROFINET IO devices have been assigned the PROFINET IO devices connected to the INTERBUS devices can be read in e Select the Connected Bus command from the View menu to read in the connected INTERBUS system e Select one of the controllers displayed in the Connected Bus window e Open the context menu and select the Import to Project With Device Description command The Select Device window that opens lists the modules whose device description corresponds to that of the connected devices e Select the device that is actually connected to the INTERBUS system and repeat this step until all the devices are linked to their device description e Selectallthe controllers that are connected to the INTERBUS devices These include the Inline Controller as well as all the PROFINET IO devices displayed in the Connected Bus window e Disconnect the link to the controller by selecting Offline under Selected Control System in the Connected
95. ata Blind out Device Deactivate Bus Edit Device Representation Cbtrl E Prink Refresh view Figure 4 33 Reading in PROFINET All the connected PROFINET IO devices are displayed When reading in the device name and the IP parameters are imported for each device if present e Select the devices that are to be included in your project If your PROFINET IO controller already contains a project a different name can be specified for the controller in the Read PROFINET window from the one assigned in the current project If you are sure you are communicating with the right controller this will not have any adverse effects The PROFINET IO devices displayed are connected to the controller regardless of its name The current name is also transmitted when the current project is sent to the controller 7127 en 03 PHOENIX CONTACT 4 29 PC Worx Read PROFINET Selected PROFINET Controller ilc 330 pn1 IP Address 132 158 0 2 Device Type ILC 380 2TX B Subnet Mask 255 255 255 0 Default Gateway Available on Network Subnet Mask IDD FL SWITCH MCS 167 ILC 390 PN 2T IB IOC ILE PM 24 DIO16 2T i pri bk19 PN BK DI8 004 2T Filter C unnamed not in Project Figure 4 34 Connected and selected PROFINET IO devices for the project PROFINET device names and IP addresses are already present
96. ate In many cases a machine system can no longer be operated in the event of a PROFINET IO device failure This is normal in modern INTERBUS systems where neither bus couplers nor isolated disconnection are used In the example system a PROFINET IO device failure does not affect the operation of all the other PROFINET IO devices If you would like to set all the outputs to a defined state in the event of an error the PNIO FORCE FAILSAFE system variable can be used for this It can be found under Global Variables in the IEC programming workspace CONFIG STATUS WO VAR GLOBAL Current configuration status of the context manager CONFIG STATUS READY BOOL GLOBAL Context manager active PNIO_CONFIG_STATUS_ACTIVE BOOL vAR GLOBAL Communication started PNIO_CONFIG_STATUS_CFG_FAULT YAR_GLOBAL Configuration error iPro er BOOL Missing connection to a configured PROFINET device SYSTEM SF ROO VAR GI Diannnstic alarm for a confinured PROFINFT devine Figure B 5 PNIO_FORCE_FAILSAFE system variable lw If the variable is set all the PROFINET IO devices output zero values or defined substitute values the substitute values are currently set to 0 by default The corresponding inputs are set to zero 7127 en 03 OPC Server WebVisit AX OPC Server and WebVisit 7127_en_03 C1 AX OPC Server For informat
97. ated list contains the PROFINET IO devices together with their PROFINET device names and the IP parameters Available on Network Mame Type MAC Address IP Address Subnet Mask fl switch mes 1 ID FL SWITCH MCS TBTX 0 0 45 05 0 54 192 158 0 3 255 255 255 0 ilb dio23 quickstart de ID ILE PN 24 0116 DIO T5 2T 0 0 45 02 15 192 168 0 4 2552552550 il pr bk24 quickstart de OD IL PN BK DIS 004 2T 00 40 45 0450 192 168 0 5 255 255 255 0 fl pn ibs25 quickstart de ID FL PNAIBS OAS OFT 192 169 0 6 255 255 255 0 Filter C unnamed L not in Project same Type Figure 6 12 All devices with PROFINET device names and IP parameters 7127 en 03 PHOENIX CONTACT 6 19 PC Worx 6 20 6 19 3 2 Option 2 IP parameter assignment without project on the PROFINET IO controller This option is specifically designed to read in INTERBUS modules that are connected to a PROFINET IO device without first sending a project to the PROFINET IO controller This option only works under the following conditions 1 There is no project on the PROFINET IO controller i e the PROFINET IO controller did not yet establish a connection to the PROFINET IO devices Or 2 There is no connection between the PROFINET IO controller and the PROFINET IO devices Ethernet cable not plugged in or no supply voltage at the PROFINET IO controller In each case the BF LED must flash on each of the PROFINET IO devices If the BF LE
98. ations This PC WorX version can be installed parallel to an existing earlier version 2 2 AUTOMATIONWORX Software Suite PC WorX is part of the AUTOMATIONWORX Software Suite The AUTOMATIONWORX Software Suite includes the following programs Config Easy configuration and startup of INTERBUS networks Diag User friendly network diagnostics during startup and operation Diag NetScan User friendly monitoring of multiple INTERBUS networks PC Worx Uniform IEC 61131 programming environment for all Phoenix Contact controllers PC WorX Express Easy to use version of the PC WorX software tool designed to provide a more friendly introduction to the world of IEC 61131 programming using controller class 100 ILC 1xx from Phoenix Contact OPC Server Software used for data exchange between distributed INTERBUS networks and visualization systems WebVisit Tool for creating web pages for web based operator panels from Phoenix Contact The desired programs can be selected individually or simultaneously for installation Diag should only be selected if you wish to use it independently of PC WorX When installing PC Worx Diag is installed as part of PC Worx When one of the software suite programs is started for the first time it runs in demo mode with limited resources A registration code is required to enable the full version You will receive the registration code when a full version of the relevant program is purchased
99. bers Upload project File All bus segment and position numbers Create DNS PROFIMNET Device Names All IP Addresses Exchange Data Subnet Masks and Standard Gateways Document Webwork All DS PROFIMET Device Mames Edit Device Representation Print Refresh view F5 Figure 6 10 Renumbering devices In this example the newly specified names e g il ilb dio27 are extended to include the Domain Postfix quickstart de specified in the project node This is the complete PROFINET device name e f necessary the IP addresses can also be renumbered e g to view the IP addresses in the bus configuration in ascending order Bus Structure a Device Details Ouickstart_ il ilb diaz3 quickstark de 192 168 0 4 PROFINET Settings Na ILC 390 PM 2 192 158 0 2 SR Resource R STD RES ILC390PN 3 228 PROFINET A E Fl switch mcs 18bx quickstark de 192 168 0 3 nu MFL SWITCH MCS 16Tx ES 1 Management agent FZ 1 DIO16 ILB PN 24 DI 16 DIO16 2TXx cA 2 DI15 ILE PM 24 DI 16 DIO15 2TX 1 24 quickstart de 192 168 0 5 Fl pn ibs25 quickstart de 192 168 0 6 amp INTERBUS 0 0 ES Unconnected Station Mame Device Name Module Equipment IDE Default Gateway 000000000002 E PROFINET Settings E PROFINET Stationnames 4 Bus interfaces Data sheet Figure 6 11 Renumbering devices PROFINET device names and IP addresses 6 18 PHOENIX CONTACT
100. case of configuration differences Log connection state Drive BF Ersatzwertverhalten Eing nge Verbindungsaufbau Anlauf Node ID 192 168 0 4 255 255 255 0 auf Null setzen es es PROFINET Settings PROFINET Stationnames 4 Bus interfaces Data sheet Figure 4 10 PROFINET settings for the ILB PN 24 DI16 DIO16 2TX The PROFINET settings comprise DNS PROFINET Device This name is the unique identification for the PROFINET IO device in the network It must Name be known to the PROFINET IO device before it can be used in the network PC WorX automatically ensures that each device is assigned a PROFINET device name that is unique throughout the entire project The Domain Postfix that was set on the project node is attached to this name here quickstart de The PROFINET device name can be freely modified 4 10 PHOENIX CONTACT 7127 en 03 Sequence for creating a project The following characters are permitted for the PROFINET device name Lower case letters without umlauts atoz Numbers 0109 If the naming conventions have not been observed error message is output in the Message Window and the name is rejected Upper case letters without umlauts are permitted however they will be converted to lower case letters internally The entry is therefore not case sensitive The procedure that makes the device name known to the PROFINET IO device is either called assigning devic
101. changes A 2 PHOENIX CONTACT 7127 en 03 Options for modifying a project With the Download Changes function the retain data is only retained if the current project has been saved to the parameterization memory Therefore when sending activate Include Bootproject see Figure A 2 on page A 2 to avoid inconsistencies For additional information about retain handling please refer to Extended retain handling on page A 8 When downloading changes to one or more controllers it is possible to specify whether the system should ensure the realtime behavior of the PLC before starting the download process If the Ensure real time for Download Changes option is activated the system attempts to execute the Download Changes function without violating the realtime conditions of the tasks executed on the controller If the modifications cannot be sent for example because the amount of data to be copied is too large an error message is output In this case disable the Ensure real time option 1 permit realtime violations so that all modifications can be executed NOTE Realtime violations Consider the effects 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 l
102. ction ensures that the window is automatically displayed or hidden according to the cursor position This function is particularly useful for example when working with a small monitor e g a notebook The auto hide function is enabled disabled via the pin icon in the title bar Auto hide is disabled When you move the cursor out of the window the window stays open see A in Figure 3 10 Auto hide is enabled When you move the cursor out of the window the window is minimized To show the window again place the cursor on the minimized window see B in Figure 3 10 UNTITLED 8 g RFC 4705 PN 3T 192 168 0 2 UNTITLED d RFC 4705 PN 3TX 192 168 0 2 Unconnected 5 Unconnected aunyanays sng cA Phoenix Contact Universal Do e3e anag Bo e3e a npo Figure 3 10 Auto hide function PHOENIX CONTACT 3 9 PC Worx 3 10 PHOENIX CONTACT 3 6 Bus Structure window The Bus Structure window is used to display and edit the bus topology of the project 3 6 1 Icons in the Bus Structure window 3 6 1 1 Logical device functions The individual device functions are identified in the Bus Structure window with logical icons The logical icons in the example bus configuration have the following meaning Table 3 2 Icons for logical device functions examples R Resource Controller resource When creating the project using a template the controller resource is
103. daptation of a connected network Please select a device The connected network must be adapted This requires the insertion of an additional device H E FLM BKIB M12 IBS IL 24 RB LK IBS IL 24 IBS IL 24 RB T DI 8 M12 Re gt RB LK 2M gt IBS IL 24 RB T 2M Figure A 5 Selecting the device to adapt the structure The wizard indicates whether the controller was replaced successfully and also displays special information Complex Devices Exchange Wizard Completing the Complex Devices Exchange Wizard Y ou have successfully completed the Wizard The configuration and resource type of the replaced device has changed compared to the original device A new adapter was inserted in order to adapt your existing network to the replaced device Please check whether the corresponding program has changed due to this adaptation Click Finish to close the Wizard Figure A 6 Completing replacement e Confirm replacement with Finish PHOENIX CONTACT 11 PC Worx Adapting the standard configuration resource ar A 12 PHOENIX CONTACT The bus configuration with the new controller is displayed Bus Structure PR1 D NE ILC 370PN2TX IB M 192 168 0 2 Fe Resource R STD RES ILC370PN i PROFINET INTERBUS IBS IL 24 RB T IBS IL 24 BK T U IB IL 24 DO 16 IB IL 24 DO 8 IB IL 24 DI 8 24 Unconnected Figure A 7 Bus confi
104. data proceed as described in Generating variables and assigning process data on page 4 18 7127 en 03 PHOENIX CONTACT 4 39 PC Worx 4 40 PHOENIX CONTACT 4 26 Compiling and sending a project and performing a cold restart 4 26 1 Compiling a project e Tocompile a project proceed as described in Compiling after completing the bus to pology on page 4 16 e Select the Build Make command 4 26 2 Sending a project When working online the project is written to the main memory of the controller When working in simulation mode the project is written to the simulated main memory of the controller e Open the project control dialog box If only the Close button is enabled in the project control dialog box that opens there is no valid connection to the controller In this case check the communication path Figure 4 48 Project control dialog box e Click on Download Another dialog box opens There are various options for sending the project to the controller or the simulated controller 1 Click on Download in the Project area 2 Click on Download in the Bootproject area 3 Activate the Include Bootproject checkbox in the Project area and click on Download in this area In the first option the project is sent However it is not loaded automatically when booting the controller For option 2 and 3 the project is written as a boot project to the parameterization memory of the controll
105. e Then click on Send to transmit the data in the Real time Clock Settings area to the ILC 390 PN Real time Clock Settings Time 14 43 38 2 System Time Date Mittwoch 25 Mai 2011 2 Figure A 1 Realtime clock settings PHOENIX CONTACT A 1 PC WorX A2 Options for modifying a project PC WorX provides two functions that can be used to send project modifications to the controller s and activate them there without having to stop the active PLC Table A 1 Options for modifying a project Options Download changes Online modifications Special Send the entire project also Only send the modifications that features known as Download Changes have been made e g individual function blocks Sequence Debug mode ON An error is detected Debug mode OFF Modify Compile Send via project control dialog Send via the box Build Online Modifications menu Application Extensive modifications Minor modifications A 2 1 Download Changes For details of the controllers for which the Download Changes function is available please refer to the AH EN BASIC DATA ILC RFC FC application note Download Download Project Bootproject Download Changes z y Ensure real time for Download Changes Include Bootproject Include Sources C Include OPC data Download Source User Libraries C Include User Libraries Include Pagelayouts Include Backend Code Figure A 2 Download
106. e names or device naming This procedure is described under Transferring PROFINET device names and IP settings to PROFINET IO devices on page 4 35 IP Address During operation the device can be accessed via the IP address PC WorX selects the address from the area that is set on the project node If the area for the IP addresses is later modified in the project node you will also have to adapt the addresses of the PROFINET IO devices accordingly Specify the IP address according to Transferring PROFINET device names and IP settings to PROFINET IO devices on page 4 35 Subnetmask The subnet mask that was specified on the project node is assigned to each PROFINET IO device as the default subnet mask It can be modified specifically for each individual device Default Gateway If a default gateway is used enter its IP address here The default gateway specified on the project node is automatically assigned to each PROFINET IO device IP Address Subnetmask and Default Gateway represent the IP parameters for a device Reduction ratio input The time in which the inputs outputs of the PROFINET IO device are updated It can be set Reduction ratio output individually for each PROFINET IO device for both data directions The reduction ratio update time directly affects the number of PROFINET IO devices that can be operated via a PROFINET IO controller The default setting displayed in PC WorX is the value that was stored in the FD
107. e retain data is only retained if the current project has been saved to the parameterization memory Therefore when sending activate Include Bootproject see Figure A 2 on page A 2 to avoid inconsistencies For more detailed information please refer to the online help for PC Worx A 8 PHOENIX CONTACT 7127 en 03 Simulation A4 Simulation For processor type IPC controllers RFC 4xx and S MAX 4xx PC WorX can be used to develop a project completely without hardware and to simulate operation If you then install the hardware according to the simulated configuration you can start up your project on the hardware by changing the communication path For an example of the simulation please refer to Section 7 Example project for a simula tion with processor type IPC controllers A5 Comparing projects The Project Compare Projects menu can be used to compare two compiled projects e Open the first of the projects to be compared e Inthe Project menu select the Compare Projects menu item e nthe dialog box that opens open the second of the projects to be compared e Open the project comparison workspace All the differences are displayed in table format in the Project Comparison Result Window 6 Visualization The data generated in PC WorX can be used in other programs e g to visualize processes In order to use the data AX OPC Server and or a visualization software program are required For m
108. eation Creation date 2010 11 05710 28 22 01 00 Last editor Computer name at last project backup MULTIPROG version at last project backup PC WORX version at last project backup Date of last project backup 2011 05 05T14 41 19 01 00 Domain Postfix d quickstart de Template for DNS PROFINETDeviceNamegen First IP Address 192 168 0 2 Last IP Address 192 168 0 254 Subnetmask 255 255 255 0 Default Gateway Use DHCP amp Project Figure 4 5 Assigning the Domain Postfix PN 44 Preparing the PC for communication PHOENIX CONTACT e Inthe Extras PROFINET Configuration menu in PC Worx select the network card for your computer that is to be used for communication PROFINET Communication Ethernet Network Board Please choose Please choose DCP Timeout ntelfRi WiFi Link 5300 AGH SecuRemote Miniport Marvell Yukon S8E8055 PCI E Gigabit Ethernet Controller SecuRemate aeneric Marvell Yukon 88E 8053 based Ethernet Controller SecuRemote Check Paint Virtual Network Adapter Far SecureClient SecuRemote Minip Figure 4 6 Selecting the network card e sure that your PC has been assigned IP parameters that can be used to communicate with the connected network If e g when using PROFINET you are working with a local network that is set by default 192 168 0 2 to 192 168 0 254 the IP parameters for the PC must be 192 168 0 1 wi
109. ec 1640000 Figure 7 7 Status of the inputs and outputs Using the Preset column the states of the input values can be preset click on green LEDs These can be activated using the corresponding buttons Cold restart Perform a cold restart as described in Compiling and sending a project and performing a cold restart on page 4 40 State 5 7 Figure 7 8 Performing a cold restart The cold restart activates the project The simulation can now be started 7127 en 03 PHOENIX CONTACT 7 9 PC Worx 7 10 zi PHOENIX CONTACT 7 13 Operation 7 13 1 Setting the task properties If no settings have been made for the task a default task is used If necessary change the properties of the task in the example below a default task is changed to a cyclic task e Switch to the IEC programming workspace e Select STD_TSK DEFAULT e Inthe context menu select the Properties menu item i Project Tree Window 5 9 Project 2g Libraries Sy Data Types sys flag types Sy Logical POUs amp 8 Main i MainT Main 5 Main 5 88 Physical Hardware 5 89 STD CNF IPC 40 5 8 STD RES RFC430ET 5 8 Tasks 0 1 Main Main ap Maini 4 Global Variables Delete ENTF IQ Configuration lo cut BF Copy STRG C Expand All Properties m Settings CF Project Pous Q Libraries Hardware Ma instances
110. ection 4 Sequence for creating a project Project specific settings nformation and special notes for a project with PROFINET IO and INTERBUS 6 1 Project description In the following an example project is developed using function block diagram FBD In order to obtain the best possible results please use the same identifiers and names as used in this manual Project name Quickstart PN Project hardware Specify the system structure during configuration A system consisting of PROFINET IO and INTERBUS comprises the PROFINET IO controller PROFINET IO devices and INTERBUS devices The example system is shown in Figure 6 1 7127 en 03 PHOENIX CONTACT 6 1 PC Worx PC PC Worx ILC 390 PN 2TX IB FL SWITCH MCS 16TX gggHHEBHE Hoodoo eee 506 nui EE EE 88888888 IB IL AO 1 SF ILB PN 24 DI16 FL IL 24 BK PN PAC DIO16 2TX FL PN IBS 22 222 590000 oojo olo 580458 o glo glon QFOOTOO INTERBUS IB IL 24 DI 4 ME IB IL 24 DO 4 ME FLS IB M12 FLS IB M12 DI 8 M12 DO 8 M12 2A 7127G001 Figure 6 1 Example system Devices in the example system Switch FL SWITCH MCS 16TX PROFINET IO controller ILC 390 PN 2TX IB PROFINET IO device FL IL 24 BK PN PAC ILB PN 24 DI16 DIO16 2TX PROFINET IO device FL PN IBS INTERBUS pr
111. ections must be aborted first To do this proceed as follows e Open the project control dialog box e Click on Stop e Click on Reset All Ethernet connections are aborted and the PROFINET device names can now be assigned e sure you are in the bus configuration workspace e nthe bus configuration select the PROFINET IO device which is to be assigned the name e Select the PROFINET Settings tab in the Device Details window e Change the device name under DNS PROFINET Device Name e Inthe Device Details window select the PROFINET Stationnames tab When the tab is selected the list is updated If you would like to update the list again later click on Refresh In order to limit the search results various options are available No constraints All devices that are available in the network are listed Unnamed Allthose devices that do not yet have a PROFINET device name are listed Not in project All those devices that are not included in the project are listed Same type Only those devices that are the same type as the device selected in the bus configuration are listed PHOENIX CONTACT 6 15 PC Worx il ilb dio23 quickstart de 192 168 0 4 PROFINET Stationnames Quickstart_PN NE ILC 390 PN 2TX IB 192 168 0 2 amp R Resource Selected Device STD RES ILC390PN Name itilb dio23 quickstart de IP Address 192 168 0 4 T m in oci uickstart de 192 168 0 3 Device Type ILB PN 24 DI16
112. ed Settings ad Communication CPU Service Editor Se Bus inter 4 gt Figure 4 31 Serial interface communication path 7127 en 03 PHOENIX CONTACT 4 27 PC Worx BN 4 17 2 Communication via Ethernet A physical Ethernet connection to the controller is required for communication via Ethernet Furthermore the IP address must also be set in the controller e Inthe Device Details window select the Ethernet interface type in the Communication tab e Enter the IP address set in the Inline Controller in the IP Address field or select it from the menu Device Details ILC 390 PN 2TX IB 192 168 0 2 Communication Interface Type i ILC 390 PN 2TX IB Connection Name 4 Communication Path Manual Input Eu v L J Serial interface IP Address 9 12 168 0 2 IMEJ User defined ae ee D EP Station Name 255 255 255 Gateway Address use virtual LAN Resource STD RES Eu IP Settings Extended Settings 46 Communication CPU Service Editor Sf Businterfaces lt Figure 4 32 Ethernet communication path e Click on Test to check the specified communication path and therefore the IP address entered The communication path has been tested successfully if a green status indicator appears in the window If a red status indicator appears check the communication path and settings and change them if necessar
113. en 03 PHOENIX CONTACT 3 13 PC Worx 3 14 PHOENIX CONTACT 3 7 EXCEL Link window The Excel link enables Data to be exported to an Excel file Data to be imported from an Excel file Data that can be exported imported includes EC variables variable connections to signals A Associated data and text The data for all IEC variables can therefore be edited in an Excel worksheet rather than in various dialog boxes in the PC WorX user interface Since IEC variables are edited in this window it is useful to toggle the window on in the process data assignment workspace The following functions can be executed with the Excel link Export existing IEC variables Adjust and import the IEC variables available in an Excel file with a specified format with the IEC variables available in a PC WorX project Settings that specify how you wish to identify devices For more detailed information about the Excel link please refer to the online help for PC WorX To toggle the EXCEL Link window on select the View EXCEL Link menu item 7127 en 03 Helpful information about PC WorX 3 8 Diag window Diag is a diagnostics tool for the seamless diagnostics of INTERBUS and PROFINET When installing PC Worx Diag is installed automatically and is integrated in PC Worx It can be called from PC WorX via the Diag window However Diag can also be started separately via Start All Programs
114. entation Any other agreement shall only apply if expressly confirmed in writing by Phoenix Contact Please note that the supplied documentation is product specific documentation only and that you are responsible for checking the suitability and intended use of the products in your specific application in particular with regard to observing the applicable standards and regulations Although Phoenix Contact makes every effort to ensure that the information content is accurate up to date and state of the art technical inaccuracies and or printing errors in the information cannot be ruled out Phoenix Contact does not offer any guarantees as to the reliability accuracy or completeness of the information All information made available in the technical data is supplied without any accompanying guarantee whether expressly mentioned implied or tacitly assumed This information does not include any guarantees regarding quality does not describe any fair marketable quality and does not make any claims as to quality guarantees or guarantees regarding the suitability for a special purpose Phoenix Contact accepts no liability or responsibility for errors or omissions in the content of the technical documentation in particular data sheets installation instructions manuals etc The aforementioned limitations of liability and exemptions from liability do not apply in so far as liability must be assumed e g according to product liability law in case
115. er Data types Modifying the data type of variables as a result of which the variables are reinitialized Adding deleting data types Modifying data type declarations Modified data variables are initialized Modifying the data area Function Declaring new function block instances blocks user firmware Program Modifying comments the program code A Adding deleting program instances Tasks Modifying task cycle times Adding or deleting tasks Modifying watchdog times for tasks Modifying task properties other than the cycle time and the watchdog time i e task type priority event number SPG assignment stack size Modifying driver parameters in the I O Modifying VAR_CONF groups in the I O configuration configuration configuration Adding deleting an I O group in the Modifying I O group properties other than the I O configuration driver parameters e g addresses the driver itself task assignment etc If a restriction is not observed the system displays an error message in the Message Window Call the help information for the error message by right clicking on the entry in the Message Window and selecting the Message Help context menu item Undo the relevant modification rebuild the project and execute Download Changes again For more detailed information please refer to the online help for PC Worx A 4 PHOENIX CONTACT 7127 en 03 Options for modifying a projec
116. er and is loaded automatically after the controller has been booted Option 3 is shown in Figure 4 49 on page 4 41 7127_en_03 7127_en_03 Sequence for creating a project e Activate the Include Bootproject checkbox in the Project area and click on Download in this area Download Project Bootproject M Delete on Target ___ Delete on Target _ Include Sources C Include OPC data Download Source User Libraries C Include User Libraries nclude Frontend Code Include Pagelayouts C Include Backend Code Download File Figure 4 49 Download dialog box For controllers that support the Download Changes function the Download dialog box appears as shown in Figure 4 50 If the Download Changes function is used activate the Ensure real time for Download Changes and Include Bootproject checkboxes Project Bootproject Download Changes Ensure real time for Download Changes Delete on Target Include Bootproject Include Sources C Include OPC data Download Source User Libraries C Include User Libraries nclude Frontend Code Include Pagelayouts Include Backend Code Hep Figure 4 50 Download dialog box The project is now in the real or simulated main memory of the controller PHOENIX CONTACT 4 41 PC Worx 4 26 21 Sending a project Special notes for PROFINET When sending the project to the controller the desired PROFINET IO configu
117. er for the example project then select a different project template Please note that the following descriptions may differ Always select only one processor type IPC controller 7 4 Specifying project information e Switch to the bus configuration workspace See also Specifying project information on page 4 4 7 e Adapt the project information to your project 7 5 Checking modifying IP settings for the controller See also Checking modifying IP settings for the controller on page 4 7 The IP settings for the controller are made when the project is created NOTE Changes to project information are not applied automatically If any modifications are made to the project information that affect the IP settings for the controller a warning is displayed However the modification is not implemented automatically When a new project is created the default settings are specified under the IP settings Adapt these settings if necessary e Switch to the bus configuration workspace Select the controller node e Inthe Device Details window switch to the IP Settings tab e Check the IP settings and modify them if necessary The IP address that is assigned here for the controller is also implemented as the IP address for the communication path via TCP IP 7 4 PHOENIX CONTACT 7127 en 03 Example project for a simulation with processor type IPC controllers 7 6 Manually inserting INTERBUS devices
118. er had an IP address the IP address of the PROFINET IO controller read via the serial connection is displayed under Extended Settings m Gl Device Details ILC 390 PN 2 1 192 168 0 2 Extended Settings Cu Network settings Network Settings z Ethernet Manual definition of the TCP IP settings T SNMP agent IP Address PROFINET Device 132 168 O 2 M INTERBLIS slave Subnet Mask 255 255 255 Gateway Address Usage of BootP Server Usage of a DHCP Server DMS PROFIMET Device Name Figure 4 29 Read IP address of the PROFINET IO controller e would like to change the network settings specify the new settings e Confirm the display or your entry with Send e Inthe Settings Communication Path dialog box that opens set serial interface COM1 and confirm your setting with OK e Reset the controller in the Activate Network Settings area via Reset Control System The controller needs some time before it is ready to operate again It indicates that it is ready via the RUN LED that is either permanently on or flashing cyclically 7127 en 03 PHOENIX CONTACT 4 25 PC Worx D 4 17 Setting the communication path For a controller that supports Ethernet e g ILC 3xx ETH ILC 350 PN ILC 390 PN 2TX IB RFC 4xx the communication path is automatically set to Ethernet by default with the IP parameters of the controller specified
119. er must be supplied to the modules e Select the Connected Bus command from the View menu to read in the connected INTERBUS system View Project Build Online Extras Message Window STRG F2 a Edit Wizard UMSCHALT F2 Ld Cross References Window ALT F2 LL watch Window ALT F10 amp Logic Analyzer ALT F11 FT Project Comparison Result Window Status Bar Bus Structure Device Details Device Catalog Module Catalog Process Data Assignment Diag Connected Bus EXCEL Link LC Display IMTERBLIS Topology t IEC Programming Ez Bus Configuration pr Process Data Project Comparison amp FOT a Automatic Location On Off Figure 4 43 View Connected Bus command e Select the controller in the Connected Bus window For PROFINET the PROFINET IO devices can also be selected as the controller FL IL 24 BK PN PAC in Figure 4 44 4 36 PHOENIX CONTACT 7127_en_03 7127_en_03 Sequence for creating a project Connected Bus Selected Control System PC WorX Ding FLIL 24 192 158 0 3 FL PN IBS 132 158 0 5 ILC 390 PN 2TX B 192 168 0 2 Key The following colors and characters indicate the result for the comparison of the physically connected bus configuration and the configured bus configuration ID Code and process data length of the devices are different ID Code and process data lengt
120. es System installed Insert IO devices Check modify PROFINET settings for devices Manually insert INTERBUS devices Create program Assign process data Assign IP address for controller Set communication path IO devices inserted Yes Read IO devices Check modify PROFINET settings Assign PROFINET device name IP settings Figure 4 1 Sequence for creating a project 4 2 PHOENIX CONTACT OFFLINE Sequence for creating a project ONLINE INTERBUS devices Yes inserted Read INTERBUS Program created Process data assigned Create program Assign process data Qa Compile and send project and perform cold restart Operation end 7127B018 7127_en_03 Sequence for creating a project 5 4 2 Creating a new project e Select the New Project command from the File menu to create a new project using a template The tree structure and the selection of the controller are now prepared e Select the controller For some controllers there are several templates depending on the hardware and firmware version of the controller used e Confirm your selection with OK New Project General CPX ILC 1 x ILC 2x ILC 3x lt Template ILC 330 ETH Rev gt 01 4 3 50 ILC 330 PN Rev gt 01 4 3 00 ILC 330 PN Rev gt 01 4 6F 73 50 ILC 350 ETH Rev gt 01 4 6F 73 50 ILC 350 ETH M Rev gt 01
121. esented with a connection symbol i Bus Structure 2 Bus Structure UNTITLED UNTITLED ILC 150 ETH 192 168 E ILC 150 ETH 192 168 Resource Resource R STD_RESILC1 R STD_RES ILC fe 3 INTERBUS 0 0 ge INTERBUS 0 0 3t 1 IB IL IFS T 1 IB IL IFS 2 IBIL AI 2 _ 3 2IBILAI2 Unconnected Unconnected Figure 3 36 Connection representation Key His Device not connected Device connected Device actively connected The connection representation in PC WorX only changes to green active connection when another DTM function is selected on this device 7127_en_03 PHOENIX CONTACT 3 27 PC Worx Settings l Diagnostics 4 3 28 3 11 2 DTM functions of the controller To use the DTM functions of the controller connect the controller Bus Structure UNTITLED m OTM view cg ILC 150 ETH 192 168 0 2 Replace Ctrl R Create DNS PROFINET Device Names Exchange Data gt Assistent for configuration of multiple devices Ctrl E5 Options Diagnosis Device List Figure 3 37 DTM functions of the controller The settings for the communication path are displayed and can be modified if required Make sure that the settings in this window match the settings in the Communication tab in the Device Details window of the controller Figure 3 38 i DTM View Com
122. evel of risk before disabling this option For more detailed information about the Download Changes function and ensuring realtime with detailed background information please refer to the online help for PC WorX To determine when the Download Changes function can or cannot be used please refer to the table below Table A 2 Application options and restrictions for Download Changes Can be used after Do not use after POU Modifying the code in existing POUs Using an MSFC POU in the project Using new POU types in a resource In principle modifications in SFC POUS are permitted However they can result in critical PLC states if the Download Changes function is executed when the PLC is running For example the execution of an SFC step chain could be blocked if an active step is deleted These SFC modifications include Modifying a previous subsequent relationship Modifying step properties type Modifying step action relationships Modifying qualifiers action qualifiers In these cases a warning is generated Check the existing level of risk before continuing the process by confirming the warning Variables Adding deleting local and global variables Modifying local and global variables including initial value 7127 en 03 PHOENIX CONTACT 3 PC Worx Table A 2 Application options and restrictions for Download Changes Continued Area Can be used after Do not use aft
123. ffers the following display options which can be selected in the context menu Device context menu Device Properties Call the Device Properties window via the context menu of a device Properties include e g IP Address DNS PROFINET Device Name Device Name Firmware Version etc If required by your application you can adapt the device properties using this dialog box Web Interface Call the web interface of a device in the browser if available e g for a switch via the context menu of the device in question Topology context menu Topology You can update delete and read the Ethernet topology in again manually or in adjustable cycles In addition you can save a desired topology status or reopen a saved one Online View The availability of devices can be shown online Devices in the network that cannot be accessed are indicated Devices that can be accessed are indicated with a green dot devices that cannot be accessed are indicated with a red dot with a white cross Any changes with regard to availability are displayed when the view is refreshed Link Mode In link mode the connections between connected devices can be marked if they are not displayed View The display in the Ethernet Topology window can be enlarged reduced printed and product information can be displayed Magnifier The magnifier function enables you to enlarge reduce the size of sections of the network in order to provide a detailed view of
124. g the communication path e Click on Connect to activate the communication path e Atthe top under View select which general information is to be represented View Settings e Atthe bottom under View select which information is to be represented View Device Representation Device syste aa Display E Station Mame Module Equipment ID Figure 3 18 Example for device representation view e gt View Diagnostic archive All events that have occurred are displayed in list format The display can be adapted to your individual requirements via the filter options at the top Communication Path 1 390 PN 2TX IB 192 View Diagnostic Archive Filter Options System Al v Device Al Message l v Priority All Page 1 1 Message Time 5 System Device Priority Comment 3 Configuration Modification 5 5 2011 11 03 13 AM PROFINET ilc 390 pni Information Program loaded 5 5 2011 11 03 13 AM PLC ile 390 pn1 Information 3 Control system reset 5 5 2011 11 03 13 AM PLC ile 390 pn1 Information Control system reset 5 5 2011 11 03 12 AM PLC ile 390 pn1 Information STOP State 5 5 2011 11 03 11 AM PLC ile 390 pn1 Information Diagnoses Connection establishment Device Data PROFINET IO Device PROFINET IO Controller Connection establishment Connection between IO Controller and IO device successfully established PROFINET IO
125. guration with new controller In the example an INTERBUS controller was replaced with a PROFINET IO controller When comparing the bus topology in Figure A 3 and Figure A 7 you can see that the structure has been adapted accordingly as a result of replacing the controller The dedicated INTERBUS structure has been replaced by a PROFINET structure In this example it would be better to connect the Inline terminals directly to the Inline Controller instead of using a branch terminal and a bus coupler e Inthis case adapt the bus configuration e Move the Inline I O terminals directly to the INTERBUS node of the controller e First delete the bus coupler IBS IL 24 BK T U and then the branch terminal IBS IL 24 RB T Bus Structure 1 NE ILC 370 PN 2TX IB M 192 168 0 2 Fe Resource R STD RES ILC370PN i PROFINET gfe INTERBUS IB IL 24 DO 8 IB IL 24 DO 4 IB IL 24 DI 8 4 Unconnected Figure A 8 Manually adapted bus configuration with new controller In rare cases the following error message may appear in the Message Window following controller replacement Resource Invalid configuration type for resource STD CNF STD RES The current type is IPC 40 However type ARM L 40 is expected if so proceed as follows e nthis case first adapt the configuration then the resource e Switch to the IEC programming workspace e Open the context menu for the configuration and select the Properties
126. h another one e Select the new controller to be used e g ILC 370 PN Complex Devices Exchange Wizard Possible replacement devices for your RFC 450 gt 36 4 5D 5 06 Please select a device ee e eee ee 8 ar wee ee eoar wee ILC 370 PN ILC 370 PN ILC 370 PN ILC 370 PN 2 Rev 2 Rev 2 4 Rev 2 Rev ex ILC 370 PN ILC 370 PN ILC 390 PN ILC 390 PN 2TX4B M Rev AESEFEILESEUEE 2TX B Rev 2TX4B Rev gt 1 4 6F 3 50 Figure A 4 Selecting the new controller e Confirm your selection with Next The wizard replaces the device A 10 PHOENIX CONTACT 7127 en 03 7127_en_03 Replacing a controller hardware replacement Depending on which controllers are replaced with one another the bus topology may have to be adapted In addition it may be necessary to insert additional devices In this example a bus coupler IBS IL 24 BK T U is connected to the RFC 450 ETH IB This cannot be simply connected to the ILC 370 PN 2TX IB In order to continue using the bus coupler a terminal with remote bus branch e g IBS IL 24 RB T must be connected to the ILC 370 PN 2TX IB If this type of adaptation is required a window opens with a list of devices recommended for the adaptation e Select the device that you would like to use for the adaptation Complex Devices Exchange Wizard A
127. h of the devices are identical offline Figure 4 44 Selecting the controller This activates the online operating state and the controller reads in the connected INTERBUS configuration Once the controller has read in the connected INTERBUS system the INTERBUS devices must be imported into the project e Select the controller in the Connected Bus window e Open the context menu and select the Import to Project With Device Description command Selected Control System E FLIL 24 BE PN PAC 192 158 0 3 a JFLiL 2 BK PN PALE fl 1595 4 a with Device Description 2 190 4 Apply Device Segment Without Device Description Update view The following colors and characters Feate Conn indicate the result for the comparison of the physically connected bus configuration and the configured bus configuration Configuration Frame Display Key ID Code and process data length of the devices are different Figure 4 45 Connected Bus window The Select Device window that opens lists the modules whose device description corresponds to that of the connected devices PHOENIX CONTACT 4 37 PC Worx PROFINET IO controller 4 38 PHOENIX CONTACT Select Device Information to the searched device suitable entry for the following component could not be found Please select a device which matches the searched one Name Digital local bus device with Output Ident Code 189 Process
128. he controller This can be found on a label on the device It starts with 00 A0 45 Reset the controller The controller is temporarily assigned the IP address which is specified in the project for the controller e Select the Extended Settings tab in the Device Details window The specified IP parameters are displayed under Manual definition of the TCP IP settings e Confirm the displayed IP parameters or your modifications via Send The IP address is now permanently stored on the controller parameterization memory 5 7 Setting the communication path a See also Setting the communication path on page 4 26 For a controller that supports Ethernet e g ILC xxx ETH ILC 390 PN 2TX IB RFC 4 the communication path is automatically set to Ethernet by default with the IP address of the controller specified under IP Settings If you would like to send your project to the controller via this Ethernet connection the communication path does not have to be set If not using this path please proceed as described in Setting the communication path on page 4 26 7127 en 03 PHOENIX CONTACT 5 5 PC Worx 5 8 Reading in INTERBUS See also Reading in INTERBUS on page 4 36 e Select the Connected Bus command from the View menu to read in the connected INTERBUS system e Select the controller in the Connected Bus window here ILC 390 PN e Open the context menu and select the Import to
129. he corresponding PROFINET device name in the current subnetwork If the connection to a PROFINET IO device has been established successfully the corresponding PNIO DATA VALID process data item is set For inaccessible devices the PROFINET IO controller cyclically attempts to establish a connection approximately every 5 seconds A connection cannot be established e g if the corresponding device is ready but a correct PROFINET device name has not yet been assigned to it This system variable is set if an error occurred when configuring the PROFINET IO controller PHOENIX CONTACT B 1 PC Worx PNIO_DATA_VALID PNIO IS PRIMARY PNIO APPL RUN PNIO NO DIAG 2 PHOENIX CONTACT B2 Status of a PROFINET IO device The status of a PROFINET IO device can be queried using predefined process data Quickstart NE ILC 390 PN 2TX IB 192 168 0 2 Resource R STD RES ILC390PN BH PROFINET E fl switch mcs 16tx quickstart de 192 168 0 3 ER il ilb dio23 quickstart de 192 168 0 4 il pn bk24 quickstart de 192 168 0 5 E INTERBUS Unconnected Process Data Item Byte Bit PNIO_DATA_STATE Device 0 ILB PN 24 DI 16 DIO16 2TX Data Type Addr I 0 ILB PN 24 DI 16 DIO16 2TX PNIO IS PRIMARY I BOOL 0 0 0 ILB PN 24 DI 16 DIO16 2TX PNIO DATA VALID I BOOL 0 2 0 ILB PN 24 DI 16 DIO16 2TX PNIO APPL RUN I BOOL 0 4 0 ILB PN 24 DI 16 DIO16 2TX PNIO MO DIAG
130. he device description file and confirm with Open PC WorX creates an entry for the device in the device catalog This entry is located in directory C Documents and Settings All Users Shared Documents FDCML10 for standard installation The Message Window indicates whether the device has been imported successfully When reading a modular device only the device and not its modules is displayed in the bus configuration Manually insert the modules for these devices To do this proceed as follows e Open the module catalog via View Module Catalog e Select the device modules one at a time from the module catalog and drag and drop them in the lower level below the device entry A 8 4 Creating device description files If a device description file is not available one can be created For this a device description editor is included on the AUTOMATIONWORX Software Suite DVD 7127 en 03 Ethernet topology A9 Ethernet topology PC WorX can be used to automatically detect Ethernet topologies All the Ethernet devices in the project can be displayed with the connections in the Ethernet Topology window For all devices with LLDP functions the connections are displayed automatically with the port number For this there must be an online connection between PC WorX and a complete bus configuration For more detailed information about Ethernet topology view please refer to the online help Ethernet topology view o
131. he modifications are sent automatically to the PLC without interrupting PLC operation i e the modifications can then be seen in online mode To determine when the Online Modifications function can be used please refer to the table below 7127 en 03 PHOENIX CONTACT 5 PC Worx Table A 3 Application options and restrictions for Online Modifications Area Can be used after Do not use after Variables Adding new local and global variables Modifying variable properties Deleting variables which are not used in the Modifying variable initial values initialized CSV file csv variables cannot be modified online Adding global variables which are not on direct inputs and outputs Removing variables from the program worksheet Adding a user defined function block Requirement An instance of this function block has already been declared in a variable worksheet of any POU of the same resource Functions Adding new IEC defined functions Modifying the formal parameters of functions Adding a user defined function Adding new formal parameters Adding a function from a firmware or user library Requirement This function has already been called in any POU of the same resource Function Adding new IEC defined function blocks Modifying the formal parameters of function blocks Adding a user defined function block blocks VAR_INPUT VAR_OUTPUT and Adding a function block from a firmware library VAR OUT or a user
132. hen editing the bus configuration Insert at the same level The device can only be inserted in moved to the same level as existing devices Insert in the lower level The device can only be inserted in moved to a lower level than existing devices Replace The device under the mouse pointer can be replaced by holding down the lt Ctrl gt key and placing the mouse pointer on the existing device Not permitted This icon indicates a mouse pointer position for which actions are not permitted PHOENIX CONTACT 3 11 PC Worx 3 6 1 3 Display of status information In the Bus Structure window some icons which superimpose other graphics are used to display important status information Table 3 4 Icons for displaying status information o The device is hidden or the bus is deactivated e Errors have occurred for the device Warnings have occurred for the device The pin indicates a module that is a fixed component of a device This element cannot be deleted or replaced 3 6 2 Display in the Bus Structure window The display in the Bus Structure window can be adapted to your requirements e Switch to the bus configuration workspace e nthe context menu open a device via the Edit Device Representation menu item Renumber devices Exchange Data Copy Device Ctrl C Cut Ckrl X Blind out Device Chrl ShiFt 0 Deactivate Bus Delete Delete Edit Device Representation Ckrl E Print
133. hown To display or hide a specific toolbar use the Extras Options dialog box When the mouse pointer is placed over an icon without clicking on it a tool tip appears The tool tip displays the name of the current icon In addition a short function description appears in the status bar If tool tips are not displayed this feature can be activated in the Extras Options Toolbars dialog box Icons for selecting the workspace The workspace can be changed via the icons in the toolbar Activate IEC programming workspace m Activate bus configuration workspace Activate process data assignment workspace Activate project comparison workspace Activate FDT Field Device Tool workspace Which windows will actually be displayed depends on which windows have been toggled on see also Windows in the workspaces on page 3 8 The last setting for each work space is saved when the program is closed and restored when it is started again Frequently used icons for compiling and debugging 37H Online modifications Make compile project corresponds to Build Make in the menu bar 52 Rebuild project corresponds to Build Rebuild Project in the menu bar a Switch debug mode on off Display project control dialog box 3 4 PHOENIX CONTACT 7127 en 03 7127_en_03 3 5 Workspaces PC Worx is divided into five workspaces EC programming Busconfiguration Process data assignment
134. in the Device Details window e Select the Simulation interface type e Activate the EasySim simulation by clicking on Apply Gl 7 12 Compiling and sending a project and performing a cold restart a See also Compiling and sending a project and performing a cold restart on page 4 40 e Select the Build Make command Compile project Send project ail e Open the project control dialog box The EasySim simulation is started when the project control dialog box is opened This is shown in the taskbar with the following icon 162 72 12 06 Figure 7 6 EasySim simulation Icon in the taskbar e Click on Download in the project control dialog box e Inthe Download dialog box that opens activate the Ensure real time for Download Changes and Include Bootproject checkboxes in the Project area e Click on Download in the area on the left When sending the project is written to the main memory of the simulated controller e Open I O view ofthe simulation by selecting the corresponding menu item in the context menu for the EasySim icon in the taskbar 7 8 PHOENIX CONTACT 7127 en 03 Example project for a simulation with processor type IPC controllers Only the states of the global variables that have been linked to a physical address inputs outputs as part of process data assignment are displayed in the simulation EasySim 1 Seles nam om cei veas mecs mc c
135. inputs IN2 and INS Output OUT5 of the IB IL 24 DO 8 module responds according to the result of ANDing 7 14 PHOENIX CONTACT 7127 en 03 7127_en_03 Sy Project C Documents and Settings pypmC 28 Libraries 5 39 Data Types 0 E sys flag types 5 6 Logical POUs B8 Main 19 MainT 8 m Physical Hardware EasySim 1 DIETS a Oss 9 E 8 ee Example project for a simulation with processor type IPC controllers VO 16 0020 vo 1640020 BOOL 9elX0 0 9e QX2 0 HAAD 4 BOOL 2 1 BOOL a H OS 3 4 BOOL 96IX0 4 Figure 7 16 ANDing in Main PHOENIX CONTACT 7 15 PC Worx 7 16 al 7 14 Switching from simulation to real hardware Once you have successfully completed the simulation for your program you can switch to your hardware To do this the actual bus configuration must correspond to the simulated bus configuration Stop debug mode To do this click on Debug on off Stop the simulation To do so click on Stop in the project control dialog box Close the project control dialog box Exit the simulation e g via the Exit menu item in the context menu for the simulation icon in the taskbar Switch to the bus configuration workspace In the Device Details window switch to the
136. inserting INTERBUS 7 5 7 7 Compiling after completing the bus 7 5 7 8 Creating fM E Too E 7 6 7 9 Compiling after creating the 7 6 TAO Assigning Process e 7 6 7 11 Setting the communication path 7 8 7 12 Compiling and sending a project and performing a cold restart 7 8 CEOs cT 7 10 7 13 1 Setting the task properties 4 4400000 7 10 7 13 2 Simulation and debug mode 7 12 7 14 Switching from simulation to real 7 16 Example DFO GIA ete rn 8 1 8 1 RM 8 1 8 2 FUNGUOM DIOCKS USE Me 8 2 8 3 8 4 8 4 Setting the initial value es te 8 9 8 5 Additional options for 8 9 PHOENIX CONTACT 7127_en_03 Table of contents A Additional software A 1 A 1 Seting INE FEAMIMES CLOCK du RN xc A 1 A2 Options for modifying a A 2 A
137. ion about using AX OPC Server please refer to the corresponding documentation AX OPC Server includes OPC Configurator for establishing a connection between PC WorX and OPC client e g Visu Test Client for testing the connection AX OPC Server is also installed as a demo version To register your license proceed as follows e Start the OPC Test Client e Inthe taskbar activate the context menu for the OPC Test Client icon About Reactivate OPC Server Info Logging Info Statistics DE 10 58 Figure C 1 Registering the OPC Test Client e Select the Register menu item and enter the registration code C 1 1 Preparatory tasks in PC WorX e in order to use a variable in AX OPC Server activate the OPC checkbox When creating variables in the Variable Properties window Figure C 2 Orin the variables worksheet Figure on page C 2 Variable Properties Name Definition scope OK VD Data Type Local Variable Groups BODL v 11 Default v Usage Global Variable Groups VAR GLOBAL v RETAIN 5 Physical Hardware a STD zl STD RES H Auto 120 address Default E System Variables Initial value Description Show all variables of worksheets Figure C 2 Creating variables for AX OPC Server PHOENIX CONTACT C 1 PC Worx C 2 PHOENIX CONTACT
138. ion of the TCP IP settings Device Details area ILC 390 PM 2T IB 192 168 0 2 Extended Settings Fy Network Settings Network Settings i Ethernet m te device Manual definition of the TOPSIP settings T SNMP agent IP Address PROFINET Device MW C INTERBLIS sl did Subnet Mask 255 255 255 Gateway Address Q Usage of a BootP Server Usage of a DHCP Server DMS PROFIMET Device Name Figure 4 28 IP address of the PROFINET IO controller e Confirm the displayed IP parameters or your modifications via Send The IP address is now permanently stored on the controller memory card 4 24 PHOENIX CONTACT 7127 en 03 Sequence for creating a project 4 16 2 Address assignment with PC Worx via the serial interface If the IP parameters were assigned using the BootP server this section can be skipped e Establish a serial connection between your PC and the controller e Switch to the bus configuration workspace Select the controller node e g ILC 390 PN 2TX IB Select the Communication tab in the Device Details window Set the communication path here serial interface COM1 Click on Test to check the specified communication path The communication path has been tested successfully if a green status indicator appears in the window If ared status indicator appears check the communication path and change it if necessary If the PROFINET IO controll
139. ith the system online Apart from during simulation the following work can only be carried out if a system has been installed and a connection has been established between your PC with PC WorX and the controller 4 16 Assigning the IP address for the controller An IP address must first be assigned to a controller that communicates via Ethernet in order to enable communication For some controllers e g RFC 430 ETH IB the IP address can only be set via the diagnostic display or a special firmware service see user manual for the controller For a number of controllers e g ILC 350 ILC 370 BootP is activated by default upon delivery for assigning the IP address via Ethernet In this case when setting the IP address for the first time a BootP server can be used However the first IP address can also be set manually using the PC WorX software via the serial interface The IP address can be changed later via the serial connection or Ethernet using the PC WorX software Address assignment using PC WorX is described below After assigning the IP parameters PC WorX automatically sets the connection via TCP IP as the communication path to the controller 4 16 1 Address assignment via the PC WorX BootP server Establish an Ethernet connection between your PC and the controller e Inthe menu bar select the Extras BootP SNMP TFTP Configuration menu File View Project Build Online Extras Pagela
140. ive It has 0 of 7 S Interbus Hart Gateway DTM m require OKB on your gt hard drive Figure 3 27 Features in the setup 3 22 PHOENIX CONTACT 7127 en 03 Helpful information about PC WorX 0 Click on the symbol before the entry to change the state of the feature e g IB ILIFS MA DTM E IB IL SGI 1 cAL your hard drive IB IL 5 DTM IB HI This Feature will be installed an local hard drive EB This Feature and all subFeatures will be installed on local hard drive Z Program File Prog This Feature will not be available Figure 3 28 Activating a feature h Confirm your selection with Next i Close the installation wizard by clicking on Install Installing additional device DTMs individually example CONTACTRON DTM Please note that individual DTMs for devices from Phoenix Contact only have to be installed if these devices are not included in the installed DTM library For devices from other manufacturers installation is always required e Save the setup file for the device DTM to be installed onto your e Start setup for the CONTACTRON DTM by executing the setup file e Follow the instructions of the installation wizard e Inthe Required components window select the entry highlighted in Figure 3 29 CONTACTRON DTM SUITE Setup 1 10 2 Required components for CONTACTRON DTM SUITE The choosen components are required to execute the CONTACTRON DTM SUI
141. ject Part Source Type Change Type Source Line Position x Reference Line Position x y POU Main MainV Variable Worksheet Added Row 4 Row 3 8 POU MainMain Code Worksheet Changed Pos 46 10 76 12 Pos 46 10 56 12 Project Libraries Data types Data type worksheet DTisys flag types POUS POU POE Main Configuration C STD_CNF Resource C STD_CNF R STD_RES Task CASTD CNFARASTD RESASTD TSK differences detected 0 errors 0 warnings C bua Eme wanne s Pin Mu For Help press F1 1117 C gt 2GB p B M Figure 3 8 Project comparison workspace FDT workspace 4 PC WORX Quickstart 2 Edit View Project Build Online Extras DEG Quickstart PN 2 New Device ILC 390 PN 2TX B c m ILC 390 PN 2 192 168 0 2 BRR IB IL Al 2 HART PAC Hl wo AB PROFINET CONTACT c Big il ib dio2 192 168 0 4 10 Bl il pn bk 2tx 192 168 0 5 fp INTERBUS IB IL 24 DO 4 ME IB IL AI 2 HART PAC E unconnected FDT Identifier System Number 1 Segment Number 0 Position Number planningEngineer
142. ject in order to detect any errors that may have occurred e When compiling a project for the first time select the Rebuild Project command from the Build menu For subsequent compiling processes the Make command in the Build menu can also be used see also Compiling additional information on page 4 16 28 Rebuild Project STRG F9 Build Cross References Fiz Remove unused variables and FB instances Figure 4 18 Compiling a project e f errors occur when compiling remove the errors and repeat the compiling process until itis completed successfully Error messages must be removed Warning messages do not have to be removed If you are compiling the project but have not yet programmed anything you will receive the Empty worksheet warning message This warning message does not affect the next step and can be ignored The results of the compiling process are displayed in the Message Window together with details of the number of errors and warnings Sending a project Special notes for PROFINET When translating the controller project the PROFINET IO configuration is generated automatically This is also displayed in the Message Window Compiling additional information There are two options for compiling 1 Build Make 2 Build Rebuild Project Use this command to compile an entire project for the first time or after modifying a user library Rebuild Project compiles and links all worksheets E
143. l of the tasks are performed offline without a connection to the system 7127_en_03 Example project for a simulation with processor type IPC controllers Simulation IB Create new project Specify project information Check modify IP settings for controller B Yes System installed Insert IO devices Check modify PROFINET settings for devices Manually insert INTERBUS devices Create program Assign process data Figure 7 2 OFFLINE 9 Yes Set communication path Assign IP address for controller IB Set communication path devices inserted Read lO devices Check modify PROFINET settings Yes Assign PROFINET device name IP settings ONLINE INTERBUS devices inserted Program created Process data assigned IE Create progra Assign process data IB Compile and send project and perform cold restart IB Operation end 7127B019 Sequence for creating the simulation project PHOENIX CONTACT 7 3 7127_en_03 PC Worx 7 3 Creating a new project See also Creating a new project on page 4 3 Select the New Project command from the File menu Select the RFC 430 ETH IB controller and confirm your selection with OK Select the File Save Project As Zip Project As command Enter the project name SIM and save the project If you want to use a different controll
144. le shows the input window for a required device address and a device name If the DTM View window is hidden it can be displayed via the View DTM View menu The name Tag and the device address of the DTM compatible device can be edited View ayo New Device ILC 150 ETH New device IB ILIFS MA ID 221 PD 448 IB IL IF5 MA ID 221 PD 448 W 2 PHOENIX 1 00 2010 04 06 Device Type EEM 3 24DC 50D0AC 164FS planningEngineer Figure 3 34 DTM View window Device address and name for EMM Changes to the default settings for the name and device address must be confirmed with 3 26 7127 03 Display of connected devices Helpful information about PC WorX 3 11 Calling DTM functions Tocall the DTM functions of a device select the DTM Functions item in the context menu right mouse button followed by the desired function zi H 1 IB IL 5 ID 221 PD 4460 1 Renumber devices 8j Unconnected Exchange Data gt Assistent For configuration of multiple devices Ctrl W Process data configuration Copy Device Ctrl C Copy with Subdevi with Subdevices r SH Cur Ctrl x Figure 3 35 Calling DTM functions 3 11 1 General DTM functions Connect Establishes the connection between the DTM and the device Disconnect Disconnects the connection between the DTM and the device Connected devices are repr
145. lectthe controller node e Inthe Device Details window switch to the IP Settings tab e Check the IP settings and modify them if necessary e Ifan IP address has still not been assigned assign one according to Assigning the address for the controller on page 5 5 The IP address that is assigned here for the controller is also implemented as the IP address for the communication path via TCP IP 5 4 PHOENIX CONTACT 7127 en 03 Example project for an INTERBUS system 5 6 Assigning the IP address for the controller See also Assigning the IP address for the controller on page 4 23 An IP address must first be assigned to the controller in order to enable communication For the ILC 390 PN 2TX IB controller BootP is activated by default upon delivery for assigning the IP address via Ethernet In this case when setting the IP address for the first time a BootP server can be used The corresponding procedure is described below For all other options please refer to Assigning the IP address for the controller on page 4 23 Establish an Ethernet connection between your PC and the controller e Inthe menu bar select the Extras BootP SNMP TFTP Configuration menu e Activate the BootP Server active checkbox e Switch to the bus configuration workspace 7 Selectthe controller node e g ILC 390 PN 2TX IB e Select the IP Settings tab in the Device Details window e Enter the MAC address of t
146. ler can establish communication with the PROFINET IO devices e Compile the project send it to the controller and perform a cold restart Proceed as described in Compiling and sending a project and performing a cold restart on page 4 40 During startup the PROFINET controller automatically assigns the IP settings and device parameterizations specified in the project to the PROFINET IO devices e To check the assignment of device names and IP settings select the PROFINET Stationnames tab in the Device Details window The updated list contains the PROFINET IO devices together with their PROFINET device names and the IP parameters When the tab is selected the list is updated If you would like to update the list again later click on Refresh In order to limit the search results various options are available No constraints All devices that are available in the network are listed Unnamed All those devices that do not yet have a PROFINET device name are listed Not in project All those devices that are not included in the project are listed Same type Only those devices that are the same type as the device selected in the bus configuration are listed The BF LED is now off on all PROFINET IO devices The PROFINET network is running For additional information about assigning PROFINET device names and IP addresses please also refer to Additional information on page 6 15 6 10 PHOENIX CONTACT 7127 en 03 Ex
147. leting the program See also Compiling after creating the program on page 4 17 e Select the Build Make command 5 12 Assigning process data See also Generating variables and assigning process data on page 4 18 Switch to the process data assignment workspace to assign the variables to the process data Select the controller in the top right window The standard configuration is then displayed in the top left window Symbols Variables In the top left window Symbols Variables select the standard resource STD RES ILC390PN in the example In the top right window select the device for which you would like to link the process data to variables IB IL 24 DI 8 in Figure 5 4 Select the process data item to be linked 3 1 1 in Figure 5 4 Variables are created when the program is created Using drag amp drop link the selected variable to one of the variables on the left hand side IN3 in Figure 5 4 If you would like to link further process data but no corresponding variables have been created yet select Create Variable in the context menu The created variable is displayed in the bottom left window e Repeat this procedure for all inputs to be evaluated and for all outputs to be controlled PHOENIX CONTACT 5 7 PC Worx Process data assigned The result of the process data assignment process is shown in the figure below Symbols Variables B Quickstart_PN NM Ic 390 PN 2 1 192 168 0 2 Res
148. library Adding new formal parameters Requirement An instance of this function block has already been declared in a variable worksheet of any POU of the same resource See Table A 4 Rules for the specific programming Modifying character strings constants or user languages on page A 7 defined character strings Deleting POUs or libraries Modifying the hardware structure Please note the following when modifying functions and function blocks compiled with Make and sent to the target system In addition online mode must already be active a For online modifications to be possible in the above cases the project must have been A 6 PHOENIX CONTACT 7127 en 03 Options for modifying a project Table A 4 Rules for the specific programming languages Online modification possible after Adding line breaks and blank lines Adding or modifying comments Il L Adding or modifying IL operators Modifying the nesting depth T FBD Modifying existing networks Modifying graphics e g moving lines or function blocks Networks have been modified or added A 5 Modifying existing networks Modifying graphics e g moving lines or function blocks Networks have been modified or added Modifying variables FBD or LD networks which are directly connected Modifying time intervals for time qualifiers Modifying variable names in action blocks Use Make if online modifications cannot be implemented If some of the restricti
149. meters be transferred from this project to the PROFINET IO devices If error messages are displayed and the IP parameters are not applied e Check whether the BF LED is flashing If so Check all Ethernet connections as well as your previous actions If not You cannot assign any IP parameters Either interrupt communication or proceed according to Option 1 IP parameter assignment during PROFINET IO controller startup on page 6 19 PHOENIX CONTACT 7127 en 03 Example project for a simulation with processor type IPC controllers 7 Example project for a simulation with processor type IPC controllers 7127_en_03 l For processor type IPC controllers RFC 4xx and S MAX 4xx PC WorX can be used to simulate a project completely without hardware A program can be created and tested without having to actually connect hardware The EasySim simulation in PC WorX is available for this For more detailed information about the EasySim simulation please refer to the online help for PC WorX 7 1 Project description In the following an example project is developed for the simulation using function block diagram FBD In order to obtain the best possible results please use the same identifiers and names as used in this manual Project name SIM Project hardware Controller RFC 430 ETH IB Bus coupler IBS IL 24 BK modules IB IL 24 DO 16 IB IL 24 DO 8 and IB IL 24 DI 8 PC with
150. mple 3 Bus configuration with bus coupler for connecting a remote bus branch Bus Structure RB 3 E ILC 350 ETH 192 168 0 2 Fe Resource R STD RES ILC350ET a JINTERBUS 0 0 NE IBS IL 24 RB LK 1 0 IBIL24 DO 81 1 IBIL24 DIS81 2 c 185 IL 24 BK RB LK 2 0 3 1 IB IL 24 IB IL 24 DI 4 2 IBS IL 24 BK RB LK i fi eres o IBIL24DI 43 1 IBIL24DI 23 2 Fis 18 mi2 oo a s mi2 4 0 tes st 24 K K 5 0 ST 24 DO 16 4 5 2 24 Unconnected FLS IB M12 DIO 8 8 5 0 5 1 IBS ST 24 IBS ST 24 IBS ST 24 BK LK DO 16 3 DI 16 4 Figure 4 15 Bus configuration with branch terminals 7127A012 Folders in the device catalog where the devices listed in Figure 4 14 and Figure 4 15 can be found ILC 350 ETH ILC3xx PLC IBS IL 24 RB T IBS IL 24 RB LK IL Bus coupler IBS IL 24 BK RB LK IL Bus coupler IB IL 24 D IL I O digital IB IL A IL O analog FLS IB M12 DIO 8 8 FLS I O digital ILB IB 24 DI 32 ILB I O digital IBS ST 24 BK LK ST Bus coupler IBS ST 24 D ST I O digital 7127_en_03 Sequence for creating a project PN 4 9 2 Inserting INTERBUS devices below an INTERBUS proxy e Insert the required INTERBUS devices from the device catalog at the INTERBUS node of the INTERBUS proxy e g FL PN IBS Bus Structure Fi Quickstart_PN NE ILC 390 PN 2TX IB 192 168 0 2 Fe Resource R STD RES ILC390PN H PROFINET Wi Fl il bk12 quickstart de 192 168 0 4
151. myay ILC 150 ETH ILC 150 ETH Lm Phoenix Contact 0172 00 2006 11 27 CO ACI Master Settings 7 Communication Path SEIS nE Serial Port Manual Input v 3 TCP IP Ethernet Localhost IP Address PC Board EE 8 0 2 M Custom C Change Timeout Period Connect sec Receive sec planningE ngineer DTM functions Settings Communication path of the controller Diagnostic information is made available for the communication DTM With regard to DTM functions the same functions as those in Diag are available here This function has been implemented within the DTM and is therefore also available in PC Worx It corresponds to the displays in Diag This diagnostic display can be used in other FDT framework applications such as AutomationXplorer which do not offer diagnostics 7127 en 03 Helpful information about PC WorX IBDiagPlusControl ILC 150 ETH ILC 150 ETH PHCENIX Phoenix Contact 0122 00 2006 11 27 CONTACT Communication Path DTM v View Settings M User Name Password Communication Path O Registry Assignment File Custom ODCP DTM View Device Representation Device Type INTERBUS Devices v Display DeviceNumber Refresh Manual v Status Messages mo Tine Version 2 40 56 Project Name Offline planningE ngineer
152. n Figure 3 11 Helpful information about PC WorX Slot 0 is the device proxy for the PROFINET IO device Slot 1 is the DIO module for the PROFINET IO device Slot 2 is the DI module for the PROFINET IO device Since the modules are fixed components of the PROFINET IO device each one is marked with a pin These elements cannot be deleted or replaced Bus Structure Ra 1 m Quickskark PM Ec ILC 390 PN 2T IB 192 168 0 2 Re Resource R STD RES ILC390PN ix PROFINET gfe INTERBUIS D D Unconnected Bus Structure Aan g Quickstart PN c fi ILC 390 PN 2TX IB 192 168 0 2 SR Resource STD RES ILC390PN SH PROFINET il ilb dio2 quckstart de 192 168 0 3 9 D ILB PN 24 DI 16 DIO16 2TX FQ 1 DIO16 ILB PN 24 DI 16 DIO16 2TX 9 2 0116 ILB PN 24 DI 16 DIO16 2TX g fl pn ibs6 quickstart de 192 168 0 4 E gi INTERBUS 0 0 1 FLS M12 DI 8 121 0 2 5 IB M12 DO 8 M12 242 0 Fl il bk quickstart de 192 168 0 5 SIL Inline 0 0 1 IBIL24 DO 4 MEO 1 2IBIL24 DI 4 ME 0 2 S INTERBUS 0 0 1 IB IL AO 1 SFO 1 83 Unconnected x Overall structure with PROFINET IO devices and INTERBUS devices PROFINET IO controller Figure 3 12 Example for the representation of devices in the bus configuration 3 6 1 2 Validity of actions When editing the bus configuration with the mouse the mouse pointer indicates the validity of your actions Table 3 3 Icons w
153. n set the INTERBUS devices connected to the controller can be read in 7127_en_03 Sequence for creating a project PROFINET IO device After device names and IP parameters for the PROFINET IO devices have been assigned the PROFINET IO devices connected to the INTERBUS devices can be read in e Selectallthe controllers that are connected to the INTERBUS devices These include the Inline Controller as well as all the PROFINET IO devices displayed in the Connected Bus window e Read inthe INTERBUS devices as described above The product designation or the station name is displayed under Selected Control System If several devices of the same type are used in a project first assign the devices a station name This enables the unique identification of the devices 4 22 Compiling after reading in the bus topology At this point you can compile your project in order to detect any errors that may have occurred e Select the Build Make command 4 23 Creating the program If the program has been created offline skip this section To program the example program proceed as described in Example program on page 8 1 4 24 Compiling after creating the program At this point you can compile your project in order to detect any errors that may have occurred e Selectthe Build Make command 4 25 Assigning process data If the process data has been assigned offline skip this section To assign the process
154. ng after completing the bus 6 12 LOL 6 12 6 15 Compiling after creating the 6 12 60 16 lt 5506 6 13 6 17 Compiling and sending a project and performing a cold restart 6 14 Gel 6 15 6 19 Additional informallolh oot ior pu o s Oo Ete eee 6 15 6 19 1 Changing the PROFINET device name 6 15 6 19 2 Renumbering devices 6 18 6 19 3 Assigning parameters for the PROFINET IO device 6 19 Example project for a simulation with processor type IPC controllers 7 1 7 1 7 1 7 2 Sequence for creating the simulation 7 2 7 3 Creating 7 4 7 4 Specifying project 7 4 7 5 Checking modifying IP settings for the 7 4 7 6 Manually
155. nit see online help for PC WorX or IEC 61131 3 EasySim simulation Only the states of the global variables that have been linked to a physical address inputs outputs as part of process data assignment are displayed in the simulation 7127 en 03 PHOENIX CONTACT 4 19 PC Worx e Switch to the process data assignment workspace to assign the variables to the process data e Select the controller in the top right window The standard configuration is then displayed in the top left window Symbols Variables e Inthe top left window Symbols Variables select the standard resource STD RES RFCA50ET in Figure 4 21 e Inthe top right window select the device for which you would like to link the process data to variables e g IB IL 24 DO 8 in Figure 4 21 e Select the process data item to be linked 1 1 1 in Figure 4 21 Please note that the variables shown in Figure 4 21 had to be created in the IEC programming workspace first before they could appear under Symbols Variables in the process data assignment workspace e Using drag amp drop link the selected variable to one of the variables on the left hand side OUT1 in Figure 4 21 In the bottom left window the assignment between variables and process data is displayed Process Data Assignment v LH SIM 4 RFC 450 ETH IB 192 168 0 2 5 8 Resource R STD RES RFC450ET ci gl INTERBUS 0 0 IBS IL 24 BK T U1 0 IBIL24 DO 161 1 IBIL24DO 81 2 IBIL24
156. nt Lanquage English United Kingdom Figure 3 2 Project language e Open the File Export menu e Select the data you wish to export e Confirm your selection with OK Import Export Cross references Export PLCopen xml file Extended IEC 61131 3 Export Project tanslaton Description Exports a translation file translateable texts of the current project Figure 3 3 Exporting files from the project Once the files have been translated e Open the File Import menu e Select the data you wish to import e Confirm your selection with OK e Specify the path for the data to be imported e Confirm your selection with Import 3 2 PHOENIX CONTACT 7127 en 03 Helpful information about PC WorX 3 3 The PC WorX user interface The user interface consists of the following main components menu bar toolbars main window and status bar The contents of the main window depend on the workspace 59 PC WORX Untitled Los Proiect Buld Onine Extras Menu bar Toolbars Main window Status bar For Help press Figure 3 4 User interface 7127 en 03 PHOENIX CONTACT 3 3 PC Worx 3 4 Toolbars The program contains several toolbars with different icons which enable frequently used operations to be executed quickly Alternatively these operating steps can be called via menu items or predefined shortcuts By default all the toolbars are s
157. o Creating a new project on page 4 3 e Select the New Project command from the File menu e Select the controller here ILC 390 PN 2TX IB Rev gt 01 4 6F 3 00 and confirm your selection with OK e Select the File Save Project As Zip Project As command e Enter the project name Quickstart PN and save the project 6 4 Specifying project information See also Specifying project information on page 4 4 e Switch to the bus configuration workspace e Adapt the project information to your project Assign the name suffix for the PROFINET device name here quickstart de in the Device Details window under Domain Postfix 6 5 Preparing the PC for communication See also Preparing the PC for communication on page 4 6 e Inthe Extras PROFINET Configuration menu in PC Worx select the network card for your computer that is to be used for communication 7127 en 03 PHOENIX CONTACT 6 5 PC Worx 6 6 Checking modifying IP settings for the PROFINET IO controller a See also Checking modifying IP settings for the controller on page 4 7 The IP settings for the controller are made when the project is created NOTE Changes to project information are not applied automatically If any modifications are made to the project information that affect the IP settings for the H controller a warning is displayed However the modification is not implemented automatically When a new project i
158. on 1 TCPAIP IP Address 192 168 0 2 Timeout 2000 e Offline configuration mode active no connection to PLC no data transmission Figure 7 Specifying the IP address of the controller This completes the configuration for using OPC data through an OPC client Cel OPC Configurator OpcProject Resource type ILC FW gt 1 41 Y T OpcProject Description COMMUNICATION TCP IP IP Address 192 158 0 2 Timeout 2000 ms DLL SoComm dll State ONLINE Settings Figure C 8 OPC configuration completed PHOENIX CONTACT C 3 PC Worx C 4 PHOENIX CONTACT C 1 3 OPC Test Client The test client can be used to test the OPC configuration e Open the OPC Test Client program e Connect the test client to the OPC server by selecting Connect in the Server menu Ir Untitled Phoenix Contact OPC Test Client File Group Item View Help g ER eT Select an installed OPC server to connect Figure C 9 Connecting the test client e Inthe Group menu select Add all items to display all variables defined as OPC vari ables Ire PhoenixContact AX Server 21 Phoenix Contact OPC Test Client File Server Mex Item View Help Parameters Add item Te te varianttype Refresh Add all available items to the group Figure C 10 Add all Items Displaying OPC variables The defined variables are displayed 7127_en_03 7127_en_03 AX
159. on in case of configuration differences Log connection state Drive BF Ersatzwertverhalten Eingange Verbindungsaufbau Anlauf auf Null setzen Node ID 8 PROFINET Settings L PROFINET Stationnames 4 Bus interfaces 5 Data sheet Figure 4 41 PROFINET settings for the ILB PN 24 DI16 DIO16 2TX The individual setting options are described in Checking modifying the PROFINET settings for PROFINET IO devices on page 4 10 4 34 PHOENIX CONTACT 7127 en 03 Sequence for creating a project PN 4 200 Transferring PROFINET device names and IP settings to PROFINET IO devices Before a PROFINET IO device can be operated in a PROFINET IO network the PROFINET device name and IP address configured in PC WorX must also be made known to the device itself e sure that the PROFINET IO controller can establish communication with the PROFINET IO devices e Compile the project send it to the controller and perform a cold restart Proceed as described in Compiling and sending a project and performing a cold restart on page 4 40 During startup the PROFINET controller automatically assigns the IP settings and device parameterizations specified in the project to the PROFINET IO devices e To check the assignment of device names and IP settings select the PROFINET Stationnames tab the Device Details window The updated list contains the PROFINET IO devices together with their PROFINET device names and the
160. ons are not observed the online modification process is aborted and a corresponding error message appears in the Message Window Once the Online Modifications command has been aborted compile the project with Make and send it manually to the controller Modifications can now be implemented online again a For more detailed information please refer to the online help for PC Worx 7127 en 03 PHOENIX CONTACT 7 PC Worx Extended retain handling Retentive variables are declared with the keyword RETAIN The value of a retentive variable is retained even if the controller is switched off The last value of the variable is used for a warm start Application Your application program is already running on the controller Modifications to the retentive variables are now required or new RETAIN variables must be added Without the retain handling function a cold restart would have to be carried out after the modifications In this case all the variables are reinitialized With the retain handling function of the programming system a controller cold restart is no longer required after the retentive variables have been modified Instead a warm start is possible The retain handling function receives the value of all retentive symbolic variables by uploading them before the modified and newly compiled project is sent to the controller Once the modified program has been sent to the controller the system sends the pre
161. ore detailed information about visualization and AX OPC Server please refer to AX OPC Server and WebVisit on page C 1 A7 Replacing a controller hardware replacement To simply replace one controller with another a wizard is provided for replacing complex devices It may be necessary to replace the controller e g if you have carried out the simulation of a project with an RFC 450 ETH IB but would like to use an ILC 370 PN 2TX IB for the actual project zz e Switch to the bus configuration workspace Inthe Bus Structure window select the controller to be replaced RFC 450 ETH IB in Figure A 3 on page A 10 e Open the context menu for the controller e Select the Replace menu item 7127 en 03 PHOENIX CONTACT 9 PC Worx Bus Structure E 450 ETH IB 192 168 0 2 A Resource Replace Ctrl F STD RES RFC45DE Create DNS PROFINET Device Mames fh IMTERBUS Exchange Data d c 1851 24 T U IB IL 400 16 IB IL 24 DO G IB IL 24 DIG E Unconnected Blind out Device Ckri4 ShiFE2 D Delete Delete Edit Device Representation ctrl E Print Refresh view F5 Figure A 3 Replacing a device The wizard opens e Confirm the window that opens with Next The window displays a selection of all the controllers that can replace the controller currently used in the project If the window is empty the controller that is currently being used cannot be replaced wit
162. osoft Corporation All other product names used are trademarks of the respective organizations How to contact us Up to date information on Phoenix Contact products and our Terms and Conditions can be found on the Internet at www phoenixcontact com Make sure you always use the latest documentation It can be downloaded at www phoenixcontact net catalog If there are any problems that cannot be solved using the documentation please contact your Phoenix Contact subsidiary Subsidiary contact information is available at www phoenixcontact com PHOENIX CONTACT GmbH amp Co KG PHOENIX CONTACT FlachsmarktstraBe 8 P O Box 4100 32825 Blomberg Harrisburg PA 17111 0100 Germany USA Phone 49 0 52 35 3 00 Phone 1 717 944 1300 Fax 49 0 52 35 3 4 12 00 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 7127_en_03 Table of contents 1 CTC eA ae sates he oe 1 1 1 1 mer T 1 1 1 2 Information about this 1 1 1 3 het aeuo Deut icon patet stat 1 2 1 4 Orderng tc E 1 2 2 Installing and enabling the 2 1 2 1 miile ellicii e e
163. ource R STD RES ILC390PN 5 0 ARM L 40 5 STD RES ILC390PN Default System Variables HH PROFINET Auto INTERBUS 0 0 IB IL 24D0 160 1 5 g E Man 1B IL 240080 2 Default IBIL24DI80 3 ES Unconnected Symbol variable Data Type Process Data Item Device Function Text Port IBIL24 DI80 3 1 2 1 pm BIL24 DI80 3 13 1 1811 240080 2 13 2 1 OUT1 BOOL IBIL24DO 80 2 V1 1 1 WORD IBIL24 DO 160 1 DO 16 lt iil 3 12 gt Figure 5 4 All used process data assigned to variables a Since the ONBOARD_INPUT_BIT10 variable is a system variable it is not shown in Figure 5 4 5 13 Compiling and sending a project and performing a cold restart a See also Compiling and sending a project and performing a cold restart on page 4 40 Compile project e Select the Build Make command Send project a e Open the project control dialog box e Activate the Include Bootproject checkbox in the Project area e Click on Download in the area on the left 5 14 Operation a See Operation on page 4 45 5 8 PHOENIX CONTACT 7127 en 03 Example project for a system consisting of PROFINET IO and INTERBUS 6 Example project for a system consisting of PROFINET IO and INTERBUS The creation of a project is described in detail in Section 4 Sequence for creating a project This section covers All steps to be taken in reference to the corresponding section in S
164. output Q This signal is ignored If a TRUE signal is present at output Q the ROL function block is activated which rotates the operands associated with the IN input parameter bit by bit to the left This means that for an initial value equal to 1 the associated outputs e g OUT1 to OUT16 of a 16 bit module switch in succession from FALSE to TRUE and back again This state change is indicated by a chasing light at the corresponding status LEDs Once the pulse time has elapsed the output that indicates the presence of the pulse and the chasing light are switched off Independent of this inputs IN1 and IN2 are logically ANDed IN1 and IN2 map the status of the inputs to which the toggle switches are connected The result of ANDing is output at output OUT OUT2 PHOENIX CONTACT 8 1 PC Worx 8 2 Function blocks used ee BOOL_TO_DINT ROL AND TF IM ele Jed Timer Format conversion Rotate to left ANDing TP timer function block Table 8 1 Timer TP 1 Para Variable Data type Initial value Description meter name BOOL VAR GLOBAL Start If a rising edge is detected a pulse is generated T 15000ms Pulse time Setting 15 s 15000 ms Pulse output TRUE if IN TRUE and ET lt PT FALSE if IN FALSE or ET gt PT In this example variable S1 is defined as a global to match the simulation example with the HFC 430 ETH IB controller in Section 7 This means that the variable status can be displayed
165. oxy INTERBUS devices At ILC 390 PN 2TX IB IB IL AO 1 SF At FL IL 24 BK PN PAC IB IL 24 DO 4 ME IB IL 24 DI 4 ME At FL PN IBS FLS IB M12 DI 8 M12 FLS IB M12 DO8 M12 2A Several PROFINET IO controllers can be used within a project In this example only one PROFINET IO controller is used 6 2 PHOENIX CONTACT 7127 en 03 Example project for a system consisting of PROFINET IO and INTERBUS Inputs and Inputs and outputs used in the example including process data and assigned variables outputs process data Device Connected to Input output Signal at Variable Process according to data the device data item sheet FL SWITCH MCS 16TX ILC 390 PN 2TX IB Input IN11 Co 3 TP 1 4 ONBOARD_ 3 1 4 INPUT_BIT10 ILB PN 24 DI16 DIO16 2TX Output OUT1 to Co1to4 VO DO16 OUT16 TP x 1 and x 4 IB IL AO 1 SF ILC 390 PN 2TX IB IB IL 24 DO 4 ME FLIL 24 BK PN PAC Output OUT3 TP 1 4 OUT1 1 4 IB IL 24 DI 4 ME FLIL24 BK PN PAC Input IN1 TP 1 1 IN2 1 1 FLS IB M12 DI8 M12 FL PN IBS Input IN3 FC 3 pin 4 IN3 IN3 FLS IB M12 DO 8 M12 2A FLPN IBS Output OUT3 FC 3 pin 4 OUT2 OUT3 No assignment required T1 T2 Co Connector TP Terminal point FC Female connector 6 2 Sequence for creating the PROFINET project The sequence for creating the Figure 6 2 project is shown in PROFINET When implementing the project some of the tasks can be performed offline without a connection to the PROFINET IO system All tasks that require communication must be performed online
166. pon delivery for assigning IP parameters with an Inline Controller via Ethernet If you would like to change this setting select the serial interface as the communication path and specify the IP parameters in the Extended Settings dialog box This setting is activated following a controller reset 4 26 PHOENIX CONTACT 7127 en 03 Sequence for creating a project 4 17 1 Communication via the serial interface The controller must be connected to the programming PC via the connecting cable Ordering data Connecting cable for connecting the controller to a PC V 24 RS 232 for PC Worx in length order designation PRG CAB MINI DIN Order No 2730611 e Inthe Device Details window select the Serial Port interface type in the Communication tab e Select the interface e g COM1 e Click on Test to check the specified communication path The communication path has been tested successfully if a green status indicator appears in the window If a red status indicator appears check the communication path and change it if necessary e Save your settings in the project via Apply Device Details A v n ILC 390 PN 2TX IB 192 168 0 2 VCommunicationl Interface Type ILC 390 PN 2 5 physical emulate m Fi Communication Path Serial Port ey Ethernet User defined Station Resource STD RES gnms IP Settings Extend
167. ps Bp 0000 Global Variable Groups Default 5 Show all variables of worksheets Creating variables for WebVisit Name Type E Default Zeitdauer TIME Runtime TIME Pulseingang BOOL START BOOL Figure C 14 Usage Description Address Init Retain PDD OPC VAR T 5000ms VAR VAR EXTERNAL Fr TT BH Eni Activating PDD in the variables worksheet When compiling the project a file called pdd csv is generated which is used by WebVisit for the visualization In WebVisit enter the PC WorX project used recommended or the corresponding pdd csv file Lil For information about using WebVisit please refer to the corresponding documentation PHOENIX CONTACT 7127 en 03 Phoenix Contact controllers D Phoenix Contact controllers 7127_en_03 When creating a new project several versions are provided for different controllers The versions differ with regard to the hardware and firmware version used The scope of functions in PC WorX may therefore differ for the various controller versions For additional information about the various controllers please refer to the AH EN BASIC DATA ILC RFC FC application note The aim of this documentis to provide an overview of Phoenix Contact controllers for control technology It contains the basic specifications for controllers from the Phoenix Contact controller range broken down into controller classes as well as the
168. quence for creating a project 4 28 Switching from simulation to real hardware Once you have successfully completed the simulation for your program you can switch to your hardware To do this the actual bus configuration must correspond to the simulated bus configuration Stop debug mode To do this click on Debug on off Stop the simulation To do so click on Stop in the project control dialog box Close the project control dialog box Exit the simulation e g via the Exit menu item in the context menu for the simulation icon in the taskbar Switch to the bus configuration workspace In the Device Details window switch to the Communication tab Select the required communication path to enable you to communicate between PC WorX and your hardware see Setting the communication path on page 4 26 Send the project to the controller and perform a cold restart see Compiling and send ing a project and performing a cold restart on page 4 40 PHOENIX CONTACT 4 49 PC Worx 4 50 PHOENIX CONTACT 7127 en 03 Example project for an INTERBUS system 5 Example project for an INTERBUS system The creation of a project is described in detail in Section 4 Sequence for creating a project This section covers Allsteps to be taken in reference to the corresponding section in Section 4 Sequence for creating a project Project specific settings Information and special notes for an INTERBUS project
169. ration is transmitted and activated If activation was successful the PNIO CONFIG STATUS ACTIVE system variable is set The PROFINET IO controller attempts to start up all the devices in the desired configuration 4 26 2 2 Sending a project Special notes for the EasySim simulation The EasySim simulation is started when the project control dialog box is opened This is shown in the taskbar with the following icon 162 72 2 LU 12 06 Figure 4 51 EasySim simulation Icon in the taskbar The following options are available for the simulation in the context menu a Show Tas Show Expert Mode Exit Figure 4 52 EasySim simulation Context menu Selecting the Open menu item opens the simulation window EasySim 1 7 gt gt Eas sim ProConOS Figure 4 53 EasySim simulation opened The Show I Os menu item or I Os button opens EasySim input and output view EasySim 1 Pax saab al p M Tre 4 tame Figure 4 54 EasySim simulation I O view 4 42 PHOENIX CONTACT 7127_en_03 7127_en_03 Sequence for creating a project The Show Expert Mode menu item or Expert Mode button opens expert mode for the simulation This enables periods to be shown according to the simulated input and output states 4 26 3 Performing a cold restart In order to activate the project it is necessary to perform a cold restart e Todoso click on
170. rce R STD RES ILC390PN HH PROFINET Me INTERBUS 0 0 ES Unconnected Phoenix Contact Universal E Al Figure 4 4 4 4 PHOENIX CONTACT lt Devi Quickstart PN iProject Value Quickstart Project name Project name Creator Computer name at project creation MULTIPROG version at project creation Domain Postfix ee Template for DNS PROFINET Device Name gen S Default Gateway UseDHCP mm 88 Project Project information after creating a new project 7127_en_03 Sequence for creating a project During project creation PC WorX automatically assigns an IP address area for a local network area from 192 168 0 2 to 192 168 0 254 If you would like to use another address area e g a global network adapt the start and end address on the project node here Quickstart PN to your application Make sure that all the components are in the same subnetwork For information about the IP parameters to be used within your system please contact your system administrator If the start address of the new address area to be entered is higher than the previous end address please modify the end address first When inserting PROFINET IO controllers and PROFINET IO devices PC WorX automatically assigns IP parameters that are within the specified area If later on you manually assign IP parameters that are outside the defined area they will not be accepted
171. rdering data Products Description Type Order No Pcs Pkt PC WORX DEMO license software DVD PC WORX DEMO 2985725 1 contains all 5 IEC languages with MSFC compiler maximum of 16 bytes of I O data mix PC WORX BASIC license PC WORX BASIC LIC 2985275 1 contains all 5 IEC languages without MSFC compiler maximum of 256 bytes of I O data mix version specific license key PC WORX PRO license PC WORX PRO LIC 2985385 1 contains all 5 IEC languages with MSFC compiler maximum of 128 kbytes of I O data mix version specific license key PC WORX PRO license PC WORX BASIC PRO LIC 2985259 1 contains all 5 IEC languages with MSFC compiler maximum of 128 kbytes of I O data mix version specific license key upgrade of an existing basic license to a full license with MSFC compiler PC WORX BASIC update PC WORX BASIC UPD 2985262 1 version update for PC WORX BASIC LIC e g from 5 xx to 6 xx maximum of 256 bytes of I O data mix version specific license key PC WORX PRO update PC WORX PRO UPD 2985372 1 version update for PC WORX PRO LIC e g from 5 xx to 6 xx maximum of 128 kbytes of I O data mix version specific license key IEC 61131 3 All PC WorX versions support all five IEC programming languages according to 1 2 PHOENIX CONTACT 7127 en 03 Installing and enabling the software 2 Installing and enabling the software 2 1 Prior to installation Prior to installation close all open Windows applic
172. rdous 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 The following types of messages provide information about possible property damage and general information concerning proper operation and ease of use NOTE This symbol and the accompanying text alerts the reader to a situation which may cause damage or malfunction to the device either hardware or software or surrounding property This symbol and the accompanying text provides additional information to the reader It is also used as areference to other sources of information manuals data sheets literature on the subject matter product etc o bbb PHOENIX CONTACT 7127_en_03 7127_en_03 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 data sheets installation instructions manuals etc does not constitute any further duty on the part of Phoenix Contact to furnish information on alterations to products and or technical docum
173. resource STD RES ILC390PN in the example e Inthe top right window select the device for which you would like to link the process data to variables e g ILB PN 24 DI16 DIO16 2TX e Select the variable in order to link it e g NO DIAC 7127 en 03 7127_en_03 INTERBUS registers e If variables have already been created use drag amp drop to link the selected variable to one of the variables on the left hand side If a corresponding variable has not yet been created select Create Variable in the context menu The created variable is displayed in the bottom left window Symbols ariables Quickstart_PN 88 STD_CNF ARM_L_40 Sa STD RES ILC390PN Default System Variables NE ILC 390 PN 2 192 168 0 2 Resource R STD RES ILC390PN PROFINET GS fl switch mcs 16tx quickstart de 192 168 0 3 Big il ilb dio23 quickstart de 192 168 0 4 E il pn bk24 quickstart de 192 168 0 5 E fl pn ibs25 quickstart de 192 168 0 6 Gt ge INTERBUS Unconnected Auto n STD TSK DEFALILT 5 10 Main Main Default Symbol variable Data Type Process Data Item IN2 BOOL IN3 BOOL OLIT2 BOOL OLIT1 BOOL WORD BOOL BOOL Figure B 3 PROFINET IO device Variable created for querying the status INTERBUS registers The registers of an INTERBUS master are available directly as process data If necessary assign the corresponding process data to the variables of the controller
174. rl E Figure 3 31 Integrating DTMs into the device catalog The message Do you want to scan the complete registry again to find new installed DTMs appears As the registry was scanned when PC Worx was restarted you answer this prompt with A prompt may then appear possibly multiple times for various device descriptions asking whether the existing devices in the device catalog should be replaced Answer Yes to these prompts The process described applies to DTMs from Phoenix Contact as well as DTMs from other manufacturers The PC WorX message window indicates which devices have been imported In the device catalog all the devices are now displayed sorted by company Device Catalog LJ Festo Generic Phoenix Contact Phoenix Contact GmbH amp Co KG Universal Figure 3 32 Device catalog following import 7127_en_03 3 10 5 devices Helpful information about PC WorX Reading in the bus configuration and or manually inserting At this point you must now read in the current bus configuration or manually configure the desired bus configuration For detailed instructions on how to proceed please refer to Section 4 Sequence for creating a project When you manually insert a DT M compatible device into the bus configuration depending on the device and the position of the device in the bus configuration in DTM View menu View DTM View more detailed info
175. rmation about the device is displayed The following is displayed in the example in Figure 3 33 DTM View avo New Device ILC 150 ETH IB IL 1 5 ID 221 PD 448 e 2 Phoenix Contact CONTACT 1 00 FDT Identifier IB IL IFS MA ID 221 PD 448 01 System Number 1 5 Segment Number 0 3 Position Number 1 s planningEngineer Figure 3 33 DTM View New Device The following settings are shown in Figure 3 33 7127_en_03 FDT Identifier System Number Segment Number Position Number Specify a unique ID for the device here This is particularly important if several devices of the same type are used in the bus configuration Specifies the number of the controller to which the devices used in your application are connected In an application with just one controller the controller number is 1 Number of the level in which the device is used in the application Segment number 1 Corresponds to the control level Segment number x Lower level than the controller Position of the device in the segment bus configuration For the segment and position number you can refer to the Bus Structure window in PC WorX bus segment number position number PHOENIX CONTACT 3 25 PC Worx Settings for DTM Depending on the DTM compatible devices to be inserted in the bus configuration settings compatible devices are required that may differ according to the device The following examp
176. rrors and warnings that are discovered by the compiler are logged in the Message Window After the syntax has been checked successfully the system automatically generates the IEC code and the special PLC code Finally the project can be sent to the PLC The Rebuild Project command should only be used if errors occurred when compiling with Make or your project was unpacked without frontend PHOENIX CONTACT 7127_en_03 Sequence for creating a project Make The Make command is the standard mode for compiling Use this command after editing and completing your project When the Make menu item is executed all modified worksheets are compiled linked and the modified PLC code is generated This command can be executed from the menu bar via Build Make with the Make icon in the toolbar or using the shortcut F9 Modified worksheets in the project tree are identified by an asterisk that appears after the worksheet name Both After the compiler has been started the Message Window appears automatically if it was closed before This window shows the steps the compiler is currently performing In addition errors warnings and additional information about the process are logged here Once the compiling process has been completed successfully i e no errors have been reported the modified project can be sent to the PLC 4 11 Creating the program e Create the program To program the example program proceed as de
177. s SIM 2 RFC 430 ETH IB 192 168 0 2 BR Resource mi STD_CNF IPC 40 88 STD RES RFC430ET oak INTERBUS System Variables 18S IL 24 BK T U amp p STD_TSK DEFAULT ar f Bison 240016 lio ne c Pa E IB IL 24D08 M IB IL 24018 nnected SymbollVariable Data Type Process Data Item Description i Process Data Item 0 DataType Byte Bit Address SymboljVari IB IL 24 DO 16 1 DO 16 Figure 7 4 Variable VO The created variable is displayed in the bottom left window e Repeat this procedure for all inputs to be evaluated and for all outputs to be controlled The result of the process data assignment process is shown in the figure below Symbols ariables SIM Sg STD CNF IPC 40 eg 22 192 168 0 2 RR STD_RES RFC430ET OE f INTERBUS S System Variables 2 B S O STD_TSK DEFAULT 5K DEI IB IL 24 DO 16 5 89 0 Main Main IB IL 24008 Symbol Variable Data Type Process Data Item Description Process DataType Byte Bit Address SymboljVari Figure 7 5 All used variables and assigned process data 7127 en 03 PHOENIX CONTACT 7 7 PC Worx 7 11 Setting the communication path See also Setting the communication path on page 4 26 e Switch to the bus configuration workspace to set the communication path e Inthe Bus Structure window select the node for the controller e Select the Communication tab
178. s created the default settings are specified under the IP settings Adapt these settings if necessary Switch to the bus configuration workspace e Select the controller node e Inthe Device Details window switch to the IP Settings tab e Check the IP settings and modify them if necessary e Ifan address has still not been assigned assign one according to Assigning the IP address for the PROFINET lOcontroller on page 6 7 The IP address that is assigned here for the controller is also implemented as the IP address for the communication path via TCP IP 6 6 7127 en 03 7127_en_03 tsi Example project for a system consisting of PROFINET IO and INTERBUS 6 7 Assigning the IP address for the PROFINET lOcontroller See also Assigning the IP address for the controller on page 4 23 An IP address must first be assigned to the PROFINET IO controller in order to enable communication For the ILC 390 PN 2TX IB PROFINET IO controller BootP is activated by default upon delivery for assigning the IP address via Ethernet In this case when setting the IP address for the first time a BootP server can be used The corresponding procedure is described below For all other options please refer to Assigning the IP address for the controller on page 4 23 e Establish an Ethernet connection between your and the PROFINET IO controller e Inthe menu bar select the Extras BootP SN
179. s function The simulation can be used to create a bus and develop and test a program without the hardware having to be available For more detailed information about the EasySim simulation please refer to the online help for PC WorX e Switch to the bus configuration workspace to set the simulation select the communication path In the Bus Structure window select the node for the controller Select the Communication tab in the Device Details window Select the Simulation interface type communication path Click on Apply to activate the simulation i Bus Structure E UNTITLED fj RFC 450 ETH IB 192 168 0 2 F Resource 4 Device Details 474 RFC450ETH IB192 168 0 2 Communication Interface Type RFC 450 ETH IB Communication Path Serial Port 4 R5232 Modem 49 COM Server Ethernet User defined Simulation E Station Name Simulation 1 R STD RES RFC450ET fp INTERBUS 0 0 Unconnected Apply successful Eu IP Settings Extended Settings Communication A Bus interfaces Data sheet Figure 4 25 Simulation communication path After setting the simulation the project must be compiled and then written to the memory area of the simulated controller Please refer to Compiling and sending a project and performing a cold restart on page 4 40 7127_en_03 Sequence for creating a project 4 15 Switching to working w
180. s of premeditation gross negligence on account of loss of life physical injury or damage to health or on account of the violation of important contractual obligations Claims for damages for the violation of important contractual obligations are however limited to contract typical predictable damages provided there is no premeditation or gross negligence or that liability is assumed on account of loss of life physical injury or damage to health This ruling does not imply a change in the burden of proof to the detriment of the user PHOENIX CONTACT PC Worx Internet Subsidiaries Published by PHOENIX CONTACT Statement of legal authority This manual including all illustrations contained herein is copyright protected Use of this manual by any third party is forbidden Reproduction translation and public disclosure as well as electronic and photographic archiving or alteration requires the express written consent of Phoenix Contact Violators are liable for damages Phoenix Contact reserves all rights in the case of patent award or listing of a registered design in as far as this concerns software of Phoenix Contact that meets the criteria of technicity or has technical relevance Third party products are always named without reference to patent rights The existence of such rights shall not be excluded Windows 3 x Windows 95 Windows 98 Windows NT Windows 2000 Windows XP and Windows Vista are trademarks of the Micr
181. scribed in Example program on page 8 1 Itis now assumed that you have created the program If you skip this point this may result in deviations 4 12 Compiling after creating the program At this point you can compile your project in order to detect any errors that may have occurred e Select the Build Make command 7127 en 03 PHOENIX CONTACT 4 17 PC Worx 4 13 Generating variables and assigning process data This section provides a general description for generating variables and assigning process data Process data assignment for the example bus configuration is explained in later sections 4 13 1 Generating variables Usually variables are either generated during program creation or they are created individually If all the previous steps for creating a project including programming have been performed variables will have been created Variables can also be generated automatically for the process data of all devices PROFINET IO and INTERBUS The variable names are assigned automatically according to the following pattern or Q gt _ lt PROFINET device name IBS segment IBS position PD name gt Key lor Input Q Output IBS INTERBUS PD name Name of the process data item For direct inputs outputs or PROFINET IO status data no INTERBUS data is required To generate variables proceed as follows e Switch to the process data assignment workspace e Select the
182. si BOOL VAR GLOBAL Sy Data Types OUTI BOOL VAR GLOBAL 0 E sys_flag_types WORD VAR_GLOBAL nm S Logical POUs BOOL VAR GLOBAL M Main BOOL VAR GLOBAL MainT VAR GLOBAL O Main ESystem Variables _ 8 PLCMODE ON BOOL VAR GLOBAL mode 1 Physical Hardware PLCMODE RUN BOOL VAR GLOBAL PLC mode RUN 1 zwi STD_CNF IPC_40 PLCMODE_STOP BOOL VAR GLOBAL mode STOP 1 O Ls zwi STD_RES RFC430ET PLCMODE HALT BOOL VAR GLOBAL mode HALT 1 gal Tasks PLcbEBUG BPSET BOOL VAR GLOBAL Breakpoint set 1 E IBIBILELE amp n STD TSK DEFAULT PLCDEBUG FORCE BOOL VAR GLOBAL Variables forced 1 OD IBHIBIBIB 5 0 Main Main PLCDEBUG POWERFLOW BOOL VAR GLOBAL Powerflow ON 1 E 8 Maini PLC_TICKS_PER_SEC INT VAR GLOBAL System ticks per second E IEJI EI LEE Global Variables PLC SYS TICK DINT VAR GLOBAL System ick count E 0 Configuration PLC TASK AVAILABLE VAR GLOBAL Number of available PLC tasks WM E A PLC_TASK_DEFINED INT VAR GLOBAL Number of used tasks 36MWIT O IBIBDIBIE PLC TASK 1 Extended Task 1 VAR GLOBAL Task 1 information 1 F1 lt gt gt Ki d ManMain 2 Main Main 3 Global Vari
183. splayed in the bottom left window Quickstart_PN HB ILC 390 PN 2TX IB 192 168 0 2 GR Resource R STD RES ILC390PN c 9 STD ARM L 40 cimi STD RES ILC390PN Default System Variables zm SUM Auto Fl switch mes 16tx quickstart de 192 168 0 3 c Big i ilb dio23 quickstart de 192 168 0 4 9 0 ILB PN 24 DI 16 DIO16 2TX FB 101016 ILB PN 24 DI 16 DIO16 2TX 9 2 0116 ILB PN 24 DI 16 DIO16 2TX il pn bk24 quickstart de 192 168 0 5 fl pn ibs25 quickstart de 192 168 0 6 f INTERBUS D 0 24 Unconnected STD_TSK DEFAULT O Main Main Symbol Variable Data Type Process Data Item Device Process Data Item 1 0 Data Type Byte Bit Address Symbol Variable IN2 BOOL IN3 BOOL OUT2 BOOL OUT1 BOOL vo WORD 1 DIO16 ILB PN 24 DI 16 DIO16 2TX Y D 1 DIO16 ILB PN 24 DI 16 01016 27 DO16 101016 ILB PN 24 DI 16 DIO16 2TX 1DIO16 ILBPN24 DI 16 DIO16 2T amp OUTI Q WORD 0 0 STD_CNF STD_RES v0 Q Q 1DIO16 ILBPN 24 DI 16 DIO16 2T amp OUT2 Q BOOL 1 2 Q Q 1 01016 ILB PN 24 DI 16 DIO16 2TX OUT3 1 01016 ILB PN 24 DI 16 DIO16 2TX 0074 1 DIO16 ILBPN 24 DI 16 DIO16 2TX OUTS lt o lt Figure 6 6 Assigning process data for a PROFINET IO device 7127_en_03 PHOENIX CONTACT 6 13 PC Worx e Repeat this procedure for all inputs to be evaluated and for all outputs to be controlled e For
184. t A 2 2 Online modifications Online modification of a POU means that in a single step the modifications in the project are compiled and the code is generated and automatically sent to the active PLC During the entire process the PLC continues running i e the program executed on the PLC is not interrupted during compilation and transmission The Online Modifications menu item is only available in offline mode The affected worksheet can be set to online and offline mode via the Debug on off icon in the toolbar Online Modifications can be called via the Build Online Modifications menu item or via the corresponding icon see Frequently used icons for compiling and debugging on page 3 4 The Online Modifications command can be used in two ways 1 Correcting errors in the code If a programming error is discovered in online mode and you have switched to offline mode to correct the error the modifications made can be compiled with Online Modifications 2 Further development of a basic project In some cases it is easier and more convenient to develop a project using online modifications rather than via the Make command Once a basic project has been compiled for the first time with Make this skeleton project can be completed by editing the individual POU code worksheets and using Online Modifications to add these extensions to the PLC program which is already running on the target system In both cases t
185. t the Print Bus Configuration menu item A 20 PHOENIX CONTACT 7127 en 03 Status information for a PROFINET IO system B Status information for a PROFINET IO system B 1 Status of the PROFINET IO controller The PROFINET IO controller has status information that indicates its configuration status This can be requested via the PNIO CONFIG STATUS system variable The system variable is available as a word and as individual bits under Global Variables Project Tree Window 2vBn0 2 Libraries Sy Data Types E sys flag types Logical POUs Sy Project C Documents and Settings Vll Users Application Data Phoenix Name MASTER DIAG 2 REG _ PNIO FORCE FAILSAFE EPNIO_CONFIG_STATUS BYTE MASTER DI amp G PARAM 2 REG_LOVY BYTE BOOL WORD Type Usage Description VAR GLOBAL VAR GLOBAL VAR GLOBAL VAR_GLOBAL Extended master diagnostic 1 Extended master diagnostic paramel All PROFINET devices are prompted PNIO_CONFIG_ STATUS_READY PNIO_CONFIG_ STATUS_ACTIVE PNIO_CONFIG_ STATUS_CFG_FAULT 7127_en_03 BOOL 5 18 Main BOOL n MainT BOOL VAR G Main M_BF VAR GLOBAL Missing connection to a configured F Main PNIO_SYSTEM_SF BOOL VAR GLOBAL Diagnostic alarm for a configured PF Physical Hardware __ PNIO_DIAG_AVAILABLE BOOL VAR GLOBAL Diagnostic available gail STD_CNF ARM_L_40 MAINTENANCE REQUIRED BOOL VA
186. tered in the connected bus configuration is missing and not marked as switched off Project Name Quickstart PN mwt DI ON Figure 3 22 INTERBUS Diagnostic Solution e Remove the error here insert Inline terminal again For PROFINET the entire system is automatically restarted by the PROFINET IO controller If the bus is not restarted automatically the Action tab can be used for example to acknowledge errors reset the controller board and start the bus Communication Path 10 PN 2TX IB 19 View INTERBUS Diagnostic M Statistic StatisticEx SpecialTen Settings Device Diagnostic History Bus Architecture BusInfo Action Optical Diagnostic Control Controller Board Confirm Diagnostics Reset Statistic Counter Acknowledge all Peripheral Faults Alarm Stop Project Name Quickstart PN mwt Figure 3 23 Diag Action 3 18 PHOENIX CONTACT 7127 en 03 Helpful information about PC WorX View The Ethernet topology can also be displayed in Diag Ethernet Topology Please note that the Ethernet topology only be displayed if it has been previously generated in PC WorX under View Ethernet Topology 3 9 Visualization The data generated in PC WorX can be used in other programs e g to visualize processes e g WebVisit The AX OPC Server is provided in order to enable the use of data in OPC clients See also AX OPC
187. th subnet mask 255 255 255 0 7127 en 03 Sequence for creating a project 4 5 Checking modifying IP settings for the controller The IP settings for the controller are made when the project is created NOTE Changes to project information are not applied automatically If any modifications are made to the project information that affect the IP settings for the controller a warning is displayed However the modification is not implemented automatically When a new project is created the default settings are specified under the IP settings Adapt these settings if necessary e Switch to the bus configuration workspace Select the controller node e Inthe Device Details window switch to the IP Settings tab e Check the IP settings and modify them if necessary Bus Structure Quickstart PN ILC 390PN2TX IB 192 168 0 2 lt Figure 4 7 Device Details ILC 390 PN 2TX IB 192 168 0 2 VP Settings F Resource R STD RES ILC390PN HH PROFINET INTERBUS 0 0 E Unconnected ac StaonName O DeiceName ModleEqupment ID O MAC Address oo O O 192 168 0 2 Default Gateway PY IP settings m IP Settings Ed Extended Settings ai Communication zn CPU Service Editor 4 Bus interfaces 2 Dal e address has still not been assigned assign one according to Assigning the address for the controller on page 4
188. the program on page 4 17 e Select the Build Make command 6 12 PHOENIX CONTACT 7127 en 03 Example project for a system consisting of PROFINET IO and INTERBUS 6 16 Assigning process data See also Generating variables and assigning process data on page 4 18 e Switch to the process data assignment workspace to assign the variables to the process data e Select the controller in the top right window The standard configuration is then displayed in the top left window Symbols Variables e Inthe top left window Symbols Variables select the standard resource STD RES ILC390PN in the example e Inthe top right window select the device for which you would like to link the process data to variables Please note for a PROFINET IO device with inputs and outputs that this is represented with its modules il ilb dioz3 quickstark de 192 158 0 4 oR 0 ILB PN 24 DI 16 DIO16 2TX Fai 1 DIO16 24 DI 16 DIO16 2Ts FA 0116 ILE PM 24 DI 16 DIO156 2TX Figure 6 5 Representation of a PROFINET IO device with its modules e nthis case select the module where the required inputs or outputs are located DIO16 ILB PN 24 DI16 DIO16 2TX in Figure 6 6 e Select the process data item to be linked DO16 in Figure 6 6 e Variables are created when the program is created Using drag amp drop link the selected variable to one of the variables on the left hand side VO in Figure 6 6 The created variable is di
189. tion Path IBETHIP 192 158 0 2 5 5 M1 IP Address 192 158 0 2 Control System State Warning Project Mame Quickstart PM mwt hee Figure 3 20 INTERBUS Diagnostic Bus Architecture no error An error is simulated the IB IL 24 DI 4 ME Inline terminal is disconnected Communication Path IL 390 PN 2 IST 169 021 View INTERELIS Diagnostic Statistic dia StatisticEx lli SpedalTen _ _ Settings Solution Device Diagnostic History Bus Architecture BusInfo Action Optical Diagnostic 390 PN 2 1 o1 Communication Path IBETHIP 192 158 0 2 5 5 M1 Address 192 168 0 2 Control System State Warning Project Mame uickstart_ PN mwt ABUS Q2 OBI 250002020220 Figure 3 21 INTERBUS Diagnostic Bus Architecture error e Switch to the Solution tab Here information is provided about how to remove the error PHOENIX CONTACT 3 17 PC Worx Communication Path 10 PN 2TX IE v View INTERBUS Diagnostic Statistic StatisticEx SpecialTen Settings Solution DeviceDiagnostic History Bus Architecture BusInfo Action Optical Diagnostic Additional Error Info 0002 Feedback Error Location 0 2 Message Time 05 05 2011 11 10 24 Cause Additional Information Remedy 1 Compare the bus configuration with the current configuration A device which is en
190. tional description PROFINET IO Inline Block Device With 16 Digit Name 655 BF E PROFINET Settings 8 PROFINET Stationnames 4 Bus interfaces Data sheet Bus configuration workspace Process data assignment workspace PC WORX Quickstart PN Fle View Project Buld Onine Extras ssignment Symbols Variables Quickstart 8 STD CNF ARM L 40 i STD RES ILC390PN Default System Variables amp D STD TSK DEFAULT amp D Main Main Default Symbol DataType Process Data Item Description ID ha IP PROFINET Configuration checked Resource is checked STD RES INTERBUS is checked ILC 390 PN 2TX IB 0 0 0 E Bl ILC 390 PN 2 1 192 168 0 2 ER Resource STD RES ILC390PN PROFINET 9 09 ILB PN 24 0116 DIO16 2TX il ib dio2 192 168 0 3 B IL PN BK 018 DO4 2 il pn bk 2tx 192 168 0 4 0 IL PN BK DIS 004 2TX F_Dest_Add INLINE O 0 0D040 2 0DIS0 3 Gd F INTERBUS 0 0 11811 240040 1 2181 240140 2 Unconnected I Build Warnings Infos PLC Errors Print J Multi User Bus Configurator jr For Help press Fi 39 0 C gt 2GB 0 Figure 3 7 Process data assignment workspace 3 6 PHOENIX CONTACT 7127 en 03 Helpful information about PC WorX Project comparison workspace 8 PC WORX Quickstart PN 2 i Fie Edt View Project Buld Online Extras Pro
191. ton is activated the devices in the example system flash as follows ILB PN 24 0116 DIO16 2TX RDY LED flashing FL IL 24 BK PN PAC Double zero flashing on the 7 segment display FL PN IBS Double zero flashing on the 7 segment display The flashing process is also indicated in the list e Send the name to the device via Assign Name If you receive an error message first delete the name via Delete Name and then assign the name again The PROFINET device name is transferred from the PC to the PROFINET IO device The previous parameters are still displayed as the IP parameters The IP parameters are not assigned until the next step e Assign the appropriate PROFINET device name to each PROFINET IO device e Compile the project send it to the controller and perform a cold restart see Compiling and sending a project and performing a cold restart on page 4 40 7127 en 03 PHOENIX CONTACT 6 17 PC Worx 6 19 2 devices There is also the option of automatically regenerating the IP parameters e g IP addresses Domain Postfix for all devices The settings from the project information are used for this e Select the project node e Select Renumber Devices Whole project and then the menu item for renumbering the devices e g All DNS PROFINET Device Names Bus Structure A Parameterize Renumber devices Whole projeck All logical device numbers Create Service Info k All system num
192. tput OUT1 e Linkthis item to the input of BOOL DINT by dragging the mouse pointer onto the input and clicking on the input Alternatively without having to activate the Link icon you can click in the part of the line for output OUT1 and holding down the left mouse button drag the mouse pointer onto the input of BOOL DINT Release the left mouse button as soon as the input of BOOL DINT is highlighted e Link the output of BOOL DINT to input N of the ROL block 7127 en 03 PHOENIX CONTACT 8 7 PC Worx The finished program is shown in Figure 8 8 below Figure 8 8 Finished program Deleted and renamed variables Variables created during program creation are created in different worksheets If you do not rename or delete a variable in all the workspaces it appears in this will generate error messages when compiling Please follow the corresponding instructions 8 8 PHOENIX CONTACT 7127 en 03 zi Project Tree Window 8 4 Setting the initial value If you would like to set an initial value proceed as follows e Switch to the IEC programming workspace e Double click on the Global Variables item Example program e Set the initial value for the variables here VO to initial value 1 j Name Type Usage Description Retain POD OPC Hid Sy Project C Documents and Settings pypm0 m 3 Default C Libraries
193. tput OUTO of the IB IL 24 DO 8 is switched off and the chasing light is switched off variable VO stops with a random final value Timer T2 has reached its final value of 15 seconds PHOENIX CONTACT 7 13 PC Worx CELINE ninevaue Usage Description Retain PDD OFC re B Project C Documents and SettingsspypmC Libraries TRUE BOOL VAREXTERNAL A immi S Data Types 15000 TME 5000 O OODI E sys_flag_types Joum FALSE BOOL VAR_EXTERNAL E zi Logical POUs 15000 TME O OOA S E Man 1584000 WORD VAR_EXTERNAL MainT IN FALSE BOOL EXTERNAL Em FALSE BOOL EXTERNAL x amp 12 2 FALSE BOOL YAR_EXTERNAL mimmril ysical Hardware r4 VAR F gt 111 lt gt lo mu d MainMain EasySim 1 TN 1 684000 Figure 7 15 Program run complete If input S1 is set to TRUE when the maximum time is reached T2 remains set to 15000 As soon as 51 switches to the FALSE state T2 is set to 0 e Activate and deactivate 51 to check the validity of this program part The program part with the AND block operates independently of the program part with the pulse timer see Figure 7 16 on page 7 15 e Activate deactivate the simulated LEDs by clicking that are assigned to
194. ultiplication Not Equal lt gt Complement Bitwise OR Rising Edge Detection Rotate Left Rotate Right Reset Dominant Shift Left Shift Right Set Dominant Subtraction Timer Off Delay Timer On Delay Main Main Pulse l 1 mms i 4 Build Errors Warnings Infos PLC Errors Print Multi User Bus Configurator AFDT For Help press F1 73 2 C gt 2GB Figure 8 1 IEC programming workspace e Inthe Edit Wizard window select the TP function block by double clicking on the corresponding function block 8 4 PHOENIX CONTACT 7127 en 03 7127_en_03 Example program e Enter the name TP_1 for this function block in the Variable Properties window and confirm your entry with OK Variable Properties Definition scope Data Type Local Variable Groups Cancel Usage Global Variable Groups Initial value 1 0 address Description Show all variables of worksheets Figure 8 2 Variable Properties window The function block is inserted in the worksheet lt gt ES Figure 8 3 Function block the programming workspace e Double click on the IN input parameter of the function block to define the variable properties e Inthe Variable Properties window enter or select the name for the IN input parameter under e Enter the name 51 PHOENIX CONTACT 8 5
195. under IP Settings If you would like to send your project to the controller via this Ethernet connection the communication path does not have to be set Since both the INTERBUS and PROFINET project have been created using the example of an ILC 390 PN 2TX IB the communication path setting displayed applies to this controller e Switch to the bus configuration workspace to set the communication path between the programming PC with PC WorX and the controller e Inthe Bus Structure window select the controller node e Select the Communication tab in the Device Details window e Select the communication path to the controller Bus Structure 4 Device Details 4 vE dis UNTITLED ILC 390 PN 2TX IB 192 168 0 2 Communication B ILC 390 PN 2TX IB 192 168 0 2 H Tu Interface Type Fe Resource R STD RES ILC390PN ILC 390 PN 2TX IB physical emulate n PROFINET 7 Communication Path Serial Port INTERBUS 0 0 serial interface Unconnected Ethernet User defined EP Station Name Resource STD RES AAA amp Settings EJ Extended Settings 4 Communication 28 CPU Service Editor 4 Bus interf gt Figure 4 30 Setting the communication path e Depending on the communication path proceed as described in Section 4 17 1 Communication via the serial interface or Section 4 17 2 Communication via Ethernet BootP is activated by default u
196. viously saved variable values back to the relevant memory addresses Please note When adding new retentive variables Each newly added variable is initialized with the assigned initial value on a warm start If an initial value was not assigned when the new variable was declared it is initialized with the default value for the relevant data type When modifying existing retentive variables The retain handling function identifies each retentive variable using its instance path variable name not case sensitive and data type If any one of these three items has been modified the retentive variable is considered a newly declared variable and initialized either with the declared initial value or with the default value as described above Please note that modifications within a user defined data type result in the initialization of all variables of this data type Example Following the modification of the data type of a structure all elements in this structure are initialized see above When deleting retentive variables Deleted retentive variables are not relevant for the retain handling function However it may be that the remaining retentive variables are moved to the memory image of the controller When moving retentive variables Please note that variables can be moved to the memory image of the controller if variables are added deleted and moved to the variables table With the Download Changes function th
197. x ib slave pd 16mcevO1 4 6F 1 20 amp FDT ic 370 eth 2tx ib slave pd 32mcevO1 4 6F 1 20 3 INTERBUS ilc 370 eth 2tx ib slave pd 48mcevO1 4 6F 1 20 3 Phoenix Contact Cie 370 eth 2tx ib slave pd 64mcevO1 4 6F 1 20 S modification ile 370 eth 2tx ib slave pd 80mcevO1 4 6 1 20 Picture Cic 370 eth 2tx ib slave pd 96mcevO1 4 6F 1 20 3 Picture 9 370 eth 2tx ib slave pd 112 01 4 6F Universal w Eje 370 eth 2b ib slave pd 128mcevO1 4 6F v lt gt lt Figure A 16 Directory for the device description files e Copy the required device description file to directory FDCML1 0 INTERBUS Phoenix Contact e Proceed as described above PHOENIX CONTACT 17 PC Worx A 18 PHOENIX CONTACT A 8 3 Device description files from other manufacturers GSD files GSD files can be used to integrate devices from manufacturers other than Phoenix Contact in PC Worx e Copy the GSD file for your device e g from the Internet to your PC hard disk e Select Phoenix Contact in the Device Catalog window in PC Worx e Open the context menu and select Import GSD File Device Catalog Phoenit Contact Universal Import Device Ctrl I Import 550 File Create new INTERBUS Device Description Import From OTM Catalog Create Catalog Import Catalog View as Grid Ctrl G Edit Catalog Representation Figure A 17 Device Catalog Import GSD File e Select t
198. xample O or 1 defined by OUT1 ne AND ANDing function block Table 8 3 AND ANDing function block Para Variable Data type Initial value Description meter name OUT BOOL VAR GLOBAL Output value AND 7127 en 03 PHOENIX CONTACT 8 3 PC Worx 8 3 Programming For programming proceed as follows e Switch to the IEC programming workspace e Double click on Main in the Project Tree Window to activate the IEC programming interface e Inthe Main worksheet click on the empty position where you would like to insert the function block PC WORX SIM Main Main HER File Edit View Project Build Objects Layout Online Extras Window ML sus NJ d Bhs ilm i 1 Project Tree Window Wizard 0 s SY Project C Documents and Settings pypmt Group Libraries Favorites Data Types poo sys flag types Description Gy Logical POUs dir 500 Addition 5 8 Main AND Bitwise AND Counter Down Counter Up Counter Up Down 5 wp Physical Hardware Division co STD CNF IPC 40 EEQ Equal 5 TD RES RFC430ET TRIG Falling Edge Detection E Tasks GE Greater Than Equal gt m SIRTE REFS Greater Than gt 2 D Main Main Le Less Than Equal lt Global Variables LT Less Than lt 0 Configuration Division Assigns Value M
199. y If a red status indicator appears an IP address may not have been assigned or the IP address needs to be changed To assign and change the TCP IP settings please proceed as described in Assigning the IP address for the controller on page 4 23 general Assigning the IP address for the controller on page 5 5 for INTERBUS or Assigning the IP address for the PROFINET lOcontroller on page 6 7 for PROFINET e Click on Apply to save your settings in the project NOTE The Inline Controller can be accessed via a network using the Ethernet interface and the TCP IP protocol Please note that with all networked devices computers there is a risk that third parties may access the Inline Controller or the PC WorX computer and make changes either intentionally or unintentionally Prevent unauthorized access to the Inline Controller and your PC 4 28 PHOENIX CONTACT 7127 en 03 Sequence for creating a project PN 4 18 Reading in and importing PROFINET IO devices If you have inserted the PROFINET IO devices manually skip this section 4 18 1 Reading PROFINET IO devices e sure you are in the bus configuration workspace e Inthe Bus Structure window select the PROFINET node e Open the context menu and select the Read PROFINET menu item 1 Bus Structure LUMTITLED Na ILC 390 PH 2 192 168 0 2 Resource Fe sTD RES ILC390PM ZA PROFINET A INTERBLIE Read PROFINET LIniconnecked Exchange D
200. youk Editor Create OPC Visualization File Reset DA Addressez PROFINET Configuration BaootP SMHPP TFTP ConFiguration Check Source Storages Shortcuts Options Figure 4 26 Extras BootP SNMP TFTP Configuration e Activate the BootP Server active checkbox 7127 en 03 PHOENIX CONTACT 4 23 PC Worx e Switch to the bus configuration workspace 7 Select the controller node e g ILC 390 PN 2TX IB e Select the IP Settings tab in the Device Details window e Enter the MAC address of the controller This can be found on a label on the device It starts with 00 A0 45 Bus Structure Sow Device Details UNTITLED LC 390 PN 2TX IB 192 168 0 2 VIP Settings NE ILC 390 PN zTX IB 192 168 0 2 Re Resource F STD RES ILC390RPN BH PROFIMET ge INTERBUS D 0 Unconnected Station Mame DeviceName 0000000000000 Eo Module Equipment ID MAC Address E IP Address 122 168 0 2 Subnetmask 255 255 255 0 Default Gateway FIP Settings EJ Extended Settings aM Communication jg CPU Service Editor Ap Bus interfaces Data sheet Figure 4 27 Entering the MAC address Reset the controller The controller is temporarily assigned the IP address which is specified in the project for the controller e Select the Extended Settings tab in the Device Details window The specified IP parameters are displayed under Manual definit

Download Pdf Manuals

image

Related Search

Related Contents

ターフェース  York YHJF18 User's Manual  Instrument Control Software User`s Manual    BMU6277APA_6277AP-M01A2-6277 User guide-ref  発注仕様書    

Copyright © All rights reserved.
Failed to retrieve file