CamSoft Solutions Download Customer Support CamSoft Home Page
News diy Contact Us
text description space

PC-Based CNC Machine Tool Controller Software Sample Logic

Sample Pre-written Logic Routine Examples:

[[Auxiliary Encoder]]

'Logic to position the Z position with an auxiliary encoder and a hydraulic value.

[[Combination of Outputs]]

'Example of logic to turn on a combination of outputs using an M code.

[[Cycle Start]]

'Example of how to use a physical button to invoke a ‘CYCLE START for the INPUTIO.FIL file.

[[E-Stop]]

'Example of how to use a physical Emergency stop button for the INPUTIO.FIL file.

[[Feed Hold]]

'Example of how to use a physical button to invoke a ‘FEEDHOLD for the INPUTIO.FIL file.

[[HandWheel 1 On]]

'First example uses two M codes, 1 for ON and 1 for OFF.

[[HandWheel 1 Off]]

'Routine turns handwheel off.

[[HandWheel 2]]

'Second example uses only one button to turn on and off the handwheel.

[[HandWheel 3]]
'Third example of logic for the INPUTIO.FIL file.

[[Home 2 axes]]
'Home 2 axes.

[[Home 3 axes]]
'Home 3 axes.

[[HOME 3 AND ROTARY]]
  'HOME 3 AND ROTARY.

[[Home 4 axes]]
'Home 4 axes.

[[Home 5 axes]]
'Home 5 axes.

[[Home Together]]
'Home all axes together.

[[Jog Buttons]]
'For on-screen or physical jog buttons.

[[JoyStick]]
'Example of how to use a physical Joystick for the INPUTIO.FIL file.

[[Touch Screen Jog]]
'For Touch screen or virtual on-screen jog buttons.

[[Limit Switches]]
'Limit switch states are normally opened and get closed when hit.

[[TEETH CUTTING]]

[[5 AXIS KINEMATICS]]
'\500 is length from pivot point to tool tip.

[[Safety Interlocks]]
'Various machine-specific safety messages.

[[Multiple Func Button]]
'Create a button with multiple functions.

[[Remote Control]]
'Example of how to remotely control the machine tool from another computer.

[[digital rotary knob]]
'Use of digital rotary knob with 3 digital inputs.

[[FEED OVER RIDE DOWN]]
'Feedrate override when the GO command is used in G00 instead of  RAPID.

[[FEED OVER RIDE UP]]
'Feedrate override when the GO command is used in G00 instead of  RAPID.

[[RAPID OVER RIDE DOWN]]
'RAPID over ride used in G00.

[[RAPID OVER RIDE UP]]
'RAPID over ride used in G00.

[[EXTENTS]]
'Gets max-min travel from G code and drives tool around extents of travel limits for verification.

[[EXTENTS VERIFY]]
'Drives tool around extents of travel limits for quick verification.

[[G59 EXTRA OFFSETS]]
'Extra offsets G59.1 G59.2 G59.3

[[Teach Position]]
'Example of how to use a physical button to record a position for the INPUTIO.FIL file.

[[Tool Change 1]]
'Example of a single limit switch controlled tool changer routine.

[[Tool Change 2]]
'Example of a servo controlled tool changer routine.

[[Tool Change 3]]
'Example of a limit switch controlled tool changer routine.

[[Tool Change 4]]
'Example of an auxiliary encoder-controlled tool changer routine and a DC motor where the distance between the tools ARE EQUAL.

[[Tool Change 5]]
'Example of an auxiliary encoder-controlled tool changer routine and a DC motor where the distances between each tool is NOT EQUAL.

[[Tool Change 6]]
'Example of a servo-controlled tool changer routine. Shows how to take the shortest route.

[[Tool Change 7]]
'Example of an auxiliary encoder tool changer. Shows how to take the shortest route.

[[Tool Change 8]]
'Relay-controlled turret change with clamping pin or brake.

[[Tool Change 9]]
'SPICE RACK GANG TOOLING.

[[Tool Change 10]]
'Turret using both prox switch counters and binary bit confirmation from Absolute Encoder or switches.

[[Tool Change 11]]
'Example of a tool changer using a Variable Frequency Drive (A.K.A. VFD or Vector Drive) and auxiliary encoder where the distances between each tool is NOT EQUAL.

[[Binary bit turret]]
'Binary bit pattern from Absolute Encoder or physical switches.

[[Tool Change Manual]]
‘Tool Change Manually.

[[5 Axes Kinematics]]
'User-definable routine for 5 Axes Kinematics math.

[[Automatic Height Control]]
'Example of logic reading an analog voltage from a capacitive head to regulate the Z-axis motion in live(real time) as set in milliseconds.

[[Z ADJUST BY ANALOG IN TIMER]]
'Convert Analog voltage to Z position while moving in real time.

[[Z Adjust Aux Encoder]]
'Logic to convert auxiliary encoder position to Z position while moving in real time.

[[Z Adjust Analog]]
'Logic to convert analog input device to Z position while moving in real time.

[[FEED POT Direct ON]]
'Enables the FEEDPOT to directly affect the feedrate in portion to 0-10 V.  F code will be disabled.

[[FEED POT Direct OFF]]
'Disables the FEEDPOT to directly affect the feedrate in portion to 0-10 V.  F code will be enabled.

[[3D Cylinder G160]]
'3D Cylinder G160.

[[3D Ramped Plane G163]]
'3D Ramped Plane G163.

[[3D Sphere G162]]
'3D Sphere G162.

[[Outside Circle G121]]
'OUTSIDE CIRCLE G121.

[[Inside Circle G122]]
'Inside Circle G122.

[[Mill Outside Square G120]]
'Mill outside a square with a lead on/off move.

[[Rectangular Pocket G65]]
'Mills out rectangular pockets.

[[Circular Pocket G66]]
'G66 A3 I0 J0 Z-.5 D.250 Q.2 R.1 S3000 T1 F100

[[Fly Cut G67]]
'Ex:  G67 A5 B7 D1.5 Q1.25 I0 J0 Z-.5 L.25 R.1 S3000 T1 F350

[[Slot Outside G125]]
'G125 X0 Y0 A5 B2 L.5 C6 E4 U15 Q.14 V.01      Z-.75 D.25 R.2 T1 S2500 F800

[[Slot Inside G126]]
'Ex:  G126 X0 Y0 A6 B3 U15 Q.2 V.01 D.25 R.2    Z-.75 T1 S2500 F200

[[Pocket with Corners G68]]
'Ex:  G68 A5 B3 I0 J0 Z-.5 D.250 Q.125 R.1 S3000 T1 F100 U.312

[[Bolt Hole Drill G181]]
'Ex:  G181 X.8 Y0 Z-.5 A0 D1.5 L8 R.1 S3000 T1 F50

[[Bolt Hole Dwell G182]]
'Ex:  G182 X.8 Y0 Z-.5 A0 D1.5 L8 Q.25 R.1 S3000 T1 F50

[[Bolt Hole Peck G183]]
'Ex:  G183 X.8 Y0 Z-.5 A0 D1.5 L8 Q.25 R.1 S3000 T1 F50

[[Bolt Hole Tap G184]]
'Ex:  G184 X.8 Y0 Z-.5 A0 D1.5 L8 R.1 C24 S3000 T1 F50

[[Bolt Hole Bore G185]]
'Ex:  G185 X.8 Y0 Z-.5 A0 D1.5 L8 R.1 S3000 T1 F50

[[Lathe Threading non servo]]
'Lathe Threading without servo motor needs encoder on spindle.

[[NON Rigid tapping]]
'NON Rigid mill tapping needs encoder on spindle.

[[Helix Spiral]]
'Spiral mill helical threading needs special threading tool and head.

[[Ellipse OutSide]]
'G123 X0 Y0 Z-1 A6 B3 I10 D.25 O.25 R.5 H.75 L1 Q.25 S2000 F100 T1

[[Ellipse Inside]]
'G124 X0 Y0 Z-1 A6 B3 I10 D.25 O.25 R.5 H.75 L1 Q.25 S2000 F100 T1

[[FANUC G68]]
'G68 U2 V2 A45 

[[FANUC G69]]
'G69

[[TOOLTILT]]
'Shows tool in 5 axes graphically.

[[WRAP4AXESG145]]
'Wraps 2D shape onto a 4th axis cylindrical part using a rotary table.

[[WRAP4AXESG146]]
'Turns off G145 that wraps shape on 4 axis cylindrical part using rotary table.

[[Increment Arc G2]]
'G02 Breaks down Arc into segments.

[[Increment Arc G3]]
'G03 Breaks down Arc into segments.

[[Wrap Rotary Y G2]]
'G02 Wraps arc onto cylinder using the 2nd axis as a rotary.

[[Wrap Rotary Y G3]]
'G03 Wraps arc onto cylinder using the 2nd axis as a rotary.

[[Z Adjust by Timer]]
'Logic to convert auxiliary encoder position to Z position while moving in real time.

[[Feed Rate Percent Knob]]
'Select feedrate by percentage using multi position knob.

[[G98 SET]]
'Uses the variable flag \998=1 as set in G98 and G99.

[[G98 RETURN]]
'See [G98 SET] macro plus G90 and G91 in DEFAULT.CBK for variable assignments.

[[G81]]
‘G81

[[G82]]
'G82

[[G83]]
'G83

[[G84]]
'G84

[[G85]]
'G85

[[G86]]
'G86

[[G88]]
'G88

[[G89]]
'G89

[[G81 INCREMENTAL]]
'G81

[[G82 INCREMENTAL]]
'G82

[[G83 INCREMENTAL]]
'G83

[[G84 INCREMENTAL]]
'G84

[[G85 INCREMENTAL]]
'G85

[[G86 INCREMENTAL]]
'G86

[[G88 INCREMENTAL]]
'G88

[[G89 INCREMENTAL]]
'G89

[[Home Dual Heads]]
'Homes 7-axis machine gantry with master/slave heads.

[[Home Gantry]]
'Homes 3-axis gantry machine with master/slave axis.

[[Probe SP2 Center Circle]]
'Probe circle center using analog feedback.

[[Probe Digital Center Circle]]
'Probe circle center using digital feedback.

[[Probe SP2 V-Block]]
'Probe V-block using analog feedback.

[[Probe Digital V-Block]]
'Probe V-block using digital feedback.

[[Probe SP2 Zig Zag]]
'Probe Zig-Zag scan example.

[[Probe Set Tool]]
'Use probe to set tool height.

[[CHECK POSITION]]
'Verifies in position.

[[START TANGENT]]
'Call this to start tangent mode.

[[STOP TANGENT]]
'Call this to stop tangent mode.

[[G0 TANGENT]]
'G00 tangent mode.

[[G1 TANGENT]]
'G01 tangent mode.

[[G2 TANGENT]]
'G02 tangent mode.

[[G3 TANGENT]]
'G03 tangent mode.

[[START TANGENT on 4th axis]]
'Call this to start tangent mode.

[[STOP TANGENT on 4th axis]]
'Call this to stop tangent mode.

[[G0 TANGENT on 4th axis]]
'G00 tangent mode.

[[G1 TANGENT on 4th axis]]
'G01 tangent mode.

[[G2 TANGENT on 4th axis]]
'G02 tangent mode.

[[G3 TANGENT on 4th axis]]
'G03 tangent mode.

[[SPINDLE DECEL]]
'Slow down spindle.

[[SPINDLE GEARS]]
'Gear change on spindle.

[[SMS]]
‘Make directory called SMS off of C:\AS3000\.

[[TOOLNUMBER]]
'Calculates tool number and offset.

[[Multiple Head Offsets]]
'Provides the means to read tool offsets from tool ‘parameter screen and add offsets to multiple heads.

[[TOOL OFFSETS 2 HEADS]]
'Applies tool offsets for 2 heads.

[[TOOL OFFSETS 4 HEADS]]
'Applies tool offsets for 4 heads.

[[TOOL OFFSETS 4 M CODE HEADS]]
'Invoke offsets only on a machine with 4 heads that are not axis but rather I/O up/down heads.

[[READOUT TOGGLE]]
'Change READOUT display from ABS,INC,     DIST TO GO, Relative to machine zero.

[[BACKLASHCHK]]
'Find backlash amount.

[[MAPPING]]
'Mapping axis for bad spots.

[[MAPWRITE]]
'Reserved for mapping.

[[Position Analog]]
'Position a conveyor belt driven axis or hydraulic unit .

[[TOOL PARAMETER OVERRIDE]]
'Example of how to ask the user a question to enter a value and override the value in the TOOL PARAMETER SCREEN.

[[FEEDRATE ADJUST]]
'The best way to demonstrate this is with a literal example of a 3-axis move where X & Y have counts/steps equaling 4000 per inch and the encoder/steps of the Z-axis motor is 10000 per inch.

[[Angle Convention Conversion]]
'Converts angles starting at 12 o'clock traveling clockwise to angles starting at 3 o'clock traveling counter clockwise and vice versa.

[[SHORTEST ROUTE]]
'Take shortest route on a rotary axis when given a value in degrees between 0-360.

[[Probe Digital Teach]]
'Example digital style touch probe of any brand.

[[BOSS SPIN SPEED]]
'This routine uses a pneumatic air solenoid to raise and lower spindle RPM.

[[Spindle Orientation by Encoder]]
'Orientate spindle by Encoder.

[[Spindle Orientation by Limit Switch]]
'Orientate spindle by Limit Switch.

[[Gear change CCW]]
'If head lube pressure LS is on, then do not start spindle.

[[Gear change Reverse]]
'If head lube pressure LS is on, then do not start spindle.

[[Spark Gap]]
'This routine monitors an analog voltage on AN3.

[[Wire Threading]]
'This routine advances wire and then cuts it off.

[[voltage monitoring]]
'Monitor voltage.

[[Wire Feed]]
'Feed wire on EDM.

[[Wire Cut]]
'Cut Wire on EDM.

[[FEED BUTTON HANDHELD]]
'Override Feedrate using Next Tool and Previous Tool Buttons on Hand Held Controller.

[[ACTUATOR]]
'Position a hydraulic, air or solenoid actuator type axis using encoder feedback.

[[RATIO FIX]]
'This is an example to calculate a temporary feedrate to compensate for different encoder count ratios in a coordinated 3 axis system.

[[Separate data]]
'Separates connected strings of text joined together with & signs and stores them into an ARRAY.

[[BACKWARDG18FORG2]]
'If your post processor writes XZ G18 plane G2 arcs backwards.

[[BACKWARDG18FORG3]]
'If your post processor writes XZ G18 plane G3 arcs backwards.

[[BACKWARDG19FORG2]]
'If your post processor writes YZ G19 plane G2 arcs backwards.

[[BACKWARDG19FORG3]]
'If your post processor writes YZ G19 plane G3 arcs backwards.

[[MISSINGIJK]]
'If your post processor is set up for incremental 2 1/2 arcs.

[[UPPERCASE]]
'This MACRO changes all of the characters in a variable \55 to UPPERCASE.

[[TOOL COLOR]]
'Force a specific color to each tool number.

[[SLEEP Alternative]]
'Alternative to SLEEP.

[[WAITUNTIL Alternative]]
'Alternative to WAITUNTIL.

[[PRE-HEAT PIERCE TIMER]]
'Counts down time in seconds for pre-heating or pierce through.

[[G83Standard]]
'Description of G83 Deep Hole Drilling Cycle.

[[G73HighSpeed]]
'Description of G73 High Speed Deep Hole Drilling Cycle.

[[G83FeedDown]]
'Description of G83 Deep Hole Drilling Cycle (Feed Down)

[[IMPORT TEXT FIELDS]]
'Excel type formatted text files.

[[EXPORT TEXT FIELDS]]
'Excel type formatted text files.

[[RS232 Analog Spindle]]
'Uses the RS232 port for spindle RPM to vary an analog +/-10vdc to the spindle.

[[RS232 Analog Module]]
'Formats and sends voltage out the RS232 port for the RS232 ANALOG MODULE.

[[RS232 Read Voltage]]
'Use this macro to request Analog Voltages from the 8 Channel ND-Series Analog Input Modules.

[[Analog Spindle]]
'Uses the S code for spindle RPM to vary an analog +/-10vdc to the spindle.

[[Analog Joystick]]
'This routine uses 2 analog inputs AN4 and AN5 to jog a 2-axis machine in multiple directions.

[[Binary Spindle Outputs]]
'Calculate Binary bits to set I/O for Spindle Speed 12 bit accuracy.

[[LASER PWM]]
'Sets PWM signal for Laser to control wattage power.

[[On the fly BlockSkip]]
'This routine will allow the block-skip feature to be toggled on and off while cutting.

[[Probe 2 points to align part rotation]]
'Reset any previous angles or tilt.

[[PRESET TOOLING]]
'Tool Height Adjustment for pre-set tooling.

[[PUNCH]]
'Turn on and off punch and CHANGE I/O.

[[PUNCH HYD RAM]]
'Hydraulic ram punching.

[[PUNCH FLYWHEEL]]
'Fly wheel ram punching.

[[Load Sheet]]
'Foot pedal controlled clamping and sheet loading.

[[TURRET]]
'Turret tool changer routine.

[[G78 X-GRID]]
'Punch Grid in X.

[[G79 Y-GRID]]
'Punch Grid in Y.

[[PUNCH BOX]]
'Punch Press canned cycle to punch out rectangle.

[[Oscillation]]
'For EDM.

[[Oscillate by Relay]]
'Oscillation routine controlled by digital I/O relay on/off pulsing.

[[Reset Axes Coordinates]]
'This routine resets X,Y,Z only.  Modify to other axis as needed.

[[Crash Barrier Clamp]]
'Stop if Crash Barrier Clamp region is entered.

[[Crash Barrier Chuck]]
'Stop if Crash Barrier Chuck region is entered.

[[Crash Barrier Island]]
'Stop if Crash Barrier Island region is entered.

[[ANALOG_OUT_INIT]]
'Analog out setup.

[[ANALOG_IN_INIT]]
'Analog in setup.

[[VOLTAGE_OUT]]
'VOLTAGE_OUT.

[[READ_VOLTAGE]]
'READ_VOLTAGE.

[[SET_OUTPUT]]
‘SET_OUTPUT I/O.

[[READ_INPUTS]]
'READ_INPUTS I/O.

[[HEXCHARTOBIN]]
'Change Hex into Decimals.

[[Set THC Height]]
'Call this macro when you are ready to set the height of the plasma tip against the material.

[[Enable THC]]
'Enable THC.

[[Disable THC]]

[[Torch Start]]
'This macro will start the Plasma Torch on Sequence.

[[Torch Off]]
'This macro is used to turn the Plasma Torch Off.

[[Plasma THC 3rd Party Unit]]
'Automatic Torch Height Control for 3rd party Non-CamSoft Brand Units.

[[Plasma THC Servo Z Analog Feedback]]
'Automatic Torch Height Control using a servo for Z and analog feedback to THC.

[[Auto Align Start Default]]
'Rotates part program based on 2 points to align part to fixture.

[[Auto Align Finish Default]]

[[Auto Align Start Probe]]
'Rotates part program based on 2 points to align part to fixture.

[[Auto Align Finish Probe]]


CNC Professional Logic Commands

ABSCODE: Switches the G Code values to absolute mode.

ABSDISP: Switches the readouts to display in absolute mode.

ACCEL: Changes the axis acceleration.

ANALOG: Provides a way to control analog output and read analog input.

ANGLE: Is a math command that will calculate 3D angles

AUXENCODER: Permits the reading of the auxiliary encoders and stores the
position into a variable.

AXIS: Changes the number of coordinated axes there are in the system.

BACKLASH: Allows the user to change the backlash parameters that were
defined in CNCSETUP.

BAR: Allows the user to move a graphical bar to show a value and display a
graph.

BLEND: Enables the user to control exact stopping and smoothing between
each targeted motion position (only works with certain motion control boards).

BLOCKSKIP: Use this command to define a block skip character

BUTTON: Enables the visual button on the screen to appear pressed in or
popped out, contain a descriptive caption and to be one of 16 different colors.

BUTTONSTATE: Lets you know whether an on-screen button is being pressed
or not being pressed.

CALCULATOR: Pops up the CamSoft Formulator and stores the result of the
equation into the variable specified

CCW: Turns a counterclockwise arc.

COLOR: Changes the color of the graphics display while driving the tool.

COMMAND: Provides a way to enter a motion card command directly to the
card.

COMMECHO: Echoes back the data sent to the controller to confirm the
controller did receive the data.

COMMIN: Reads the data from the RS232 port one line at a time and stores
the data into the variable you specified.

COMMOUT: Sends text or numeric data out through the RS232 comm port.

COMMSETUP: Permits the user to open an RS232 serial communications
port.

CONSTANTSF: Constant Surface Feed (should only be used on lathes).

CVBOST: Stands for Change Velocity Based On Spindle Torque.

CW: Turns a clockwise arc.

CYCLES: Counts the number of completed cycles there were since the
machine started.

CYCLESTART: Use this command to start a continuous cycle or pause a
cycle.

DECEL: Changes the axis Deceleration.

DECELSTOP: Makes the control come to a decelerated stop and then will
accelerate on the next move.

DECTOHEX: Converts a decimal value into a hexadecimal value.

DIAGNOSE: Switch into the Diagnostic mode.

DISPLAY: User-defined display box.

DISPVARB: Use this command in Diagnostic Mode to display the value of the
variable in the G Code window to help you track variable values.

DISTANCE: A math command that will calculate a 3D distance.

DISTOGO: Stores the distance yet to go from the current position to the target
position into the variable specified.

DRYRUN: Invokes a dry run mode which inhibits the Z axis and the spindle and
places the control into rapid mode.

END: Is a way to shut down the system.

ENLARGE: Enlarges the Readout displays, Code Display window or Main
screen.

EOP: The End of Program (EOP) command forces the end of the program
so it will not execute past a certain point and run into a subroutine.

ESCKEY: Emulates the Escape key during coordinated motion.

ESTOP: Halts axis and spindle motion immediately without decelerating to a
stop.

EXECUTE: Controls the order in which G and M codes get executed on the
same line.

EXIT: Stops processing any more logic statements in that field.

FAKE: Fakes the status of a digital I/O point while in Development mode.

FANUCARC: 0 = Absolute Arc Centers, 1 = Fanuc Type Incremental Arc
Centers,
2 = Use the R code for the radius of the arc.

FEEDHOLD: Sets the feed rate or velocity to 0 (zero).

FEEDPOT: Provides the user with control of the feed rate through an
external knob or potentiometer.

FEEDRATE: Changes the feed rate.

FILECLOSE: Close an opened file.

FILENAME: Returns the current filename of the last job file used.

FILEOPEN: Open a file to read from or write to.

FILEREAD: Read the data in an opened file.

FILEWRITE: Write data to an opened file.

FINDINDEX: Moves the motor until the index is found on the main encoder for
any defined axis 1 through 8.

FINETUNE: Changes the way the system reads the encoders.

FIXTURE: Takes the values in the variables entered and adds the fixture offset
values from the tool parameter screen.

GAUGE1 and GAUGE2: Use these commands to move the needle on the user-
definable GAUGE METERS.

GEAR: Changes the gearing factor to any motor.

GETRPM: Use this command to get the RPM of any axis motor.

GO: Goes to a position in coordinated motion in up to 8 axes simultaneously.

GOSUB: Enables the user to jump or switch the execution of the G code
program to a specific G code line that contains a match for the parameter
after the GOSUB command.
GOTO: Provides a way to jump to a Line Label.

HANDWHEEL: Tells the software the axis number to engage or move using an
external encoder type hand wheel device.

HEXCHAR: Permits the user to store a hex value into a public variable.

HEXTODEC: Converts a hexadecimal value into a decimal value.

HOME: Resets a new home position.

IF THEN: Provides conditional branching or processing if true.

INCCODE: Switches the G Code values to incremental mode.

INCDISP: Switches the readouts to display in incremental mode.

INSPECT: This command combined with the use of the [INSPECT SAVE] and
[INSPECT RESUME] macros will allow the interruption of a part program in
progress and then allow the user to jog away.

INSTR: Finds the occurrence of one string within another and stores the Nth
position over from the left when it is found into a variable.

IPM: Initiates the feed rate in inches per minute which can be done on any
machine type.

IPR: Initiates the feed rate in inches per revolution which is usually only done on
lathes.

ISTHERE: Allows the user to check for an occurrence of certain text or a certain
value within the G code program.

JOG: Invokes the jog icon without the need to click on the jog icon.

JUMP: Enables the user to jump or switch the execution of the G code program
to a specific G code line that contains a match for the parameter after the JUMP
command.

KNOB: Moves the multifunction knob to the Nth position.

LABEL: Displays text in a label.

LENGTH: Sets the tool height offset for non-lathe applications.

LENSTR: Counts the number of characters in a string and stores the length of
the string into a variable.

LIGHT: Turns on or off one of the operator defined light bulbs on the screen.

LISTADD: Add new items to the List Box.

LISTCLEAR: Delete the items in the List Box.

LISTFONT: Allows the user to change the font size within a list box.

LISTPICK: Display the List Box to allow the user to select an item.

LISTSETUP: Create a List Box of items for the user to select from.

LITERAL: Stores the current G code line or user-entered command line into a
variable.

LOADING: Tells you if the program currently is being loaded into memory or is
in a "ready-to-run" state.

LOADPROGRAM: Invokes the Load Program icon without clicking on the Load
Program icon. Also loads a file into memory.

LOGCLOSE: Closes the LOGFILE.FIL file.

LOGOPEN: Opens the LOGFILE.FIL file to record machine activity and
diagnostic messages.

LOGWRITE: Writes a message to the LOGFILE.FIL file.

MACHDISP: Switches the readouts to display the position relative to machine
zero.

MACHGO: Moves the machine to a position in the X, Y, Z, 4, 5, 6 axis that is
relative to the machine zero home location.

MACHHOME: Stores the current encoder position of axes 1 through 8 to a
variable that is relative to the machine's zero location.

MACHZERO: Used to reset the machine zero location X, Y, Z, 4, 5, 6, 7, 8
upon start up when home is found.

MATRIX: This command will rotate, scale and tilt the cutting motion in 3D
until canceled.

MAXSPEED: Use this command to cap the maximum spindle speed.

MDI: Invokes the MDI icon without the need to click on the MDI icon.

MESSAGE: Provides a way of displaying a message to the screen.

METRIC: Switches the controller between inch and millimeter mode.

MIDPROGRAM: This command is similar to CYCLESTART except it will prompt
the user for an N block number to begin at.

MIDSTR: Extracts a specified number of characters from a specified position
within a string and stores the splice of the string into a variable.

MINSPEED: Use this command to hold a minimum spindle speed.

MOVESLIDER: Repositions one of the three slider bars on the screen.

MOVING: Inquiry command to report back whether or not the motors are
moving.

NEXTMOVE: Is a distance value that tells the control that when the actual table
is within the distance from its final destination, then feed the rotary buffer the next
move so that when it reaches its destination it will pause and wait to be told
where to go.

OFFSET: Provides a way to invoke or add fixture offsets.

OPENCHANNEL: Opens either a local ActiveX channel or NetWork Net Bios
channel to allow an external EXE program to send and receive logic commands,
raw data and variables.

PICTURE: This command places a bitmap image on the screen.

PLANE3PTS: When given any three points, this command will return a
normalized 3D vector that is normal to the plane created by the three
points.

PLANEXY, PLANEYZ, PLANEXZ: These commands tell the control which of
the three major machining planes XY, YZ, XZ the software will create arcs in.

PLAY: Plays the WAV file specified after the PLAY command out of the
speakers attached to your computer.

POLAR: A math command which will move the original X,Y,Z position
using the polar coordinate system when given the XY angle, Z angle and
distance to move.

POSERROR: Turns on or off excessive position error checking and allows
you to optionally set the tolerance for excessive error.

POSITION: Enables you to independently position individual axes 1 through 8
to a specified absolute position.

PREP: Prepares the card for motion.

PRINT: Print to the printer.

PRINTER: Open and close the current Windows print queue driver.

QUESTION: Provides a method to prompt the user with a question and record
the answer to a variable.

RADOFARC: Stores the radius of a G02 or G03 move directly to a variable.

RAPID: Rapid to position.

RAPIDSPEED: Changes the currently programmed maximum rapid speed in
effect.

RATIO: Converts the value in the variables entered into encoder counts for each
axis.

READNOTE: Stores the last note written in the G code program within
parentheses () into a variable.

READOUT: Stores the current encoder position of axes 1 through 8 to a
variable.

READVARB: Immediately reads the value stored in the variable table on
disk and overwrites the contents of the variable in memory with the value
stored on disk.

REFRESH: Redraws or refreshes the wire frame or solid modeled graphics
stock image in the graphic window or refreshes or clears the code display
window.

RESERVED: Reserve variables for your own specific use within a logic routine.

RESPONSE: Returns the last response back from the motion card to the
variable specified.

RESUME: Issued after a SUSPEND command to resume communications
to the motion control card and digital I/O for all encoder, limit switch and
auxiliary digital I/O inquiries.

RETURN: Returns execution of the G code program on the line after the
GOSUB command.

REWIND: Jumps to the beginning of the user program at line 1 and
automatically starts the program again.

RUN: Run another Windows .EXE in multitasking mode.

RUNTIME: Stores the elapsed job running time to a variable.

SAVEVARB: Immediately saves the contents of the given variable to disk.

SAY: Uses the CamSoft speech engine to pronounce and recite the words
you enter after the SAY command out of the speakers attached to your
computer.

SETESTOP: Toggles the effect E-STOP has on the axes.

SETUP: Enables you to define the parameters of an axis beyond the six
that can be defined through the DESIGN.INI file using the CNCSETUP
program. It also enables you to redefine axes 1 through 8.

SINGLESTEP: Invokes the single step icon without the need to click on the
single step icon.

SLAVE: Sets up a master and slave axis union.

SLEEP: Provides a way to wait a while or sleep.

SLOWDOWN: Percentage in which to decelerate or slow down in order to
slow down before the target position is reached.

SLOWRATE: Sets both the slow jogging speed and the FINDINDEX feed rate.

SMARTPATH: Overrides the parameters within the SMARTPATH program.

SMOOTH: Produces non-stop motions between positions.

SOFTLIMITS: This command either turns on (enables) or off (disables) the soft
limit locations.

SOUND: Permits no sound, an audible WAV file or an audible WAV file
and Speech to be heard.

SPEEDPOT: This is the axis number that will receive a variable output voltage.
Provides the user with an external knob to control spindle speed.

SPINADJUST: This command is a fine tuning adjustment for your spindle.

SPINDLERPM: This command reports back the true spindle RPM into the
specified variable.

SPINFORWARD: Forces the polarity of the spindle to spin forward.

SPINREVERSE: Reverses the polarity of the spindle to spin in reverse.

SPINSTOP: Stops the spindle rotation.

STOCKDEFINE: Redefines a solid material image on the graphics window.

STOCKHEIGHT: Use this command to add or subtract to the solid model
part height or thickness in a non-lathe application.

STOCKLENGTH: Use this command to add or subtract to the solid model
part length in a non-lathe application.

STOCKOD: Use this command to add or subtract to the solid model part
OD in a lathe application.

STOCKWIDTH: Use this command to add or subtract to the solid model
part width in a non-lathe application.

STOP: Halt axis motion by decelerating to a stop.

SUSPEND: The SUSPEND command can be used by itself or used with nine
possible parameters: BYPASS, DISABLE, RESPOND, AXES, ALLMOVES,
MCODE, INPUTS, GRAPHICS, GUI, PREVIEW or GCODE to suspend or override machine
operations.

TEACH: Each time this command is given, the current access position will be
written to a file in your current AS3000 WORK directory.

TERMINAL: Invokes the terminal icon without the need to click on the terminal
icon.

TEXT: Enables you to update and refresh the contents of the text boxes on the
screen.

TIME: Returns various elapsed times in minute format since the machine has
been turned on into the user-supplied variable.

TIMER: Enables or disables and governs the time interval in which background
logic will be performed while the machine is multi-tasking other operations such
as cutting the part or tool changing.

TOGGLE: This command toggles between the ON and OFF states of the toggle
switch.

TOGODISP: Switches the readout to display the distance yet TO GO to get to
the target position.

TOOLCOMP: This command enables 2D, 3D and 5-axis tool compensation.

TOOLDESP, TOOLHEIGHT, TOOLHORZ, TOOLPHOTO, TOOLSIZE,
TOOLTIME, TOOLVERT, TOOLCUS1ST, TOOLCUS2ND, TOOLPARAM:
Reads or saves tool conditions set in the tool parameter screen.

TOOLOFFSETX, TOOLOFFSETY, TOOLOFFSETZ, TOOLOFFSET4,
TOOLOFFSET5, TOOLOFFSET6: Use these commands to apply tool offsets to
each axis individually.

TOOLS: Invokes the tool parameter icon without the need to click on the tool
parameter icon.

TOOLTILT: Graphically tilts the tool in 3D according to the normalized vector
specified.

TRUERPM: Regulates and forces the spindle speed to the specified RPM within
a given tolerance.

VECTOR: When given any two points, this command will return a normalized 3D
vector from the first point to the second.

VIEW: Changes the viewing perspective.

VIRTINDEX: Emulates a virtual encoder index marker.

WAITAUXIO: This command is similar to the WAITUNTIL command except this
command will only look at the auxiliary I/O card.

WAITUNTIL: Use this command to test if an input is either on or off and wait
until the input is at the desired on and off state before executing any further
commands. WAITUNTIL STOP may also be used to wait for motion to stop.

ZOOM: Repositions the on-screen graphics while in wire frame mode.

# Refers to the digital IO number or relay.

 

 



------------

HOME   |   ABOUT CAMSOFT   |    SUPPORT   |   CUSTOMER LIST   |   CONTACT US