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.
150<br />
MsgObjLAN1, Helper for LAN1<br />
MsgObjLAN1.Frame<br />
2 0..1 RW<br />
EXTENDED REGISTER GROUPS<br />
Indicate the frame type that this message object should<br />
use.<br />
0 = Standard, 11-bit Ids.<br />
1 = Extended, 29-bit Ids.<br />
Can only be used when LANx.LowProt equals<br />
2<br />
indicating that CAN specification 2.0 part B is supported.<br />
Note. A descriptor that is programmed to receive<br />
’Extended’ frames will not receive ’Standard’ frames nor will<br />
a message programmed to receive ’Standard’ frames<br />
receive ’Extended’ frames. (It is possible, if all units on the<br />
net follow CAN specification 2.0, to mix ’Standard’ and<br />
’Extended’ frames on the same net).<br />
MsgObjLAN1.DataLen 3 0..8 RW<br />
The data length for this message object. Normally it is most<br />
efficient to use 8 bytes <strong>of</strong> data. It is not necessary to read<br />
or write all bytes to an object before using it.<br />
MsgObjLAN1.Vector 4 1..Max. line <strong>of</strong> PL2<br />
program lines<br />
User's Manual 5.1 Inmotion Technologies AB<br />
Doc. No.9032 0027 01 (B), Rev. 11.07.2001<br />
RW<br />
Action vector on a reception/transmission <strong>of</strong> the ID<br />
specified.<br />
Specify a line # where to execute code when a<br />
reception or a transmission <strong>of</strong> an object with the<br />
MsgObjLAN1.ID occurs.<br />
MsgObjLAN1.Status 5 0..3 (when read)<br />
1..12 (when written)<br />
isrLan:<br />
RW<br />
This member has valid data after a GetObjLAN1<br />
instruction has been executed.<br />
On read, indicates the status <strong>of</strong> the descriptor. On write,<br />
the value written is the that is to transmit a frame as<br />
a response to a remote frame.<br />
0 = Undefined<br />
1 = The descriptor has been Transmitted.<br />
2 = A remote frame has been received with this ID.<br />
3 = The descriptor has been Received.<br />
Usually used in a PL-code interrupt service routine for a<br />
particular message object.<br />
Example:<br />
<br />
MsgObjLAN1.id = 400 MsgObjLAN1.type = 3<br />
; Tx, with semi automatic remote frame<br />
response<br />
MsgObjLAN1.frame = 0<br />
MsgObjLAN1.DataLen = 4<br />
MsgObjLAN1.Vector = @isrLan<br />
setObjLAN1 5 or lan1.mask, 16<br />
; Enable interrupt<br />
.. other initialization<br />
;Message object 5 interrupt service routine<br />
GetObjLAN1 5<br />
; Get descriptor content