Prosoft-technology 5204SE-MNET-PDPMV1 Bedienungsanleitung Seite 108

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 235
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 107
5204SE-MNET-PDPMV1 ProLinx Gateway Reference
Modbus TCP/IP to PROFIBUS DP-V1 Pass-Through Master User Manual
Page 108 of 235 ProSoft Technology, Inc.
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 - M340
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 ;
Seitenansicht 107
1 2 ... 103 104 105 106 107 108 109 110 111 112 113 ... 234 235

Kommentare zu diesen Handbüchern

Keine Kommentare