Table of Contents - TG Drives

Table of Contents - TG Drives Table of Contents - TG Drives

28.11.2012 Views

152 LAN2, Local area network 2 LAN2, LOCAL AREA NETWORK 2 Group Group No. Description EXTENDED REGISTER GROUPS LAN2 30 Local area network group. LAN channel number 1. This group is the interface to the Local Area Network. The OSI reference model for LAN communication: Application layer Presentation layer Session layer Transport layer Network layer Datalink layer Physical layer GENERAL The main difference between LAN2 and LAN1 is that LAN2 has an isolated interface and the connector configuration follows the CANOPEN standard. LAN2 COMMANDS LAN2 have the same commands as LAN1. See chapter LAN1. User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001

EXTENDED REGISTER GROUPS MsgObjLAN2, Helper for LAN2 MSGOBJLAN2, HELPER FOR LAN2 Group Groupe No. MsgObjLAN2 Description 31 CAN message descriptor temporary storage. A message object descriptor must be initialized and then activated with the SetObjLAN2 instruction. It is the responsibillity of the user to fill in the MsgObjLAN2 group prior the use of the instruction SetObjLAN2. The system fills in the MsgObjLAN2 group when the GetObjLAN2 instruction is used. Example: MsgObjLAN2.Id = 2000 ; ID number for this message object MsgObjLAN2.Type = 1 ; Receive type MsgObjLAN2.Frame = 0 ; Standard frame MsgObjLAN2.DataLen = 2 ; Two bytes in this message MsgObjLAN2.Vector = @Isr2000 ; Interrupt service routine. SetObjLAN2 3 ; Activate message object MSGOBJLAN2 COMMANDS MsgObjLAN2 have the same commands as MsgObjLAN1. See chapter MsgObjLAN1. User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001 153

EXTENDED REGISTER GROUPS<br />

MsgObjLAN2, Helper for LAN2<br />

MSGOBJLAN2, HELPER FOR LAN2<br />

Group Groupe<br />

No.<br />

MsgObjLAN2<br />

Description<br />

31 CAN message descriptor temporary storage.<br />

A message object descriptor must be initialized<br />

and then activated with the SetObjLAN2<br />

instruction.<br />

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

MsgObjLAN2 group prior<br />

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

instruction SetObjLAN2.<br />

The system fills in the MsgObjLAN2 group<br />

when<br />

the GetObjLAN2 instruction<br />

is used.<br />

Example:<br />

<br />

MsgObjLAN2.Id = 2000<br />

; ID number for this message object<br />

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

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

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

message<br />

MsgObjLAN2.Vector = @Isr2000<br />

; Interrupt service routine.<br />

SetObjLAN2 3<br />

<br />

; Activate message object<br />

MSGOBJLAN2 COMMANDS<br />

MsgObjLAN2 have the same commands as MsgObjLAN1. See chapter<br />

MsgObjLAN1.<br />

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

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

153

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

Saved successfully!

Ooh no, something went wrong!