PACSystems™ IC695CPL410 RX3i 64 MB Rackless CPU with Field Agent Quick Start Guide GFK-3053B November 2019
Contents Front Panel Description ........................................................................... 2 User Features .......................................................................................... 3 Switches ................................................................................................. 7 Displays and Indicators (LEDs) .................................................................. 8 USB Ports ...........................................................................
Connect to Power Supply .............................................................................. 19 Module Start-up .................................................................................... 22 You Will Need:.............................................................................................. 22 Basic Start-up Steps ...................................................................................... 23 CPL410 PLC Configuration ....................................................
Sample Web Page ................................................................................. 35 Data Exchange with PLC - OPC-UA................................................................. 39 Factory Reset ............................................................................................... 45 SQLite Demonstration Database ................................................................... 46 GPOK LED.........................................................................................
Front Panel Description Figure 1: Display, Lights, and Connectors on the CPL410 2 IC695CPL410 Rackless CPU w/Field Agent Quick Start Guide GFK-3053C
User Features The PACSystems™ RX3i CPL410 deploys with an integrated Linux server. The CPL410 augments real-time deterministic control with an Ubuntu 16.04 Server Linux, open to modifications and enhancements. With this product, customers can implement custom data processing like Edge- or Cloud-based analytics, Cloud storage, WEB visualization and many more.
- Supports up to 768 program blocks. Maximum size for a block is 128KB. For a more extensive feature list of the RX3i PLC please consult the PACSystems Reference Manual, GFK-2222 • A built in Ubuntu 16.04 Server LTS: o Ubuntu is a free, open source operating system. It is very well known and in widespread use. For CPL410 the Ubuntu Server variant has been selected as it includes multiple network utilities and protocols and has a smaller footprint than the Desktop version.
32 Clients are permitted; each may be SRTP or Modbus/TCP. OPC UA Server with support for up to 5 concurrent sessions with up to 10 concurrent variable subscriptions and up to 12,500 variables; o up to 255 simultaneous Class 1 Ethernet Global Data (EGD) exchanges. o DNP3 Outstation support with up to 8 master client connections. The embedded PLC may use one or both Ethernet LAN2 ports to support the embedded PROFINET® I/O Controller. PROFINET supports up to 32 I/O devices with update rates of 1 – 512 ms.
• • • • • • 6 The real-time part of CPL410 is secure by design, incorporating technologies such as Trusted Platform Modules, secure boot, and encrypted firmware updates. It is neither accessible or modifiable by customers nor intruders, thus guaranteeing the integrity of the controller. As the Linux part of the CPL410 is open to modifications, this security cannot be provided for Linux. Customer must take care about sealing Linux to the degree necessary for the actual use case.
Switches All user-accessible switches are provided as pushbuttons on the front panel as described below. Pushbutton DISP SEL RUN STOP PHY PRES PWR 7 Function Permits user to navigate menus in the OLED display. Permits user to select the menu item on the OLED display. Activates OLED Menu to select RUN/Enabled or RUN/Disabled Mode for the embedded PLC. Activates OLED Menu to select STOP/Enabled or STOP/Disabled Mode for the embedded PLC. Not functional. Hold down for brief period to induce CPU Reset.
Displays and Indicators (LEDs) OLED Display The monochrome organic light-emitting diode (OLED) display is used to display CPL410 system menus. It interacts with the DISP pushbutton, which jogs the cursor from one menu item to the next, and with the SEL pushbutton, which activates the currently indicated menu item for further action. The OLED display permits the user to: 8 ▪ Display Ethernet LAN Settings: IPv4 address. ▪ Display the PLC firmware revision. ▪ Set/view PLC mode and view sweep time.
Status Indicators (LEDs) LED PLC MODE LED State Operating State On Green PLC is in RUN mode. Off PLC is in STOP mode. 1 RUN OE PHY PRES SSD TEMP OK Blinking in unison CPU is updating an internal programmable hardware device. On Green Off On Green Off On Red Off On Green TPM Physical Presence (not functional). Off Blinking; All other LEDs off OK OE 1 Blinking alternatel y Activity detected on Solid State Disk. No activity detected on Solid State Disk. CPU Overtemperature condition detected.
LED OE FRC FLT IO RACT RBOK GPOK PWR 10 LED State On Green Off On Yellow Off On Red Operating State Output scan is enabled. Output scan is disabled. One or more Overrides active in I/O Reference Table(s). No Overrides active in any I/O Reference Table. PLC is in STOP/Faulted mode: a fatal fault has occurred. Off No fatal faults detected. On Green PROFINET Connection Status = OK. Off PROFINET Connection Status not OK. On Green Local Redundant CPU is Ready & Active. Off Local Redundant CPU is not Ready.
Front Ethernet Indicators (LAN1, LAN2, LAN3 RJ45 Built-in LEDs) LED Link Status (upper) Link Speed (lower) LED State Operating State On Green The corresponding link has been established. Blinking Green Traffic is detected at the corresponding port. Off No connection established at corresponding port. On Green Corresponding data speed is 1 Gbps or 100 Mbps.
USB Ports On the front panel CPL410 features 2 USB 3.0 ports, labeled USB1 and USB2. • USB1 is assigned to Linux and can be used for keyboards, memory sticks or other memory devices. For other USB devices an appropriate Linux driver will need to be installed. • USB2 is assigned to the Controller run time PACS. Front-Panel Ethernet Ports LAN1 connects to the uppermost RJ45 connector. It is not switched. LAN2 connects to the middle two RJ45 connectors. These two ports are switched internally.
To establish Ethernet communications between the PME programming and configuration software and the CPU, you first need to know the target IP address. Use the OLED menu function to check the IP Address. The factoryshipped default settings are: IP Address: Subnet Mask: Gateway: CPL410 LAN1 192.168.0.100 255.255.255.0 CPL410 LAN2 10.10.0.100 255.255.255.0 CPL410 LAN3 N/A N/A 0.0.0.0 0.0.0.0 N/A Linux Port The RJ45 port, marked ETH, is located on the underside of the CPL410, as shown in Figure 2.
Serial COM Port The RJ45 port marked Serial COM is located on the underside of the CPL410, as shown in Figure 2. Effective with firmware release 9.40, the CPL410 supports the serial port. This port supports Serial IO protocol. Figure 2: Underside Ports & Connections Video Display Port The Display Port is located on the underside of the CPL410, as shown in Figure 2. It provides signals for connecting either a suitable monitor or video adapter to the unit. This port is not currently supported.
Energy Pack is optional. When used, it allows the CPL410 to save its current state upon loss of power. Refer to the PACSystems RX3i Rackless Energy Pack IC695ACC403 Quick Start Guide, GFK-3000, for complete wiring and grounding instructions. Input Power Connector If no Energy Pack is to be connected, refer to the Connect to Power Supply section. Otherwise, refer to the PACSystems RX3i Rackless Energy Pack IC695ACC403 Quick Start Guide, GFK-3000.
After unpacking the equipment, record all serial numbers. Serial numbers are required if you should need to contact Customer Care during the warranty period. All shipping containers and all packing material should be saved should it be necessary to transport or ship any part of the system. Verify that all components of the system have been received and that they agree with your order. If the system received does not agree with your order, contact Customer Care.
Figure 3: Thermal Spacing Requirements Figure 4: Mounting on DIN Rail 100mm adjacent device above Air flow max.
If using the panel-mount adaptor, two options are available: mount using two screws (Figure 6) or, for more secure mounting, mount using four screws (Figure 7).
Installation in Hazardous Areas Refer to Installation and Maintenance Requirements, GFK-3004. Connect to Power Supply The 24 VDC power input connector is located on the underside of the CPL410, as shown in Figure 8. The signal pinouts are also indicated. Figure 8: 24 VDC Power Input Connector The mating connector for the CPL410 24Vdc power input is the 3-pin Phoenix 1827716 shown in Figure 9. The power supply cable prepared by the user must use the specified mating connector.
The user-supplied SELV2 power supply must supply voltage in the range of 18Vdc to 30Vdc. Figure 9: 24 VDC Power Input Module Connector Once the power supply cable (or compatible Energy Pack ACC403) has been attached to the CPL410 and the power supply has been turned on, the unit will start booting. There is no need to push any button. The unit is equipped with built-in reverse polarity protection. If + and - are swapped the unit will not power-up. If + is connected to FGND, this will cause a short.
CAUTION EQUIPMENT REPAIR REQUIRED – Internal components must be repaired at the factory; they are not field replaceable. Contact the support team at the link provided at the end of this document. Overcurrent protection The function protects the internal circuitry from overcurrent conditions before serious damage can occur, such as overheating of the equipment. The fuse is rated for 4A continuous current. Once the sensed current reaches 40A, the fuse will blow after a period of 10ms to 100ms.
Module Start-up You Will Need: 22 ▪ This PACSystems Rackless RX3i CPU. ▪ A compatible SELV 24Vdc, 48W power supply (72W if Energy Pack attached). ▪ (Optionally) A compatible Energy Pack, IC695ACC403, and corresponding cable. ▪ If no Energy Pack is to be attached, use the power supply cable described in section Connect to Power Supply. Otherwise, refer to PACSystems RX3i Rackless Energy Pack IC695ACC403 Quick Start Guide, GFK-3000.
Basic Start-up Steps For startup and configuration of the CPL410, complete the following steps. For full details on CPL410 operation, refer to the PACSystems RX3i and CPU Reference Manual, GFK-2222Y or later. 1. Mount the CPL410, as described in the Installation section and per the Installation and Maintenance Requirements document, GFK3004. 2. Attach the user-supplied power supply cable as described in Connect to Power Supply if no Energy Pack is being used. 3.
Note: In the event of loss of power, with the ACC403 Energy Pack connected and charged up, the CPL410 remains on for 4 seconds to backup user memory into its non-volatile memory. CPL410 PLC Configuration To configure, the CPL410, connect the computer running the PME programming software to any of the front-panel Ethernet ports. PME 9.00 SIM 8 or later is required The CPL410 is the first controller available in the PACSystems RX3i Rackless family.
PROFINET Controller Configuration An Embedded PROFINET Controller may be configured on LAN2. To enable the PROFINET Controller in a CPL410 project, select the CPL410 target in the PME Navigator (Figure 10) and open the Hardware Configuration. On the Settings tab, change the designated LAN Mode of the selected port to PROFINET. The PROFINET Controller node description then displays that a PROFINET node exists on the selected LAN (under the CPL410).
Redundancy Configuration It is possible to configure the RX3i PLC part of CPL410 as a Hot Standby Redundancy CPU with PROFINET IO. The two ports on LAN3 are used exclusively for this purpose: they provide a high-speed data synchronization link between the two CPUs. Connect the upper LAN3 port of the Primary CPU to the upper LAN3 port of the Secondary CPU and connect the lower LAN3 port of the Primary to the lower LAN3 port of the Secondary.
▪ For further details, refer to the PACSystems Hot Standby CPU Redundancy User Manual, GFK-2308 (rev L or later). CPL410 Linux Ubuntu 16.04 Server LTS Linux is preinstalled on CPL410. Please note that the Server variant of Ubuntu does not offer a graphical desktop like GNOME or KDE, but only alphanumerical user interfaces (terminals). Additionally, the usage of graphic drivers is prevented by Kernel parameter to avoid unpredictable side effects (like CPU slow down due to overheating).
display menu: GP Settings ->Network Config 3. On the remote system (e.g. a desktop PC or Laptop) the user will need a SSH client like Putty (https://putty.org/) or Kitty (http://www.9bis.net/kitty/). Enter the IP Address determined in the prior step, select the SSH protocol and open the connection (Figure 11).
After the connection has been established, the CPL410 login prompt appears: Figure 12: Login from Remote System Default user on CPL410 is admin with password admin. When logging in for the first time, you will be asked to provide a new password. Be sure to remember your new password, as there is no other way to access Linux without it. ▪ Default User Name: admin ▪ Default Password: admin Note: For security reasons, it is common practice not to use the Superuser root account for login.
Network configuration DHCP CPL410 Linux is configured by default to receive its IP Address via DHCP over the ETH Ethernet port (Figure 2). After receiving the network parameters, the active IP Address, together with other network information, can be determined via the OLED display menu GP Settings -> Network config, or by issuing the command ifconfig when logged in. Note: A DHCP server is essential for the first remote login over SSH.
Static IP Addresses Sometimes it is desirable to avoid use of DHCP. In this case, assign a distinct, static IP Address manually to the target CPL410. Both, DHCP and static IP Addresses are configured in the file /etc/network/interfaces. Assign a Static IP Address ▪ To change from DHCP (default configuration) to static IP Addresses, edit the file /etc/network/interfaces manually, by using one of the available Editors (see below).
Proxy Settings for APT Package Management The APT package management (apt, apt-get commands) uses a different configuration file for proxy settings: /etc/apt/apt.conf. Linux Software Pre-installed Editors By default, the following Editors are available: ▪ VIM ▪ Nano ▪ Midnight Commander (mc) Additional Installed Packages The CPL410 Linux installation is based on the Ubuntu 16.04 LTS Server distribution.
• • • • • • • • • • • php php-sqlite3 phpLiteAdmin zutils gdisk mc FreeOpcUa FreeOpcUa Documentation (/var/www/html/FreeOpcUa) python-concurrent.futures python-enum34 python-trollius • • • • • • • • • python-dateutil python-tz python-lxml python-sphinx python3-dateutil python3-tz python3-lxml python3-crypto python3-cryptography Packages/SW by Emerson • • • • • • • • • • • • • opc2sqlite.
Note: Please keep in mind, that preinstalled Ubuntu is a server variant, not offering a graphical desktop like KDE or GNOME. Therefore, installing graphical programs like Web browsers only makes sense if additionally installing a X11 windowing system (or similar) and forwarding the output to a remote device (the CPL410 Display Port cannot be used for graphical output). On the command line apt (Advanced Packaging Tool) or apt-get command is used to install, update or delete a software package.
Note: There always is a risk of damage to the Linux installation when upgrading the system, especially if the Kernel is being updated. Consider performing such an upgrade in a protected environment before attempting such an upgrade on a production system. CPL410 File Exchange The ssh service, mentioned earlier regarding remote login, can also be used to copy files from a remote computer to the CPL410 Linux and vice versa.
For security reasons all requests using the HTTP protocol are redirected to the encrypted HTTPS protocol. This can be modified by editing the Apache2 configuration file /etc/apache2/sites-available/ 000-default.conf. As CPL410 uses the Ubuntu default self-signed certificate for encrypted HTTPS communication, a warning is displayed when opening the CPL410 Webpage the first time.
CPL410 Information Figure 13: CPL410 Information Location 1. 2. 3. 4. 5. 6. 7. 8.
CPL410 Example Webpages and Applications Figure 14: Example Webpages and Applications 1. Link to the phpLiteAdmin Tool for administering the example SQLite database located in the user “admin” home directory: /home/admin/sqlite/sampledb 2. This link calls the local default Webpage normally provided by Ubuntu as a start page. 3. Link to the Ubuntu Server Guide on the Internet. 4. Local Ubuntu Server Guide in PDF format. 5. Link to the CPL410 PLC Runtime Update page.
need to adapt the /var/www/html/index.php file accordingly (near line 106). 6. Documentation for the Pure Python OPC UA Library used to exchange data with the PLC runtime via OPC UA. 7. Link to an example Webpage demonstrating the OPC UA data exchange and database storage. This link works properly only, if a PLC program existing exporting OPC UA variables. 8. Information about Open Source Licenses and Open Source used for CPL410.
Figure 15: Data Exchange PLC OPC UA To exchange data over this virtual network, an OPC-UA server is instantiated in the PLC, implementing the OPC-UA protocol, thus allowing a Linux OPCUA Client to request and set PLC variables. OPC-UA protocol makes use of the operating systems TCP/IP stack to send data over the virtual network.
PLC: Linux: Network Mask: OPC-UA Server Port: 192.168.180.2 192.168.180.1 255.255.255.0 4840 The network part of the IP-Address as well as the PLC IP-Address cannot be changed by user. The Linux IP-Address of this network can be changed in the /etc/init.d/ rthinitVirt script, but it is not recommended to do so. Note: As the network 192.168.180.0/24 is used for the virtual network between the CPL410 VMs, this network must not be used on any physical Ethernet port.
This reads the current value of the variable Cosine in the PLC and stores it in the SQLite database /home/admin/sqlite/sampledb. Note: To successfully read or write PLC variables via OPC-UA, those PLC variables need to be published/exported in the PLC project: Figure 16: Variable Name Designation The Python example mentioned above especially expects a variable named Cosine to be exported. Please modify the script, if a different variable shall be used.
A more sophisticated example can be found via the CPL410 Web page. This example is also implemented in Python and based on “Pure Python OPC UA” library. It is executed by the Apache2 Webserver as a CGI script, generating dynamically HTML code send to a Web browser. To be executable by Apache2, it is stored in the Apache CGI directory /var/www/cgi-bin and named PyOpcUaWeb.py. The database used by the PyOpcUaWeb.
the names available (published) for OPC-UA. Those names are added to this list box. In the list box an entry can be selected for further operations. 2) 3) With the Variable selected in (1) 3 actions can be performed: a. Get the value of the selected variable. Result is shown in (4),(5),(6),(7) b. Set the variable to the value entered in (3). After the variable has been set the current value is read and displayed in the output area. c.
Factory Reset It might happen that a user locks him/herself out from Linux, or Linux fails to start following a misconfiguration. In such cases, Linux can be restored to its original manufacturer settings: ▪ Factory Reset can be triggered via the OLED-Display Menu: GP Settings->Commands->Factory Reset. ▪ After the Factory Reset has been triggered, a manual power cycle must be executed by pressing the power button for more than 4 seconds.
SQLite Demonstration Database SQLite ( https://sqlite.org/ ) is an embedded, file based database engine. SQLite database files are directly modified via library calls and not via a server interface respectively a network service. Therefore, SQLite cannot be accessed remotely and is only suitable for small amounts of data and slow data rates, it is normally not used in a production environment. SQLite and related libraries have been installed on CPL410 for demonstration purposes only.
Figure 18: phpLiteAdmin Login The table valutable in the sample database (sampled) contains the variables stored by the Python examples: Figure 19: Variables Stored by Python Examples 47 IC695CPL410 Rackless CPU w/Field Agent Quick Start Guide GFK-3053C
GPOK LED The General-Purpose operating system OK LED (GPOK LED) signals the status of the Linux operating system. If this LED is blinking Linux is running. As all front LEDs and the OLED display are controlled by the real-time Control Engine, Linux can´t set the GPOK LED directly, but needs to signal status indirectly. Two Linux processes -faStateManager and efaSmiApp- are managing the communication to share information, like status or IPAddress, with the Control Engine.
g. User can manually modify this file to change the GPOK LEDs behavior, or automatically update the file to signal different states of an application. 2. /var/ge/FieldAgentInfo/HwInfo.txt: This file contains the catalog and the serial number of the CPL410. This data is read by the Control Engine from a Factory EEProm and transferred to Linux into this file.
For binaries that you receive in this distribution that are licensed under any version of the GNU General Public License (GPL) or the GNU Library/Lesser General Public License (LGPL), you can receive, for a fee of no more than our cost of physically performing the distribution, a complete machinereadable copy of the source code by sending a written request to: Emerson Attn: General Counsel 2500 Austin Drive Charlottesville, VA 22911 Your request should include: (i) the name of the covered binary, (ii) the v
General Contact Information Website http://www.emerson.com/industrial-automation-controls/ Technical Support http://www.emerson.com/industrial-automation-controls/support All Rights Reserved. We reserve the right to modify or improve the designs or specifications of the products mentioned in this manual at any time without notice. Emerson does not assume responsibility for the selection, use or maintenance of any product.