EasyManua.ls Logo

SEW-Eurodrive IPOS plus - Reading a Parameter Via Sbus

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®
255
18
MoviLink command
Compiler – Examples
18.6.3 Reading a parameter via SBus
/*=========================================
Process data configuration of inverter
connected via SBus is written to variable
lPDData in task 1.
The received values correspond to the
following process data configuration:
0 = PARAM + 1PD
1 = 1PD
2 = PARAM + 2PD
3 = 2PD
4 = PARAM + 3PD
5 = 3PD
6 = PARAM + 6PD
7 = 6PD
8 = PARAM + 10PD
9 = 10PD
=========================================*/
/*=========================================
IPOS Source file
=========================================*/
#include <constb.h>
#include <iob.h>
// Definition of MOVLNK structures
MOVLNK tPD;
MLDATA tData;
// Definition of variables
long lPDData;
/*=========================================
Main program
=========================================*/
main()
{
// Initialization of MoviLink for bus transfer
tPD.BusType = ML_BT_SBUS; // bus type SBus
tPD.Address = 10; // SBus address 10
tPD.Format = ML_FT_PAR; // only parameters
tPD.Service = ML_S_RD; // read
tPD.Index = 8451; // P090 PD data config
tPD.DPointer = numof(tData); // data buffer
// Main program loop
while(1)
{
// Read PD configuration
_MoviLink( tPD );
lPDData = tData.ReadPar;
}
}
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n

Table of Contents