Applied Motion RS-232 User Manual

Page 175

Advertising
background image

175

920-0002 Rev. I

2/2013

Host Command Reference

Sample Q program for illustrating RC and TS interaction

MT

1

Multi-tasking ON

EG

20000

20,000 steps/rev

AC 250

DE 250

VE 5

FI

3

200

Filter input 3 for 200 processor ticks

RX

I

0

Zero the “I” register

RC

X3F

Setup the “I” register for input X3

WI

X3F

Wait for input X3

WT

5.00

Wait 5 seconds >>> trigger inpuxt X3 a few times

TS

Throw away first time stamp

LABEL2 RD

I

Decrement “I” register

FL

5000

Feed 5000 steps

TR

I

1

Test “I” against 1

QJ

L

#LABEL1

Jump to end if “I” less than 1

TS

Time

stamp

RM

W

1

Move “W” into “1”

WD 1

Delay for “1” milliseconds

QG

#LABEL2

Go to Label 2

LABEL1

NO

Stop

program

Advertising
This manual is related to the following products: