src/emcy.c
changeset 587 c175351a6994
parent 427 6deafe46484f
child 759 ed78c627f666
equal deleted inserted replaced
586:05ba6b57ff2b 587:c175351a6994
    99 {
    99 {
   100 	Message m;
   100 	Message m;
   101   
   101   
   102 	MSG_WAR(0x3051, "sendEMCY", 0);
   102 	MSG_WAR(0x3051, "sendEMCY", 0);
   103   
   103   
   104 	m.cob_id = UNS16_LE(*(UNS32*)d->error_cobid);
   104 	m.cob_id = (UNS16)UNS16_LE(*(UNS32*)d->error_cobid);
   105 	m.rtr = NOT_A_REQUEST;
   105 	m.rtr = NOT_A_REQUEST;
   106 	m.len = 8;
   106 	m.len = 8;
   107 	m.data[0] = errCode & 0xFF;        /* LSB */
   107 	m.data[0] = errCode & 0xFF;        /* LSB */
   108 	m.data[1] = (errCode >> 8) & 0xFF; /* MSB */
   108 	m.data[1] = (errCode >> 8) & 0xFF; /* MSB */
   109 	m.data[2] = errRegister;
   109 	m.data[2] = errRegister;