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 [2018/09/02 10:08] – skirillov | mycnc:independent_pulse_generator [2018/09/02 11:05] – skirillov | ||
---|---|---|---|
Line 3: | Line 3: | ||
myCNC controllers Axis B can be switched to independent pulse generator output. | myCNC controllers Axis B can be switched to independent pulse generator output. | ||
+ | |||
+ | < | ||
+ | Independent Pulse Generator was added to firmware dated July 20, 2018. | ||
+ | At the moment the firmware is available as the | ||
+ | " | ||
+ | </ | ||
Line 105: | Line 111: | ||
* the Ratio set up | * the Ratio set up | ||
- | It's supposed operator no need to change frequency acceleration and this setting is hidden from operator. | + | It's supposed operator no need to change frequency acceleration and this setting is hidden from an |
The acceleration can be set up in the Software or Hardware PLC for example. | The acceleration can be set up in the Software or Hardware PLC for example. | ||
Line 127: | Line 133: | ||
</ | </ | ||
+ | |||
+ | ==== (Coolant) Pulse Generator control through Hardware PLC ==== | ||
+ | |||
+ | Function coolant_motor_start() is addaed to " | ||
+ | |||
+ | <code C mill-func.h> | ||
+ | coolant_motor_start() | ||
+ | { | ||
+ | timer=10; | ||
+ | |||
+ | gvarset(8131, | ||
+ | timer=10; | ||
+ | |||
+ | x=gvarget(8133);// | ||
+ | k=gvarget(8132);// | ||
+ | |||
+ | x=x*k; //calculate the RAW frequency | ||
+ | gvarset(8130, | ||
+ | timer=30; | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | M08.plc procedure which starts the coolant motor would be | ||
+ | |||
+ | <code C M08.plc> | ||
+ | #include pins.h | ||
+ | #include mill-func.h | ||
+ | |||
+ | main() | ||
+ | { | ||
+ | gvarset(7372, | ||
+ | portset(OUTPUT_FLOOD); | ||
+ | coolant_motor_start(); | ||
+ | exit(99); | ||
+ | }; | ||
+ | </ | ||
+ | |||
+ | |||
+ | A procedure M09.plc to stop a coolant motor is simpler. Just need to write " | ||
+ | |||
+ | <code C M09.plc> | ||
+ | #include pins.h | ||
+ | main() | ||
+ | { | ||
+ | gvarset(7373, | ||
+ | gvarset(7372, | ||
+ | |||
+ | portclr(OUTPUT_FLOOD); | ||
+ | portclr(OUTPUT_MIST); | ||
+ | |||
+ | gvarset(8130, | ||
+ | timer=30; | ||
+ | exit(99); | ||
+ | }; | ||
+ | |||
+ | </ | ||
mycnc/independent_pulse_generator.txt · Last modified: 2022/02/11 15:45 by ivan