Device Control Instructions - Roland CAMM-3 PNC-300 User Manual

Table of Contents

Advertisement

mode1, mode2 common instruction
Instruction
!DW
Dwell
!IO
Input Home Position
!MC
Motor Control
!NR
Not Ready
!OZ
Output Z-coordinate
!PZ
Set Z1&Z2
!RC
Revolution Control
!VZ
Velocity select Z-axis
!ZM
XYZ Axis
Simultaneous Feed
!ZO
Set Z0
!ZZ
Z

Device Control Instructions

The Device Control instructions determine how communication between the PNC-300 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-300. 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
Handshake Instructions
ESC .B
[ESC].B:
Output Remaining
Buffer Capacity
ESC .M
[ESC].M<P1>;<P2>;<P3>
Set Handshake Output
;<P4>;<P5>;<P6>:
Specifications (1)
ESC .N
[ESC].N<P1>;<P2>;<P3>;
Set Handshake Output
• • • • ;<P11>:
Specifications (2)
ESC .H
[ESC].H<P1>;<P2>;
Sets ENQ/ACK
<P3>; • • • • ;<P12>:
Handshake Mode1
40
Com.
Format
O
!DW t [terminator]
O
!IO x, y [terminator]
O
!MC n [terminator]
!MC [terminator]
O
!NR [terminator]
O
!OZ [terminator]
O
!PZ z1 (, z2) [terminator]
O
!RC n [terminator]
O
!VZ s [terminator]
O
!ZM z [terminator]
O
!ZO z [terminator]
O
!ZZ x1, y1, z1, ...... , xn, yn, zn [terminator]
Format
Parameter
None
P1 : Delay time
P2 : Output trigger character
P3 : Echo terminator
P4 : Output terminator
P5 : Output terminator
P6 : Output initiator
P1 : Intercharacter delay data
block
P2—P11
: Xoff character (for Xon/Xoff)
Immediate response character
(for ENQ/ACK)
P1 : The number of bytes for
data block
P2 : ENQ character
P3—12 : ACK character (only
when <P2> is set)
Parameter
t
Dwell time
x, y
Coordinates of home position
(designate by machine coordinate)
n
Motor ON/OFF switching
None
None
z1
Z1 coordinates
z2
Z2 coordinates
n
Spindle motor revolution speed
s
Feed rate (Z axis)
z
Z coordinate
z
Z machine coordinate
xn, yn
XY coordinate
zn
Z coordinate
Range
([ ] is default)
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.
0—32767(msec) [0(msec)]
Sets handshake output specifications.
[0(Sets nothing)]
[0(Sets nothing)]
[13([CR])]
Note:When you specify some values to <P4> and <P5>,
[0(Sets nothing)]
always set 0 to <P6>. When you specify Sets an
[0(Sets nothing)]
interchara-cter delay, and also an Xoff chara-
0—32767(msec) [0(msec)]
Sets an intercharacter delay, and also an Xoff character
for performing the Xon/Xoff handshake.
[All 0(Sets nothing)]
0—15358(byte) [80(byte)]
When receiving the ENQ character set by <P2>, com-
pares the value set by <P1> and the remaining buffer
capacity, and returns the ACK character to the host
[0(Sets nothing)]
computer when the remaining buffer capacity is larger.
[All 0(Sets nothing)]
The [ESC].H with no parameter performs a dummy
handshake.
Range [Default]
0—32767 [0]
* 1
-32768—32767 [motor ON]
-12000—0 [0]
0—12000 [0]
0—15
[Value set by using panel keys]
0—30 [mm/sec]
[2 [mm/sec]]
-12000—0
-12000—0
* 1
* 1
26
26
* 1 : -(2
-1)—+(2
-1)
26
* 2 : 0—+(2
-1)
* 3 : -(2
26
-1)°—+(2
26
-1)°
Explanation

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents