mycnc:triggers
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:triggers [2018/10/13 18:03] – pupalaiser | mycnc:triggers [2018/10/15 08:12] – pupalaiser | ||
---|---|---|---|
Line 67: | Line 67: | ||
}; | }; | ||
</ | </ | ||
- | === Procedure description === | + | === M71/ |
* We assign the variable " | * We assign the variable " | ||
Line 112: | Line 112: | ||
}; | }; | ||
</ | </ | ||
+ | |||
+ | === Example M74/M05 procedure === | ||
+ | |||
+ | |||
+ | <file M03 > | ||
+ | #define relay_PLAZMA_ON 2 | ||
+ | #define input_ARC_READY 5 | ||
+ | |||
+ | main() | ||
+ | { | ||
+ | timer=0; | ||
+ | portclr (relay_PLAZMA_ON); | ||
+ | message=PLCCMD_TRIGGER1_OFF; | ||
+ | timer=3; | ||
+ | exit(99); | ||
+ | }; | ||
+ | </ | ||
+ | === M74/M05 Procedure description === | ||
+ | |||
+ | * We assign the variable " | ||
+ | < | ||
+ | #define relay_PLAZMA_ON 2 | ||
+ | </ | ||
+ | * We assign the variable " | ||
+ | < | ||
+ | #define input_ARC_READY 5 | ||
+ | </ | ||
+ | * timer-This variable is temporary and is used to start timers at different intervals. | ||
+ | < | ||
+ | timer=0; | ||
+ | </ | ||
+ | * portclr (relay_PLAZMA_ON)-Set the output to control the source is shut down. | ||
+ | < | ||
+ | portclr (relay_PLAZMA_ON); | ||
+ | </ | ||
+ | * We swith off the program trigger (message=PLCCMD_TRIGGER1_OFF). Now the program will not automatically follow the change in the state of the "arc sensor" | ||
+ | |||
==== Example " | ==== Example " | ||
- Probing operations. Events from probe sensor should be handled while probing operations. However, Probe input activated while normal moving might be in fact hitting the probe into the material. It can lead to Probe sensor breakage and run should be stopped immediately. A solution is to set up probe input as a trigger, configure | - Probing operations. Events from probe sensor should be handled while probing operations. However, Probe input activated while normal moving might be in fact hitting the probe into the material. It can lead to Probe sensor breakage and run should be stopped immediately. A solution is to set up probe input as a trigger, configure | ||
mycnc/triggers.txt · Last modified: 2022/03/07 16:09 by ivan