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

The text of a manual · part 21 of 45

Enhanced and Ethernet PLC-5 Programmable Controllers User Manual: Chapter 10 - Communicating with Devices on a Serial Link, pages 167 to 174

Pages 167 to 174 of 388, from Enhanced and Ethernet PLC-5 Programmable Controllers User Manual

The original document is the PDF (5.1 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 1785-L20B and Allen-Bradley 1785-L40B

Page 167

Communicating with Devices on a Serial Link

10-17

To create station lists, place each station address in an individual word in a poll file (normal and/or priority) starting at word 2. The poll file layout is as follows: This Word in a Poll File Word 0 Word 1

Contains this Information total number of stations in the list address location (poll offset) of the station currently being polled For example: a value of 1 means the station address stored in word 2 is being polled, 2 means the address stored in word 3 is being polled, etc.

Word 2 through word xx

This word is automatically updated by the master station as a new remote station is polled. remote station address in the order that the station should be polled

To place a station address in a poll file, do the following: 1. Access the data monitor in your programming software. 2. Specify the address of the integer file that is either the normal poll file or priority poll file (e.g., if the normal poll file is N11, then you specify N11:0). 3. Enter the station addresses of the remote stations you want in the poll list starting at word 2. Put them in the order you want them polled. IMPORTANT

Station addresses are octal addresses. The poll files are integer files. The default radix is decimal. To properly enter station addresses in a poll file, you must either: • change the radix of the file to octal • convert the octal station addresses to decimal before entering the addresses

Below is an example of a station list containing three stations: octal addresses 10, 11, and 12 have been entered. Station 12 (10 decimal) is being polled. Poll File

Word 0

Word 1

Word 2

Word 3

Word 4

N:11

3

3

08

09

10

N:xx total number of stations pointer showing the station address being polled (Station 12 in word 4 is being polled.)

address of first station in list address of second station in list address of third station in list

Publication 1785-UM012D-EN-P - July 2005

Page 168

10-18

Communicating with Devices on a Serial Link

Configure Channel 0 for User Mode (ASCII Protocol) To configure channel 0 for user mode, use the user mode configuration screen in your programming software.

configure the serial communications as user (ASCII)

specify the details

This Field

Specifies

Configure by Doing the Following

Diagnostic file

The file containing the channel’s status information

Enter an integer file number (10-999). ATTENTION: Assign a unique diagnostic file to each channel. Do not assign a diagnostic file that is the I/O status file you assigned or any other used integer file. Unpredictable machine action can result. Important: You must define a diagnostics file for a channel configured for anything but unused (even if you are not using the channel) if you want to get status information for that channel.

Remote mode change

Whether the remote mode change option is enabled

Select ENABLED or DISABLED.

Mode attention char.

The attention character for the system Enter a character. If the attention character you want to use is a control mode or the user mode character character, specify the ASCII equivalent.

System mode char.

The character for the mode attention character (above)

Enter a character. If the attention character you want to use is a control character, specify the ASCII. When the controller encounters the attention character and the system mode character, the controller sets channel 0 communication to system mode. The remote mode change option must be ENABLED.

Publication 1785-UM012D-EN-P - July 2005

Page 169

Communicating with Devices on a Serial Link

10-19

This Field

Specifies

Configure by Doing the Following

User mode char.

The character for the mode attention character (above)

Enter a valid attention character. If the attention character you want to use is a control character, specify the ASCII equivalent. When the controller encounters the attention character and the user mode character, the controller sets channel 0 communication to user mode. The remote mode change option must be ENABLED.

Serial Settings Baud rate

Communication rate for channel 0

Select 110, 300, 600, 1200, 2400, 4800, 9600, or 19.2k bps.

Configure all devices in the system for the same communication rate Parity

Parity setting for channel 0

Select NONE or EVEN.

Parity provides additional message packet error detection. Bits per character

Select the number of bits that make up Select 7 or 8. a transmitted character.

Error detect

Whether you want error detection set Select one of the following: to BCC or CRC BCC: the controller sends and accepts messages that end with a BCC byte for error checking. BCC is quicker and easier to implement in a computer driver. CRC: the controller sends and accepts messages with a 2-byte CRC for error checking. CRC is more complete checking Configure both stations to use the same type of error checking.

Stop bits

Match the number of stop bits to the device with which you are communicating

Select 1, 1.5, or 2.

Control line

Select the mode in which the driver operates.

Select a method appropriate for your system’s configuration: If you are not using a modem, choose NO HANDSHAKING. If you are using a full-duplex modem, choose FULL-DUPLEX.

Option Settings RTS send delay

The time delay between the time the RTS is asserted and the beginning of the message transmission

Enter a value between 0 and 255. Limits are defined in 20 ms intervals. For example to wait 40 ms, type 2. The recommended time elapse is 0, unless you are using a modem that automatically returns the CTS as soon as it receives the RTS. If this is the case, enter a delay time to make sure the modem is able to transmit before it attempts to send the message.

RTS off-delay

The time delay between the time the Enter a value between 0 and 255. Limits are defined in 20 ms intervals. end of the message transmission and For example to wait 40 ms, type 2. The recommended time elapse is 0, the RTS is de-asserted unless you are using a modem that automatically returns the CTS as soon as it receives the RTS. If this is the case, enter a delay time to make sure the modem is able to transmit before it attempts to send the message.

Publication 1785-UM012D-EN-P - July 2005

Page 170

10-20

Communicating with Devices on a Serial Link

This Field

Specifies

Configure by Doing the Following

Delete mode

Select how the controller responds to Select Ignore, CRT, or Printer. If you select Ignore, the controller ignores a delete character. the delete character. If you select CRT or Printer, the controller ignores the character it received immediately before the delete character. The controller then sends a signal to the CRT or printer to erase the deleted character. Select CRT or Printer only if you enable the echo mode.

XON/XOFF

Whether or not you want XON/XOFF enabled

As the controller receives characters, it constantly determines how many more it can receive without losing any. When XON/XOFF is enabled, the controller sends a “stop sending character,” XOFF. If the sending device has the XON/XOFF feature, it stops sending characters. When the controller has more room, it will send a “start sending” character (XON). Select ENABLED or DISABLED.

Echo

What the controller should do when it If you disable the echo mode, characters received by the controller are receives an ASCII delete character sent only to the echo counter and not to an output device, such as a CRT or printer. If you enable the echo mode, the controller sends any characters it receives through an ASCI read or read line instruction to a waiting output device. For example, if you want the controller to print a message to a LED marquee, enable the echo mode.

Termination 1 Termination 2

The termination characters you defined

Enter a maximum of two characters (hexadecimal). Use termination characters with the ASCII Read Line instruction or with the Test Buffer for Line (ABL) to indicate a line has been entered. The default character is the ASCII equivalent for [RETURN], 0x0D. You can also use the ASCII equivalent for LINE FEED (0x0A). To specify no character, enter \FF.

Append 1 Append 2

The append characters you defined

Enter a maximum of two characters (hexadecimal). Use append characters with the ASCII Write with Append (AWA) instruction to indicate the end of a line. Append characters are the last characters sent after a line of information. The default characters are the ASCII equivalent for [RETURN] (/0D) and LINE FEED (/0A). To specify no character, enter \FF.

Publication 1785-UM012D-EN-P - July 2005

Page 171

Communicating with Devices on a Serial Link

10-21

Configure Channel 0 for a Communication Mode Change You can configure channel 0 so that it switches from one communication mode to another upon receiving a control command. You define a mode attention character and either a system or user mode character. Character

Tells the Controller to

Default Character

Mode attention character expect a change communication mode command

System mode character switch the communication mode to system mode

S

User mode character switch the communication mode to the user mode

U

[Esc]

Every time the controller receives the mode attention character and either a system or user mode character, channel 0’s communication mode will be switched to the new mode. To configure channel 0 for a remote communication-mode change, follow the steps on the left: If You Want To

Select

Change the communication mode of channel 0 remotely

ENABLE

Not change the communication mode of channel 0 remotely

DISABLE

IMPORTANT

Make sure the remote mode change option is disabled if you do not want to change channel 0’s communication mode over a remote link. Having the mode disabled prevents an unexpected communication mode change.

The Mode Attention character tells the controller to expect a communication mode change. If you are using a control character, enter the ASCII equivalent in hexadecimal. With other characters, just enter the character. Do one of the following: Enter the character you want to use to tell the controller to switch communication modes for channel 0. If you are using a control character, use the ASCII equivalent in hexadecimal. With other characters, just enter the character.

Publication 1785-UM012D-EN-P - July 2005

Page 172

10-22

Communicating with Devices on a Serial Link

Monitoring Channel 0 Status

The channel 0 status screens display the information stored in the diagnostic file you specified when you configured channel 0.

Using the System Mode Status Display This section explains the status data displayed on system mode screens in your programming software: System Mode (DF1 Point-to Point) Status Screen

System Mode (DF1 Slave) Status Screen

Publication 1785-UM012D-EN-P - July 2005

Page 173

Communicating with Devices on a Serial Link

10-23

System Mode (DF1 Master) Status Screen

Descriptions of System Mode Status Screen Fields Status Field

Word Bit

Description

DCD recover

11

Displays the number of times the controller detects the DCD-handshaking line has gone low to high.

Messages sent

1

Displays the total number of DF1 messages sent by the controller (included message retry).

Messages received

2

Displays the number of messages the controller received with no error.

EOT received on first poll

8

Displays the number of times the master received an EOT in response to the first poll of a station.

Lost modem

12

Displays the number of times a modem was disconnected.

Messages retried

4

For slave and master mode, displays the number of messages resent.

Undelivered messages

3

Displays number of messages that were sent by controller but not received by the destination device.

Duplicate messages received

9

Displays the number of times the controller received a message packet identical to the previous message packet.

Bad packet/no ACK sent

7

Displays the number of incorrect data packets that the controller has received.

Last poll list scan last

5

The time it took to complete the previous scan of the normal station poll list.

Last priority poll list scan last

10

The time it took to complete the previous scan of the priority station poll list.

Max normal poll list scan

6

The maximum time taken to complete a scan of the normal station poll list.

Max priority poll list scan

13

The maximum time taken to complete a scan of the priority station poll list.

ENQs received

6

For point-to-point mode, displays the number of inquiries made by the destination device.

ENQs sent

4

For point-to-point mode, displays the number of inquiries made by the controller.

Received NAK

5

For Point-to-point and slave mode, displays the number of NAK messages received by the controller.

Lack of memory/sent NAK Lack of memory/no ACK sent

8

For point-to-point and slave mode, displays the number of times the controller could not receive a message because it did not have enough memory.

Polling received

6

For slave mode, displays number of times a DF1 master device has polled controller for a message.

Publication 1785-UM012D-EN-P - July 2005

Page 174

10-24

Communicating with Devices on a Serial Link

Status Field

Word Bit

Description

DTR

0: 4

Displays the status of the DTR handshaking line (asserted by the controller)

DSR

0: 2

Displays the status of the DSR handshaking line (received by the controller)

RTS

0: 1

Displays the status of the RTS handshaking line (asserted by the controller)

CTS

0: 0

Displays the status of the CTS handshaking line (received by the controller)

DCD

0: 3

Displays the status of the DCD handshaking line (received by the controller)

Modem Lines

Using the User Mode (ASCII) Status Display This section describes the user-mode status data displayed on the user mode (ASCII) status screen in your programming software. User Mode Status Screen

Descriptions of User Mode Status Screen Fields Status Field

Word Bit

Description

DCD recover

11

Displays the number of times the controller detects the DCD-handshaking line has gone low to high.

Character received with error

10

Displays the number of characters the controller received with parity or with errors and discarded

Lost modem

12

Displays the number of times a modem was disconnected.

DTR

0: 4

Displays the status of the DTR handshaking line (asserted by the controller)

DSR

0: 2

Displays the status of the DSR handshaking line (received by the controller)

RTS

0: 1

Displays the status of the RTS handshaking line (asserted by the controller)

CTS

0: 0

Displays the status of the CTS handshaking line (received by the controller)

DCD

0: 3

Displays the status of the DCD handshaking line (received by the controller)

Modem Lines

Publication 1785-UM012D-EN-P - July 2005