Table of Contents - TG Drives
Table of Contents - TG Drives
Table of Contents - TG Drives
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
EXTENDED REGISTER GROUPS<br />
LAN1.ErrVector<br />
9 1..Max. line <strong>of</strong> PL2<br />
program lines<br />
LAN1, Local area network 1<br />
User's Manual 5.1 Inmotion Technologies AB<br />
Doc. No.9032 0027 01 (B), Rev. 11.07.2001<br />
RW<br />
Address <strong>of</strong> the PL-code line to execute when a comm error<br />
occurs.<br />
LAN1.LastErr 10 1..7 R<br />
The last error reported by the low level CAN protocol. This<br />
member is most useful when the ErrVector is used.<br />
0. No error<br />
1. Stuff error<br />
More than5 equal bits in a sequense have occured in a<br />
part <strong>of</strong> a received message where this is not allowed.<br />
2. Form Error<br />
The fixed format part <strong>of</strong> a receivedframe has the wrong<br />
format.<br />
3. Acknowledgment Error<br />
The message transmitted by this device was not<br />
acknowledged by another node.<br />
4. Bit 1 Error<br />
During the transmission <strong>of</strong> a message, the 82527 wanted<br />
to send a recessive level, (bit <strong>of</strong> logical value 1), but the<br />
monitored CAN bus value dominant.<br />
5. Bit 0 Error<br />
During the transmission <strong>of</strong> a message, the 82527 wanted<br />
to send a recessive level, (bit <strong>of</strong> logical value 0), but the<br />
monitored CAN bus value was recessive. During bus<strong>of</strong>f<br />
recovery, this status is set each time a recessive bit is<br />
received.<br />
6. CRC Error<br />
The CRC checksum was incorrect in the message<br />
received. The CRC recevied for an incoming message<br />
does not match with the CRC value calculated by this<br />
device for the received data.<br />
7. Unused.<br />
LAN1.Handler 11 1..xx R<br />
An interrupt handler for cascading interrupts from the LAN1<br />
group. See cascading interrupts, Vector and Int. This member<br />
is used when installing an interrupt cascade handler for the<br />
LAN1 group. The Vector.Cascade member must be<br />
initialized with this handler before interrupts can be generated<br />
from the LAN1 group. Example:<br />
; Setup the cascaded interrupt handler.<br />
Vector.Cascade1 = LAN1.Handler Or<br />
Int.SysMask, 256<br />
; LAN1 can generate cascaded system<br />
;interrupts<br />
LAN1.ErrVector = @isrLANERR<br />
or LAN1.Mask, 32768<br />
; Allow errors to generate an interrupt<br />
147