CANopen — Homing Mode

Homing Mode - demonstrates home method 18 decimal using Service Data Objects (SDOs).

IMS products support the ability to move in velocity mode. Once in Profile Velocity Mode, any new target velocity will be executed immediately.
The below example sets typical motion profile commands a system would configure1, enabling the motor power2 and executing a homing function using SDOs with Node ID 41h.

Notes:
1. Typical motion profile commands and configuring I/O could be set each time on power up from host or set using a configuration file and stored to NVM once.
2. Enabling the motor power only has to be done once on power up.



Typical motion profile commands and enabling motor power -
'***** Typical Motion Parameters *****
>> Id=0641, Rtr=00, Data= 2F 04 22 00 50 00 00 00 'Set run current to 80%
>> Id=0641, Rtr=00, Data= 23 84 60 00 40 42 0F 00 'Set deceleration to 1M steps/sec^2
>> Id=0641, Rtr=00, Data= 23 83 60 00 40 42 0F 00 'Set acceleration to 1M steps/sec^2

'***** Enable motor power - DSP402 state machine *****
>> Id=0641, Rtr=00, Data= 2B 40 60 00 06 00 00 00 'Ready to Switch on
>> Id=0641, Rtr=00, Data= 2B 40 60 00 07 00 00 00 'Switched on
>> Id=0641, Rtr=00, Data= 2B 40 60 00 0F 00 00 00 'Operation Enabled

'***** Set to Homing Mode *****
>> Id=0641, Rtr=00, Data= 2F 60 60 00 06 00 00 00 'Homing mode

Configure I/O and Homing Method
'***** Configure I/O - InOut, SnkSrc, Polarity, Type and Filter *****
>> Id=0641, Rtr=00, Data=22 00 20 01 00 00 00 00 'Set I/O as Inputs
>> Id=0641, Rtr=00, Data=22 00 20 02 00 00 00 00 'Set I/O as Sinking
>> Id=0641, Rtr=00, Data=22 00 20 04 01 00 00 00 'Set I1 Polarity
>> Id=0641, Rtr=00, Data=22 02 20 01 01 00 00 00 'Set I1 as Home Input
>> Id=0641, Rtr=00, Data=22 06 20 01 0A 00 00 00 'Set I1 filter to 10mSec

'***** Set Homing Method, Offset and Speeds *****
>> Id=0641, Rtr=00, Data= 22 98 60 00 13 00 00 00 'Homing Method 19 decimal
>> Id=0641, Rtr=00, Data= 2F 98 20 00 01 00 00 00 'Apply Home Offset to position counter
>> Id=0641, Rtr=00, Data= 22 7C 60 00 00 00 00 00 'Home Offset value = 0
>> Id=0641, Rtr=00, Data= 22 99 60 01 00 C8 00 00 'Home Speed Fast
>> Id=0641, Rtr=00, Data= 22 99 60 02 00 14 00 00 'Home Speed Slow

Start Homing
>> Id=0641, Rtr=00, Data= 2B 40 60 00 1F 00 00 00 'Start homing

after Home switch is toggled
>> Id=0641, Rtr=00, Data= 2B 40 60 00 00 00 00 00 'Stop homing


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
.
Sanderson Centre
15 Lees Lane
Gosport,Hampshire, UK  PO12 3UL
Phone: +44 / 0 2392 520775
Fax: +44 / 0 2392 502559
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