EasyManua.ls Logo

SEW-Eurodrive IPOS plus - Page 263

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®
263
18
State machine, fieldbus control with emergency mode
Compiler – Examples
/*===================================================
Main program
===================================================*/
main()
{
// Initialization =================================
// Initialize data structure bus data
busdata.BusType = 3; //bus type fieldbus
busdata.Len = 3;
busdata.PO1 = 0;
busdata.PO2 = 0;
busdata.PO3 = 0;
// Activate task 2
_SetTask2( T2_START,buscontrol );
// Main program loop ==============================
while(1)
{
}
}
/*===================================================
Task 2
===================================================*/
buscontrol()
{
_GetSys( busdata,GS_PODATA ); //get bus data
mode = modeselect; //read terminals for mode select
OptOutpIPOS = ((OutputLevel > > 3) & 0xFFFFFFFC) ¦ mode; //output mode
switch( mode )
{
case 0: mode_0();
break;
case 1: mode_1();
break;
case 2: mode_2();
break;
case 3: mode_3();
break;
}
}
P
i
f
kVA
Hz
n
P
i
f
kVA
Hz
n

Table of Contents