ProSoft Technology 5204SE-MNET-PDPMV1 User Manual
Page 149

Reference 5204SE-MNET-PDPMV1
♦ ProLinx Gateway
User Manual
Modbus TCP/IP to PROFIBUS DP-V1 Pass-Through Master
ProSoft Technology, Inc.
Page 149 of 235
December 22, 2009
If you wish to put gaps into the memory map to give more separation between
data blocks from different slave addresses, you may do so in the PROFIBUS
Master configuration in PCB by editing the starting address of the data for each
slave so that it falls on whatever byte or register address you prefer.
MNETDPV1_DataIn Variables - Quantum
These variables allow you to take advantage of the MNETDPV1_DataIn DDT
structure.
There is no direct link or logic provided to populate this array with the data
received in the MNETDPV1_Inputs variable. If you wish to use these variables
for your application, you will need to create the logic to link the individual bytes of
the MNETDPV1_Inputs variable to the word array variables in this structure.
The %MW addresses shown are for illustration only. If you decide to use these
variables, your application may require that you map them to addresses other
than the ones shown. You may assign these variables to any valid %MW
addresses that exist in your processor configuration.
Sample Procedure for Copying from the MNETDPV1_Inputs array to the
MNENTDPV1_DataIn Variables
1 Create an INT variable to use as the control variable in a copy loop. This
example uses the variable "i".
2 Assign a specific %MW address to the variables in the MNETDPV1_Inputs
variable array. This example uses address %MW 200.
3 Assign a specific %MW address to the MNETDPV1_DataIn variable
structure. This example uses address %MW 1.
4 Use logic to copy from one set of %MW memory addresses to the other for
the amount of data you need to copy. In our sample configuration, we have
16 bytes of PROFIBUS cyclic input data. So, the logic needed would look
something like this:
FOR i:=0 to 15 DO
%MW1[i]:=%MW200[i] ;
END_FOR
;