beautypg.com

ProSoft Technology 5204SE-MNET-PDPMV1 User Manual

Page 153

background image

Reference 5204SE-MNET-PDPMV1

♦ ProLinx Gateway

User Manual

Modbus TCP/IP to PROFIBUS DP-V1 Pass-Through Master


ProSoft Technology, Inc.

Page 153 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.

MNETDPV1_DataOut Variable - Quantum

These variables allow you to take advantage of the MNETDPV1_DataOut DDT
structure.

There is no direct link or logic provided to populate data in the
MNETDPV1_Outputs variable from the data in these variables. If you wish to use
these variables for your application, you will need to create the logic to link the
variables in this structure to the MNETDPV1_Outputs array variable.

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 here. You may assign these variables to any valid %MW
addresses that exist in your processor configuration.

Sample Procedure for Copying from the MNETDPV1_DataOut variables to the

MNENTDPV1_Outputs array

1 Create an INT variable to use as the control variable in a copy loop. This

example uses the variable "j".

2 Assign a specific %MW address to the variables in the MNETDPV1_DataOut

variable structure. This example uses address %MW 1000.

3 Assign a specific %MW address to the MNETDPV1_Outputs variable array.

This example uses address %MW 1200.

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
64 bytes of PROFIBUS cyclic output data. So, the logic needed would look
something like this:

FOR j:=0 to 63 DO

%MW1000[j]:=%MW1200[j] ;

END_FOR

;