Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 52 of 91

9/Series CNC Hardware Integration and Maintenance Manual, pages 511 to 520

Pages 511 to 520 of 898

The original document is the PDF (8.5 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Allen-Bradley 8500-1746I

Page 511

Section 9A Operator Interface

Table 9A.X HPG Node Address Settings Node Address

Switch Assembly Position

Hexadecimal

Binary

1

2

3

00

000

OFF

OFF

OFF

01

001

OFF

OFF

ON

02

010

OFF

ON

OFF

03

011

OFF

ON

ON

04

100

ON

OFF

OFF

05

101

ON

OFF

ON

06

110

ON

ON

OFF

07

111

ON

ON

ON

The node address may be any number between 00 and N, with N being the total number of modules allowed for a specific type of module. The same node address may be used for different types of modules, but may not be used more than once for a specific type of module.

END OF SECTION

9A-44

Page 512

Section

9B

Integrating Your Teach Pendant

9B.0 Section Overview

This section describes how to connect and program your teach pendant. For information on how to program PAL to receive messages from the teach pendant, refer to your PAL reference manual.

9B.1 Connecting the Teach Pendant

You connect the teach pendant to port B on the control. Once you have connected the pendant, you have to select it as the active device with the Device Setup Screen: 1.

Press SYSTEM SUPORT. (softkey level 1)

2.

PRGRAM OFFSET MACRO MANAGE PARAM

PRGRAM SYSTEM CHECK SUPORT

FRONT PANEL

SWITCH LANG

ERROR PASSMESAGE WORD

Press the DEVICE SETUP softkey: (softkey level 2) PRGRAM AMP PARAM

DEVICE MONISETUP TOR

PTOM SI/OEM

SYSTEM TIMING

TIME PARTS

3.

Cursor to the SERIAL PORT field. Press the right cursor key until PORT B appears.

4.

Cursor to the DEVICE field. Use the left or right cursor key to select TEACH PENDANT. The teach pendant interface software is an option. If you have not purchased it, it does not appear as a device.

9B-1

Page 513

Chapter 9B Integrating Your Teach Pendant

9B.2 Using DF1 Protocol

The teach pendant needs to communicate in DF1 protocol. DF1 is a communication protocol developed by Allen-Bradley that is used by the Data Highway networks. For more information on DF1 protocol, refer to the Data Highway/Data Highway Plus Protocol and Command Set Manual, publication 1770-6.5.16.

9B.3 Programming the Teach Pendant to Send and Receive Messages

All requests and information are sent in DF1 packets. The packets are structured like this: DLE STX CMD SD1 SD2 SD3 TNS TNS DATA DLE ETX BCC

Field

Description

Size in Bytes

DLE STX

Start of Message

2

CMD

Command field. Determined by CNC or the teach pendant.

1

SD1, SD2, SD3

Special Data 1, 2, and 3. Use for command modifiers or to include data for CMD.

3

TNS TNS

Transaction Number chosen by DF1 driver. PAL cannot access this data for packets its sends or receives. Two packets sent or received in sequence cannot have the same number. If the CNC detects duplicate numbers, it eliminates the packet(s) after the first instance of the number. This field resets to 0 when you turn on power to the CNC.

2

You need to program your teach pendant to perform checks for duplicate numbers, and to fill this field to satisfy the CNC. DATA

Some commands will have a field that contains additional command data. The same type of data that can be put into the special data fields, including commands, can be programmed here as well.

0 - 14

DLE ETX

End of Message

2

BCC

Block Checksum

2

Four types of commands can be sent or received with the teach pendant interface. Some are pre-defined by the teach interface software. Others are defined by the teach pendant and/or PAL programmer.

9B-2

Page 514

Chapter 9B Integrating Your Teach Pendant

These are the 4 command types used by the teach pendant interface:

·Teach Pendant Ö

PAL

This type of command is defined by the teach pendant programmer. The PAL programmer should refer to the PAL reference manual for information on sending and receiving these types of commands.

PAL Teach Pendant Interface on CNC

·Teach Pendant Ö Application This type of command is pre-defined by the teach interface software.

G01 Teach Pendant Interface on CNC

Application Software

·Teach Pendant Õ Unsolicited Application Command This type of command is sent only by the CNC. It includes watchdog and error messages.

G01 Teach Pendant Interface on CNC

Application Software

·Illegal Command Received from Teach Pendant This type of command is sent only by the CNC when the teach pendant attempts to send an illegal command. Teach Pendant Interface on CNC

9B-3

Page 515

Chapter 9B Integrating Your Teach Pendant

9B.4 Sending Commands to PAL (CMD=60 hex) PAL

To send a command that the PAL program can receive, you send a packet with 60 hex in the command (CMD) field. The teach pendant and PAL programmers define the values in the special data (SD) and DATA fields and map those values to a teach pendant function. You can use the SD1, SD2, and SD3 fields for requests that require minimal data. The SD1 field is seen as an integer in PAL, but when it is received from PAL, it contains only the least significant byte of the PAL flag. SD2 and SD3 are stored as a single integer to PAL, with SD2 being the most significant byte and SD3 the least significant byte. You can send a maximum of 7 integers to PAL in the DATA field. For example, let’s say that the programmer has defined the SD fields as: Field

Definition

SD1

Request Type: Jog (1), Home (2), or Data (3)

SD2

Axis Number: 1 through 9

SD3

Motion Type: Absolute (1) or Incremental (2)

A keystroke combination defining Incremental Jog for Axis 6 would then send this command to PAL when pressed: DLE STX

CMD SD1 SD2 SD3 TNS TNS DATA 60 01 06 02 05 02 [position] DLE ETX BCC

When the CNC receives the message, the teach interface software acknowledges the message by sending a DLE ACK (DF1 protocol) to the pendant. The interface software checks PAL’s message input buffers to see if they are clear. If they are clear, the interface software moves the message into the buffers and sets the PAL flag $TPRECV. PAL must decode the message to jog axis 6 incrementally according to the position information in the DATA field. The PAL programmer decides if PAL responds with a message back to the teach pendant. If the buffers are not clear, the interface software sets the Input Buffer Overflow flag, $TPOFLOW, but does not send a message back to the teach pendant. PAL would have to notify the teach pendant of the overflow by initiating a transmission if the pendant needs to take action.

9B-4

Page 516

Chapter 9B Integrating Your Teach Pendant

9B.5 Sending Commands to the Application Software (CMD=61 hex)

You use this type of command to take advantage of functions supplied in the teach interface software. For this type of command, SD1 and SD2 have specific definitions:

G01

Field

Definition

SD1

Type of Request

SD2

Sub-process. For single process systems, you can use any value for this field. For multi-process systems, set at 1 for sub-process 1, and set at 2 for sub-process 2.

Sending to a Process If you’re sending to a multi-process system, use the SD2 field to indicate the process. For example, if you send a request for the current block to process 2 DLE STX

CMD SD1 SD2 SD3 TNS TNS 61 01 02 00 03 00 DLE ETX BCC and the application software responds with this message packet: DLE STX

CMD SD1 SD2 SD3 TNS TNS DATA 61 01 02 00 04 02 N00001G71 NULL DLE ETX BCC ASCII

You don’t have to indicate the process for requests to display error messages or requests that end the display of error messages on the teach pendant.

Requesting the Current Block: SD1=01 To request the current block, send a message with CMD=61 (hex) and SD1=01. For example: DLE STX

CMD SD1 SD2 SD3 TNS TNS 61 01 00 00 00 01 DLE ETX BCC the application software responds with this message packet: DLE STX

CMD SD1 SD2 SD3 TNS TNS DATA 61 01 00 00 00 03 N00001G71 NULL DLE ETX BCC ASCII

The current block information is an ASCII string of up to 128 characters ending with a NULL. If there is no block active, no active program, or no active MDI block, then the application software returns a NULL. 9B-5

Page 517

Chapter 9B Integrating Your Teach Pendant

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: DLE STX

CMD SD1 SD2 SD3 TNS TNS 61 02 00 00 04 01 DLE ETX BCC the application software responds with: DLE STX

CMD SD1 SD2 SD3 TNS TNS DATA 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: DLE STX

CMD SD1 SD2 SD3 TNS TNS DATA 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.

9B-6

Page 518

Chapter 9B Integrating Your Teach Pendant

Suspend Transmission of Error Messages to the Teach Pendant: SD1=05 To stop sending error messages to the teach pendant, send a message with CMD=61 (hex) and SD1=05. For example: DLE STX

CMD SD1 SD2 SD3 TNS TNS 61 05 00 00 00 06 DLE ETX BCC

The application software responds by ending the transmission of error messages to the teach pendant. This request is useful if alternating error messages are being displayed on the CRT. The teach pendant is sent a message every time the message toggles on the CRT. This operation uses much of the serial band width. This is the default at power turn-on.

9B.6 Receiving Unsolicited Messages from the Control (CMD=62 hex)

G01

The control can be commanded to send error messages. It always sends watchdog signals to the teach pendant. Since these messages are not individually requested by the teach pendant, they are called unsolicited messages. These messages send specific data in the DF1 command fields: Field

Description for Unsolicited Messages

CMD

62 hex indicates an unsolicited message

SD1 identifies the message as watchdog signal or error message

Receiving Watchdog Signals The control sends this watchdog signal to the teach pendant according to the time interval specified in PAL flag $TPWDFQ: DLE STX

CMD SD1 SD2 SD3 TNS TNS 62 01 00 00 00 02 DLE ETX BCC

The teach pendant must respond to the message before the next one is sent or the watchdog timeout PAL flag is set to true. Here is a recommended response: DLE STX

CMD SD1 SD2 SD3 TNS TNS 62 01 00 00 00 01 DLE ETX BCC

9B-7

Page 519

Chapter 9B Integrating Your Teach Pendant

If the teach pendant does not respond, a watchdog timeout occurs and: $TPTO is set an error message is displayed on the operator panel CRT PAL can control the activities in response to the timeout system continues to send watchdog signals to try and reestablish communication. When the system receives a correct response packet, the control sets $TPTO to false. A watchdog timeout can also occur if 3 ENQs are sent to the teach pendant in response to NAKs.

Receiving Error Messages If requested by the teach pendant with a CMD 61 (hex) and SD1=04, when the control displays an error message, it also sends the message in ASCII to the teach pendant: DLE STX

CMD SD1 SD2 SD3 TNS TNS DATA 62 02 00 00 00 04 PAL DOES NOT EXIST NULL DLE ETX BCC ASCII

The teach pendant does not have to respond to the message. It only has to send an ACK or a NAK.

9B.7 Receiving the Illegal Request Message from the CNC (CMD=63 hex)

If you send an illegal request from the teach pendant to the control, the control sends a message back telling you about the illegal request. In the message from the control the SD2 and SD3 fields contain the information that identifies the illegal request:

This Field

Contains this Information about the Illegal Request

SD2

CMD value received

SD3

SD1 value received

For example, if the teach pendant sends this illegal request: DLE STX

CMD SD1 SD2 SD3 TNS TNS 71 02 00 00 00 41 DLE ETX BCC

The teach interface software responds with: DLE STX

CMD SD1 SD2 SD3 TNS TNS 63 00 71 02 00 21 DLE ETX BCC

To the teach interface software, an illegal request is any request that does not match those defined in this section.

END OF SECTION 9B-8

Page 520

--1