28.11.2012 Views

Table of Contents - TG Drives

Table of Contents - TG Drives

Table of Contents - TG Drives

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

EXTENDED REGISTER GROUPS<br />

MsgObjLAN1, Helper for LAN1<br />

MSGOBJLAN1, HELPER FOR LAN1<br />

Group Groupe<br />

No.<br />

MsgObjLAN1<br />

Description<br />

29 CAN message descriptor temporary storage.<br />

A message object descriptor must be initialized<br />

and then activated with the SetObjLAN1<br />

instruction.<br />

It is the responsibility <strong>of</strong> the user to fill in the<br />

MsgObjLAN1 group prior<br />

the use <strong>of</strong> the<br />

instruction SetObjLAN1.<br />

The system fills in the MsgObjLAN1 group<br />

when<br />

the GetObjLAN1 instruction<br />

is used.<br />

Example:<br />

<br />

MsgObjLAN1.Id = 2000<br />

; ID number for this message object<br />

MsgObjLAN1.Type = 1 ; Receive type<br />

MsgObjLAN1.Frame = 0 ; Standard frame<br />

MsgObjLAN1.DataLen = 2 ; Two bytes in this<br />

message<br />

MsgObjLAN1.Vector = @Isr2000<br />

; Interrupt service<br />

routine. SetObjLAN1 3<br />

object <br />

; Activate message<br />

GROUP MEMBERS (GROUP 29)<br />

Group.Member Member<br />

No.<br />

Range Ability Default<br />

MsgObjLAN1.ID 0 11-bit and 29-bit ID RW<br />

The message object ID.<br />

If the MsgObjLAN1.Frame type is ’Standard’ then the id is<br />

an 11-bit number.<br />

If MsgObjLAN1.Frame type<br />

is ’Extended’ the id is a 29-bit<br />

number.<br />

Note1. If used on an existing CAN net the user must avoid<br />

the use <strong>of</strong> any reserved ID used in other<br />

protocols.<br />

Note2. For ’standard’ frames, ids above 2030 are reserved<br />

and should not be used.<br />

MsgObjLAN1.Type 1 0..3 RW<br />

The object type.<br />

0. Invalidate, this can be used to deactivate an<br />

existing message object.<br />

1. Receive<br />

2. Transmit, with automatic response to a remote frame.<br />

3. Transmit, respond to a remote frame, but the response<br />

should be written in PL code, this must be used<br />

together with an interrupt.<br />

User's Manual 5.1 Inmotion Technologies AB<br />

Doc. No.9032 0027 01 (B), Rev. 11.07.2001<br />

149

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!