Herunterladen Inhalt Inhalt Diese Seite drucken

SEW IPOS plus Handbuch Seite 263

Inhaltsverzeichnis

Werbung

/*===================================================
Main program
===================================================*/
main ()
{
}
/*===================================================
Task 2
===================================================*/
buscontrol()
{
}
Handbuch – IPOSplus®
Zustandsautomat, Feldbussteuerung mit Notbetrieb
// Initialization =================================
// Initialize data structure bus data
busdata.BusType
= 3;
busdata.Len
= 3;
busdata.PO1
= 0;
busdata.PO2
= 0;
busdata.PO3
= 0;
// Activate task 2
_SetTask2( T2_START,buscontrol );
// Main program loop ==============================
while(1)
{
}
_GetSys( busdata,GS_PODATA );
mode = modeselect;
OptOutpIPOS = ((OutputLevel > >
switch( mode )
{
case
0: mode_0();
break;
case
1: mode_1();
break;
case
2: mode_2();
break;
case
3: mode_3();
break;
}
Compiler – Beispiele
//bus type fieldbus
//get bus data
//read terminals for mode select
3) & 0xFFFFFFFC) ¦ mode;
n
n
kVA
kVA
18
f
f
i
i
P
Hz
Hz
P
//output mode
263

Quicklinks ausblenden:

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis