ProSoft Technology MVI69-ADM User Manual

Page 6

Advertising
background image

Contents

MVI-ADM ♦ 'C' Programmable

Developer's Guide

'C' Programmable Application Development Module

Page 6 of 342

ProSoft Technology, Inc.

February 20, 2013

3.8

Serial API Files ....................................................................................................... 66

3.8.1

Serial API Architecture ............................................................................................ 66

3.9

Side-Connect API Files ........................................................................................... 67

3.9.1

Side-Connect API Architecture ............................................................................... 67

3.9.2

Data Transfer .......................................................................................................... 67

4

Setting Up Your Development Environment

69

4.1

Setting Up Your Compiler ....................................................................................... 70

4.1.1

Configuring Digital Mars C++ 8.49.......................................................................... 70

4.1.2

Configuring Borland C++5.02 ................................................................................. 80

4.2

Setting Up WINIMAGE ........................................................................................... 87

4.3

Installing and Configuring the Module .................................................................... 88

4.3.1

Using Side-Connect (Requires Side-Connect Adapter) (MVI71) ........................... 88

5

Programming the Module

91

5.1

ROM Disk Configuration ......................................................................................... 92

5.1.1

CONFIG.SYS File ................................................................................................... 92

5.1.2

Command Interpreter .............................................................................................. 94

5.1.3

Sample ROM Disk Image ....................................................................................... 95

5.2

Creating a ROM Disk Image ................................................................................... 97

5.2.1

WINIMAGE: Windows Disk Image Builder ............................................................. 97

5.3

MVIUPDAT ............................................................................................................. 99

5.4

MVI System BIOS Setup ...................................................................................... 101

5.5

Debugging Strategies ........................................................................................... 102

6

Creating Ladder Logic

103

6.1

MVI46 Ladder Logic .............................................................................................. 104

6.1.1

Main Routine ......................................................................................................... 104

6.2

MVI56 Ladder Logic .............................................................................................. 105

6.2.1

Main Routine ......................................................................................................... 105

6.2.2

Read Routine ........................................................................................................ 105

6.3

MVI69 Ladder Logic .............................................................................................. 106

6.3.1

Main Routine ......................................................................................................... 106

6.3.2

Read Routine ........................................................................................................ 107

6.3.3

Write Routine ........................................................................................................ 108

6.4

MVI71 Ladder Logic .............................................................................................. 109

6.4.1

Sample Ladder Logic ............................................................................................ 109

6.5

MVI94 Ladder Logic .............................................................................................. 115

6.5.1

Main Routine ......................................................................................................... 115

6.5.2

ADM ...................................................................................................................... 116

7

Application Development Function Library - ADM API

119

7.1

ADM API Functions .............................................................................................. 120

7.2

ADM API Initialization Functions........................................................................... 123

ADM_Open ................................................................................................................................ 123

ADM_Close ............................................................................................................................... 124

7.3

ADM API Debug Port Functions ........................................................................... 125

ADM_ProcessDebug ................................................................................................................. 125

Advertising