Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years ago.
Stepper motor control using SCPI commands thought ethernet howto?
Hi,
I would like to start a 2 axis stepper motor control using SCPI commands thought tcp/ip ethernet interface project.
I have the STM 32F746G discovery supported board with the X-NUCLEO-IHM02A1 also supported motor expansion board.
https://os.mbed.com/platforms/ST-Discovery-F746NG/
I have created a project for my platform and I have included the "hello world" module for the "X-NUCLEO-IHM02A1" but I am a bit lost with the SCPI control thought Ethernet.
Could somebody share and example or project to manage SCPI commands using the Ethernet interface?
Any help would be appreciated.
Thanks
Francisco
1 Answer
6 years ago.
I googled a bit, but I did not see any existing art to leverage from. break the project into pieces. https://os.mbed.com/search/repository?q=stepper+motor plenty of info on stepper motors. plenty of info on Ethernet.
define the grammar that you want to use for your SCPI control. As far as I know, here is no grammar to leverage from. for instance:
STEPper:ONE:POSition 2000 STEPper:TWO:RPOstion 100
move to absolute position and move relative position. Add more grammar as needed.
then build a parser to extract the operations from the commands and code functions to perform the operations.