### IO/IO/ai/ioPAC8500_iec_ai/ioPAC8500_iec_ai_readme/ioPAC8500_iec_ai_readme.md

# ioPAC8500_iec_ai

## Detailed Description

### Background

ioPAC8500 AI IEC Sample Project

##### Copyright

Moxa Inc.

##### Date

08-18-2015

##### Author

TJ Tai

##### Version

V1.0

## Scenario

### Introduction

This is AI IEC sample project. The controller get AI value or status and then set DO on/off.

ioPAC8500_iec_ai scenario

## Operating Environment

### Hardware Environment

- CPU module:

    ioPAC 8500-9-RJ45-IEC-T

- Slot 2:

    85M-2600-T

- Slot 3:

    85M-3811-T

- Slot 4:

    85M-3800-T

### Software Environment

- Programming Tool:

    ISaGRAF 6.3

- Configuration Tool:

    Moxa RTUxpress 1.1

### Config Setting

Config file: ioPAC8500_iec_ai.rtu

## Step by Step

### Initialization

1. Import config file onto ioPAC
2. Open IEC project via ISaGRAF
3. Build -> Build Solution
4. Import IEC porject onto ioPAC

### Step 1

85M-3811(slot 3) detect channel 0 and 1 and compare its value, if AI0 > AI1, then set DO0 on (slot 2); otherwise set DO0 off.

### Step 2

85M-3800(slot 4) channel 0 with a burn-out value at 3mA which is config by RTUxpress has four status that refer to DO channel 0 to channel 3.

## Reference

- ISaGRAF Function Block Help:

  > please press F1 button on the function block which need more description in the ISaGRAF

- Moxa ioPAC ISaGRAF Reference Manuals:

  > Please press Help -> Moxa ioPAC ISaGRAF Reference Manuals in the Moxa RTUxpress utility