User`s manual

Part 2
35
7. Device Control Instructions
The Device Control instructions determine how communication between the PNC-3100 and the computer will be
handled using the RS-232C interface; and also are employed when relaying to the computer the status of the PNC-
3100. Some of them can be used to format the output for CAMM-GL I instructions.
A Device Control instruction is composed of three characters: ESC (1Bh), a ".", and an uppercase letter. There
are also two types of device control instructions: one carries parameters and the other does not.
Parameters can be omitted. Semicolons, " ; " are used as separators between parameters. A semicolon without
parameters means that parameters have been omitted. Device Control instructions with parameters require a
terminator to indicate the conclusion of the instruction. A colon " : " is used as the terminator, and it must not be
omitted.
No terminator is necessary for Device Control instructions without parameters.
Instruction Format Parameter Range ([ ] is default) Explanation
Handshake Instructions
ESC .B [ESC].B: None
Outputs the current remaining buffer capacity. Returns the
login buffer size to the host computer until remaining
capacity becomes below the logic buffer size set by the
parameter <P1> of the [ESC].@ instruction.
Output Remaining
Buffer Capacity
ESC .M
[ESC].M<P1>;<P2>;<P3>;<
P4>;<P5>;<P6>:
P1 : Delay time 0—32767(msec) [0(msec)] Sets handshake output specifications.
Set Handshake Output
Specifications (1)
P2 : Output trigger character [0(Sets nothing)]
P3 : Echo terminator [0(Sets nothing)]
P4 : Output terminator [13([CR])]
Note:When you specify some values to <P4> and <P5>,
always set 0 to <P6>. When you specify Sets an interchara-
cter delay, and also an Xoff chara-
P5 : Output terminator [0(Sets nothing)]
P6 : Output initiator [0(Sets nothing)]
Instruction Com. Format Parameter Range [Default]
!DW Dwell O !DW t [terminator] t Dwell time 0—32767 [0]
!IO Input Home Position O !IO x, y [terminator] x, y Coordinates of home position * 1
(designate by machine coordinate)
!MC Motor Control O !MC n [terminator] n Motor ON/OFF switching -32768—32767 [motor ON]
!MC [terminator]
!NR Not Ready O !NR [terminator] None
!OJ Output Sensor Status O !OJ [terminator] None
!OZ Output Z-ccordinate O !OZ [terminator] None
!PZ Set Z1&Z2 O !PZ z1(, z2) [terminator] z1 Z1 coordinates -15000—0 [0]
z2 Z2 coordinates 0—15000 [0]
!RC Revolution Control O !RC n [terminator] n Spindle motor revolution speed 1—15
[Value set with spindle control]
!SZ Set Z0 Automatically O !SZ z [terminator] z Z direction maximum feed -15000—0
!VZ Velocity select Z-axis O !VZ s [terminator] s Feed rate (Z axis) 0—30 [mm/sec] [2 [mm/sec]]
!ZM XYZ Axis O !ZM z [terminator] z Z coordinate -15000—0
Simultaneus Feed
!ZO Set Z0 O !ZO z [terminator] z Z machine coordinate -15000—0
!ZZ Z O !ZZ x1, y1, z1, ...... , xn, yn, zn [terminator] xn, yn XY coordinate * 1
zn Z coordinate * 1
* 1 : -(2
26
-1)—+(2
26
-1)
* 2 : -(2
26
-1)—+(2
26
-1)
* 3 : -(2
26
-1)°—+(2
26
-1)°
* Character set is the same as the Roland DG Corp. DXY-1000 series.
• mode1, mode2 common instruction
• mode2
Instruction Com. Format Parameter Range [Default]
UC User Defined Character O UC (c,)x1,y1(,(c,)x2,y2...xn,yn) ; c Tool control value —-99, +99—
UC ; xn,yn Units of movement -99<xn, yn<+99
VS Velocity Select O VS s ; s Feed rate for X and Y axis 0—60 [mm/sec] [2 [mm/sec]]
VS ;
WG Shade Wedge O WG r,Ø1,Øc(,Ød) ; r Radius * 1
Ø1 Start angle * 3
Øc Center angle * 3
Ød Chord tolerance * 3 [5°]
XT X-Tick O XT ; None
YT Y-Tick O YT ; None