ProSoft Technology MVI69-ADMNET User Manual
Page 53

MVI-ADMNET ♦ 'C' Programmable
Setting Up Your Development Environment
'C' Programmable Application Development Module with Ethernet
Developer's Guide
ProSoft Technology, Inc.
Page 53 of 122
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:
Example of 240 words of read and write data (cfg file=10)
Data Files
Description
N15:0 to 239
Read Data
N16:0 to 239
Write Data
Example of 2300 read and 3500 write data registers (cfg file=10)
Data Files
Description
N15:0 to 999
Read data words 0 to 999
N16:0 to 999
Read data words 1000 to 1999
N17:0 to 299
Read data words 2000 to 2299
N18:0 to 999
Write data words 0 to 999
N19:0 to 999
Write data words 1000 to 1999
N20:0 to 999
Write data words 2000 to 2999
N21:0 to 499
Write data words 3000 to 3499