The text of a manual · part 20 of 45
Enhanced and Ethernet PLC-5 Programmable Controllers User Manual: Chapter 10 - Communicating with Devices on a Serial Link, pages 159 to 166
Pages 159 to 166 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 159
Communicating with Devices on a Serial Link
10-9
Configure Channel 0 as a Slave Station To configure channel 0 for DF1 slave communication, use the system mode configuration screen in your programming software.
configure the serial communications as system slave 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.
Enable
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 for a character, specify the ASCII equivalent. remote mode change
System mode char.
The character for the mode attention character (above)
Enter an 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 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 160
10-10
Communicating with Devices on a Serial Link
This Field
Specifies:
Configure by Doing the Following
User 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 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 Station address
The station address for channel 0 on the DF1 half-duplex link
Enter a valid DF1 address (0-376 octal).
DF1 retries
The number of times the remote station retries a message before the station declares the message undeliverable
Enter a value 0-255. The recommended setting is 3.
Publication 1785-UM012D-EN-P - July 2005
Page 161
Communicating with Devices on a Serial Link
10-11
This Field
Specifies:
Configure by Doing the Following
RTS send delay
The amount of time that elapses between the assertion of the RTS signal and the beginning of the message transmission
Enter a value 0-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.
This time allows the modem to prepare to transmit the message. The CTS signal must be high for transmission to occur. RTS off delay
The amount of time that elapses between the end of the message transmission and the de-assertion of the RTS signal.
Enter a value 0-255.Limits are defined in 20 ms intervals. For example to wait 40 ms, type 2.
This time delay is a buffer to make sure that the modem has transmitted the message. ACK timeout
The amount of time you want the controller to wait for an acknowledgment to its message transmission
Enter a value 0-65535. Limits are defined in 20 ms intervals. For example to wait 40 ms, type 2. The recommended time elapse is 1 second. Specify 1 second by typing 50.
Duplicate detect
Whether you want the controller to Select the desired setting. detect and ignore duplicate messages
MSG application timeout
The number of seconds within which the reply message must be received before the error bit is set on the message
Cursor to the field, type in a value 1-7, and press [Enter]. Available options are: 1:30-60 seconds
The timer starts when the ladder program first initiates the message and is restarted if/when the ACK is received.
2:60-90 seconds 3:90-120 seconds 4:120-150 seconds 5:150-180 seconds 6:180-210 seconds 7:210-240 seconds
Publication 1785-UM012D-EN-P - July 2005
Page 162
10-12
Communicating with Devices on a Serial Link
Configure Channel 0 as a Master Station To configure channel 0 for DF1 master communication, use the system mode configuration screen in your programming software.
configure the serial communications as system master 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.
Enable
Whether the remote mode change option is enabled
Select ENABLED or DISABLED.
Mode attention char.
The attention character for the system Enter a valid attention character. If the attention character you want to mode or the user mode character for a use is a control character, specify the ASCII equivalent. remote mode change
System 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 system mode character, the controller sets channel 0 communication to system mode. Note that the remote mode change option must be ENABLED.
Publication 1785-UM012D-EN-P - July 2005
Page 163
Communicating with Devices on a Serial Link
10-13
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. Note that 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 Station address
The node’s address on the DF1 link
Enter a valid DF1 station address. Valid station addresses are: 0-376 octal
DF1 retries
The number of times a message is retried before being declared undeliverable
Enter a valid value 0-255.
RTS send delay
The time delay between the time the RTS is asserted and the beginning of the message transmission
Enter a value 0-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.
This time allows the modem to prepare to transmit the message.
Publication 1785-UM012D-EN-P - July 2005
Page 164
10-14
Communicating with Devices on a Serial Link
This field
Specifies
Configure by Doing the Following
RTS off-delay
The time delay between the time the Enter a value 0-255. Limits are defined in 20 ms intervals. For example end of the message transmission and to wait 40 ms, type 2. The recommended time elapse is 0, unless you are the RTS is de-asserted 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 This time delay is a buffer to make able to transmit before it attempts to send the message. sure that the modem has transmitted the message.
ACK timeout
The amount of time you want the controller to wait for an acknowledgment from a remote station to its transmitted message before the controller retries the message or the message errors out
Enter a value 0-65535. Limits are defined in 20 ms intervals. For example to wait 40 ms, type 2. The recommended time elapse is 1 second. Specify 1 second by typing 50.
Reply msg wait
The amount of time the master will wait after receiving an ACK (to a master-initiated message) before polling the slave for a reply
Only define this if you are message-based mode. Enter a valid value 0-65535 (in 20ms increments).
MSG application timeout
The number of seconds within which the reply message must be received before the error bit is set on the message
Select one of the following: 1:30-60 seconds 2:60-90 seconds
The timer starts when the ladder program first initiates the message and is restarted if/when the ACK is received.
3:90-120 seconds 4:120-150 seconds 5:150-180 seconds 6:180-210 seconds 7:210-240 seconds
Polling Settings Polling mode
The current value of the polling mode Select one of the following: MESSAGE BASED (ALLOW SLAVE TO INITIATE MESSAGES) - default - this option allows remote station initiated messages to be processed after all master-initiated messages MESSAGE BASED (DO NOT ALLOW SLAVE TO INITIATE MESSAGES) - remote station-initiated messages will be acknowledged but not processed STANDARD (MULTIPLE MESSAGE TRANSFER PER NODE SCAN) - the master polls stations based on a list; each station can transmit multiple messages per node scan STANDARD (SINGLE MESSAGE TRANSFER PER NODE SCAN) - the master polls stations based on a list; each station can transmit only one message per node scan
Publication 1785-UM012D-EN-P - July 2005
Page 165
Communicating with Devices on a Serial Link
10-15
This Field
Specifies
Configure by Doing the Following
Master message transmit
The current value of channel 0 master If you want the master station to: message transmit send all of the master station-initiated MSG instructions to the remote stations before polling the next remote station in the poll list, choose Between Station Polls This method makes certain that master station-initiated messages are sent in a timely and regular manner (after every remote station poll). only send master station-initiated MSG instructions when the master’s station number appears in the polling sequence, choose In Poll Sequence With this method, sending master station-initiated messages are dependent upon where and how often the master station appears in the poll list. To achieve the same goal as the Between Station Polls method, the master-station’s address would have to appear after every remote-station’s address. The controller sets a minor fault if you are using IN POLL SEQUENCE and the master’s station is not in either the normal poll list or the priority poll list.
Normal poll node file
The integer file that contains the addresses of the remote stations you want in the normal poll list
Enter an integer file number 0-255
Normal poll group size The quantity of active stations located Enter a valid value 10-999. in the normal poll list that you want polled during a scan through the normal poll list before returning to the priority poll list Priority poll node file
The integer file that contains the addresses of the remote stations you want in the priority poll list
Enter an integer file number 10-999.
Active station file
The binary file that stores the station addresses of all active stations on the link.
Enter a binary file number 10-999.
Publication 1785-UM012D-EN-P - July 2005
Page 166
10-16
Communicating with Devices on a Serial Link
To define a polling scheme using standard mode, you must specify the following on the DF1 master configuration screen in your programming software: Configuration Parameter
Definition
Polling mode
How you want the master to poll the station lists.
Master message transmit
When you want the master to send messages.
Normal poll file
An integer file in which you place the station addresses of the remote stations. The default size is 64 words.
Priority poll file
An integer file in which you place the addresses of stations from which you need to collect data more frequently. The default size is 64 words.
Normal poll group size
The number of stations that the master polls before it polls a station in the priority poll list.
Active station file
A binary file that stores the station addresses of all active stations on the link. The default size is 18 words. Both the normal poll list and the priority poll list can have active and inactive stations. A station becomes inactive when it does not respond to a master’s request for data.
The master station polls the slave station in the following a definitive sequence: 1. All stations in the active priority poll file. 2. Specified stations in the active normal poll file. The number of stations polled in this file is determined by the normal poll group size specified on the configuration screen. If the group size was 3, for example, then three stations would be polled in the normal file before the master continues to the next step in the sequence. 3. One station in the inactive poll file after all active stations in the normal poll file have been polled.
Publication 1785-UM012D-EN-P - July 2005