USB haas operator panel interface

More
5 years 8 months ago #199407 by fupeama

cmorley wrote: It seems it is a complete example but was for teensy? micro.
i am trying to adapt it to the stm32.

I found the STM IDE too complicated to attempt this - I there is a lot of moving parts to get right just to start to program it.

Using the Arduino with STM would be a lower bar for people to experiment.


Hi Chris,
its great, now it looks like program. not like dump of numbers and letters in my "program"
I used stm ide because I didnt know about arduino ide with stm support in time when I wrote it.
I like STM IDE that you can use an online debugger to look inside the program and on the variables.

I think this code will benefit many people.
Martin

Please Log in to join the conversation.

More
5 years 8 months ago #199545 by fupeama

cmorley wrote:
Hey Martin - i'm finally getting back to this but seem to be overwhelmed with the STM IDE process.
wonder if you could do some hand holding for me.
I see someone started an arduino library(which might be easier for many) but it seems incomplete:
github.com/fdarling/mesa-smartserial-device-template

I have blue pill f1 (and some blackpill f4 coming).
I would like to make a Sserial to VFD interface.

Chris



Hi Chris,
have you any idea how to control vfd? which pin in and out you need?
I can try to write it in arduino ide with stm support.
github.com/fdarling/mesa-smartserial-device-template
it looks complete, but it is only template without data definition for data in/out and of course main driving of stm pin (adc IO, timers etc).
M

Please Log in to join the conversation.

More
5 years 8 months ago #199663 by cmorley
Sorry for the delay - I was away working.

My VFDs are Mitsubishi.
linuxcnc.org/docs/2.8/html/man/man1/mitsub_vfd.1.html
github.com/LinuxCNC/linuxcnc/blob/master..._comps/mitsub_vfd.py

I have an rs323 to rs480 module to add to the STM32 to control the VFD.

Please Log in to join the conversation.

More
5 years 8 months ago #199772 by fupeama

cmorley wrote: Sorry for the delay - I was away working.

My VFDs are Mitsubishi.
linuxcnc.org/docs/2.8/html/man/man1/mitsub_vfd.1.html
github.com/LinuxCNC/linuxcnc/blob/master..._comps/mitsub_vfd.py

I have an rs323 to rs480 module to add to the STM32 to control the VFD.


I dont understand.
You want to comunicate by sserial from linuxcnc to bluepill and then by modbus from bluepill to vfd?
why?
M

Please Log in to join the conversation.

More
5 years 8 months ago #199789 by cmorley
I use an Ethernet card with linuxcnc so the computer is separate from the i/o.
Currently I use the computer's serial port to control the spindle.
That's an extra cable to the computer.
If there is any loss of communication to the vfd it locks out in error - currently can only reset that by power cycle.
With a micro I could add a small relay to reset the vfd.
The python program to communicate to the vfd is a user program so can become unresponsive. sserial and micro should be more robust.

It gives example code that could be used for other sserial/STM32 projects.

Chris

Please Log in to join the conversation.

More
5 years 8 months ago #199797 by Mike_Eitel
Hi Chris
Why not use the same serial as watchdog in the same time. No communication = you shutdown vfd after short delay (emergency break). Com on serial = give enable to vfd.
Easy to solv with a micro.
Mike

Please Log in to join the conversation.

More
5 years 8 months ago #199809 by cmorley
while using a micro between the VFD and the computer in the system I have would be a fix for the ability to reset the VFD, it doesn't address the other issues.

Also I want to experiment with the STM32 as a sserial device.

Please Log in to join the conversation.

More
5 years 7 months ago #201162 by fupeama
Hi Chris,
that means you only need one IO.
Its ok. I try github.com/fdarling/mesa-smartserial-device-template . it is usable on stm32. there are 32bit in and 32 bit out.
the only thing i didn't find was the writing parameters. but that is not necessary now.
M

Please Log in to join the conversation.

More
5 years 7 months ago #201242 by andypugh
That looks very interesting.

Does it create pins in HAL like a real sserial node?

Please Log in to join the conversation.

More
5 years 7 months ago #201245 by cmorley

fupeama wrote: Hi Chris,
that means you only need one IO.
Its ok. I try github.com/fdarling/mesa-smartserial-device-template . it is usable on stm32. there are 32bit in and 32 bit out.
the only thing i didn't find was the writing parameters. but that is not necessary now.
M


I started on that and needed to modify the code for strm32 - I didn't get it to work yet as I ran out of time for it.
Do you have code edits you could share?

Please Log in to join the conversation.

Time to create page: 0.139 seconds
Powered by Kunena Forum