mycnc:mql
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:mql [2020/02/20 12:50] – ivan | mycnc:mql [2020/02/20 13:47] – ivan | ||
---|---|---|---|
Line 13: | Line 13: | ||
The fine-tuning is done through the built-in PLC procedures, with the setup described in detail in the [[mycnc: | The fine-tuning is done through the built-in PLC procedures, with the setup described in detail in the [[mycnc: | ||
+ | |||
+ | ====MQL Setup in myCNC software==== | ||
+ | |||
+ | < | ||
+ | |||
+ | === Software PLC for MQL === | ||
+ | The rate, ratio and acceleration can be set up in the Software PLC, as well as in the User Settings widget (the Step-Dir Coolant Control section). | ||
+ | |||
+ | " | ||
+ | |||
+ | ++++ Show HANDLER_INIT code | | ||
+ | <code C HANDLER_INIT.plc> | ||
+ | main() | ||
+ | { | ||
+ | | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | }; | ||
+ | </ | ||
+ | ++++ | ||
+ | |||
+ | === Hardware PLC for MQL === | ||
+ | |||
+ | In addition to the software HANDLER_INIT PLC, certain hardware PLC procedures must be changed for the Minimum Quantity Lubrication to be set up. | ||
+ | |||
+ | Function '' | ||
+ | |||
+ | ++++ Show mill-func.h code | | ||
+ | <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; | ||
+ | }; | ||
+ | </ | ||
+ | ++++ | ||
+ | |||
+ | '' | ||
+ | |||
+ | ++++ Show M08 code | | ||
+ | <code C M08.plc> | ||
+ | #include pins.h | ||
+ | #include mill-func.h | ||
+ | |||
+ | main() | ||
+ | { | ||
+ | gvarset(7372, | ||
+ | portset(OUTPUT_FLOOD); | ||
+ | coolant_motor_start(); | ||
+ | exit(99); | ||
+ | }; | ||
+ | </ | ||
+ | ++++ | ||
+ | |||
+ | A procedure '' | ||
+ | |||
+ | ++++ Show M09 code | | ||
+ | <code C M09.plc> | ||
+ | #include pins.h | ||
+ | main() | ||
+ | { | ||
+ | gvarset(7373, | ||
+ | gvarset(7372, | ||
+ | |||
+ | portclr(OUTPUT_FLOOD); | ||
+ | portclr(OUTPUT_MIST); | ||
+ | |||
+ | gvarset(8130, | ||
+ | timer=30; | ||
+ | exit(99); | ||
+ | }; | ||
+ | |||
+ | </ | ||
+ | ++++ | ||
+ | |||
+ | This concludes the software setup for MQL within the myCNC software. | ||
mycnc/mql.txt · Last modified: 2020/10/08 11:37 by ivan