EasyManua.ls Logo

SEW-Eurodrive IPOS plus - Movilink Command; Reading an Internal Unit Parameter

SEW-Eurodrive IPOS plus
384 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Manual – IPOSplus®
253
18
MoviLink command
Compiler – Examples
18.6 MoviLink command
The _MoviLink command exchanges data or parameters between units via SBus or
RS-485. It is also possible to read or change internal unit parameters.
The following three examples are to illustrate the function of the _MoviLink command:
Reading an internal unit parameter: The set reference travel type is read via
_MoviLink.
Writing a variable via SBus: If a MOVIDRIVE
®
unit is connected via SBus, variable
H200 is written depending on the status of the binary input DI17.
Reading a parameter via SBus: The process data configuration of the inverter
connected by SBus is read with the address 10.
18.6.1 Reading an internal unit parameter
/*=========================================
Type of reference travel actually entered
in P903 is read in task 1 and written to
variable lRefType.
=========================================*/
/*=========================================
IPOS Source file
=========================================*/
#include <constb.h>
#include <iob.h>
// Definition of MOVLNK structures
MOVLNK tRefType;
MLDATA tData;
// Definition of Variables
long lRefType;
/*=========================================
Main program
=========================================*/
main()
{
// Initialization of MoviLink for bus transfer
tRefType.BusType = ML_BT_S1;
tRefType.Address = 253 // own inverter
tRefType.Format = ML_FT_PAR; // only parameters
tRefType.Service = ML_S_RD; // read
tRefType.Index = 8626; // P903 RefType
tRefType.DPointer = numof(tData); // data buffer
// Main program loop
while(1)
{
// Read type of reference travel
_MoviLink( tRefType );
lRefType = tData.ReadPar;
}
}
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n

Table of Contents