HUST H2N Connecting Manual
9 - 2
Pxxxx<CR> --- xxxx is the program number if the data requested is
not in the current program. Omit, otherwise.
%
DC4 --- Command END.
DC2 means PC command starts to transmit.
DC4 means PC command stops.
'0' and '1' following N act as On/Off switch for the command requested.
'1' means the requested command is On.
'0' means the requested command is Off.
The command format representations by the 0/1 combination and their meanings are
shown in Table A1 and Table A2. The followings are some examples showing the
use of command format from PC.
Example 1: The 2nd command, RESET
DC2
%<CR>
O9000<CR>
N01<CR> ----- Bit 2 On, RESET CNC controller
%
DC4
Example 2: The 3rd command, AUTO
DC2
%<CR>
O9000<CR>
N001<CR> ----- Bit 3 On, AUTO mode selected
%
DC4
Example 3: The 6th command, CYCLE START
DC2
%<CR>
O9000<CR>
N000001<CR> ----- Bit 6 On, CYCST command
%
DC4
Example 4: The 13th command, CNC READ program from PC
DC2
%<CR>
O9000<CR>
N1000000000001<CR> ----- Bit 13 On, Read program from PC
%
DC4