28.11.2012 Views

Table of Contents - TG Drives

Table of Contents - TG Drives

Table of Contents - TG Drives

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

176<br />

RDPDATA<br />

RDPDATA<br />

Group Group<br />

No.<br />

RDPDATA 59 Reading PDATA contents.<br />

GENERAL<br />

Description<br />

Data arrays can be define in the DMC 2 using the Pdata statement.<br />

EXTENDED REGISTER GROUPS<br />

The standard usage <strong>of</strong> such an array is as input to the Pr<strong>of</strong>ile Generator (Pr<strong>of</strong>ile<br />

Acc) or as a Cam table.<br />

FUNCTION<br />

This group allows the user to read a Pdata array for any purpose.<br />

RELATED ITEMS<br />

Pdata statement<br />

EXAMPLE USAGE<br />

ptab: PDATA 89, 2<br />

PDATA R3, R9<br />

PDATA 0,0<br />

The RPDATA group can be used for reading the content <strong>of</strong> the PDATA table.<br />

R0, @ptab<br />

loop: RPDATA.Load, R0<br />

if RPDATA.Status and 1 then LoopStop<br />

LoopStop:<br />

disp RPDATA.Arg1<br />

disp RPDATA.Arg2<br />

add R0, 1<br />

goto loop<br />

stop<br />

Running this program will show,<br />

>run<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!