Stepper and servo both control with Arduino

Plz check my code..
My stepper does not run .....

const int stepPin = 3;

const int dirPin = 4;

int PWMpin=7;

void setup ()
{
pinMode (PWMpin,OUTPUT);

pinMode(stepPin,OUTPUT);

pinMode(dirPin,OUTPUT);

}

void loop ()
{
digitalWrite(dirPin,HIGH);

for(int x = 0; x < 200; x++) {
digitalWrite(stepPin,HIGH);
delayMicroseconds(400);
digitalWrite(stepPin,LOW);
delayMicroseconds(800);
}

PWMSet();

delay(0);
}

void PWMSet()
{
digitalWrite (PWMpin, HIGH);
delayMicroseconds(2200);
digitalWrite (PWMpin, LOW);
delay(1500);

digitalWrite (PWMpin, HIGH);
delayMicroseconds(550);
digitalWrite (PWMpin, LOW);
delay(1500);
}

It's much easier for people to help you when you post code using the code button </> like this

const int stepPin = 3; 

const int dirPin = 4;
    
int PWMpin=7;

void setup ()
{
    pinMode (PWMpin,OUTPUT);
    
    pinMode(stepPin,OUTPUT); 

    pinMode(dirPin,OUTPUT);
    
}

void loop ()
{
    digitalWrite(dirPin,HIGH);
        
for(int x = 0; x < 200; x++) {
digitalWrite(stepPin,HIGH); 
delayMicroseconds(400); 
digitalWrite(stepPin,LOW); 
delayMicroseconds(800);
    }
    
    
  PWMSet();

delay(0);
          }


void PWMSet()
{
    digitalWrite (PWMpin, HIGH);
    delayMicroseconds(2200);
    digitalWrite (PWMpin, LOW);
    delay(1500);
    
    
  digitalWrite (PWMpin, HIGH);
    delayMicroseconds(550);
    digitalWrite (PWMpin, LOW);
    delay(1500);
}

...R

karan_chauhan:
My stepper does not run .....

That does not provide any useful information with which to help you.

Post a link to the datasheet for your stepper motor.
Tell us what stepper motor driver you are using.
Tell us what stepper motor power supply you are using (volts and amps).

Have you another simple stepper program without any servo code? Does that work properly?
Have you tried a much slower stepper speed?

...R
Stepper Motor Basics
Simple Stepper Code