Router-CIM Automation

RCIM_2016_Header


RCIM_2016_Header


Previous topic Next topic  

RCIM_2016_Header


Previous topic Next topic  

Switch Parameters

The following lists all of the available switches and explains their use.

;A

An entry using this switch will have its NC code placed in the AFTER or PA buffer so when the motion block is processed, the code will be placed after the motion information.

Input G04;A

Result X2000Y2000G04

;B

An entry using this switch will have its NC code placed in the BEFORE or PB buffer so when the motion block is processed, the code will be placed before the motion information.

Input G04;B

Result G04X2000Y2000

;C

An entry using this switch will have its NC code placed in the CURRENT or PC buffer so when the entry is processed, the NC code will be immediately output to the NC file.  In terms of group definitions, the $TEXT group in the $PP file will be evaluated and output to the NC file.

Input G04;C

Result G04

;D

An entry using this switch will disable other $PP entries so they do not generate output.  The parameters to this switch are other $PP entries which are to be disabled.  Note that all codes are initially defaulted "ENABLED".

This switch can be used in conjunction with the "E" or "ENABLE" switch to handle codes that enable/disable each other.

For example, "G00;D#LINEAR;E#RAPID=RAPID" and "G01;D#RAPID;E#LINEAR=LINEAR" will define "G00" to be output when the text "RAPID" is processed and "G01" to be output when "LINEAR" is processed.  When "RAPID" is processed it will disable the $PP entry "LINEAR" and enable itself.  This provides the ability to output G00 or G01 in a motion block definition as well as the ability to disable/enable other $PP entries.

;E

An entry using this switch will enable other $PP entries so they do generate output.  The parameters to the switch are the $PP entries to be enabled.  This switch is used in conjunction with the "D" switch to output one code or the other.

;F

An entry using this switch will not use global formatting switches for number formatting.  The required options will be taken from the 'F' switch.

For example, "N#4#4;F#ZL=SEQNO" will create fixed left sequence numbers with leading zeros ("N0001" as opposed to "N1").

;G

This switch controls the current group number for $PP output.  Use this to allow for totally different blocks of NC code to be generated.  The default group is set to 1 on startup of the post.

;I

An entry using this switch will be initialized to the value contained in the parameter.

Example: "N#3.0;I#1=SEQNO" initializes sequence numbers to 1.

Note that all values without a ;I switch will be initialized to 0.

;M

This switch is used to control the definition of modal codes to the postprocessor.

;N

This is a switch that controls the modal behavior of the current line of NC code.  If a line completely modals out, the lines output is suppressed.  SEQNO is always considered to be blank so that lines of code containing only SEQNO will be suppressed.

This switch in ;N#0 form will cause the code to always be considered blank for modal purposes (just like SEQNO).

In the ;N#1 form, this switch will cause the entire line to be suppressed if this code modals out.  This can be used to suppress tool change lines if the tool modals out.

Example:

T#4#4;M#0;N#1=TOOLNO

Will suppress the current line of NC code if the TOOLNO has modaled out.

;P

This is a switch that will put or assign values to other $pp entries. The first number after the switch controls the type of assignment.  The number 0 indicates an absolute assignment, the number 1 indicates an incremental assignment. After the first number you can repeat pairs of $PP names and numbers to assigned to them.

Example 1:

;P#0#SEQNO#100#SEQINC#10

Will place the number 100 into the post entry SEQNO and 10 into SEQINC.

Example 2:

;P#1#SEQNO#100

Will increment SEQNO by 100.

An entry can also be assigned a value by using a variable instead of a fixed value.

Example :

;P#0#SEQNO#3

Will place a 3 into SEQNO.

This could now be accomplished with the following statements.

;I#3.0=SI

;P#0#SEQNO#SI

With the added benefit that you could set SI in the drawing and the post would output the correct value.