G'day
BryanI agree we should bump the code to 0.002 now the setup routine for the machine is sorted
On some further crunching of the grey cells, what do you think about this?
As you noted, we are running out of I/O on a single Pico, and whilst it looks like making it all work is possible, is going to require some dirty tricks in the program. We also have noise being picked up in the wiring from the Pico to the stepper drivers and LCD.
My proposed solution is to use a PICO2 running the stepper system on your PCB down with the stepper drivers to look after the stepper motor outputs and limit switches / estop etc. A second PicoMite linked via RS422 (2xRS485) will look after the display and touchscreen, linked by a screened 6 core cable.
Advantages:
Wiring to stepper drivers shortened.
Wiring to LCD / HDMI / TOUCH shortened and away from noisy drivers.
Will work on your existing PCB.
Enough I/O for all 6 limits and motor outputs.
RS485 link is noise tolerant and cheap (could also use opto isolators instead).
Easy to move display around machine, only 1 cable.
Ability to run any display without changing stepper driver board.
Ability to fit LED indicators from spare I/O on display board.
Move RTC to display board to increase I/O on stepper board.
2 Pico's are cheaper than an RP2350B board. (I think)
DIS-advantages:
2 sets of code to sort out and update.
Ummmmm.......
I think this is the way to go and will be trying out some ideas to see how it works. What do you think?
Phenix, don't want to get off topic here but I couldn't agree more, sadly the OH&S moron normally doesn't have an understanding of how the machine operates or is operated, leading to some rediculous requests in the name of safety, to the point of making machines un-usable.
If you think industrial / factory automation is bad, try mobile plant: The E-Stop must stop the truck engine! : hmmm, ok, so what about when it shuts down the truck engine at 100km/h going downhill? : No, it must shut down the engine : Have you ever driven a truck : Ummm No : Yeah thought so....
Also the idea that cutting the ignition signal on a diesel engine will stop it is laughable
The risk assessment system is far better but trying to cover all the bases on some plant is an exercise in frustration.
The only good point with the better PLC's is monitored outputs, they will halt the PLC if it detects an output that is not in the driven state, otherwise it is mostly 5 x the price for nothing special.
Thankfully on the surface grinder front, it is my machine, in my shed, and will be fitted with an apropriate STOP system. In reality I find the surface grinder far less intimidating than anything for cutting wood, the table saw is far more dangerous in my view
That is all I'm going to say on the subject in this thread.
VegiPete, that is one nice looking machine. Shame about the hydraulics, maybe time to look into some seals for the cylinder, or fix it like a british car and fit a drip tray, works on my Mini's and Landrovers (I love em but they do mark their territory)
Ok, offended enough of the world, time to do some work.
Regards, Lyle.