mycnc:independent_pulse_generator
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
mycnc:independent_pulse_generator [2019/10/04 09:36] – ivan | mycnc:independent_pulse_generator [2020/02/20 08:54] – ivan | ||
---|---|---|---|
Line 6: | Line 6: | ||
< | < | ||
Independent Pulse Generator was added to firmware dated July 20, 2018. | Independent Pulse Generator was added to firmware dated July 20, 2018. | ||
- | At the moment the firmware is available as the | ||
- | " | ||
</ | </ | ||
Line 51: | Line 49: | ||
The first application we used the Pulse Generator was a Coolant control base on a stepper driver. | The first application we used the Pulse Generator was a Coolant control base on a stepper driver. | ||
- | |||
- | |||
- | === Pulse Generator settings in User Widget === | ||
- | We added Pulse generator settings to a User Widget of " | ||
- | |||
- | |||
- | {{mycnc: | ||
- | |||
- | The programming of Pulse the Coolant widget is shown below. | ||
- | |||
- | " | ||
- | |||
- | <code XML> | ||
- | < | ||
- | | ||
- | | ||
- | |||
- | < | ||
- | </ | ||
- | | ||
- | The lines contain " | ||
- | |||
- | " | ||
- | |||
- | <code XML user-coolant.xml> | ||
- | < | ||
- | <gitem where=" | ||
- | | ||
- | | ||
- | < | ||
- | < | ||
- | < | ||
- | </ | ||
- | |||
- | <gitem where=" | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | < | ||
- | < | ||
- | </ | ||
- | |||
- | <gitem where=" | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | < | ||
- | < | ||
- | </ | ||
- | |||
- | </ | ||
- | </ | ||
- | |||
- | The code contains 3 parts | ||
- | * the widget label set up | ||
- | * the frequency setup | ||
- | * the Ratio set up | ||
- | |||
- | It's supposed operator no need to change frequency acceleration and this setting is hidden from an operator. | ||
- | The acceleration can be set up in the Software or Hardware PLC for example. | ||
- | |||
=== Pulse Generator settings in the Software PLC === | === Pulse Generator settings in the Software PLC === | ||
The rate, ratio and acceleration can be set up in the Software PLC as well. | The rate, ratio and acceleration can be set up in the Software PLC as well. | ||
- | " | + | " |
<code C HANDLER_INIT.plc> | <code C HANDLER_INIT.plc> | ||
Line 134: | Line 69: | ||
- | ==== (Coolant) Pulse Generator control through Hardware PLC ==== | + | ==== MQL (Coolant) Pulse Generator control through Hardware PLC ==== |
- | Function coolant_motor_start() is addaed | + | Function |
<code C mill-func.h> | <code C mill-func.h> | ||
Line 155: | Line 90: | ||
</ | </ | ||
- | M08.plc procedure which starts the coolant motor would be | + | '' |
<code C M08.plc> | <code C M08.plc> | ||
Line 171: | Line 106: | ||
- | A procedure M09.plc to stop a coolant motor is simpler. Just need to write " | + | A procedure |
<code C M09.plc> | <code C M09.plc> |
mycnc/independent_pulse_generator.txt · Last modified: 2022/02/11 15:45 by ivan