Movement by external position data input – IAI America XSEL-KE User Manual

Page 317

Advertising
background image

302

Appendix

20. Movement by External Position Data Input

Description

Read the current actuator coordinates in real time and output the corresponding BCD data from an output
port.

Example of Use

Use a PRDQ command to receive the current coordinate position of axis 1.
Output the current coordinate data of axis 1 as a BCD every 0.2 second.
The output range is 0.00 to 999.99 mm.

BCD output assignment

Output port No.

Description

Output port No.

Description

324 0.01

336

10

325 0.02

337

20

326 0.04

338

40

327 0.08

339

80

328 0.1

340

100

329 0.2

341

200

330 0.4

342

400

331 0.8

343

800

332 1

333 2

334 4

335 8

Unit:

mm

Application program

* Use a PRDQ command to write the current position coordinates into variable 101.

6LQFHWKHYDOXHUHDGLQWRWKHYDULDEOHLVLQWKHIRUPDWRI³;;;;;;´WKHGLJLWVQRWXVHGLQ%&'RXWSXW
are moved to after the decimal point.
,QWKLVH[DPSOHWKHWKLUGGHFLPDOSRLQWRUODWHULVQRWUHTXLUHGVRWKHYDOXHLVPXOWLSOLHGE\WRREWDLQ
GDWDLQWKHIRUPDWRI³;;;;;; 
1H[WWKHYDOXHLVFRSLHGWRGHGLFDWHGYDULDEOHXVHGIRU%&'RXWSXW 
$WWKLVWLPHWKHGHFLPDOGLJLWLVGLVFDUGHG 
The copied value is then output to an external device via an OUTB command.
This program is used as a subprogram in the multi-tasking mode.

Advertising
This manual is related to the following products: