Anda di halaman 1dari 8

APPLICATION NOTE 042.IM23x-MA.

104
12/23/05

IM23x-MA

How to set up the software over-current protection

Problem:

In most applications if the motor current exceeds the motor maximum current,
severe damage of the motor can occur. Therefore it is very useful to have the
over-current protection activated during the motion.
There are also other types of applications, which need to detect if the load
torque reached (or exceeded) a given level. For other applications the motor
movement can be mechanically limited. Thus if the motor reaches a mechanical
limit switch the motor shaft is blocked (motor current will increase) and the
application has to detect this limit and stop the motor, for example. All these
situations can be treated by activating the over-current protection interrupt in
order to detect the over-current occurrence.

Solution:

Drive

Description:

Technosoft Intelligent Motor IM23x-MA

S/W environment :

Technosoft EasyMotion Studio

S/W application

P091.042.IM23x-MA.APN-MOT.104.x.msq

This Application Note explains:


how to enable the over-current protection interrupt
how to activate the over-current protection
how to set the maximum current value that triggers the protection
how to run this application

Project set-up:
1. Install EasyMotion Studio on your PC. Please find the setup kit on our web site.
2. From the attached archive P091.042.IM23x-MA.APN-DOC.104.x.zip extract
P091.042.IM23x-MA.APN-MOT.104.x.msq into the ..\ESM\Archives folder.

the

file

3. Perform all the hardware connections as it is explained in P091.042.IM23x-MA.APNDOC.101.x.pdf document (Getting started using IM23x-MA).
4. Start EasyMotion Studio, then create a new project using the template IM23x IM23x-MA
(see the section 1. Create a new project of P091.042.IM23x-MA.APN-DOC.101.x.pdf
document).
5. Setup the intelligent motor for speed control (see the section 3.B. Drive setup of
P091.042.IM23x-IS.APN-DOC.101.x.pdf document).
6. Select in the project window left side, in your application, S Setup and click the
Edit/View/Modify icon and then Drive icon. In this window the Overcurrent option inside the
Protections group-box is checked as you can see below. Give a small value for the current
protection level (e.g. 1A see the figure 1)

Technosoft 2005

APN.104 - 1

APPLICATION NOTE 042.IM23x-MA.104


12/23/05

IM23x-MA

How to set up the software over-current protection

Figure 1. Over-current protection settings in the Drive window

7. Import the motion file P091.042.IM23x-MA.APN-MOT.104.x.msq in your application by


selecting Application | Motion | Import Sequence menu. You will be prompted to select
from ..\ESM\Archives folder a .msq file. Select the file P091.042.IM23x-MA.APNMOT.104.x.msq.

Technosoft 2005

APN.104 - 2

APPLICATION NOTE 042.IM23x-MA.104


12/23/05

IM23x-MA

How to set up the software over-current protection

Application running:
In order to run your application, follow the next steps:
1. Power up the intelligent motor IM23x-MA.
2. Download the setup, using the menu command Application | Setup | Download to
Drive/Motor or by pressing the correspondent button from EasyMotion Studio toolbar
3. Download and execute the programmed motion sequences, by pressing the button
from EasyMotion Studio toolbar.
4. Increase the load torque at the motor shaft until the over-current protection takes place. At
this moment the read LED (only if a LED is connected to the READY output) on IM23x-MA
will go off, signaling the over-current protection occurrence and the motor is stopped by
disabling the PWM outputs.
For more details about other configuration for your application, using of data analysis tools and
saving your project/application refer to P091.042.IM23x-MA.APN-DOC.101.x.pdf document
(Getting started using IM23x-MA).

Technosoft 2005

APN.104 - 3

APPLICATION NOTE 042.IM23x-MA.104


12/23/05

IM23x-MA

How to set up the software over-current protection

Implementation:
The purpose of this application is to activate the over-current protection interrupt and to configure
the current protection level for which the protection is triggered. If the motor current exceeds this
limit then an over-current protection interrupt is generated. In the corresponding Interrupt Service
Routine (ISR) the motor is stopped by disabling the PWM outputs (AXISOFF) and the ready LED
goes off.

The structure of the application is presented below:


Over-current occurrence

Interrupt Service Routine


for 'Over-Current Protection'

Start Motion
Sequences

Diasble PWM outputs


(stop the motor)

Enable TML Interrupts /


UnMask 'Int2- Software Protection /
UnMask 'Over Current'

Interrupt RETURN
Configure and start the motion

Figure 2. Application structure

The application structure above is implemented in the Main section of the TML program. Select
the M Motion item in your application tree to view this section.

Technosoft 2005

APN.104 - 4

APPLICATION NOTE 042.IM23x-MA.104


12/23/05

IM23x-MA

How to set up the software over-current protection


2

Figure 3. Motion sequences window

The figure 3 shows you which buttons were used in order to generate the motion sequences. To
get details about how the motion sequences were configured in the window above, double-click in
the areas marked with 1 to 2. Youll obtain the following configuration windows:
The procedure for setting-up the software over current procedure if you want to create from the
beginning the motion sequences like in figure 4 instead of importing them from the file
P091.042.IM23x-MA.APN-MOT.104.x.msq (as explained in step 6 of Project set-up) is presented
below :
1. Open the Main section of your application by selecting in the project window left side, in
your application M Motion.
2. Clear all the motion sequences (if any) from this window selecting all sequences and press
Delete button. Your window should be empty.
3. Click the Interrupt Settings icon (icon 1 in figure 3)
4. In the Interrupt Settings window please select the option as you can see in figure below:

Technosoft 2005

APN.104 - 5

APPLICATION NOTE 042.IM23x-MA.104


12/23/05

IM23x-MA

How to set up the software over-current protection

Figure 4. How to enable Int2 Software protection interrupt

5. In the Interrupt Settings window click the Details.. button associated to Int2 Software
Protection then performs the following settings:

Technosoft 2005

APN.104 - 6

APPLICATION NOTE 042.IM23x-MA.104


12/23/05

IM23x-MA

How to set up the software over-current protection

Figure 5. How to enable Over Current software protection

6. In the Motion sequences window click the Motion Profiles icon (icon 2 in figure 3) in
order to define and start motion:

Figure 6. How to configure and start motion

Technosoft 2005

APN.104 - 7

APPLICATION NOTE 042.IM23x-MA.104


12/23/05

This page is empty

Technosoft 2005

IM23x-MA

How to set up the software over-current protection

APN.104 - 8

Anda mungkin juga menyukai