Controlling SCX11 using C++

Discuss Stepper motors, Drivers, Controllers, GUI's and related Accessories here.
cpede
Posts: 6
Joined: Thu Feb 16, 2017 1:00 am

Controlling SCX11 using C++

Postby cpede » Thu Feb 16, 2017 1:04 am

Is it possible to control the SCX11 using C++ commands to move, read position, goto home, reset position, read status etc ?

Ideally do you have a Windows DLL that exposes a simple interface, or do you have a manual that describes the commands to send?

Thanks, cpede

om_tech_support_JS
Posts: 158
Joined: Tue May 10, 2016 4:48 pm

Re: Controlling SCX11 using C++

Postby om_tech_support_JS » Fri Feb 17, 2017 2:28 pm

Hi cpede,

The SCX11 is our universal stepper motor controller which will provide the pulse and direction signals to a pulse input type driver. You can then control the stepper motor via USB, RS-232C, or CANOpen. The SCX11 uses a specific syntax which is different than C++. You will need to use ASCII strings in order to have a valid sequence. You can find further information on the syntax required in the SCX11 manual which I have linked below. A list of commands can be found on page 118.
http://www.orientalmotor.com/products/p ... 60080E.pdf

cpede
Posts: 6
Joined: Thu Feb 16, 2017 1:00 am

Re: Controlling SCX11 using C++

Postby cpede » Fri Feb 17, 2017 2:44 pm

Thanks for the answer. It is not fully clear to me yet.

Is it possible to control the SCX11 and attached axis by sending direct ASCII commands to the controller using e.g. USB or serial connector. We have an applicationwritten in c++ that needs to move the traverse to a specific position, make some measurements, and move to another position etc. We also need to move the traverse to a reference position,and specifying the current position as zero, and of cause read the current position. Can these commands be done by sending direct ASCII commands?

We don't need to "program" the SCX11 controller to do a specific sequence of movements, we want to send direct commands for moving, reading etc.

-cpede

om_tech_support_JS
Posts: 158
Joined: Tue May 10, 2016 4:48 pm

Re: Controlling SCX11 using C++

Postby om_tech_support_JS » Mon Feb 20, 2017 8:33 am

Hi cpede,

You can use a terminal software which communicates via RS232C in order to send the ASCII commands to the SCX11 controller directly. Tera Term is an example of the terminal software. Otherwise, if you download our Immediate Motion Creator (IMC) for SCX11 Software, v2.11, you will be able to connect a USB to mini B cable to the SCX11 and use the terminal window on this program. A link to this download is below:
http://www.orientalmotor.com/support/so ... eator.html


Using the appropriate Syntax, you will then be able to write a new position value (DIS), move to that distance value (MI or MA), read the current position (PC or PF), and change the current position to be zero (PRESET).


Return to “Stepper Motors and Controls”

Who is online

Users browsing this forum: No registered users and 1 guest