ProSoft Technology MVI69-ADM User Manual

Page 89

Advertising
background image

MVI-ADM ♦ 'C' Programmable

Setting Up Your Development Environment

'C' Programmable Application Development Module

Developer's Guide

ProSoft Technology, Inc.

Page 89 of 342

February 20, 2013

Next, define the data files for the application. If the block transfer interface is
used, define the data files to hold the configuration, status, and user data. Enter
the module’s configuration in the user data files. Enter the ladder logic to handle
the blocks transferred between the module and the PLC. Download the program
to the PLC and test the program with the module.

If the side-connect interface is used, no ladder logic is required for data transfer.
The user data files to interface with the module must reside in contiguous order
in the processor. The first file to be used by the interface is the configuration file.
This is the file number set in the SC_DATA.TXT file using the SETDNPSC.EXE
program. The following table lists the files used by the side-connect interface:

File Number

Example

Size

Description

Cfg File

N10

300

Configuration/Control/Status File

Cfg File+1

N11

to 1000

Port 1 commands 0 to 99

Cfg File+2

N12

to 1000

Port 2 commands 0 to 99

Cfg File+5

N15

to 1000

Data transferred from the module to the processor.

Other files for read data.

Cfg File+5+n

N16

to 1000

Data transferred from the processor to the module.

Cfg File +5+n+m

Other files for write data.

n is the number of read data files minus one. Each file contains up to 1000
words.

m is the number of write data files minus one. Each file contains up to 1000
words.
Even if both files are not required for a port’s commands, they are still reserved
and should only be used for that purpose. The read and write data contained in
the last set of files possess the data transferred between the module and the
processor. The number of files required for each depends on the number of
registers configured for each operation. Two examples follow:

Advertising