TECHNICAL MANUAL
620020E05
Due to the continuous products improvement, the indications of the present manual can be modified without previous warning and in any
case are a contract commitment. The present information publishing does not represent resignation of intellectual property or patent.
Copyright
2009-2010 S.A. Sistel -E 08211 BARCELONA
Pag. 13
Transmit.IsRemote = 0; // This is not a remote frame
Transmit.ArbitrationId = 0x15510200; // assume board address is 0
Transmit.ArbitrationId |= 0x20000000; // NICAN specific, set 29 bit id length
Status= ncWrite(TxHandle, sizeof(Transmit), &Transmit);
if (Status < 0)
{
PrintStat(Status, "ncWrite");
}
Sleep(1000);
Transmit.Data[0] = 0x02; // YAV command prefix
Transmit.Data[1] = 0x01; // YAV command prefix
Transmit.Data[2] = 0x00; // relay number
Transmit.Data[3] = 0x00; // YAV set relay OFF command
Transmit.DataLength = 4; // Set CAN frame lenght
Transmit.IsRemote = 0; // This is not a remote frame
Transmit.ArbitrationId = 0x15510200; // assume board address is 0
Transmit.ArbitrationId |= 0x20000000; // NICAN specific, set 29 bit id length
Status= ncWrite(TxHandle, sizeof(Transmit), &Transmit);
if (Status < 0)
{
PrintStat(Status, "ncWrite");
}
Sleep(1000);
}
} while (ch != 'q');
/* Close the Network Interface Object */
Status = ncCloseObject(TxHandle);
if (Status < 0)
{
PrintStat(Status, "ncCloseObject");
}
return 0;
}