The text of a manual · part 45 of 91
9/Series CNC Hardware Integration and Maintenance Manual, pages 441 to 450
Pages 441 to 450 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 441
Section 8 Communication Interface
8.6 Connection of Peripherals
Figure 8.8 shows the cable connection for the RS-422 interface that uses a hardware handshake. Figure 8.8 RS-422 Cable Wiring with Hardware Handshake Receiver
Hardware Handshake
CNC
Driver
FG SD A SD B RD A
Peripheral FG SD A SD B RD A
RD B RS A RS B
1 2 9 3 10 4 11
CS A CS B
5 12
CS A CS B
DM A DM B TR A
6 13 8
DM A DM B TR A
TR B SG
14 7
TR B SG
RD B RS A RS B
Signal Common
Signal Common 11352-I
Figure 8.9 shows the cable connection for the RS-422 interface without a hardware handshake. Figure 8.9 RS-422 Cable Wiring without Hardware Handshake Receiver Driver
Signal Common
8-8
CNC
No Hardware Handshake
Peripheral FG SD A SD B RD A
FG SD A SD B RD A
1 2 9 3
RD B RS A RS B
10 4 11
RD B RS A RS B
CS A CS B
5 12
CS A CS B
DM A DM B
6 13
DM A DM B
TR A TR B SG
8 14 7
TR A TR B SG Signal Common
11353-I
Page 442
Section 8 Communication Interface
8.7 Protocol
RS-491 Level I and Level II protocol are used for data communication between the control and peripherals. They provide a structured process of communication through the RS-232 or RS-422 interface ports.
8.7.1 RS-491 Level 1 Protocol
Level I protocol is used for data communication between the control and a simple peripheral, a printer for example. When communication between the control and a simple peripheral has been established, the following three signals are used to control data transmission start/stop: RS (request to send) CS (clear to send) DM (data set ready) Port B only
Data Receiving Sequence When the control receives data from a peripheral, CS and RS signals are used to control the communication, see Figure 8.10. The peripheral confirms that the control is ready for data reception by the CS (clear to send) signal before it transmits the data. Figure 8.10 Data Reception Sequence Signal flow RS
CNC
Peripheral
CS
SD
1 2 3
4 5
6 7
8 9 11354-I
The control receives data from the peripheral in the following sequence. The numbers correspond to those in Figure 8.10.
8-9
Page 443
Section 8 Communication Interface
1.
The peripheral (DTE) turns on the RS signal to notify the control (DCE) that there is data to be transmitted.
2.
The control turns the CS signal ON to notify the peripheral that it is ready for data reception.
3.
The peripheral begins transmitting data to the control.
4.
If the control buffer cannot accept the data, the control turns the CS signal OFF to notify the peripheral to stop data transmission.
5.
The peripheral, upon recognizing that the CS signal has been turned OFF, stops data transmission within two characters.
6.
The control turns the CS signal ON when it can receive data again.
7.
The peripheral, upon recognizing that the CS signal has been turned ON, begins data transmission.
8.
After transmitting all data to the control, the peripheral turns the RS signal OFF to notify the control that all data has been transmitted.
9.
The control turns the CS signal OFF
Data Transmitting Sequence When the control transmits data to a peripheral, CS and RS signals are used to control the communication, see Figure 8.11. The control confirms that the peripheral is ready for data reception by the TR signal before it transmits the data. Figure 8.11 Data Transmitting Sequence Signal flow Pin 5
CS Peripheral
CNC
Pin 4
RS DM
1
RD 1 Port B only
8-10
Pin 6
1 2 3
4 5
6 7
8 9
Pin 3
11355-I
Page 444
Section 8 Communication Interface
The control transmits data to the peripheral in the following sequence. The numbers correspond to those in Figure 8.11.
8.7.2 RS-491 Level II Protocol
1.
The control turns the CS and the DM signals ON to notify the peripheral that there is data to be transmitted.
2.
The peripheral turns the RS signal ON to notify the control that it is ready to receive data.
3.
The control begins data transmission to the peripheral.
4.
If the peripheral buffer cannot accept the data, the peripheral turns the RS signal OFF to notify the control to stop data transmission.
5.
The control, upon recognizing the RS signal has been turned OFF, stops transmitting data within two characters.
6.
The peripheral turns the RS signal ON when it can receive data again.
7.
The control, upon recognizing the RS signal has been turned ON, begins data transmission .
8.
After transmitting all data to the peripheral, the control turns the CS and DM signals OFF to notify the peripheral that all data has been transmitted.
9.
The peripheral turns the RS signal OFF.
Level II protocol is used for the communication between the control and a peripheral (tape reader/puncher) or a computer. Level II protocol differs from Level I protocol in that data transmission/reception is controlled by the control codes ( DC1, DC2, DC3, DC4, EOT, DLE ). The functions of these control codes are shown in Table 8.E. Devices where the protocol is labeled LEVEL 2* implement a slightly modified version of the protocol. This serves to better match the specific Level 2 device. The device type GENERIC LEVEL 2 implements the full protocol as it is described here. The 9/Series controls send and receive program data using the data format appropriated for punched tape. This means all ASCII characters have even parity in the eight bit position. EIA characters have their own parity format which is recognized by the control. Characters which do not have the proper parity are not stored in the control. In addition, lower case ASCII data sent to the control is converted into upper case when stored. RS-491 Level 2 control characters do not have eighth bit parity. The control characters are used for device control only. 8-11
Page 445
Section 8 Communication Interface
Binary data such as AMP and PAL images do not have eighth bit parity bits attached to them. Because binary files such as AMP and PAL can contain data which correspond to RS-491 Level 2 control characters, these files cannot be output to Level 2 devices. The control characters could halt or otherwise affect the file transfer. The Level 2 tape reader interface on the 9/Series is capable of reading binary files. A man readable file name is punched to the tape by the 9/Series at the beginning of all files. This is done for all types of devices except the Generic Level 2 device which doesn’t output the man-readable header. Care should be taken when transmitting files to the control which contain man-readable headers. Sometimes this part of the tape can contain Level 2 control characters which may halt or other wise affect the file transfer. Table 8.E Control Code Functions Function
Control Code
Description
DC1
Start Xmission
This code is used to begin data transmission from a peripheral to the control. It is also used to restart data transmission which had been interrupted by the DC3 code output from the peripheral or the control.
DC2
Restart
This code is used to begin data transmission from the control to a peripheral.
DC3
Stop Xmission
This code is used to stop data transmission from the transmitting device. It is output from the data receiving device.
DC4
Ignore
The device receiving this code ignores any received data until it receives the DC2 code after the data has been transmitted from the control to the peripheral.
EOT
End of Transmission
This code is used to notify the completion of data transmission.
DLE
Data Link Escape
This code is used to abort the transmission.
Important: For the EOT code, M02 or M30 is usually used.
8-12
Page 446
Section 8 Communication Interface
Data Receiving Sequence Figure 8.12 shows the data receiving sequence of the control. Figure 8.12 Data Receiving Sequence Control codes from the control
1
DC1
DC1
2
3
DC1
4
DC3
Leader
Program Data
5
6
7
DC1
8
DC3
Program Data
MO2
Data transmission from a peripheral device (tape reader, etc)
11356-I
1.
The control transmits the DC1 code in three-second intervals until the peripheral begins data transmission.
2.
Upon reception of the DC1 code, the peripheral begins data transmission.
3.
The control transmits the DC3 code when its buffer cannot accept the received data.
4.
Upon reception of the DC3 code, the peripheral stops data transmission within two characters.
5.
The control sends the DC1 code when it is ready to receive data again.
6.
The peripheral, upon reception of the DC1 code, begins data transmission again.
7.
The control stops data reception when it recognizes the M02 or M30 code and outputs the DC3 code.
8.
The peripheral stops data transmission when it receives the DC3 code.
8-13
Page 447
Section 8 Communication Interface
Data Transmitting Sequence Figure 8.13 shows the data transmission sequence of the control. Figure 8.13 Data Transmission Sequence Data transmission from the control
1
DC2
DC2
3
2
DC2
Leader
DC1
4
5
Program data
DC3
7
6
Program data
MO2EOT DC4
DC1
Control codes from a peripheral device (tape reader, etc)
8-14
8
DC3
11357-I
1.
The control transmits the DC2 code in three--second intervals until it receives the DC1 code from the peripheral.
2.
Upon reception of the DC1 code, the control begins data transmission.
3.
The peripheral transmits the DC3 code when its buffer cannot accept the received data.
4.
Upon reception of the DC3 code, the control stops data transmission within two characters.
5.
The peripheral transmits the DC1 code when it is ready to receive data again.
6.
The control, upon reception of the DC1 code, begins data transmission again.
7.
The control transmits the DC4 code after it transmits the M02 or M30 code.
8.
The peripheral transmits the DC3 code when it receives the DC4 code to end data input.
Page 448
Section 8 Communication Interface
8.8 Peripherals
The following table lists the peripherals that can be connected to the 9/Series control. Communication protocol can be altered to accept peripherals other than those listed below. Table 8.F Peripheral List Device Allen-Bradley 1770-SB
Device Type Cartridge
Ricoh PTR240R Facit N4000
Reader
Decitek AB 8000-XPDR DSI SP75 Facit 4070
Punch
Facit N4000 Epson LX-810 (USA)
Printer
Epson SP-500 (JAPAN) User Punch User Reader
User Defined
User Printer Teach Pendant PAL-RS232 Comm ODS
ODS Terminal
Generic Level_2
Computer using only level 2 protocol
Greco Minifile
Intelligent Storage
Intelligent Device
Personal Computer using Communication Software
Table 8.F lists the recommended configuration and connection of the peripherals.
8-15
Page 449
Section 8 Communication Interface
1. Allen-Bradley 1770-SB Data Cartridge Recorder Connection The recommended configuration of the Allen-Bradley 1770-SB data cartridge recorder is shown below: Configuration Parameter
Setting
DEVICE:
ALLEN- BRADLEY 1770- SB
PORT TYPE:
RS232C
BAUD RATE:
1200
PROTOCOL:
LEVEL_2*
PARITY:
NONE
STOP BITS:
1
DATA LENGTH:
8
TIMEOUT:
15 SEC
OUTPUT CODE
N/A
The Allen-Bradley 1770-SB data cartridge recorder is connected to the control using a standard RS-232 with hardware handshake interface cable (see Figure 8.2).
2. Ricoh PTR240R Tape Reader Connection The recommended configuration of the Ricoh PTR240R tape reader is shown below: Configuration Parameter
Setting
DEVICE:
RICOH PTR240R
PORT TYPE:
RS232C
BAUD RATE:
2400
PROTOCOL:
LEVEL_2*
PARITY:
EVEN
STOP BITS:
1
DATA LENGTH:
8
TIMEOUT:
15 SEC
OUTPUT CODE
N/A
The switch assembly on the rear of the tape reader must be set to the 2400 baud rate and to the self test mode as shown below: ______________________________ | | | off on | | Dip 1[* -] 2400/4800 | | Switch 2[* -] Self Test | | | |______________________________|
8-16
Page 450
Section 8 Communication Interface
3. Facit N4000 Tape Reader/Punch Connection The recommended configuration of the Facit N4000 Tape Reader/Punch is shown below: Configuration Parameter
Setting
DEVICE:
FACIT N4000
PORT TYPE:
RS232C
BAUD RATE:
2400
PROTOCOL:
LEVEL_2*
PARITY:
EVEN
STOP BITS:
1
DATA LENGTH:
8
TIMEOUT:
15 SEC
OUTPUT CODE
ASCII
The Facit N4000 Tape Reader/Punch is connected to the control using a standard RS-232 with hardware handshake interface cable (see Figure 8.2).
4. Decitek AB 8000- XPDR Connection The recommended configuration of the Decitek AB 8000-XPDR tape reader is shown below: Configuration Parameter
Setting
DEVICE:
DECITEK AB 8000-XPDR
PORT TYPE:
RS232C
BAUD RATE:
2400
PROTOCOL:
LEVEL_2*
PARITY:
EVEN
STOP BITS:
1
DATA LENGTH:
8
TIMEOUT:
15 SEC
OUTPUT CODE
N/A
8-17