Specifications of CNC-PC Graphic Interface Additional Manual Page 6

Additional Manual
4. Graphic commands (Graphic command I/F)
Graphic commands are instructions for executing animation.
CNC outputs these commands to PC. PC reads them and executes animation
according to the instructions. Supported graphic commands are as follows.
CODE(hex) DATA DESCRIPTION
70 Error status(1byte) error information
7F inch/mm change
axis number setting (2byte)
setting coordinate (3 axis/each 4byte)
Display coordinate setting
Set offset value for each
axis
from screen center(0,0,0).
(for G75 repositioning)
81 Start point of drawing (3 axis/each 4byte) Draw start position set
83 End point of line (3 axis/each 4byte) Linear move
84 rotate direction etc(1byte)
End point of arc (3 axis/each 4byte)
Center point of arc (3 axis/each 4byte)
Circular move
85 rapid speed ratio of each axis
(4 axis/each 4byte)
Rapid ratio setting
86 End point of rapid (3 axis/each 4byte) Rapid move
BD tool number (4byte) tool select
BF none animation end
EC C-axis rotate angle for tool (4byte) tool rotate
ED none punch action
FC number of sending M code (5/9/13byte) M code output
Attention
(1) Code and data are word unit, but only lower byte is available.
(2) Coordinate data(7F,81,83,84,85,86,EC) is fixed decimal point data.
ex.) 0081 0010 0027 0000 0000 ... = 81 10 27 00 00 ....
( The high bytes are ignored.)
“81” is the graphic command and “10 27 00 00” is
Lower 2 or 3 figures are digits under the decimal point and the number of
00002710(hex) = 10000(dec) = 100.00 mm or 10.000 mm
the digit under the decimal point is decided by CNC. You can get this
information by using the library function “cnc_getfigure”.
EDIT DATE DSGN DESCRIPTION
RELEASE
DSGN RECOG
TITLE
DRAWING No.
Sheet
6/14
Specifications of
CNC-PC Graphic Interface
A-61184E
970702
Murata
02
03
04
971117
971216
980116
Murata
Murata
Samukawa
Samukawa
Samukawa
The parts of are added.
FC command is added.
Spec. of FC command is changed.

Contents Summary of Specifications of CNC-PC Graphic Interface Additional Manual

  • Page 1Specifications of CNC-PC Graphic Interface Software Laboratory FANUC LTD Warning All specifications and designs are subject to change without notice, according to the progress of development. TITLE Specifications of CNC-PC Graphic Interface DRAWING No. 04 980116 Spec. of FC command is changed. ④ FC
  • Page 21. Outline This specification describes the interface between CNC and PC for executing animation on Personal Computer (Hereafter, we call it PC). This animated function is an application software of PC, and executed by graphic command from CNC via CNC-PC interface area. 2. Process flow Interface Are
  • Page 3CNC sets the cancel flag if it requests PC to stop reading the graphic commands. ~ ~ Generate Graphic commands Stop Graphic commands output Cancel flag set Cancel flag read Data Window I/F “cnc_rdgrphcanflg” ・Stop reading graphic commands. ・Delete all graphic commands in graphic command I/F “cnc_clr
  • Page 43. Library Functions (Data window I/F) Library functions for check animation before the real machining are as follows. Check animation Function name: cnc_startdyngrph start Declaration: #include “fwlib32.h” short FAR PASCAL cnc_startdyngrph (unsigned short FlibHndl); Description: Start check animati
  • Page 5short FAR PASCAL cnc_rdgrphcmd (unsigned short FlibHndl, short *num, short *buf); Description: Read graphic command from graphic I/F Arguments: FlibHndl Identify the process which uses the library num pointer of numbers of read byte (Data range :1-256) buf pointer of arrangement of read graphic comm
  • Page 64. Graphic commands (Graphic command I/F) Graphic commands are instructions for executing animation. CNC outputs these commands to PC. PC reads them and executes animation according to the instructions. Supported graphic commands are as follows. CODE(hex) DATA DESCRIPTION 70 Error status(1byte) erro
  • Page 7(1) 70 command (Error information) This command informs the graphic error status of CNC. 70 1 @1 @1 0:no alarm 1:animation is not correct (lack of end point of block) (2) 7F command (Display coordinate setting) This command informs the display coordinate information. 7F 2 1 @1 6 5 4 3 @2 10 9 8 7 @3
  • Page 8Axis select means correspondence of actual axis and display axis. If first axis select is 2, actual first axis corresponds to display 2 axis. First/second/third axis select is not 0, the display coordinate is 3-dimension. One of them is 0, the display coordinate is 2- dimension. @2~@4 The position o
  • Page 9In case of 2-dimension 4 3 2 1 @1 8 7 6 5 @2 (4) 83 command (Linear move) This command informs the end position of linear move(end position of linear move block of NC program). 83 4 3 2 1 @1 8 7 6 5 @2 12 11 10 9 @3 @1 End point of linear move (first axis) @2 End point of linear move (second axis) @
  • Page 10(5) 84 command (Circular move) This command informs the end position of Circular move(end position of circular move block of NC program). 84 1 @1 5 4 3 2 @2 9 8 7 6 @3 13 12 11 10 @4 17 16 15 14 @5 21 20 19 18 @6 25 24 23 22 @7 bit7 bit0 @1 Arc 1 axis Arc 2 axis 00:actual first axis 01:actual second
  • Page 11In case of 2-dimension 5 4 3 2 @2 9 8 7 6 @3 13 12 11 10 @4 17 16 15 14 @5 @2 End point of circular move (first axis) @3 End point of circular move (second axis) @4 Center point of circular move (first axis) @5 Center point of circular move (second axis) (6) 85 command (Rapid ratio setting) This com
  • Page 12(7) 86 command (Rapid move) This command informs the end position of rapid move(end position of rapid move block of NC program). 86 4 3 2 1 @1 8 7 6 5 @2 12 11 10 9 @3 @1 End point of rapid move (first axis) @2 End point of rapid move (second axis) @3 End point of rapid move (third axis) In case of
  • Page 13(9) BF command (animation end) This command informs the end of NC program. BF (10) EC command (tool rotation) This command informs the rotation angle of tool. EC 4 3 2 1 @1 @1 C-axis rotation angle of tool (11) ED command (punch action) This command informs the punch action. ED (12) FC command (M co
  • Page 14@1 number of sending M code (1/2/3) @2 1st M code @3 2nd M code @4 3rd M code @3 and @4 are not sent when @1 is 1, and also @4 is not sent when @1 is 2. In other words, the length of data is changed according to the number of sending M code. Example of graphic commands order for punch animation 7F S