Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to operate two smc100 motion controllers

I understand how to make one controller work from LV, but I don't understand how to make two of them work. They both work when using SMC100 User Tool, but I was unable to find the "addressable controllers". So the question is, how to address not the first but the second controller connected serially? 

0 Kudos
Message 1 of 15
(4,561 Views)

Looks like I've already found an answer to that question 🙂 One should address different axes numbers for the "Axis in" parameter. Each exis corresponds to an individual device.

0 Kudos
Message 2 of 15
(4,557 Views)

I am having the same problem.  My controllers work perfectly in the Newport software, but not in Labview.  Your solution seems obvious to me, but it still has not enabled me to communicate with the two daisy-chained controllers.  I assume part of the problem is that the 1st is connected RS232, while the other is RS485 and that maybe the Port Initialization VI is supposed to produce a different kind of VISA session ID other than ASRL1::INSTR and ASRL3::INSTR.  I believe there is at least some communication between the devices, since the controller addresses were configured to 1 & 3 using the utility software and I get an error if I incorrectly input 2, or something else, as a port number in Labview.  If I query the controllers' parameter settings in Labview, I get back absolutely nothing...not even an error.  I tried the SET/GET Controller's Axis number VIs, which is supposed to allow the user to assign/query the RS-485 address for the controller configured for RS232.  I attempted to set axis 1 to controller axis 2, then get the controller axis to confirm the setting, but the query just returned 0.

 

If anyone has any suggestions that would be great!

 

Regards,

Bianca

0 Kudos
Message 3 of 15
(4,520 Views)

What driver software are you using for the motion controller?

If you are only using serial-IO then you probably forgot the endcharacter at the end of the sent string.

greetings from the Netherlands
0 Kudos
Message 4 of 15
(4,510 Views)

Hi guys can you show the VI here or explain how to make 2 controller work? Please help!!!

0 Kudos
Message 5 of 15
(4,170 Views)

do you address the 2 controllers with each their own address?

What software are you using?

What is your problem?

Please give us more information to help you. There are more than enoug vi's on your system.

Asking for just a vi does not help.

greetings from the Netherlands
0 Kudos
Message 6 of 15
(4,165 Views)

I am cracking my brain on how to address the 2 controller using labview. Using Nstruct I had address it but not sure how to do it with labview. Can you guide me to do it?

0 Kudos
Message 7 of 15
(4,163 Views)

on each vi in the driver you see visa resource and axisnumber.

What is your problem?

greetings from the Netherlands
0 Kudos
Message 8 of 15
(4,142 Views)

Sorry but I really confuse what is the axis and what is the visa, my problem is I am able to control the first motor controller but don't know how to control the second motor.

0 Kudos
Message 9 of 15
(4,141 Views)

Each controller drives an axis, so the only thing you need to do is to select axis 0 for the first and axis 1 for the second controller.

greetings from the Netherlands
0 Kudos
Message 10 of 15
(4,115 Views)