variables
{
dword dstBusContext;
}
on preStart
{
dstBusContext = GetBusNameContext("GWout");
write("GWout = %d", dstBusContext);
write("GWin = %d", GetBusNameContext("GWin"));
}
on PDU msgchannel1.*
{
long result;
pdu * out;
if((this.MsgChannel == 1) && (this.BusType == 1 /* CAN */))
{
result = TriggerPDU2(this, dstBusContext, "BODY3" /* DBName */, "" /* TXNode */, this.Name /* PDUName */, this.ShortHeaderID, this.LongHeaderID, 0, this.PduLength);
writeLineEx(-3, 1, "Trigger (bridge) PDU '%s' onto bus (Channel %d, BusType %d) returned %d.", this.Name (dstBusContext & 0xFFFF), (dstBusContext >> 16), result);
}
}