Difference between revisions of "Setup CNC Bender to Switch Pressure to LOW Automatically"

From ATTWiki
Jump to: navigation, search
(EDITING the Code)
 
(5 intermediate revisions by one user not shown)
Line 3: Line 3:
 
This is the most efficient way to allow CNC Bender to automatically switch to LOW PRESSURE AUTOMATICALLY after some time of inactivity.
 
This is the most efficient way to allow CNC Bender to automatically switch to LOW PRESSURE AUTOMATICALLY after some time of inactivity.
  
==Constant Run Processlist==
+
==Constant Run Processlist Example==
  
 
The Constant Run Processlist is good for tasks that should run ever 3/4 of a second.  The process is reserved for non-motion type commands.
 
The Constant Run Processlist is good for tasks that should run ever 3/4 of a second.  The process is reserved for non-motion type commands.
  
This is an example of watching for the high pressure output, and time beyond the last cycle:
+
This IF block of code was extracted from the "ConstantRun.cncprocesslist" file in the c:\cnc\config\ folder.
  
 
<pre>
 
<pre>
Line 24: Line 24:
 
The "and" keyword in the [if] statement means that ALL of these conditions in the parameter line must be true.  If they are true, then the LowPressureOn command is called.
 
The "and" keyword in the [if] statement means that ALL of these conditions in the parameter line must be true.  If they are true, then the LowPressureOn command is called.
  
 +
==EDITING the Code==
  
 +
Load the ConstantRun processlist into a text editor, modify the values in the code, then save the changes to the file.
 +
 +
Close and reload CNC Bender, and the new ConstantRun processlist will take effect.
  
 
==Other Pages==
 
==Other Pages==

Latest revision as of 22:58, 31 August 2010

Cncbender logo.jpg

This is the most efficient way to allow CNC Bender to automatically switch to LOW PRESSURE AUTOMATICALLY after some time of inactivity.

Constant Run Processlist Example

The Constant Run Processlist is good for tasks that should run ever 3/4 of a second. The process is reserved for non-motion type commands.

This IF block of code was extracted from the "ConstantRun.cncprocesslist" file in the c:\cnc\config\ folder.

[if] and, BeyondPowerOnTime=2000, BeyondLastCycleTime=5000, BeyondLastCycleTime=not(6000), output=Output_High_Pressure
  [display]AUTOMATIC HIGH to LOW PRESSURE After 5 Seconds 
  LowPressureOn
[end]

In the example above, the LowPressureOn command will run...

  • When master motor power has been on for at least 2 seconds
  • The high pressure output is ON.
  • And the processor has been idle for between 5 and 6 seconds.

The "and" keyword in the [if] statement means that ALL of these conditions in the parameter line must be true. If they are true, then the LowPressureOn command is called.

EDITING the Code

Load the ConstantRun processlist into a text editor, modify the values in the code, then save the changes to the file.

Close and reload CNC Bender, and the new ConstantRun processlist will take effect.

Other Pages