Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Help to fix the repeated angle problem(SMC100 & PR50CC )

Hi all, I am controlling a SMC100 motor controller. Anyone work with the SMC100 motor controller and PR50CC motor before? What should I do to solve this problem.I had been trying to debug it for some times now and called up the manufacture but they don't have technical support for labview in my country. I am having repeated angle. My program logic is simple. Just start with10 degree and move by step size 10 finally stop the program when it is greater or equal than 180. The first column is the iteration and second column is the angle. Thanks!!!
0 Kudos
Message 1 of 12
(3,887 Views)

Sorry I miss out the screen shot. problem1.png

0 Kudos
Message 2 of 12
(3,879 Views)

Why are you rounding the value and saving that into a shiftregister?

greetings from the Netherlands
0 Kudos
Message 3 of 12
(3,875 Views)

Oh I round off because I want a whole number, I save that into a shift register because I need to check is it in sequence then combine with another motor for other purpose.

0 Kudos
Message 4 of 12
(3,871 Views)

Hi anyone please help me I been trying alot of things in these 4 days to solve this problem, but I can't solve this, it is driving me crazy.

0 Kudos
Message 5 of 12
(3,855 Views)

So if I understand correctly, it receives the command to move but it does not? Whether or not the vendor supports LabVIEW should be irrelevant. You can provide the commands that are being sent. If they have an example in any other programming language, you could also compare what you are doing to that. You can use NI-Spy/NI-Trace to capture the actual commands being sent.

0 Kudos
Message 6 of 12
(3,843 Views)

 

They provide the example in labview however, without connecting the move absolute function. The motor does move but I could not find the problem causing it.

0 Kudos
Message 7 of 12
(3,838 Views)

But according to what you said the problem is, you get repeated values of the current position which says that no movement happens occasionally. Either that or the current position is not being reported correctly. That is rather simple to determine just by single stepping through your program.

0 Kudos
Message 8 of 12
(3,833 Views)

Hi Dennis Knutson,

 

I felt the motor with my hand and I can feel that the motor "click" then it move by 10. Each time the data repeat I can feel a "click"  I had used the highlight execution and single step to step through the program but I still could not find the problem. any ideal?

0 Kudos
Message 9 of 12
(3,830 Views)

Presumably you put the position read inside of a loop to see if the position ever does get updated. Still, I would still think the problem is in the move. If a move actually occurred, you would see a jump in the reported position.

 

Again, you should able to dump the NI-Spy/NI-Trace results and use that to get help from the vendor.

0 Kudos
Message 10 of 12
(3,822 Views)