-

NcStateData Struct

NcStateData provides modal state data to read for integration into the machine’s logic. Compass NC uses this data after it is communicated from the PLC to the PC.

MachineState MachineState





CycleActive BOOL Indicates that G-code program is running.




CycleHold BOOL Indicates that G-code program is paused.





AtParserBlockingCommand BOOL G-code program is momentarily paused waiting for a feedback from PLC.
PLC PLC Data struct for writing and reading PLC variables during G-code file execution.




DINTS Array[100] 100 DINT type PLC variablesfor writing and reading during G-code file execution.




LREALS Array[100] 100 LREAL type PLC variables for writing and reading during G-code file execution.





BYTES Array[100] 100 BYTE type PLC variables for writing and reading during G-code file execution.





G31 G31 Axes positions recorded after G31 move.
ModalState GCodeState ModalState/GModalGroup saved in the PLC.




MotionState MotionMode Current Motion Mode (G0, G1, G2, G3)




PlaneState PlaneMode Current Plane (G17, G18, G19)




FeedState FeedMode Current Feed Mode (G93, G94)




DistanceState DistanceMode Current Distance Mode (G90, G91)




UnitsState UnitsMode Current Units (G20, G21)




CutterDiameterCompState CutterDiameterCompensation Cutter Diameter Compensation State (G40, G41, G42)




ToolLengthOffsetState ToolLengthOffset Current Tool Length Offset State (G43, G44, G49)




ScalingState ScalingMode Current Scaling State (G50, G51)




CoordinateSystemState CoordinateSystem Current Coordinate System Offset Mode (G54  - G59)




ExactStopControlState ExactStopControlMode Current Modal Exact Stop State (G61, G64)




MacroProgramModalState MacroProgramModalMode Not implemented




SpindleSpeedState SpindleSpeedMode Not implemented




CoordinateRotationState CoordinateRotationMode Current Coordinate Rotation State (G68, G69)






 


This is the latest version of Compass Online help and the content may refer to features not available in previously released versions of Compass.

Copyright © 2026 YASKAWA America, Inc.