Use of I/O Sample

This program demonstrates how to configure a digital input and use the input to control program flow. There are also examples of conditional and unconditional branching. The power up label SU becomes active only after the program is saved to non-volatile memory using the S command.

'Use of I/O Sample

'CODE           DESCRIPTION

PG 100         'Enter program mode at address 100
LB SU          'Label using SU to start program upon power up
A=1000000      'Sets acceleration to
               '1000000 steps/second square
S1=0,1         'Sets I/O 1 as a general purpose input,
               'active high
S5=9           'Sets I/O 5 as a 0-5V analog input
LB Wa         'Label Wa for setting up wait loop
BR M1,I1=1     'If input is active then branch to label M1
SL=0           'Sets slew speed to 0
BR Wa,I1=0     'If input is inactive then branch to label Wa
LB M1          'Label for motion profile 1
SL=15*100      'Slew the axis at the rate of 0-1024 times 100
BR Wa          'Unconditional branch to wait loop
               'to scan input
E              'End program
PG             'Exit program mode

IMS Logo Wide

370 N. Main St., P.O. Box 457
Marlborough, CT 06447 U.S.A.
Phone: 860 / 295-6102
Fax: 860 / 295-6107
Email: info@imshome.com

Contact

TECHNICAL SUPPORT (U.S.A.)
Phone: 860 / 295-6102
Fax: 860 / 295-6107
E-mail: etech@imshome.com

IMS ASIA PACIFIC OFFICE
30 Raffles Pl., 23-00 Chevron House
Singapore 048622
Phone: +65 / 6233 / 6846
Fax: +65 / 6233 / 5044
E-mail: wllee@imshome.com

IMS EUROPEAN SALES MGT.
4 Quai Des Etroits
69005 Lyon, France
Phone: +33 / 4 7256 5113
Fax: +33 / 4 7838 1537
E-mail: bmartinez@imshome.com

IMS UK Ltd
.
25 Barnes Wallis Road
Segensworth East
Fareham, Hampshire, UK  PO15 5TT
Phone: +44 / 0 1489-889825
Fax:: +44 / 0 1489-889857
E-mail: mcheckley@imshome.com

U.S.A. SALES OFFICES
Eastern Region 

Phone: 973 / 661-1270
Fax: 973 / 661-1275
E-mail: jroake@imshome.com

Central Region
Phone: 260 / 402-6016
Fax: 419 / 858-0375
E-mail: dwaksman@imshome.com

Western Region
Phone: 602 / 578-7201
E-mail: dweisenberger@imshome.com