Professional Documents
Culture Documents
1) Introduction
This sample code example shows one method to write Index configurations to the Kinetix
300 drive in Indexing Mode via Class 3 explicit messaging.
The Indexing program code takes the values to configure a motion index profile and writes it
to the Kinetix 300 Index Assembly object.
Establish an Ethernet connection from your PC to the Kinetix 300’s Ethernet port to
configure the drive. Once connected to the drive, navigate to the drives IP address from your
web browser or run the ‘MotionView OnBoard’ JAVA interface if already installed on your
PC.
See the user manual if you need additional information getting connected.
You will need to complete the following items at a minimum to use the program code in this
example:
Configure the motor. If using a motor with incremental feedback, select the motor
you are using from the listing. If the motor has an absolute programmed encoder it
will be automatically selected. (Note: if your motor has an intelligent encoder, -S,-M,
it will be recognized by the Kinetix 300 drive automatically.)
Set User Units scaling – in this example we use 1 rev/motor rev.
Auto Tune the motor (system).
Set the Drive Mode to Ethernet/IP External Reference under the General tab.
Note: You will need to modify three (3) message instructions to enter in the IP Address of
the Kinetix 300 drive in your system. They are located as follows:
Example:
Open the MSG Setup Screen.
Go to the MuliHop tab and enter in your IP Address in the To Address box.
Current
Registration
0 Reserved
Captured
Limit Reserved Reserved In Position Fault Enabled
Reached
1-3 Reserved
5-7 Reserved
In Speed Zero
8 Reserved Reserved Reserved Reserved Reserved Ready
Window Speed
9-11 Reserved
13-15 Reserved
17-19 Reserved
The Output Assembly is identified by Instance 114 and consists of the following 52 bytes (see Appendix C
of the User Manual, 2097-UM001, for detailed descriptions of each of these fields):
1-3 Reserved
The Index Assembly is identified by Instance 115 and consists of the following 48 bytes (see Appendix E
of the User Manual, 2097-UM001, for detailed descriptions of each of these fields):
2
28-31 Index Maximum Acceleration in UU/second (REAL)
2
32-35 Index Maximum Deceleration in UU/second (REAL)
Disclaimer
This sample code delivered by Rockwell Automation is just an example of how to control a
K300 drive.
Disclaimer Of Warranty
THE MATERIALS DELIVERED WITH THIS EXAMPLE ARE PROVIDED "AS IS" WITHOUT
WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION,
ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
NONINFRINGEMENT OR OTHER VIOLATION OF RIGHTS. ROCKWELL AUTOMATION DOES NOT
WARRANT OR MAKE ANY REPRESENTATIONS REGARDING THE USE, VALIDITY, ACCURACY, OR
RELIABILITY OF, OR THE RESULTS OF THE USE OF, OR OTHERWISE, RESPECTING THE
MATERIALS MAINTAINED ON OR ACCESSED BY WAY OF THIS SITE OR ANY WEB SITES LINKED TO
THIS SITE. FURTHERMORE, ALL WARRANTIES, CONDITIONS, REPRESENTATIONS, INDEMNITIES
AND GUARANTEES WITH RESPECT TO THE ACCURACY, OPERATION, CAPACITY, SPEED,
FUNCTIONALITY, QUALIFICATIONS, OR CAPABILITIES OF THE SOFTWARE, SYSTEMS AND
SERVICES COMPRISING OR UTILIZED IN THE OPERATION OF THIS CODE, WHETHER EXPRESS OR
IMPLIED, ARISING BY LAW, CUSTOM, PRIOR ORAL OR WRITTEN STATEMENTS BY ROCKWELL
AUTOMATION, OR OTHERWISE (INCLUDING, BUT NOT LIMITED TO ANY WARRANTY OF
SATISFACTORY QUALITY, MERCHANTABILITY, FITNESS FOR PARTICULAR PURPOSE, TITLE AND
NON-INFRINGEMENT) ARE HEREBY EXPRESSLY EXCLUDED AND DISCLAIMED.
Disclaimer Of Liability
UNDER NO CIRCUMSTANCES (INCLUDING NEGLIGENCE) WILL ROCKWELL AUTOMATION BE
LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, PUNITIVE OR CONSEQUENTIAL
DAMAGES (INCLUDING WITHOUT LIMITATION, BUSINESS INTERRUPTION, DELAYS, LOSS OF DATA
OR PROFIT) ARISING OUT OF THE POSTING (OR THE INABILITY TO POST) OR THE USE (OR THE
INABILITY TO USE) THE DELIVERED CODE EVEN IF ROCKWELL AUTOMATION HAS BEEN ADVISED
OF THE POSSIBILITY OF SUCH DAMAGES.