Table of Contents - TG Drives

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

28.11.2012 Views

54 Stack handling EXTENDED REGISTER GROUPS Group name Number Description Page XENDAT 56 Feedback interface for ENDAT sensor. 163 Counter 57 Count an external hardware event. 172 Identifier 58 Identify each DMC in a group. 175 RDPDATA 59 Generell access to PDATA tables 176 SAnyBus 60 Anybus-S interface (HMS modules) 178 ABInMail 61 Mail message handling with the Anybus-S modules ABOutMail 62 Mails received from the Anybus-S modules 189 ABFBus 63 Fieldbus specific information 190 EN1 64 Connection points for feedback sensors in the DMC2 system EN2 65 See EN1 191 EN3 66 See EN1 191 EN4 67 See EN1 191 IENC 69 Incremental encoder interface 193 ModEN3 72 Extension of EN3 with modula calculation 195 ModEN4 73 Extension of EN4 with modula calculation 195 GROUP MEMBERS. (GROUP XX) Each group is started with the following heading: Group Group No. Description Group is the PL name, Group number can be used when communicating in computer mode. The first Group.Member in each group is started with the following heading: Group.Member Member No. User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001 188 191 Range Ability Default Group.Member is the PL name, Member number can be used when communicating in computer mode. The range indicate the members numerical range and the Ability is read/write ability according to: R = Readable W = Write able RW = Read- and Write able. (W) = Write able under certain conditions NYI = Not Yet Implemented

EXTENDED REGISTER GROUPS STACK HANDLING Group Group No. Description Stack handling Stack 1 The register bank, Stack, is a circular stack that can accommodate 64 register values, 32 bits wide. Since the stack is circular, there is no error trap when pushing the 65th number on the stack; however, the 1st number is overwritten. GENERAL The stack group consists of 64 registers (32 bit) that can be used by the application program for temporary storage of data. The function is circular when data is taken (poped) from the stack and linear when data is pushed onto the stack. The system uses the stack for temporary storage of interrupt masks when Int.Mode = 1. FUNCTION Data is placed onto the stack with the PUSH statement where the argument can be a register or a constant. Data is taken from the stack with the POP statement where the argument must be a register. The value in Stack.63 is lost when a PUSH statement is executed. Reset status: After one entry: (PUSH Data1) After two entries: (PUSH Data2) Stack.63 0 0 0 Data2 . . . . . Stack.5 0 0 0 0 Stack.4 0 0 0 0 Stack.3 0 0 0 0 Stack.2 0 0 0 0 Stack.1 0 0 Data 1 0 Stack.0 0 Data 1 Data 2 Data 1 RELATED ITEMS PUSH or PUSH or POP Int.Mode = 1 See Group number 10 (Int) for information. EXAMPLE USAGE Transfer data to a subroutine for conversion. After one recall: (POP ) User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001 55

54<br />

Stack handling<br />

EXTENDED REGISTER GROUPS<br />

Group name Number Description Page<br />

XENDAT 56 Feedback interface for ENDAT sensor. 163<br />

Counter 57 Count an external hardware event. 172<br />

Identifier 58 Identify each DMC in a group. 175<br />

RDPDATA 59 Generell access to PDATA tables 176<br />

SAnyBus 60 Anybus-S interface (HMS modules) 178<br />

ABInMail 61 Mail message handling with the Anybus-S<br />

modules<br />

ABOutMail 62 Mails received from the Anybus-S modules 189<br />

ABFBus 63 Fieldbus specific information 190<br />

EN1 64 Connection points for feedback sensors in<br />

the DMC2 system<br />

EN2 65 See EN1 191<br />

EN3 66 See EN1 191<br />

EN4 67 See EN1 191<br />

IENC 69 Incremental encoder interface 193<br />

ModEN3 72 Extension <strong>of</strong> EN3 with modula calculation 195<br />

ModEN4 73 Extension <strong>of</strong> EN4 with modula calculation 195<br />

GROUP MEMBERS. (GROUP XX)<br />

Each group is started with the following heading:<br />

Group Group<br />

No.<br />

Description<br />

Group is the PL name, Group number can be used when communicating in<br />

computer mode. The first Group.Member in each group is started with the following<br />

heading:<br />

Group.Member Member<br />

No.<br />

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

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

188<br />

191<br />

Range Ability Default<br />

Group.Member is the PL name, Member number can be used when<br />

communicating in computer mode.<br />

The range indicate the members numerical range and the Ability is read/write<br />

ability according to:<br />

R = Readable<br />

W = Write able<br />

RW = Read- and Write able.<br />

(W) = Write able under certain conditions<br />

NYI = Not Yet Implemented

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

Saved successfully!

Ooh no, something went wrong!