EasyManuals Logo

Renesas V850 Series User Manual

Renesas V850 Series
186 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #71 background imageLoading...
Page #71 background image
CHAPTER 4 PROGRAM LIST
Application Note U17209EJ1V0AN
74
}
if ( (sw_mode == CCW) || (sw_mode == STOP) ) {
proc_no = 3 ; /* Deceleration, set processing number */
}
break ;
/* CW processing, constant-speed */
case 2 :
object_speed = speed ;
if ( (sw_mode == CCW) || (sw_mode == STOP) ) {
proc_no = 3 ; /* Deceleration, set processing number */
}
break ;
/* CW stop processing */
case 3 :
if ( accel_count == 0 ) {
accel_count = ACCEL_VAL ; /* Set acceleration/deceleration counter */
if ( object_speed > SPEED_MINI ) {
object_speed -= accel_spd ;
if ( object_speed < SPEED_MINI ) object_speed = SPEED_MINI;
timer_count = WATCH_START ; /* Set speed monitor start time to 5 SEC */
} else {
stop_flag = ON ; /* Stop flag on */
proc_no = 0 ; /* Set stop processing number */
}
}
break ;
/* CCW processing, acceleration */
case 4 :
if ( accel_count == 0 ) {
accel_count = ACCEL_VAL ; /* Set acceleration/deceleration counter */
if ( object_speed < -speed ) {
object_speed += accel_spd ;
if ( object_speed > -speed ) object_speed = -speed;
timer_count = WATCH_START ; /* Set speed monitor start time to 5 SEC */
} else if ( object_speed > -speed ) {
object_speed -= accel_spd ;
if ( object_speed < -speed ) object_speed = -speed;
timer_count = WATCH_START ; /* Set speed monitor start time to 5 SEC */
} else {
proc_no = 5 ; /* Constant-speed processing */
}
}
if ( (sw_mode == CW) || (sw_mode == STOP) ) {
proc_no = 6 ; /* Deceleration, set processing number */
}
break ;
/* CCW processing, constant-speed */
case 5 :

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas V850 Series and is the answer not in the manual?

Renesas V850 Series Specifications

General IconGeneral
BrandRenesas
ModelV850 Series
CategoryInverter
LanguageEnglish