USB haas operator panel interface

More
19 Feb 2021 12:05 - 19 Feb 2021 12:26 #199407 by fupeama

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
Last edit: 19 Feb 2021 12:26 by fupeama.

Please Log in or Create an account to join the conversation.

More
20 Feb 2021 17:08 #199545 by fupeama


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 or Create an account to join the conversation.

More
21 Feb 2021 23:58 #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 or Create an account to join the conversation.

More
22 Feb 2021 21:39 #199772 by fupeama

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 or Create an account to join the conversation.

More
23 Feb 2021 00:30 #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 or Create an account to join the conversation.

More
23 Feb 2021 07:13 #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 or Create an account to join the conversation.

More
23 Feb 2021 09:51 #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 or Create an account to join the conversation.

More
06 Mar 2021 08:10 - 07 Mar 2021 01:01 #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
Last edit: 07 Mar 2021 01:01 by andypugh.

Please Log in or Create an account to join the conversation.

More
07 Mar 2021 01:02 #201242 by andypugh
That looks very interesting.

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

Please Log in or Create an account to join the conversation.

More
07 Mar 2021 01:30 #201245 by cmorley

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 or Create an account to join the conversation.

Time to create page: 0.106 seconds
Powered by Kunena Forum