Herunterladen Inhalt Inhalt Diese Seite drucken

HEIDENHAIN IK 320 Benutzerhandbuch Seite 48

Vmebus-zählerkarte
Inhaltsverzeichnis

Werbung

!%Á
break;
case 0x05:
if (stawbStatus.tb.uc0 & 0x01)
{
extucErrorCode = 0x03;
}
if (stawbStatus.tb.uc0 & 0x02)
{
extucErrorCode = 0x04;
}
break;
case 0x06:
if (stawbStatus.tb.uc0 == 1)
outportb (usAddress + TM_X1, (char)0x00);//Reset TM_X1
else if (stawbStatus.tb.uc0 == 2)
outportb (usAddress + TM_X2, (char)0x00);//Reset TM_X2
else
outportb (usAddress + TM_COMB, (char)0x00);//Reset TM_COMB
break;
case 0x07:
extucMessage = 0x01;
if (stawbStatus.tb.uc0 & 0x01)
{
extucErrorCode = 0x05;
}
if (stawbStatus.tb.uc0 & 0x02)
{
extucErrorCode = 0x06;
}
if (stawbStatus.tb.uc0 & 0x04)
{
extucErrorCode = 0x07;
}
if (stawbStatus.tb.uc0 & 0x08)
{
extucErrorCode = 0x08;
}
if (stawbStatus.tb.uc0 & 0x10)
{
extucErrorCode = 0x09;
}
if (stawbStatus.tb.uc0 & 0x20)
{
extucErrorCode = 0x10;
}
if (stawbStatus.tb.uc0 & 0x40)
{
extucErrorCode = 0x11;
}
break;
case 0x08:
extucMessage = 0x02;
staucREF1Crossed = 1;
break;
case 0x09:
extucMessage = 0x03;
staucREF2Crossed = 1;
break;
case 0x0A:
if (stawbStatus.tb.uc0 == 0x01)
{
extucErrorCode = 0x12;
}
break;
case 0x0B:
switch (stawbStatus.tb.uc0)
{

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis