Table of Contents - TG Drives

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

28.11.2012 Views

138 OptAD, analog to digital converter. OptAD.sM1 OptAD.sM2 NIU OptAD.OvfM1 22 0..1 R OptAD.OvfM2 NIU 20 -2 31 -1..2 31 -1 R Scaled and offset adjusted measured value. The calculation done by the system is: ( OptAD. M1 − OptAD. Offset) If non-zero indicates an overflow condition after read. EXTENDED REGISTER GROUPS * OptAD. ScaleM1 OptAD. sM1 = 65536 Note. The numerator product must be restricted to 48 bit. In case an overflow is detected then OptAD.OvfM1 is non-zero after OptAS.sM1 is read. To detect overflow a user should read OptAD.sM1 first then OptAD.OvfM1. 21 -2 31 -1..2 31 -1 R 23 0..1 R NIU OptAD.sM1 was User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001

EXTENDED REGISTER GROUPS LAN1, LOCAL AREA NETWORK 1 Group Group No. LAN1, Local area network 1 Description LAN1 28 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 LAN1, INTERRUPT HANDLING There are two types of interrupts that can be generated by the LAN1 group. 1. Net Error When the LAN1 low level protocol (the CAN chip) detects an error it will go bus off. For this event the system will generate a PL interrupt and execute the code specified at LAN1.ErrVector. This interrupt is always enabled but if a user does not specify any line where to execute PL code, leaving LAN1.ErrVector = 0, then the CAN communication line will only go bus off and no other action will be done by the firmware. A user can specify what action to take, when an error occurs in a PL written interrupt routine. 2. Message Object interrupt A message object that has either been received or transmitted can generate an interrupt. The PL service routine is specified in the MsgObjLan1.Vector when the object is defined. The following must be done before any LAN1 related interrupts will be generated: 1. A MsgObjLan1.xx must be initialized and mapped to a priority level. The MsgObjLan1.Vector member must have a valid PL code line # at the time when the SetObjLan1 instruction is used to program the priority level. 2. The corresponding LAN1.Mask bit for the level used must be set. 3. The Vector.Cascade1 member must be set to LAN1.Handler 4. The Int.SysMask must be set to enable the Vector.Cascade1. Before enabling Vector.Cascade1, a user should clear all bits in LAN1.Pend and the bit for the Vector.Cascade1 in Int.SysPend, to avoid generating interrupt on old events. User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001 139

138<br />

OptAD, analog to digital converter.<br />

OptAD.sM1<br />

OptAD.sM2<br />

NIU<br />

OptAD.OvfM1 22 0..1 R<br />

OptAD.OvfM2<br />

NIU<br />

20 -2 31 -1..2 31 -1 R<br />

Scaled and <strong>of</strong>fset adjusted measured value.<br />

The calculation done by the system is:<br />

( OptAD.<br />

M1<br />

− OptAD.<br />

Offset)<br />

If non-zero indicates an overflow condition after<br />

read.<br />

EXTENDED REGISTER GROUPS<br />

* OptAD.<br />

ScaleM1<br />

OptAD.<br />

sM1<br />

=<br />

65536<br />

Note. The numerator product must be restricted to 48 bit. In case<br />

an overflow is detected then OptAD.OvfM1 is non-zero after<br />

OptAS.sM1 is read.<br />

To detect overflow a user should read OptAD.sM1 first then<br />

OptAD.OvfM1.<br />

21 -2 31 -1..2 31 -1 R<br />

23 0..1 R<br />

NIU<br />

OptAD.sM1 was<br />

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

Doc. No.9032 0027 01 (B), Rev. 11.07.2001

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

Saved successfully!

Ooh no, something went wrong!