Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to operate two smc100 motion controllers

Hi!! Thank for the reply. I get my first controller to work with serial communication but the second controller that is connected through rs-485. I am not sure how to set the address. So can I just right click the axis in and create constant 1 for the second controller? Do I need to duplicate the same code use to make the first motor controller to work and assign the address for my second controller. For the address assigning, do I need to assign it to every used subvi?? I am very sorry to trouble you, I really need help in this.

0 Kudos
Message 11 of 15
(1,123 Views)

Hi

normally the serial line output of the first smc is connected to the serial line of the second smc.

There is your problem. And as far as I know it is always rs232.

 

greetings from the Netherlands
0 Kudos
Message 12 of 15
(1,110 Views)

Hi really thank for your help, I had understand it. But I would like to ask for your help on the serial communcation side.

 

Since I am using one serial communication and the second controller using Rs485. Instead of having 2 port init, how can I use one instead. I tried to combine but there seems to be some problem with close.vi when I run the program.  I get error 1073807313 if I put 2 close vi there, the line break when I try to use only one close.vi. Can you guide me??

0 Kudos
Message 13 of 15
(1,100 Views)

Hi

Zip your program and attach it. Maybe soemthing else is breaking up.

You have to configure each of the units via the rs232 connector and tell them at which address they should reside.

Also make sure that the switches for the first and last controller are set and after that you can connect the last unit via the rj11 connector to the first one.

 

Otherwise ask the guy who delivered the units to you.

It is of course possible to use each unit on a serial line as if it was the first unit but then you need two rs232 lines and you have no group synchronisation although that is a minor drawback on serial lines that are always communicating one after each other.In that case the serial ports have to be opened separately.

greetings from the Netherlands
0 Kudos
Message 14 of 15
(1,096 Views)

Hi Albert,

 

Thanks for your help. I have manage to solve the problem.

0 Kudos
Message 15 of 15
(1,092 Views)