You are on page 1of 2

/*@!

Encoding:65001*/
includes
{

variables
{
message 0x100 senda;
}

on start
{
Write(" Press key a for soft reset");
write("Press key b for hard reset");
write("Press Key c For Enable Tx and Rx");
write("Press Key d for Enable Rx and Disable Tx ");

}
on key 'a'
{
write(" This key is for soft reset");
senda.dlc=8;
senda.byte(0)=02;
senda.byte(1)=11;
senda.byte(2)=03;
senda.byte(3)=00;
senda.byte(4)=00;
senda.byte(5)=00;
senda.byte(6)=00;
senda.byte(7)=00;
output(senda);

}
on key 'b'
{
write("This key is for hard reset");
senda.dlc=08;
senda.byte(0)=02;
senda.byte(1)=11;
senda.byte(2)=01;
senda.byte(3)=00;
senda.byte(4)=00;
senda.byte(5)=00;
senda.byte(6)=00;
senda.byte(7)=00;
output(senda);
}
on key 'c'
{
write("This Key is for Communication Control and Enable Rx and Tx");
senda.dlc=8;
senda.byte(0)=02;
senda.byte(1)=28;
senda.byte(2)=00;
senda.byte(3)=00;
senda.byte(4)=00;
senda.byte(5)=00;
senda.byte(6)=00;
senda.byte(7)=00;
output(senda);
}
on key 'd'
{
write("This Key is for Communication Control and Disable Rx and Enabe Tx");
senda.dlc=8;
senda.byte(0)=02;
senda.byte(1)=28;
senda.byte(2)=01;
senda.byte(3)=00;
senda.byte(4)=00;
senda.byte(5)=00;
senda.byte(6)=00;
senda.byte(7)=00;
output(senda);
}

You might also like