Controller State Variables

This section provides basic information about the controller state variables for DELMIA SGPost processor.

Definition of Machine Kinematics Comments
TABLE.pivot[3] Pivot vector of the table (workpiece support)
TABLE..pivot0[3] table pivot vector, non-modifiable value
AXE0.axe index of the1strotation axis (0, 3=A, 4=B, 5=C)
AXE0.fixed Flag indicating whether calculated by the ABC function (0=calculated, 1=not calculated)
AXE0.ijk[3] rotation axis vector
AXE0.incr angular increment of the axis (0 = no increment)
AXE0.lintol axis linearisation flag (0 = not linearised, 1 = linearised)
AXE0.law rotary axis law (0 = linear, 1 = rotary, 2 = between 0 and 360, 3 = between -180 and +180 if G0, 4 = between -360 and 360 if G0) AXE0.pivot[3] pivot vector of the 1strotation axis.
AXE0.pivot0[3] pivot vector of the1strotation axis, value cannot be modified.
AXE0.direction default direction of movement (1 or –1)
AXE0.type axis type (1 = head, 2 = stage)
AXE0.type0 axis type (1 = head, 2 = table), non-modifiable value
AXE1.axis index of the2ndrotation axis (0, 4=A, 5=B, 6=C)
AXE1.fixed flag indicating calculation by the ABC function (0 = calculated, 1 = not calculated) .
AXE1.ijk[3] rotation axis vector
AXE1.incr Angular increment of the axis (0 = no increment)
AXE1.lintol axis linearisation flag (0 = not linearised, 1 = linearised)
AXE1.law rotary axis law (0 = linear, 1 = rotary, 2 = between 0 and 360,3 = between -180 and +180 if G0, 4 = between -360 and 360 if G0) AXE1.pivot[3] pivot vector of the2ndrotation axis.
AXE1.pivot0[3] pivot vector of the2ndrotation axis, value cannot be modified
AXE1.direction default direction of movement (1 or –1)
AXE1.type axis type (1 = head, 2 = table)
AXE1.type0 axis type (1 = head, 2 = table), value cannot be modified
AXE2.axis index of the3rdrotation axis (0, 4=A, 5=B, 6=C)
AXE2.fixed flag for calculation by the ABC function (0 = calculated, 1 = not calculated)
AXE2.ijk[3] rotation axis vector
AXE2.incr Angular increment of the axis (0 = no increment)
AXE2.lintol axis linearisation flag (0 = not linearised, 1 = linearised)
AXE2.law rotary axis law (0 = linear, 1 = rotary, 2 = between 0 and 360, 3 = between -180 and +180 if G0, 4 = between -360 and 360 if G0)
AXE2.pivot[3] pivot vector of the3rdaxis of rotation.
AXE2.pivot0[3] pivot vector of the3rdrotation axis, value cannot be modified
AXE2.direction default direction of movement (1 or –1)
AXE2.type axis type (1 = head, 2 = table)
AXE2.type0 axis type (1 = head, 2 = table), value cannot be modified
HEAD.pivot[3] pivot vector of the head (tool holder)
HEAD.pivot0[3] Pivot vector of the head; value cannot be modified
General Machine Definition Comments
ABC.type[3] Type of ABC rotary axes (0=undefined, 1=head, 2=table)
CODE.used[20] Code addresses (NGX-WI-KRSMF) CODE
COMMENT1.start Start character(s) of comment 1
COMMENT1.end End character(s) of comment 1
COMMENT2.start Start character(s) of comment 2
COMMENT2.end End character(s) for comment 2
COMMENT3.start Start character(s) for comment 3
COMMENT3.end End character(s) for comment 3
COMMENT4.start Comment 4 start character(s)
COMMENT4.end End-of-comment character(s) for comment 4
EOB.char End-of-line character(s)
EOT.char End-of-file character(s)
GCODE.val[] G-code mapping table
GOHOME.on global retraction flag
GOHOME.code specific G or M retraction code
GOHOME.def[9] Retreat flag between each operation on each axis (0 or 1)
GOHOME.def2[9] Retreat flag at the end of the program on each axis (0 or 1)
GOHOME.def3[9] Retreat flag after each tool on each axis (0 or 1)
GOHOME.from Flag to use the FROM point as the retraction point (0 or 1)
GOHOME.rapid Retreat flag with G0 (0 or 1)
GOHOME.tol

Angular retraction tolerance

GOHOME.xyz[9] Retraction value on each axis
LIMIT.max[9] Maximum allowed limit on each axis
LIMIT.min[9] minimum allowed limit on each axis
LIMIT.error Write to the error log file LIMITS
MACHIN.type machine type (0=3 axes, 1=1 or 2 tables, 2 = 1 table + 1 head, 3 = 1 or 2 heads)
MCODE.time[] Time in minutes associated with each M code
MCODE.time[] Time in minutes associated with each M-code
MCODE.val[] M-code mapping table
MCODE.opt[] array of M-code writing options (0=in the block, 1=only before the block, 2=only after the block)
MODE.amax Maximum value of the circular interpolation angular travel (0 = no limit)
MODE.circle Circle writing mode (0=absolute IJK, 1=relative IJK, 2=radius, 3=XYZIJK, 4=2 points)
MODE.circle0 Circle writing mode cannot be changed
MODE.inverse Enable or disable 5-axis inverse mode (0=No, 1=G93, 2=G94)
MODE.inverse0 Enable or disable non-editable inverse mode.
MODE.uppercase Enable lowercase letters in ISO decoding
MODE.optim Rotary axis for optimization (0 = first axis, 1 = second axis, 2 = shortest)
MODE.optim0 Rotation axis for optimization (0 = first axis, 1 = second axis, 2 = shortest axis); cannot be modified.
MODE.rmax Maximum value of the circular interpolation radius (0 = no interpolation)
MODE.xyz Definition of the reference point (0 = tool tip, 1 = tool center, 2 = pivot point, 3 = diameter on X, 4 = diameter on Y, 5 = diameter on Z, -1 = tool center → tool tip)
MODE.pivot Definition of the reference point (3 = spindle pivot, 2 = head pivot, 1 = tool center , -1=tool center → tool tip, 0=no)
MODE.rapid 0=rapid in G0, 1=rapid in G1, 2=rapid in G0 or G1 if ABC
MODE.polar 0=no, 1=X rotation axis, 2=Y rotation axis, 3=Z rotation axis, 4 = rotation axis of the 1strotary axis, 5 = same as 4 with the current point as the origin, 6 = polar mode only for centered circles.
MODE.poldist minimum distance from the center for polar calculation
MODE.polorg Origin of the polar coordinate
NEXT.char line-separator character(s) for ISO decoding
RUBAN.eob End-of-block indicator for ISO decoding SOT.char File start character(s)
TIME.block Minimum block execution time (in minutes)
TIME.feedmax[9] Maximum feed rate on each axis (mm/minute or degrees/minute)
TIME.accmaxl[9] Maximum acceleration on each axis (mm/s²or degrees/s²)
TIME.jerk[9] jerk on each axis (mm/s³ or degrees/s³)
TIME.update indicator of time change to the next block (acceleration)
UNITS.conv unit conversion factor applied to all dimensional data (GOTO, GOCIR, etc.)
XYZABC.org[9] Position of the origin relative to the machine origin.
XYZABC.tol[13] Minimum deviation for writing an ISO code (XYZABCUVWIJKR)
Current Status Comments
STATE0.block Whether the generated block is a motion block or not
STATE0.cutdist Machining distance in G1, G2, G3
STATUS0.cutime Machining time in G1, G2, G3
STATUS0.cycle current cycle number (0=disabled, n=enabled)
ETAT0.dir[3] Initial direction of movement
STATUS0.fedmod feed mode (1=REVERSE, 2=UPM, 3=UPR)
STAT0.fedrat feed rate value for the block ETAT0.fedrat1 feed rate value at the end of the block
ETAT0.fedrat2 feed rate at the start of the block
ETAT0.fedmax Maximum feed rate for the block
ETAT0.accmax Maximum block acceleration value
ETAT0.first whether the first point is defined or not (1,0)
ETAT0.from[6] xyzijk position of the FROM point
ETAT0.gotype type of movement (0 = no movement, 1 or -1 = movement along the tool axis ,2 = movement perpendicular to the tool axis,3 = any movement, 4 = movement to the end of the circle, 5 = movement to an intermediate point on the circle)
STATE0.mode coordinate mode 0=absolute, 1=incremental
STATE0.move read movement mode (0=RAPID, 1=GOTO, GOCIR, GOCYCL)
ETAT0.move0 Written movement mode (0=G0, 1=G1, 2=G2, 3=G3) ETAT0.mtime Processing time for M-codes
STATE0.multax Multax mode active or not (1, 0) ETAT0.plane
ETAT0.plane Active plane definition (1=XY, 2=ZX, 3=YZ)
ETAT0.pts[6] point xyzijk position of the workpiece at the target
ETAT0.rapid 1 if FEDRAT.upm > FEDRAT.rapid, 2 if RAPID, otherwise machining time in G0 or G1 > FEDRAT.rapid ETAT0.supres
0 ETAT0.rtime Condition for writing the motion block:0 = normal writing 1 = explicit specification of all axis components 2 = decomposition of a motion into a component in the work plane followed by a perpendicular component, -2 = decomposition of a movement first perpendicular, then in the work plane, 3 = XYZ notation on each block, 4 = Decomposition of Z, then XY, -4 = Decomposition of XY, then Z
STATE0.time machining time in minutes
STATE0.tlaxis position of the tool axis on the spindle ( -3=-Z, -2=-Y, -1=-X, 1=X; 2=Y, 3=Z)
STATUS0.units active unit mode (0 = INCH, 1 = MM)
ETAT0.xyzabc[9] machine axis positions
Previous State Comments
STATE1.block Whether the previous block is a motion block or not (1, 0)
STATE1.cutdist Previous machining distance in G1, G2, G3
STATE1.cutime Previous machining time in G1, G2, G3
STATE1.cycle Number of the previous cycle (0=disabled, n=enabled)
STATUS1.dir[3] Final direction of the previous movement
STAT1.fedmod previous feed mode (1=REVERSE, 2=UPM, 3=UPR)
STATE1.fedrat feed rate value from the previous block
ETAT1.fedrat1 feed rate value at the end of the previous block
ETAT1.fedrat2 Feed rate at the start of the previous block
ETAT1.fedmax Maximum feed rate value of the previous block
ETAT1.accmax Maximum acceleration value for the previous block
ETAT1.gotype type of the previous movement (0 = no movement,1 or -1 = movement along the tool axis, 1 or -1 = movement along the tool axis, 2 = movement perpendicular to the tool axis, 3 = arbitrary movement, 4 = circular movement, 5 =segmented circular movement)
STATE1.mode Coordinate mode: 0 = absolute, 1 = incremental
STATE1.move movement mode (0=rapid, 1=linear, 2=circular, 3=circular)
STATUS1.move0 Written movement mode (0=G0, 1=G1, 2=G2, 3=G3)
STATE1.mtime M-code cycle time ETAT1.multax Multax mode enabled or disabled (1, 0)
ETAT1.plane Active plane definition (1=XY, 2=ZX, 3=YZ)
ETAT1.pts[6] xyzijk workpiece position of the previous point
STATE1.rapid 0 if G1, 1 if FEDRAT.upm > FEDRAT.rapid, 2 if G0
ETAT1.rtime machining time in G0 or G1 > FEDRAT.rapid
ETAT1.supres Writing condition for the previous motion block: 0= normal notation, 1= explicit notation of all components of a perpendicular axis, -2 = decomposition of a perpendicular motion followed by motion in the work plane,3 = XYZ notation on each block,4 = decomposition of Z, then XY-4 = decompose XY, then Z
STATE1.time machining time in minutes for the previous block
ETAT1.tlaxis Y position of the tool axis on the spindle ( -3=-Z, -2=--1=-X, 1=X; 2=Y, 3=Z)
STATE1.units unit mode in the previous block (0 = INCH, 1 = MM)
STATUS1.xyzabc[9] machine axis positions at the previous point
General Status Comments
ABC.fixed[3] Rotary axis indicator (0 or 1) reset to zero with each movement
ABC.sol1[3] 1stsolution of the function ABC(i,j,k)
ABC.sol1[3] 2ndsolution of the ABC(i,j,k) function
AXETOL 5-axis angular smoothing tolerance (default = 0.002)
CODE.xyzabc[9] Values of the axes written in the ISO file
DATUM[12] Current 4x3 initial transformation matrix (TRACUT)
DATUM1[12] Previous 4x3 initial transformation matrix (TRACUT)
GOCIR.on Circle decoding mode active after CIRCLE or ARCDAT
GOCIR.turn Number of turns for helical interpolation
INTOL General calculation tolerance (default = 0.02)
LIMIT0.max[9] Actual current maximum limit on each axis
LIMIT0.min[9] Actual current minimum limit on each axis
LIMIT1.max[9] current maximum limit on each axis
LIMIT1.min[9] current minimum limit on each axis
MODE.polar axis for calculating polar coordinates (1=X, 2=Y, 3=Z, 4=table with fixed origin, 5=table with origin at the current point)
MODE.poldist minimum distance for calculating polar coordinates
MODE.polorg Polar coordinate origin angle
MODE.ptp0 Enables point-to-point mode (1 or 0); cannot be modified
MODE.ptp Enable point-to-point mode (1 or 0)
MULTAX.on xyzijk coordinate mode (1=on, 0=off)
SCALE[4] Scale coefficients for X, Y, Z, and XYZ (SCALE.x, SCALE.y, SCALE.z, and SCALE)
TABLE[12] 4×3 final transformation matrix (inclined plane)
TRANS[3] Translation of positioning coordinates after the DATUM
UPDATE.on Status of the UPDATE function (0, 1, or -1; partial execution of UPDATE)

DELMIA SGPost are trademarks or registered trademarks of Dassault Systemes, All Rights Reserved, in the United States and in other countries.