User Tools

Site Tools


mycnc:triggers

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
mycnc:triggers [2018/10/13 18:03] pupalaisermycnc:triggers [2018/10/15 08:12] pupalaiser
Line 67: Line 67:
 }; };
 </file> </file>
-=== Procedure description ===+=== M71/M03 Procedure description ===
  
   * We assign the variable "relay_PLAZMA_ON" a value of 2. This variable determines the number of the output responsible for the inclusion of the plasma cutting source in the work.   * We assign the variable "relay_PLAZMA_ON" a value of 2. This variable determines the number of the output responsible for the inclusion of the plasma cutting source in the work.
Line 112: Line 112:
 }; };
 </file> </file>
 +
 +=== 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;do{timer--;}while(timer>0);
 + exit(99);
 +};
 +</file>
 +=== M74/M05 Procedure description ===
 +
 +  * We assign the variable "relay_PLAZMA_ON" a value of 2. This variable determines the number of the output responsible for the inclusion of the plasma cutting source in the work.
 +<file>
 +#define relay_PLAZMA_ON 2
 +</file>
 +  * We assign the variable "input_ARC_READY" a value of 5. This variable determines the number of the "arc sensor" input from the plasma cutting source.
 +<file>
 +#define input_ARC_READY 5
 +</file>
 +  * timer-This variable is temporary and is used to start timers at different intervals.
 +<file>
 +timer=0;
 +</file>
 +  * portclr (relay_PLAZMA_ON)-Set the output to control the source is shut down.
 +<file>
 +portclr (relay_PLAZMA_ON);
 +</file>
 +  * 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" input. (timer=3;do{timer--;}while(timer>0);) - program pause 3ms.
 +
 ==== Example "Probing operations" ==== ==== Example "Probing operations" ====
   - 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  Immediate Stop in the Slot PLC procedure and disable the trigger while probing operations ONLY.   - 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  Immediate Stop in the Slot PLC procedure and disable the trigger while probing operations ONLY.
  
  
mycnc/triggers.txt · Last modified: 2022/03/07 16:09 by ivan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki