Stepper motor control using H0CTRIO2 module.

Hi all,

I'm trying to run a stepper motor using the automation direct DL 06. I'm using one of the free from profiles to send the step pulses to the motor through a H0 Ctrio module (Output Y0).

I have the output Y0 connected to the Step - on the stepper drive and Y1 to the dir -. YC is connected to positive terminal on the stepper drive.

First, I configure the CTRIO module for SLOT # 1 and CTRIO# 0, then I just load the free form profile to the CTRIO memory V2301, then take the success output bit ( after the profile is loaded to the CTRIO output Y0) from there and turn on output on the ctrio V2456.0.

I also checked the output enabled status ( V2422.0) and it is giving me the value of 1, so I'm assuming the CTRIO output Yo is indeed turning on, but again the motor is not moving.

I have also tried controlling the motor from the MONITOR I/O tab on the CTRIO WORKBENCH 2. I can see the outputs Y0 and Y1 turning on the CTRIO Module but the motor won't move at all.

I have tested the motor using the step drive test option and it works. I have also attached the pictures of my wiring connection.

Please guys I really need to get this going.

My PLC code is below:

PLC 06

// Rung 1

// Address 0

STR SP5

LD K1

OUT V3000

// Rung 2

// Address 3

STR SP4

LD K10

OUT V2440

// Rung 3

// Address 6

STRPD C0

LD V3000

OUT V2441

SET B2456.7

SET C1

// Rung 4

// Address 12

STR C2

OUT B2456.4

// Rung 5

// Address 15

STR C1

AND B2422.7

ANDN B2422.6

RST B2456.7

SET B2456.0

// Rung 6

// Address 24

STRN C0

RST C1

RST B2456.0

RST B2456.7

// Rung 7

// Address 30

END

// Rung 8

// Address 31

NOP



#BEGIN ELEMENT_DOC

"C0","","","Initialize Settings"

"C1","","","Intitialize Settings Complete"

"B2422.6","","","Cmd Error"

"B2422.7","","","Cmd Complete"

"B2456.0","","","Enable O/P"

"B2456.4","","","Direction"

"B2456.7","","","Process Cmd"

#END
 

Attachments

Hi all,

I'm trying to run a stepper motor using the automation direct DL 06. I'm using one of the free from profiles to send the step pulses to the motor through a H0 Ctrio module (Output Y0).

I have the output Y0 connected to the Step - on the stepper drive and Y1 to the dir -. YC is connected to positive terminal on the stepper drive.

First, I configure the CTRIO module for SLOT # 1 and CTRIO# 0, then I just load the free form profile to the CTRIO memory V2301, then take the success output bit ( after the profile is loaded to the CTRIO output Y0) from there and turn on output on the ctrio V2456.0.

I also checked the output enabled status ( V2422.0) and it is giving me the value of 1, so I'm assuming the CTRIO output Yo is indeed turning on, but again the motor is not moving.

I have also tried controlling the motor from the MONITOR I/O tab on the CTRIO WORKBENCH 2. I can see the outputs Y0 and Y1 turning on the CTRIO Module but the motor won't move at all.

I have tested the motor using the step drive test option and it works. I have also attached the pictures of my wiring connection.

Please guys I really need to get this going.

My PLC code is below:

PLC 06

// Rung 1

// Address 0

STR SP5

LD K1

OUT V3000

// Rung 2

// Address 3

STR SP4

LD K10

OUT V2440

// Rung 3

// Address 6

STRPD C0

LD V3000

OUT V2441

SET B2456.7

SET C1

// Rung 4

// Address 12

STR C2

OUT B2456.4

// Rung 5

// Address 15

STR C1

AND B2422.7

ANDN B2422.6

RST B2456.7

SET B2456.0

// Rung 6

// Address 24

STRN C0

RST C1

RST B2456.0

RST B2456.7

// Rung 7

// Address 30

END

// Rung 8

// Address 31

NOP



#BEGIN ELEMENT_DOC

"C0","","","Initialize Settings"

"C1","","","Intitialize Settings Complete"

"B2422.6","","","Cmd Error"

"B2422.7","","","Cmd Complete"

"B2456.0","","","Enable O/P"

"B2456.4","","","Direction"

"B2456.7","","","Process Cmd"

#END
Hello Rizu,

We could try to give you some support !
The informations you have provided seems ok!

My first comment is that the schematic is not completed?? ( i mean Stepper motor and sensors are not shown??)

Did you even check on some videos on the web??

I just have seen some interesting videos (you can see lot of them in youtube) explaining some CTRIO Operations/configurations :

Motion Control - Wiring, CTRIO Jumper Settings & Drive DIP Switch Settings

You can verify with these datas the correct configuration...
When I check datas from video and your schematic , they are not identical.

I mean jumpers may not be placed/inserted, as it should be for proper operation.

Also do you have drive DIP switch?? if yes check the configuration.

According to your post , seems that you don't see motion of the motor even output Y0 & Y1 from CTRIO turning ON?? is that right ?

You said:
"I have tested the motor using the step drive test option and it works."
Is the step drive test option done from PLC or CTRIO ,??

Are you 100% sure about, the PLC code/program? Check also the I/O map function.


This is what I can first, advise you to DO!

Hope it can help
ControlsGuy25.
 
Hello Rizu,

We could try to give you some support !
The informations you have provided seems ok!

My first comment is that the schematic is not completed?? ( i mean Stepper motor and sensors are not shown??)

Did you even check on some videos on the web??

I just have seen some interesting videos (you can see lot of them in youtube) explaining some CTRIO Operations/configurations :

Motion Control - Wiring, CTRIO Jumper Settings & Drive DIP Switch Settings

You can verify with these datas the correct configuration...
When I check datas from video and your schematic , they are not identical.

I mean jumpers may not be placed/inserted, as it should be for proper operation.

Also do you have drive DIP switch?? if yes check the configuration.

According to your post , seems that you don't see motion of the motor even output Y0 & Y1 from CTRIO turning ON?? is that right ?

You said:
"I have tested the motor using the step drive test option and it works."
Is the step drive test option done from PLC or CTRIO ,??

Are you 100% sure about, the PLC code/program? Check also the I/O map function.


This is what I can first, advise you to DO!

Hope it can help
ControlsGuy25.
Ok Looks like I helped/supported you a lot by providing such infos !

BUT you could at least by "courtoisy" try to reply to my post ??
I make effort for supporting people here and some of them are just stonish §!!!

Controls Guy25
 
Top