Schaublin 125-CNC retrofit.
Please Log in or Create an account to join the conversation.
Yes its pretty cool! I was surprised how easy it was to code. Without the state machine there would be lots of nested if/else spaghetti code!I didn't realise how simple and elegant it is to set up a state machine in a comp.
The hard bit is often to decide what algorithm to use. If you get it wrong, it can be a lot harder than it needs to be.
its an ideal demonstrateion what a component should look like. Short (68 lines) with a single, clearly defined problem being solved.
Why I've never used classic ladder.
Please Log in or Create an account to join the conversation.
- smc.collins
- Offline
- Platinum Member
- Posts: 684
- Thank you received: 119
I'd think the contactors would be kinda difficult to switch accurately for short durations.
Mark, put some flyback diodes in the contactor dc coil circuit, i was thinking this might be flyback voltage
Please Log in or Create an account to join the conversation.
that's a nifty little program, I'm curious to see how accurately it can control the variator.
Thanks, me too.
I just realized it needs an enable pin becasue from the original video, it is not allowed to move without the spindle turning. Something like:
pin in bit enable = 0 "set true when spindle is running with spindle.0.on";
if (!enable) //insert before switch statement
return;
Please Log in or Create an account to join the conversation.
Would flyback voltage still spike and cause issues if the contactors are manually activated (i.e. screwdriver)? I'm genuinely curious.Mark, put some flyback diodes in the contactor dc coil circuit, i was thinking this might be flyback voltage
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
- Posts: 19300
- Thank you received: 6462
Mark, put some flyback diodes in the contactor dc coil circuit, i was thinking this might be flyback voltage
Would flyback voltage still spike and cause issues if the contactors are manually activated (i.e. screwdriver)? I'm genuinely curious.
So am i.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Given that there is no energy stored in the inductor (ie no collapsing magnetic field) I don't see where that voltage would come from.Would flyback voltage still spike and cause issues if the contactors are manually activated (i.e. screwdriver)? I'm genuinely curious.
Please Log in or Create an account to join the conversation.
Me either, but I don't know everything about magic smoke. Like maybe there's some sort of induced field in the coil when the main contacts make/break - and I've never learned about this situation but it's obvious to everyone else.
Given that there is no energy stored in the inductor (ie no collapsing magnetic field) I don't see where that voltage would come from.
Once the magic smoke discussion moves past my internal understanding of "electricity is like water through a hose, only not" I have to start asking questions.
Please Log in or Create an account to join the conversation.
- smc.collins
- Offline
- Platinum Member
- Posts: 684
- Thank you received: 119
a typical 24vdc contactor coil has a impedance of around 30-50 ohm. The flyback voltage could easily reach 140-200v on coil off especially if the contacts bounce as the field collapses. It's worth a look. ALOT of DC coils have built in diodes to prevent this, but maybe this unit does not.
Please Log in or Create an account to join the conversation.