Rockwell Automation 8520 9/Series CNC Integration Maintenance Manual Documentation Set User Manual

Page 517

Advertising
background image

Chapter 9B

Integrating Your Teach Pendant

9B-6

Requesting the Active Program Name: SD1=02

To request the active program name, send a message with CMD=61 (hex)

and SD1=02. For example:

CMD SD1 SD2 SD3 TNS TNS

DLE STX

61

02

00

00

04

01 DLE ETX BCC

the application software responds with:

CMD SD1 SD2 SD3 TNS TNS

DATA

DLE STX

61

02

00

00

00

03 PROGRAM1 NULL DLE ETX BCC

ASCII

The active program is an ASCII string of 8 characters (maximum) ending

with a NULL. If there is no active program, a NULL is returned.

Requesting the Block Number: SD1=03

To request the block number, or the last N word that was executed, send a

message with CMD=61 (hex) and SD1=03. For example:

CMD SD1 SD2 SD3 TNS TNS

DLE STX

61

03

00

00

01

02 DLE ETX BCC

the application software responds with:

CMD SD1 SD2 SD3 TNS TNS DATA

DLE STX

61

03

00

00

02

01 N12345 NULL DLE ETX BCC

ASCII

The block number is an ASCII string of 5 characters (maximum, with

leading zeros suppressed) ending with a NULL. This value is the same

value that’s displayed on the operator panel’s CRT. If no value is displayed,

the software returns a NULL.

Transmit Error Messages to the Teach Pendant: SD1=04

To have the system error messages transmitted to the pendant, send a

message with CMD=61 (hex) and SD1=04. For example:

CMD SD1 SD2 SD3 TNS TNS

DLE STX

61

04

00

00

00

06 DLE ETX BCC

The application software responds by sending error messages as they

occur.

Advertising