6
Motion Instructions and G-Code Instructions
DVP-PM Application Manual
6-5
Some G-code instructions are only composed of the instruction part (mnemonic), e.g. G90 or G91. However,
most G-code instructions are composed of mnemonic with operands. In addition, no drive contact is required
to be placed before a G-code instruction.
Rules of using G-Code
(a) Multiple instructions, including M codes, can be placed in the same row in the program
For example: G91G01 X100.0 Y300.0 F500.0 M8 G04 X4.5;
(b) When multiple instructions are placed in the same row in the program, the last instruction has the priority.
For example: G02 G00 G03 G01 X100.0 Y300.0 F500.0; => G01 X100.0 Y300.0 F500.0;
(c) High speed positioning instruction (G0) does not need to use parameter V
MAX
For example: G00 X100.2 Y500.0;
In which the speed is the maximum moving speed (V
MAX
) set by the internal parameter of DVP-PM.
(d) High speed positioning instruction (G00) and linear interpolation instruction (G01) have continuity.
N0000 G00 X500.0 Y125.0;
N0001 X-400.0 Y-500.0;
=> G00 X-400.0 Y-500.0;
N0002 G01 X100.0 Y25.0 F200.0;
N0003 X-200.0 Y50.0;
=> G01 X-200.0 Y50.0 F200.0;
(e) Speed parameter F of G01 G02 G03 has continuity.
N0000 G01 X500.0 Y125.0 F200.0;
N0001 G03 X-40.0 Y-50.0 R100.0;
=> G03 X-40.0 Y-50.0 R100. F200.0;
N0002 G02 X100.0 Y25.0 I400.5 F200.0;
N0003 G01 X-200.0 Y50.0;
=> G01 X-200.0 Y50.0 F200.0;
(f) G90 (absolute coordinate) and G91 (relative coordinate) have the top priority.
G90 G01 X100.0 Y300.0 F500.0;
=> G90 G01 X100.0 Y300.0 F500.0;
G01G90 X100.0 Y300.0 F500.0;
=> G90 G01 X100.0 Y300.0 F500.0;
(g) G codes with or without spaces can all be identified.
G01G91X500.0 Y125.0F200.0;
=> G01 G91 X500.0 Y125.0 F200.0;
(h) Coordinates and speeds will all be converted into 32 bits.
G01 X-125.5 F200.0;
=> G01 X-125500 F200000;
(i) Coordinates and speeds with decimal (.) will be multiplied by 1,000.
G01 X100 Y-125.5 F200.0;
=> G01 X100 Y-125500 F200000;
(j) The minimum setting of G04 (pause time): 10ms, e.g. in below instruction the 9ms of G04 P2509 will be
left out. In addition, parameter
X
and
P
refer to different units for G04.
X
: 1s.
P
: 1ms.
G04 X4.5 (pause for 4.5 sec
G04 X5 (pause for 5 sec)
G04 P4500 (pause for 4.5 sec)
G04 P2509 (pause for 2.5 sec)
(k) G-Codes DVP-PM does not support will be ignored.
G21G54G01 X-125.5 F200.0;
=> G01 X-125500 F200000;
G43G87G96 X250.5 F200.0;
=> G01 X250500 F200000;
(l) In 20M model, the programming method conforms more to general G-Code, i.e. the function index does
not need to be placed in the order of X, Y, Z, I, J, K, R. The examples below are all legal.
G0 X4.5 Z40.0 Y30.5 F200.2;
=> G00 X4.500 Y30.500 Z40.000
Z100.5 Y400.0 X300.0;
=> G00 X300.000 Y400.000 Z100.500
G1xd100zd300y200.45 fd400
=> G01 XD100 Y200.450 ZD300 FD400
G3 ZD100 I200.0F50.60XD300 m80
=> G03 XD300 ZD100 I200.000 F50.600 M80
G03 yD100 x9999.9Z200.0r777.7 Fd800
=> G03X9999.900 YD100 Z200.000 R777.700
FD800
Summary of Contents for DVP-10PM
Page 1: ......
Page 45: ...2 Hardware Specifications and Wiring DVP PM Application Manual 2 30 MEMO...
Page 125: ...3 Functions of Devices in DVP PM DVP PM Application Manual 3 80 MEMO...
Page 341: ...8 Application Examples DVP PM Application Manual 8 2 Trajectory 3 Trajectory 4...
Page 427: ...9 Electrical CAM DVP PM Application Manual 9 74...
Page 437: ...10 Encrypting User Program DVP PM Application Manual 10 10 MEMO...
Page 458: ...11 G code Application DVP PM Application Manual 11 21 B O100 main program...
Page 561: ...14 Appendix DVP PM Application Manual 14 4 MEMO...