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

The text of a manual · part 42 of 70

SLC 500 Instruction Set Reference Manual, pages 411 to 420

Pages 411 to 420 of 694

The original document is the PDF (7.2 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 1747-L514

Page 411

SLC Communication Channels

13-81

DF1 Radio Modem Channel Status Channel Status data is stored in the diagnostic file defined on the Channel 0 Configuration screen. See Table 13.25 for information regarding the diagnostic counter data displayed.

Double-click on the Channel Status Icon Located beneath the Configuration icon to bring up the Channel Status screen.

See Table 13.25 for details concerning the DF1 Radio Modem Channel Status Screen.

Publication 1747-RM001G-EN-P - November 2008

Page 412

13-82

SLC Communication Channels

Table 13.25 SLC 5/03 and Higher Channel 0 DF1 Radio Modem Channel Status Status Field

Diagnostic File Location

Definition

Messages Sent word 1

The total number of DF1 messages sent by the processor

Messages Received word 2

The number of messages received with no errors

Lack of Memory/Packet Dropped word 8

The number of times the processor could not receive a message because it did not have available memory

Lost Modem word 12

The number of times the lost modem bit has gone low to high

Undelivered Messages word 3

The number of messages that could not be sent by the processor because of incorrect modem handshaking conditions.

Duplicate Messages Received word 9

The number of times the processor received a message packet identical to the previous message packet

Bad Packets Received word 7

The number of data packets received with transmission errors by the processor

DTR (Data Terminal Ready)

word 0;bit 4

The status of the DTR handshaking line (asserted by the processor)

DSR (Data Set Ready)

word 0;bit 2

The status of the DSR handshaking line (received by the processor)

RTS (Request to Send)

word 0;bit 1

The status of the RTS handshaking line (asserted by the processor)

CTS (Clear to Send)

word 0;bit 0

The status of the CTS handshaking line (received by the processor)

DCD (Data Carrier Detect)

word 0;bit 3

The status of the DCD handshaking line (received by the processor)

Clicking the Clear button while monitoring Channel Status of either channel 1 or channel 0 online, will reset all of the channel status diagnostic counters for both channels to zero.

Configuring the Store & Forward Table The Store & Forward Table occupies status file words S:67 to S:82. Each bit in this range corresponds to a DF1 Radio Modem node address. In order to configure an SLC to Store & Forward message packets between two other nodes, the bits corresponding to the addresses of those two other nodes must be set. For instance, if node 2 is used to Store & Forward message packets between nodes 1 and 3, then both bits S:67/1 and S:67/3 would have to be set in the Store & Forward Table (see Figure 13.14). You can set bit 255 (S:82/15) to enable Store & Forward of broadcast packets, as well. IMPORTANT

Publication 1747-RM001G-EN-P - November 2008

Once Store & Forward is enabled, duplicate packet detection is also automatically enabled. Whenever Store & Forward is used within a radio modem network, every node should have Store & Forward enabled, even if all of the bits in the file are cleared, so that duplicate packets will be ignored.

Page 413

SLC Communication Channels

13-83

Figure 13.13 Applying DF1 Radio Modem Protocol

(2nd Rebroadcast) REPLY 1

Note 4 (1st Rebroadcast) REPLY 1

Node 1 No Bits

Note 1

CMD 1 (DST = 4, SRC = 1)

Node 2

Node 3

1, 3, 4

1, 2, 4

CMD1 (1st Rebroadcast) Note 2

Note 3

REPLY 1 (DST = 1, SRC = 4)

Node 4 No Bits

CMD 1 (2nd Rebroadcast)

Note 1 – The link layer of Node 1 blocks the re-transmission of a packet that is received with the SRC byte equal to the receiving node’s station address. Packets received that originate from the receiving node should never be re-transmitted. Note 2 – To prevent Node 2 from re-transmitting a duplicate packet, the link layer of Node 2 updates the duplicate packet table with the last 20 packets received. Note 3 – The link layer of Node 4 blocks the re-transmission of a packet that is received with the SRC byte equal to the receiving node’s station address. Packets received that originate from the receiving node should never be re-transmitted. Note 4 – To prevent Node 3 from re-transmitting a duplicate packet, the link layer of Node 3 updates the duplicate packet table with the last 20 packets received.

Figure 13.14 Store & Forward Table for Node 2

Publication 1747-RM001G-EN-P - November 2008

Page 414

13-84

SLC Communication Channels

Using Modems that Support DF1 Communication Protocols

The types of modems that you can use with SLC processors include dial-up phone modems, leased-line modems, radio modems and line drivers. For point-to-point full-duplex modem connections, use DF1 Full-duplex protocol. For radio modem connections, use DF1 Radio Modem. For general point-to-multipoint modem connections, use DF1 Half-duplex Master and Slave protocols. In this case, one (and only one) of the other devices must be configured for DF1 Half-duplex Master protocol. Do not attempt to use DH-485 protocol through modems under any circumstance.

Dial-up Phone Modems Dial-up phone line modems support point-to-point full-duplex communications. Normally an SLC processor, on the initiating or receiving end of the dial-up connection, will be configured for DF1 full-duplex protocol with the control line parameter set for Full-duplex Modem. See page 13-86 for details on the operation of the RS-232 modem control signals when Full-duplex Modem is selected. When an SLC processor is the initiator of the dial-up connection, use one of the ASCII write instructions to send out the AT dial-up string (for example: ATDT 555-1212). The status file modem lost bit (S:5/14) provides the feedback that the connection has been successfully made. To hang up the connection, use the ASCII AHL instruction to temporarily lower the DTR signal.

Leased-line Modems Leased-line modems are used with dedicated phone lines that are typically leased from the local phone company. The dedicated lines may be in a point-to-point topology supporting full-duplex communications between two modems or in a point-to-multipoint topology supporting half-duplex communications between three or more modems. In the point-to-point topology, configure the SLC processor for DF1 Full-duplex protocol with the control line parameter set to Full-duplex Modem. In the point-to-multipoint topology, configure the SLC processors for DF1 Half-duplex Master or Slave protocol with the control line parameter set to Half-duplex Modem without Continuous Carrier. See page 13-87 for details on the operation of the RS-232 modem control signals when Half-duplex Modem without Continuous Carrier is selected.

Publication 1747-RM001G-EN-P - November 2008

Page 415

SLC Communication Channels

13-85

Radio Modems Radio modems may be implemented in a point-to-point topology supporting either half-duplex or full-duplex communications, or in a point-to-multipoint topology supporting half-duplex communications between three or more modems. In the point-to-point topology using full-duplex radio modems, configure the SLC processors for DF1 Full-duplex protocol. In the point-to-point topology using half-duplex radio modems, or point-to-multipoint topology using half-duplex radio modems, configure the SLC processors for DF1 Radio Modem protocol. If these radio modems require RTS/CTS handshaking, configure the control line parameter to Half-duplex Modem without Continuous Carrier. See page 13-87 for details on the operation of the RS-232 modem control signals when Half-duplex Modem without Continuous Carrier is selected.

Line Drivers Line drivers, also called short-haul modems, do not actually modulate the serial data, but rather condition the electrical signals to operate reliably over long transmission distances (up to several miles). Allen-Bradley’s AIC+ Advanced Interface Converter is a half-duplex line driver that converts an RS-232 electrical signal into an RS-485 electrical signal, increasing the signal transmission distance from 50 to 4000 feet. In a point-to-point line driver topology, configure the SLC processor for DF1 full-duplex protocol. In a point-to-multipoint line driver topology, configure the SLC processors for DF1 half-duplex slave protocol. If these line drivers require RTS/CTS handshaking, configure the control line parameter to Half-duplex Modem without Continuous Carrier.

Publication 1747-RM001G-EN-P - November 2008

Page 416

13-86

SLC Communication Channels

Modem Control Line Operation in SLC 5/03, SLC 5/04 and SLC 5/05 Processors

The following sections explain the operation of the SLC 5/03, SLC 5/04, and SLC 5/05 modem control when you configure the RS232 channel for a particular modem handshaking method.

DF1 Full-duplex When you configure the SLC 5/03, SLC 5/04, and SLC 5/05 processors for full-duplex DF1, the following control line operation takes effect: No Handshaking Selected - DTR is always active and RTS is always inactive. Receptions and transmissions take place regardless of the states of DSR, CTS, or DCD inputs. This selection should only be made when the SLC 5/03, SLC 5/04 and SLC 5/05 processors are directly connected to another DTE device. Full-duplex Modem Selected - DTR and RTS are always active except at the following times. If DSR goes inactive, both DTR and RTS are dropped for 1 to 2 seconds then reactivated. The modem lost bit (S:5/14) is turned on immediately. While DSR is inactive, the state of DCD is ignored. Neither receptions nor transmissions are performed. If DCD goes inactive while DSR is active, then receptions are not allowed. If DCD remains inactive for 9 to 10 seconds, then DTR is set inactive until DSR goes inactive. At this point, the modem lost bit is also set. If DSR does not go inactive, then DTR is raised again in 5 to 6 seconds. Transmission requires all three inputs (CTS, DCD, and DSR) to be active. Whenever DSR and DCD are both active, the modem lost bit is reset.

DF1 Half-duplex Slave When you configure the SLC 5/03, SLC 5/04, and SLC 5/05 processors for DF1 half-duplex slave, the following control line operation takes effect: No Handshaking Selected - DTR is always active and RTS is always inactive. Receptions and transmissions take place regardless of the states of DSR, CTS, or DCD inputs. This selection should only be made when the processor is directly connected to another DTE device. Half-duplex Modem with Continuous Carrier Selected - DTR is always active and RTS is only activated during transmissions (and any programmed delays before or after transmissions). The handling of DCD and DSR are exactly the same as with Full-duplex Modem. Transmissions require CTS and DSR to be active.

Publication 1747-RM001G-EN-P - November 2008

Page 417

SLC Communication Channels

13-87

Transmission requires all three inputs (CTS, DCD, and DSR) to be active. Whenever DSR and DCD are both active, the modem lost bit is reset. Half-duplex Modem without Continuous Carrier Selected - This is exactly the same as Half-duplex Modem with Continuous Carrier except monitoring of DCD is not performed. DCD is still required for receptions but is not required for transmissions. Transmissions still require CTS and DSR. The modem lost bit will only be set when DSR is inactive.

DF1 Half-duplex Master When you configure the SLC 5/03, SLC 5/04, and SLC 5/05 processors for DF1 half-duplex master, the following control line operation takes effect: No Handshaking Selected - DTR is always active and RTS is always inactive. Receptions and transmissions take place regardless of the states of DSR, CTS, or DCD inputs. This selection should only be made when the processor is directly connected to another DTE device. Full-duplex Modem Selected - DTR and RTS are always active except at the following times. If DSR goes inactive, both DTR and RTS are dropped for 1 to 2 seconds then reactivated. The modem lost bit (S:5/14) is turned on immediately. While DSR is inactive, the state of DCD is ignored. Neither receptions nor transmissions are performed. If DCD goes inactive while DSR is active, then receptions are not allowed. If DCD remains inactive for 9 to 10 seconds, then DTR is set inactive until DSR goes inactive. At this point, the modem lost bit is also set. If DSR does not go inactive, then DTR is raised again in 5 to 6 seconds. Transmission requires all three inputs (CTS, DCD, and DSR) to be active. Whenever DSR and DCD are both active, the modem lost bit is reset. Half-duplex Modem without Continuous Carrier Selected - DTR is always active and RTS is only active during transmissions (and any programmed delays before and after transmissions). The processor does not monitor DCD. If DSR goes inactive, RTS is dropped. The modem lost bit (S:5/14) is turned on immediately. While DSR is inactive, neither receptions nor transmissions are performed. Transmission requires two inputs, CTS and DSR, to be active. Whenever DSR is active, the modem lost bit is reset.

Publication 1747-RM001G-EN-P - November 2008

Page 418

13-88

SLC Communication Channels

DF1 Radio Modem When you configure the SLC 5/03, SLC 5/04, and SLC 5/05 processors for DF1 Radio Modem, the following control line operation takes effect: No Handshaking Selected - DTR is always active and RTS is always inactive. Receptions and transmissions take place regardless of the states of DSR, CTS, or DCD inputs. This selection should only be made when the processor is directly connected to another DTE device. Half-duplex with Continuous Carrier Selected- DTR is always active. RTS is activated during transmission and during any programmed delays before or after transmissions. Programmed delays include RTS Send delay and RTS Off Delay. The DSR input signal must remain active for transmissions or receptions to occur. The modem lost bit is set whenever DSR is inactive. The DCD input signal is ignored. Transmission requires CTS and DSR to be active. If CTS is inactive at the onset of transmission, one second will be provided to wait for CTS to become active before the message packet is discarded. Half-duplex without Continuous Carrier Selected- DTR is always active. RTS is activated during transmissions and during any programmed delays before and after transmissions. Programmed delays include RTS Send Delay and RTS Off Delay. The DSR input signal must remain active for transmissions or receptions to occur. The modem lost bit is set whenever DSR is inactive. The DCD input signal is monitored to determine if transmissions are acceptable. If DCD is active, receptions are possible. Transmission requires CTS and DSR to be active and DCD ti be inactive. IF DCD is active at the onset of transmission, a configurable delay (DCD Wait Delay) will wait for DCD to become inactive before discarding the packet. If CTS is inactive at the onset of transmission, one second will be provided to wait for CTS to become active before the message packet is discarded.

Modbus RTU Master When you configure the SLC 5/03, SLC 5/04, and SLC 5/05 processors for Modbus RTU Master, the following control line operation takes effect: No Handshaking - DTR is always active and RTS is always inactive. Receptions and transmissions take place regardless of the states of DSR, CTS, or DCD inputs. This selection should only be made when the processor is directly connected to another DTE device.

Publication 1747-RM001G-EN-P - November 2008

Page 419

SLC Communication Channels

13-89

Full Duplex Modem - DTR and RTS are always active except at the following times. If DSR goes inactive, modem lost bit (S:5/14) is turned on immediately. While DSR is inactive, neither reception nor transmission is performed. The processor does not monitor DCD. Transmission requires CTS & DSR inputs to be active. . Half Duplex without Continuous Carrier - DTR is always active and RTS is only active during transmissions (and any programmed delays before and after transmissions). The processor does not monitor DCD. If DSR goes inactive, RTS is dropped. The modem lost bit (S:5/14) is turned on immediately. While DSR is inactive, neither receptions nor transmissions are performed. Transmission requires two inputs, CTS and DSR, to be active. Whenever DSR is active, the modem lost bit is reset.

RTS Send Delay and RTS Off Delay Parameters Through your programming software, the parameters RTS Send Delay and RTS Off Delay give you the flexibility of selecting modem control during transmissions. These parameters only apply when you select half-duplex modem with or without continuous carrier. For use with half-duplex modems that require extra time to “key up” their transmitter even after they have activated CTS, the RTS Send Delay specifies in 20 millisecond increments the amount of delay time after activating RTS to wait before checking to see if CTS has been activated by the modem. If CTS is not yet active, RTS remains active and as long as CTS is activated within one second, the transmission occurs. After one second, if CTS is still not activated, then RTS is set inactive and the transmission is aborted. For modems that do not supply a CTS signal at all, tie RTS to CTS and use the shortest delay possible without losing reliable operation.

TIP

If an RTS Send Delay of 0 is selected, then transmission starts as soon as CTS is activated. If CTS does not go active within 1 second after RTS is raised, RTS is set inactive and the transmission is aborted. Certain modems will drop their carrier link when RTS is lost even though the transmission has not been finished yet. The RTS Off Delay parameter specifies in 20 millisecond increments the delay between when the last serial character is sent to the modem and when RTS is deactivated. This gives the modem extra time to transmit the last character of a packet.

Publication 1747-RM001G-EN-P - November 2008

Page 420

13-90

SLC Communication Channels

Modbus RTU Protocol

This section shows the configuration parameters for Modbus RTU (Remote Terminal Unit transmission mode) protocol. For more information about the Modbus RTU protocol, see the Modbus Protocol Specification (available from http://www.modbus.org). SLC 5/03, SLC 5/04, and SLC 5/05 support Modbus RTU Master from Series C FRN11 onwards.

Modbus RTU Master Message instructions are used to transfer information between the data files in the Modbus RTU Master and the Modbus RTU Slaves. See the section, Configuring a Channel for Modbus RTU Master, for detailed information about configuring a MSG instruction for Modbus Communications. Modbus addressing is limited to 16 bits per memory group, each with a range of 1 to 65,536. There are four memory groups, one for each function: • coils (generally addressed as 0xxxx) • contacts (1xxxx) • input registers (3xxxx) • holding registers (4xxxx) Coils and contacts are addressed at the bit level. Coils are like outputs and can be read and written to. Contacts are like inputs and are read-only. Input registers and holding registers are addressed at the word level. Input registers are generally used for internally storing input values. They are read-only. Holding registers are general purpose and can be both read and written to. The most significant digit of the address is considered a prefix, and does not get entered into the Modbus Data Address field when configuring the message instruction. When the message is sent, the address is decremented by 1 and converted into a 4-character hex number to be transmitted via the network (with a range of 0-FFFFh); the slave increments the address by 1, and selects the appropriate memory group based on the Modbus function.

Publication 1747-RM001G-EN-P - November 2008