Wiki

This version is outdated by a newer approved version.DiffThis version (09 Nov 2018 11:46) is a draft.
Approvals: 0/1

This is an old revision of the document!


PLC Arduino Shield Input Demo

The ADuCM_demo_cn0414 project provides a solution to control a PLC or DCS input system using the EVAL-CN0414-ARDZ and the EVAL-ADICUP3029. It uses an ADC with 4 differential voltage channels and 4 current channels and boasts low power Open-Wire Detection capabilities and HART communication. It has a 32kb EEPROM memory that can also be used to identify the board and is controlled via a command line interface (CLI).

General Description/Overview

The ADuCM_demo_cn0414 project uses EVAL-CN0414-ARDZ to provide a complete, fully isolated and highly flexible, four channel analog input system. The EVAL-CN0414-ARDZ is suitable for programmable logic controllers (PLC) and distributed control system (DCS) applications that require multiple voltage inputs. It boasts open wire detection and has HART-compatible, 4 mA to 20 mA current inputs, all protected from transient overvoltage or overcurrent events, suitable for the most harsh industrial environments.

The circuit can be divided into the following parts: the ADC, the input channels, the HART modem and the memory. FIXME! MAYBE LINK TO APP NOTE

The ADC is the core of the EVAL-CN0414-ARDZ shield. It is an AD4111 with 8 single or 4 differential voltage channels and 4 current channels. The input channels in this application are configured as 4 differential voltage channels and the current channels. The application maintains 8 internal registers, one for each channel, that are updated periodically, on a timer interrupt, with the latest conversion results. This way, on a single read, the user can have the data on a channel without waiting for a conversion. FIXME! MARKS DIAGRAM Alternatively the user can request a burst read of up to 2000 samples returned at the ADC output data rate. The application uses the ADCs Open-Wire Detection capabilities for the voltage channels. When activated this option also tracks the state of the channel connection on every read and gives a warning when a channel is disconnected.

The EVAL-CN0414-ARDZ is HART capable. When this option is activated the current channels can be used to transmit or receive HART messages or command zero and receive response. The system is capable of receiving messages asynchronously using a GPIO interrupt.

The system also includes an EEPROM memory that communicates with the controller via I2C and can be used to store data or identification information for the board. The memory can be used to uniquely identify the board in a system of 4 similar boards (EVAL-CN0414-ARDZ or EVAL-CN0418-ARDZ) controlled by the same EVAL-ADICUP3029.

Demo Requirements

The following is a list of items needed in order to replicate this demo.

  • Hardware
    • EVAL-ADICUP3029
    • EVAL-CN0414-ARDZ
    • Mirco USB to USB cable
    • PC or Laptop with a USB port
    • 24V and 1A limited power supply (optional)
  • Software
    • CrossCore Embedded Studio (2.8.0 or higher)
    • ADuCM302x DFP (3.2.0 or higher)
    • ADICUP3029 BSP (1.1.0 or higher)
    • Serial Terminal Program
      • Such as Putty or Tera Term

Setting up the Hardware

  1. Connect EVAL-CN0414-ARDZ board to the EVAL-ADICUP3029. Hard setup 1
  2. Connect a micro-USB cable to P10 connector of the EVAL-ADICUP3029 and connect it to a computer. Hard setup 1

Configuring the Software

The configuration parameters can be found in the config.h file.

vref - Reference voltage of the ADC. If the internal reference is used this value must be 2.5V. If an external reference is used then this value must be the value of the external reference.

Referece vref value
internal 2.5
external Actual reference voltage
   /* Reference voltage of the ADC */
   float vref = 2.5;

Outputting Data

Serial Terminal Output

!FIXME - make sure this is correct for your application Once the hardware and software is configured, user needs to follow on screen instructions to run Visible Light Detection\Measurement demo.

Following is the UART configuration.

  Select COM Port
  Baud rate: 9600
  Data: 8 bit
  Parity: none
  Stop: 1 bit
  Flow Control: none


Smart Device Output

!FIXME - Make sure you point out which app is correct and then talk about the data that gets output. (Pictures are great) and link over to the app page so customers can figure out how to download/install it. If it's not Bluetooth compatible remove this section

Wi-Fi Output

!FIXME - Make sure you talk about how to display the data, and link over to the Wi-Fi wiki page for more details. It the example isn't Wi-Fi enabled delete this section.

Obtaining the Source Code

We recommend not opening the project directly, but rather import it into CrossCore Embedded Studios and make a local copy in your workspace.

The source code and include files of the FIXME!file_name_of_demo can be found here:

FIXME! - This will be either a link to a Git repository or a pack file somewhere, but make sure this is accessible to the customer. We want them to take our code and use it because that means they are going to use our hardware, and we get paid when that happens.

AduCM360_demo_cn0398 at Github

How to use the Tools

The official tool we promote for use with the EVAL-ADICUP3029 is CrossCore Embedded Studio. For more information on downloading the tools and a quick start guide on how to use the tool basics, please check out the Tools Overview page.

Importing

For more detailed instructions on importing this application/demo example into the CrossCore Embedded Studios tools, please view our How to import existing projects into your workspace section.

Debugging

For more detailed instructions on importing this application/demo example into the CrossCore Embedded Studios tools, please view our How to configure the debug session section.

Project Structure

FIXME! - Add text, picture, images, that describe the project structure. Any software flow diagrams or decision trees can be added her to help customers understand how the applications are structures.

End of Document

resources/eval/user-guides/eval-adicup3029/reference_designs/demo_cn0414.1541760415.txt.gz · Last modified: 09 Nov 2018 11:46 by Andrei Drimbarean