Professional Documents
Culture Documents
Version 0.4.6
October 11
e-mail: Usinage5axes@free.fr
http://5axes.free.fr/devel_WinPost_en.htm
Chapter
I SOFTWAREWinpost
GENERAL INFORMATION.
The majority of the CFAO create neutral files including of the
instructions CN credits for the machines. Much is in called
binary code Cl-dated, or in an adapted ASCII format of
language APT. Certain FAO provide a high degree of
flexibility, allowing to include a little all in the neutral file,
whereas others are more restrictive. This utility makes it
possible to convert these files APT for milling machines 3/4
axes and CU 3 or 5 axes.
Generation of the code
EMULATION OF CONTROLLERS
CNC & SUPPORT CODES-G
Winpost generates the codes G, supports the conditional checks of execution of the functions
(other functions in the block course, values of current variables, states machine etc) which can
change l' interpretation of the mot.
LIMIT OF GUARANTEE
Because many parameters external with the software can generate errors and collisions on the machine,
no guarantee n' is provided, as for the exactitude of the course of the programs generated by the
software. You must always keep in mind that this program is only one invaluable help for the
development of your courses but will never provide a total safety of unfolding real of the courses. The
program could not be held for person in charge of all damage direct, indirect, secondary or additional
(financial losses due to the shortfall, with l' interruption d' activities or with the loss of data, etc, rising
from l' use of the Program or l' d' impossibility; to use this one).I-1
Chapter
This symbol appears beside specific notes notes explaining the particular functions
current subject.
This symbol appears beside the easy ways which return easier work to you.
This symbol appears beside the warnings with the actions which could cause a damage with your work.
I-2
Chapter
Tree of
Posting of
information
Zone
of information
You can redimensionner the size of these zones while clicking on the bars of separation of these zones
and by bringing these last on the desired position. In order to return these bars more visible following
pictograms one added on the bars allowing of redimensionnerzones.pour the horizontal bar of
redimensioning for the vertical bar of redimensioning.
II-3
Chapter
TO CHARGE A POST-PROCESSOR
To charge a post-processor you can use small Slection Post-processor.
The button launches the transformation starting from the zone of text.
This button makes it possible to convert the file directly without run of the treatment of the
code to the screen.
You can also press on the key Echap (ESC) to stop the treatment. The treatment does not stop
immediately but goes until the end of the instruction in progress.
II-4
Chapter
Tree of information
After having used the orders of transformation one finds in the tree of information a summary of the
tools met in files APT.
Stagnation point
While clicking with the button of right-hand side on a line this makes it possible to insert
or remove one
stagnation point. In mode of transformation from
the transformation
the zone of text will stop on the stagnation point
requested.
To insert a stagnation point:
Click with the button of right-hand side of the mouse
on line having to be used as stagnation point.
The use of the stagnation point is primarily used in the cases of development of the
post-processor
II-5
Chapter
Selection post-processor
Allows to select the configuration of the post-processor
used. The configuration is stored in files (*.PPC)
To leave
Closing of the file and exit of the program.
TREATMENT
Together functions of conversion of the ISO file.
To convert directly
This menu makes it possible to convert file APT directly. The end result will be charged in
the zone with text located on the right of the software.
This method is faster than the preceding one.
III-6
Chapter
OPTIONS
This group of menu gathers the optional functions making it possible to regulate certain
parameters. One also finds in this group the functions to modify the configuration of a postprocessor.
Post-processor definition
This function makes it possible to open the window of configuration of the
post-processor.
This function is also accessible by the
bar of tools.
button
Option
This menu allows d' to reach the general options of the WinPost program. It is thus possible to
choose the language of the software thus qu' an option which makes it possible during the
treatment of file since the line of order to close the program after the treatment of file APT. L'
use of the program is then completely transparent for l' user.
Exporter Log
The function allows d' to export under a format text the messages present in the window d'
posting of the messages. This function is especially useful for the debugging of the software
and l' sending of d' report/ratio; use.
RAZ Log
Erase the zone of report/ratio.
BY THE WAY
Find in this menu the relative informations with the version of the current
software.
Version
The Version function gives you the version of the software. This information is important in
particular if you detected a problem in the software your information feedback must be
obligatorily accompanied by the number of version.
III-7
Chapter
III-8
Chapter
BAR TOOLS
To open File APT
To save Iso
Configuration
III-9
Chapter
Format of a variable
The fields defining a formatting of the addresses make it possible to define the code associated with the
variable as well as the format with the associated numerical value.
Exemple : X#0.000
For a value of 973.38814
IV-10
Chapter
The software uses the function in-house FORMAT to format the exit of the codes. It code being directly related to
the regional parameters of your computer the exit of the point as separating decimal must thus be defines in the
regional parameters of Windows.
Existing variables
PP_TOOL
PP_S_SPINDLE
PP_FEEDRATE
PP_COOLNT
PP_AIR
:
:
:
:
:
PP_SPINDLE
PP_COMMENT
:
:
:
:
PP_CORR
PP_TEMPO
PP_PARTNO
PP_REWIND
PP_FILE
PP_NCFILE
IV-1
Chapter
PP_DATE
PP_TIME
: Current date
: Current hour
These two variables are used to give the date and l' hour of
creation of the ISO file
PP_N_LINE
PP_FIRST_X
PP_FIRST_Y
PP_FIRST_Z
PP_FIRST_A
PP_FIRST_B
PP_FIRST_C
:
:
:
:
:
:
Coordinates
Coordinates
Coordinates
Coordinates
Coordinates
Coordinates
the automatic classification of the lines is not added with the codes not treated
in the zones of text. You must thus add the N& code; (PP_N_LIGNE, #0) in front
of the lines to be numbered.
Existing variables for the cycles of drilling
You will find hereafter the list of the variables available in the cycles of drilling.
PP_TOOL
PP_S_SPINDLE
PP_FEEDRATE
PP_COOLNT
PP_AIR
PP_SPINDLE
PP_COMMENT
IV-2
Chapter
Premier Point
PP_CYCLE_FIRST_X: Coordinates X of the first point of fixed cycle
PP_CYCLE_FIRST_Y: Coordinates Y of the first point of fixed cycle
PP_CYCLE_FIRST_Z: Coordinates Z of the first point of the fixed cycle
Point de cycle
PP_CYCLE_X
PP_CYCLE_Y
PP_CYCLE_Z
PP_CYCLE_A
PP_CYCLE_B
PP_CYCLE_C
TOOL_REMARK
IV-3
Chapter
GENERAL
General parameters of the post-processor
Name: Name of the Post-processor. This information is used to name the post-processor. This
name will be posted in the bar d' heading of the program.
Type Post-processor:
Siemens 840D
Heidenhain ISO
Conversational Heidenhain
NUM
FIDIA
FANUC
ROBOT KUKA
Siemens 810T
The type of the post-processor is an indication and can have an influence on the generated
code or the way in which the program treats the code. Thus the configurations Conversational
Heidenhain and Siemens 810 T are they specific.
Repertory d' origin of files APT: localization of files APT. Allows to preferably specify a
repertory for the loading of files APT
Repertory of destination of the ISO files: localization d' writing of the ISO files
Extension ISO File: Extension of generated the Iso files ex (.mpf for Siemens file or .h for
conversational Heidenhain files)
IV-4
Chapter
Exit comments: the comments present in file APT will be treated left in the ISO file. This
corresponds to the code of the type $$ l' instruction PPRINT being treated as a specific
instruction which can be a comment or a computer code.
Comment beginning: Character indicating the d' beginning; a comment (example the point
comma or the bracket)
Fine comment: Character indicating the end d' a comment in a file Iso (example the bracket)
Space inter code: A space is used to separate the codes. This lrend the more readable code
but also larger.
Exit number of line: Exit of the classification of the lines Exit number of line for comment:
This option makes it possible to specify that the lines not comprising that comments will be
also numbered To compress code: Allows to remove the codes nonmodal in order to limit the
size of generated the Iso files.
Ex :lines APT :
GOTO / -45.89034, -44.44933, 0.000, 0.000, 0.000, 1.000
FEDRAT/ 1000.0000,MMPM
GOTO / -45.89034, -44.44933, 16.10030, 0.000, 0.000, 1.000
Will give:
G0 X-45.890 Z0.000
G1 X-45.8903 Y-44.4493 Z16.1003 A0.000 C0.000 F1000
G0 X-45.890 Z0.000
G1 Z16.1003 F1000 Si
Format number of line: Format for the exit of the numbers of line example: N#0 for an exit of
the code of the type N10, N20 for a fixed exit: N0006 to use for example N#0000 To
compress code: Allows to remove the codes non modal in order to limit the size of generated
the Iso files.
Starting number: Starting number for the numbers of line Increment of classification:
Increment of classification example 5 for lines of 5 in 5 Number of maximum line: Maximum
number of line. Once reached classification sets out again with the starting number.
Tolerance calculation: Tolerance of calculation for function d' posting of the course or
certain approximations. Value not used in current version of the post-processor.
IV-5
Chapter
AXES
Definition of the addresses for the axes
machines
R (Radius of circle): Format for the exit of the circular interpolations under the format R (by
giving the ray of l' interpolation.
Incremental coding: In the case or the notation incremental by a coding different from the
linear axes (conversational Heidenhain example L IX IY IZ) l' passes; activation of this option
makes it possible to add with the coding of axes X there Z the following code Macro code of
return: Code to add with X Y and Z for a movement into incremental.
IV-6
Chapter
Order of the axes: allows to specify l' order of exit of the Attention axes must contain the
13 following Letters:
NGXYZ I J K R A B C F
1 2 3 4 5 6 7 8 9 10 11 12 13
L' order functions for the moment only for the exit of G XYZ and ABC
IV-7
Chapter
Stop Stitches: Code for l' stop of rotation of the pin (M05 Example) Stitch time
direction: Code for the setting in rotation of the pin clockwise (M03 Example)
Stitch anti-clockwise direction: Code for the setting in rotation of the pin anticlockwise (M04
Example)
Code speed: Code of exit of the advances F#0 example for an exit of the type F1000 Pr
codes speed: Code beginning of line for management speed Code speed stitches: Code for
the rotation of the pin S#0 example for an exit of the S10000 type
Startup stitches: Complete sequence for the startup of the
pin Example for Heidenhain post-processor:
& (PP_N_LIGNE, #0) TOOL CAL & (PP_TOOL, #0) Z S&
(PP_S_SPINDLE, #0) & (PP_N_LIGNE, #0) & (PP_SPINDLE,
#0)Donneune sortie du type :
IV-8
Chapter
IV-9
Chapter
CODE G
Dfinition des codes G.
G01
G00
G70
G71
G90
G91
IV-10
Chapter
PP_FEEDRATE
PP_COMMENT
PP_CORR
PP_CODE_RING
: Code circular interpolation G02/G03
PP_CENTRE_RELATIF_X: Coordinates into relative compared to
starting point X point of center
PP_CENTRE_RELATIF_Y :Coordinates into relative compared to the starting point Y of the point
of center
PP_CENTRE_RELATIF_Z :Coordinates into relative compared to starting point Z of the point of
center.
PP_CENTRE_ABSOLU_X: Coordinates absolute X of the point of center.
PP_CENTRE_ABSOLU_Y: Coordinates absolute Y of the point of center.
PP_CENTRE_ABSOLU_Z: Coordinates absolute Z of the point of center.
IV-11
Chapter
CODE M
Definition of the codes M and management of lubrication. In the codes M one will find the
blocking of the rotary axes and the code of end d' operation or d' temporary stop operator.
Exit Codes Lubrication: L' activation of l' option makes it possible to take into account codes
APT COOLNT and to leave the corresponding code
Lubrication ONE:
code corresponding to code APT COOLNT /ON
Lubrification OFF:
code corresponding to code APT COOLNT /OFF
Lubrification FLOOD:
code corresponding to code APT COOLNT /FLOOD
Lubrification AIR:
code corresponding to code APT COOLNT /AIR
Air ON: code corresponding to code APT AIR /ON
Air OFF: code corresponding to code APT AIR /OFF
Stop Operation: M01 Codes stop operation
IV-12
Chapter
IV-13
Chapter
TOOL
Definition of the codes of management of
the tools
Corrector cancellation: Code d' cancellation of corrector d' tool Left corrector:
Code d' activation of the correction d' tool on the left of the Correct profile righthand side: Code d' activation of the correction on the right of the profile
Corrector at the end of the line: Place the code of correction at the end
of the line. Example codes for heidenhain: 216 L Y3.028 Z2.786 RL
Management codes TOOLNO: This option makes it possible to take into account code
TOOLNO the following sequence makes it possible to define the code used to manage
code TOOLNO
TOOL cancellation: Together of code to cancel the loading tool before passing to the
following loading. Heidenhain example: TOOL CAL 0
IV-14
Chapter
Exit Machine
T6D6
G54
Exit codes CUTTER: This option allows d' to use information coming from code APT
CUTTER to leave either the comment or the instructions
The following sequence makes it possible to define the code used to manage code
CUTTER.
Note: These instructions use specific variables which are described in the Liste paragraph
Variables available page IV-1.
Example of code ConfigWinPost:
(TOOLDIAMETER&(TOOL_DIAM,#0)/RADCORNER&(TOOL_RC,#0))
Will give in the code Iso Sortie Machine:
(TOOLDIAMETER20/RADCORNER5)
IV-15
Chapter
5AXES
Definition of the kinematics of the machine 5axes as well as its limits on the axes.
Type: Inform the type of machine to be simulated. In the currently available type one will
find:
Type 1 =
Type 2 =
Type 3 =
Type 4 =
Type 5 =
Type 6 =
Type 7 =
Type 8 =
Type 9 =
Type 10 =
Type 11 =
Type 12 =
Type 13 =
Type 14 =
Plateau
Type 15 =
Type 16 =
Type 17 =
Turning
Type 18 =
3 Axes
Head A/B
Head A/C
Head B/C
Head A/C 45
Head B/C 45
A/C Plate
B/C Plate
A/C Plate 45
B/C Plate 45
Tte A/C Plate
Tte B/C Plate
Tte 45 A/C Standard
Tte Standard 45 B/C
HEULER A/B/C
Kuka A/B/C
Multifunction Standard
Notation IJK (A3B3C3)
IV-16
Chapter
Type
Linear
Translation
Rotation RollOver
Rotation Modulo
Description
Part controlled
Part controlled
Part controlled
Part controlled
in
in
in
in
IV-17
Chapter
FIXED CYCLES
Definition of the fixed cycles of drilling, tapping, facing, boring
Code
Code
Code
Code
Code
Code
Code
Code
Code
drilling:
definition of the code fixes for the operations of drilling.
chamfering: definition of the code fixes for the operations of chamfering.
facing:
definition of the code fixes for the operations of facing.
deep drilling: definition of the code fixes for the operations of deep drilling
breaks chips: definition of the fixed code for the operations of drilling breaks chips.
boring:
definition of the code fixes for the operations d' boring.
tapping:
definition of the code fixes for the operations of tapping.
threading:
definition of the code fixes for the operations of threading.
machining helicoid: definition of the code fixes for the operations of drilling helicoid.
Fast displacement after fixed cycle: Code to define a withdrawal in rapid after a fixed
cycle.
Code stop of the cycle: Code to define the end d' fixed activation of cycle.
Example: G80
Call not of cycle: Code allowing to define the points d' call ' a fixed cycle.
IV-18
Chapter
DEBUT/FIN FILE
Definition of the beginnings and end of
file.
End of line: Code added at the end of the ISO lines Example: *
IV-19
Chapter
COLOR
Definition of the colors for the analysis of code APT.
Color text
Definition of the colors for the description of syntax in code APT.
To modify a double color click on the text or the box color and select the desired color.
The red color is prohibited, it is reserved for the marking of the lines having generated
errors.
COLOR_COMMENT:
COLOR_INCONNUE:
COlOR_PARTNO:
COLOR_RAPID:
COLOR_COOLNT:
COLOR _TPRINT:
COLOR _CUTCOM:
COLOR _TLAXIS:
COLOR _SPINDL:
COLOR _FEDRAT:
COLOR _GOTO:
COLOR _REWIND:
COLOR _TOOLNO:
COLOR _LOADTL:
COLOR _END:
COLOR _FINI:
COLOR _CYCLE:
IV-20
Chapter
COULEUR_CIRCLE :
COULEUR_CUTTER :
COULEUR_UNITS :
COULEUR_MCS :
COULEUR_MULTAX :
COULEUR_SELECT :
COULEUR_FROM :
COULEUR_PPFUN :
COULEUR_PPRINT :
COULEUR_INSERT :
COULEUR_LOAD :
COULEUR_DISPLY :
COULEUR_OPSTOP :
COULEUR_STOP :
COULEUR_DELAY :
COULEUR_PREMIER_POINT :
COULEUR_ORIGIN :
COULEUR_INDIRV :
COULEUR_TLON_GOFWD :
COULEUR_AIR :
COULEUR_CAMP :
COULEUR_AUXFUN :
COULEUR_GODLTA :
COULEUR_PREFUN :
COULEUR_GOHOME :
COULEUR_MODE :
IV-21
Chapter
PARTICULAR INSTRUCTIONS
Definition of the particular instructions.
First Point after change tool: These codes make it possible to define the plays d' instructions
of the first item discussed after a change d' tool.
Macro of STRONG CURRENT of the rotary axes: In the case or l' rotary axis of the machine
reached a limit it is then necessary to give to Zero the axes. Or to rock with 180 on an axis.
This plays of code then makes it possible to define this restoring of the codes.
Code for macro return at the origins: Macro to manage the codes of return at the origins.
Corresponds to the treatment of code APT GOHOME. Attention in this case l' writing of the
codes uses aa little special notation example:
IV-22
Chapter
To note qu' there exists also the notation F! In this case if the F n' then one is not present
uses the code of substitution for speed:
Example of coding with the two notations :&(F#0,F~)&("FMAX",F!)
If F is present one will have then Fla value of l' advances if not FMAX at
the end of the file
Management of code APT Mode: Allows to define the codes associated with code APT
Mode. definition is particular because it is necessary here to define on a line the treatment
associated with a code MODE. The codes MODE can be also varied is it difficult of all to
validate them one has for example
MODE/ INCHES
MM
XYPLAN
YZPLAN
ZXPLAN
ABSOL
INCR
MILL
INCHES/N&(PP_N_LIGNE,0)
G20
MODE:
MM/N&(PP_N_LIGNE,0) G21
Thus
MODE/INCHES will give N3 G20
IV-23
Chapter
In red codes untreated in the software in the current version of the software.
V-24
Chapter
Exemple :
CIRCLE/508.000,762.000,0.000,0.000,0.000,1.000,137.000
GOTO/645.000,762.000,0.000
L' another notation recognized and used uses code TLON, GOFWD with the notation INDIRV
which gives the direction of course to the first point of the circle. The vector thus defined
makes it possible to know the direction of course G02/G03.
INDIRV/X-value, there-value, Z-value TLON, GOFWD/(CIRCLE/X-center, there-center, Z-center, ray), ONE,
(LINE/X-center, there-center, Z-center, x-PointFin, there PointFin, Z PointFin)
Exemple :
INDIRV/0.99503,0.09957,0.000
TLON,GOFWD/(CIRCLE/0.16933,0.12173,0.000,0.04177),ON,(LINE/0.16933,
0.12173,0.000,0.20325,0.14611,0.000)
Finally the same notation is also treated if codes CIRCLE and LINE are defined in their
affecting a reference (Lx and Cx) which will be used in code TLON, GOFWD as in l' following
example:
C1=CIRCLE/41.6,1.0681,14.7351,3
L1=LINE/41.6,1.0681,14.7351,38.6,1.0681,14.7351
INDIRV/1,0,0
TLON,GOFWD/C1,ON,L1
V-25
Chapter
Attention the declaration of orders CIRCLE and LINE must be done before l' call by TLON,
GOFWD. It n' is thus not possible to define at the beginning of code APT all references CICRLE
& LINE.
SELECT :Selection d' an origin (left the code of the G54 type for example).
Exempleof code : SELECT/54
MODE :D' definition; an operating process.
ORIGIN :D' definition; an origin (either with call d' a code G FIXTUR (G54, G55. ) is with value of
l' origin
DATUM X, Y, Z
Exemple de code :
ORIGIN / FIXTUR, 2 ===> G55
ORIGIN / DATUM, 1.0, 2.5, 3.9
CLAMP :D' definition; year instruction off rblocage d' year axis Example of
code:
CLAMP / ON
/ OFF
/ AAXIS, ON
/ BAXIS, OFF
GOHOME :Return at the origins. L' one can specify on which axes can be made return.
Example of code: GOHOME / XAXIS, YAXIS, ZAXIS
Chapter
dfinitionofcyclefixes.Exampleofcode:CYCLE
Percage,pointage
.CYCLE/DRILL,30.4,6451.6,MMPM,2.54
CYCLE/TAP : taraudage.CYCLE/TAP,30.4,6451.6,MMPM,2.54
CYCLE/REAM :
Alesage.CYCLE/REAM,30.4,6451.6,MMPM,2.54
CYCLE/MILL :percageparhlicodale
.CYCLE/MILL,30.4,6451.6,MMPM,2.54
CYCLE/BORE :
percage.CYCLE/BORE,30.4,6451.6,MMPM,2.54
CYCLE/FACE :
surfacage.CYCLE/FACE,30.4,6451.6,MMPM,2.54,100
CYCLE/BORE,DWELL:percageavectemporisation
.CYCLE/BORE,DWELL,30.4,6451.6,MMPM,2.54,100
CYCLE/CSINK :
chamfreinage
.CYCLE/CSINK,30.0,30.0,6451.6,MMPM,2.54
CYCLE/DEEPCL :
percageprofond
.CYCLE/DEEPCL,30.4,6451.6,MMPM,2.54,INCR,10.0,10.0
CYCLE/DEEPBK :
cyclebrisecopeaux
.CYCLE/DEEPBK,30.4,6451.6,MMPM,2.54,INCR,10.0,10.0
CYCLE/OFF :
instructionsdefindecycle.CYCLE/OFF
Code
CYCLE/OFF
Exemples
CYCLE/DEEPBK
CYCLE/DEEPBK,30.4,6451.6,M
MPM,2.54,INCR,10.0,10.0
CYCLE/OFF
Description
Paramtres
Instructions of end of
cycle.
Cycle breaks chips
V-27
Chapter
Corrections
New functions
New functions
New functions
New functions
Version 0.3.2
Date : 10/02/2011
TailleExcutable : 760 Ko (778 240 octets)
New functions
Chapter
Version 0.3.3
Date : 17/03/2011
TailleExcutable : 772 Ko
New functions
Version 0.3.4
Date : 27/04/2011
TailleExcutable : 784 Ko
New functions
Corrections
New functions
New functions
VI-29
Chapter
SOFTWARE WINPOST
I-1
GENERAL INFORMATION.
I-1
I-1
LIMIT OF GUARANTEE
I-1
I-2
II
II-3
To charge a POST-PROCESSOR
II-4
II-4
II-4
II-5
II-5
III
III-6
III-6
III-6
III-6
III-6
III-6
III-6
III-6
III-6
III-6
III-7
III-7
III-7
III-7
III-7
By the way
Version
III-7
III-7
Bar tools
III-9
IV
PRINCIPLE
IV-10
IV-10
30
Chapter
Format of a variable List Variables
available
8
IV-10
IV-1
GENERAL
IV-4
AXES
IV-6
IV-8
CODE G
Particular case of the exit of the circular interpolations
IV-10
IV-11
CODE M
IV-12
TOOL
IV-14
5AXES
IV-16
CYCLES FIXES
IV-18
DEBUT/FIN FILE
IV-19
IV-20
IV-20
PARTICULAR INSTRUCTIONS
IV-22
V-24
V-24
V-24
V-27
VI
VI-28
31