Display Connection Simulator
Display Connection Simulator
1 Introduction:
This application note shows you step-by-step to create a basic PLC program with ABB eCo PLC and CP635
panel using Automation Builder software tool. It also guides you to create hardware configuration, program
and go online with PLC and HMI.
2 Objective:
In this application example, we use AC500 eCo PM564 ETH CPU with digital input simulator and CP635
panel. The personal computer will connect to PLC and HMI via 2 Ethernet ports on CP635 panel. These
ethernet ports work like an unmanaged switch for ethernet connection.
Description Quantity
PM564 ETH CPU 1
CP635 Panel 1
PC with Automation Builder V1.0 or later software installed 1
Power Supply 120vac in/24vdc out, 1.25A 1
CAT5 Ethernet patch cables 2
(If Automation Builder icon is not available on your desktop, click Start, go to All Programs, select ABB
folder and click on Automation Builder software tool.)
3.2 The Automation Builder Screen will appear as shown below, if Internet access is available Automation
Builder will show the default ABB homepage for PLC products
3.3 Create a new project by clicking the New button or selecting the File > New Project
3.4 Enter project name as shown in example below: My First eCo PLC and CP600 panel project
To specify the hardware configuration, the I/Os and their symbolic names have to be defined. Configure your I/O
by double clicking I/O (Onboard I/Os) and refer to the mapping tab window opened on the right side where you
can give variable names to each I/O points.
4.1 Double click AC500 (PM564-ETH) on the left to open this hardware menu
4.2 Change the value of Check battery from ON to OFF ( if no battery present for this example)
4.3 To create I/O variable for the CPU, double click on the OBIO selection. The I/O tab will open on your right
window with 3 child tabs. The 1st tab is I/O configuration, click on the 2nd tab for I/O Mapping for this
application example.
Note, if you made a mistake during the process, you can always undo by going to
Edit on the left hand top corner and click Undo.
For this exercise, we are using Ethernet connection for online access to this PLC.
Make sure that your PC address is in the same class as the CPU’s IP address. The factory setting of the
CPU for IP address is 192.168.0.10. Then the IP of the PC should be 192.168.0.x, x should be different
number than 10 so that it will not have an IP conflict with the CPU. Subnet mask should be
255.255.255.0.
5.1 Windows Control Panel > Network and Internet > Network and Sharing Center
5.2 Click on Change adapter settings
5.3 Select Local Area Connection (in this example is PLC network connection below) and right click it to
open the menu.
Choose Properties ( the status is active when the Ethernet connection between PC and PLC is active)
5.4 Select Internet Protocol Version 4 (TCP/IPv4) and double click to see properties.
5.5 Type in your desired IP address and subnet mask then click OK.
6.3 Click on Scan button for searching active PLC on the network
6.4 Highlight the active IP address in the search window
6.5 Change the IP address to new IP address such as 192.168.3.20
6.6 Click on Send Configuration button to send new IP address to PLC.
• The warning message window display is shown below for this change.
• This screen shows the progress of IP address settings is sending to CPU. Wait about 30 seconds for
CPU to register new IP address (the RUN and ERR lights are flashing during this process).
• Click OK to accept this new IP address for this CPU.
• Press “Scan” button again to verify the IP address of CPU. This window shows the Configured IP
address sent to CPU successfully. This IP address will be used in IEC 61131-3 CoDeSys to download
your PLC project to CPU.
From My First eCo PLC project windows, Right click on Application>Create Configuration to complile the
hardware configuration for this project.
After the Create configuration data complete, double click on Application to goto IEC-61131-3
programming environment as shown on next section.
7.1 Click on Resource tab to access to Global Variables > OBIO_Module_Mapping<R> window.
Verify that the mapping variables for this exercise are correct and tranfered from Automation
Builder OBIO configuration.
8.1 Click Project > Rebuild all to compile the PLC codes. Make sure there is no error in the project!
8.8 Insert another then click Shift-F2 to access Declare Variable table. Assign MotorTimeDone
as variable name as shown below then click OK to accept the changes.
8.9 Insert a coil ( ) to this network then press F2 to access to Input assistant table. Select
MotorRunning from OBIO_Module_Mapping global variables.
8.10 Click on the rail of network1 then right click to open the pop-up menu (or Ctrl+T). Select
Network (after) to insert new network below the current one.
8.11 On this network #2, add MotorRunning contact then right click on the network line to add
Timer(TON) from pop-up menu.
8.12 Press Shift+F2 to enter Motor_timer1 as variable name for this timer.
8.13 Add ElapseTime for ET with Type: TIME for this variable.
8.14 Add network #3, insert Motor_timer_done contact then add CTU function block by right
click
on the network line.
8.15 Add TIME_TO_REAL function block to convert from Time base to Real number for display
in HMI project.
8.16 Click on Function Block… to select CTU for this counter Up function block.
8.17 For this CTU, add CounterDone: BOOL and CounterValue: WORD to complete this
function block for this motor control logic.
8.18 Click Project > Rebuild all to complile this PLC logic.
Under General tab, activate the automatic Download symbol file option, the symbol file will be transferred
in AC500 CPU flash memory with the project after download
In CoDeSys\Project\Options tab
In CoDeSys\Project tab
Basic Unit Settings: System Settings: System basic settings are available from Control Panel, which is
accessible through the PB610 PanelBuilder 600 configuration mode.
10.1 Press and hold your finger on the screen for a few seconds until the context menu
appears.
10.2 Touch on Show system settings to access the system settings tools.
10.3 The system settings tool is a rotating menu through which you can scroll the menu
tabs
using Next and Back buttons.
NOTE: Settings selected and confirmed with the OK button in the upper right corner of the dialog are
automatically saved to the registry.
NOTE: Settings selected and confirmed with the OK button in the upper right corner of the dialog are
automatically saved to the registry.
11.3 Double click on Panel Builder 600 project, select New then Open from Import Project File menu
11.4 Click on Project properties to open Project Widget for panel size selection
13.3 The symbol file is placed in PC’s file location folder as shown below
13.4 Select the Application.SYM and “Open” it
13.7 Verify all the tags are imported into this window
14.2 To add new page, right click on Pages node from project tree and select “Insert new page” and
name it “ Main page” then click OK to accept it.
15.1 Select the this button from the Widget Gallery, then drag and drop it on the Main page workspace.
15.2 Label this button as Motor Start PB as momentary type, color: Green.
15.5 Open the widget gallery to select Light -Standard group then select this for motor status light
15.7 Select the MotorRunning from tag manager for this pilot light.
15.8 Select Label from Text/Numeric widget gallery for this light. Type “Motor Status” for this pilot light
16.3 Use the property Value to attach a tag to this widget. Click in the field, press + button and
select Attach To… counter value.
16.4 Add another numeric display for Motor Running timer with field value as ElapseTime_HMI as
shown below.
a.
17.2 Select Run/Download or use the marked symbol to start download dialog
17.4 You can test the CP600 application using the CP635 panel as shown below
17.5 Use Start Simulator mode: You can test the CP600 application using Online
Simulator. Click on Start Simulator to go to this mode.
17.6 Go Online with HMI: Uncheck Use Simulation to go online HMI and AC500 PLC.
17.7 Here is the HMI Simulator screen online with this PM578 ETH CPU.
And this is the progress window for this CP600HMI Client connect to this CP635 panel over internet
connection
Congratulations!!! You are controlling this CPU using Windows Client over internet connection.