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

The text of a manual · part 3 of 10

MS-5000 Multidrop Concentrator User's Manual, pages 21 to 30

Pages 21 to 30 of 94

The original document is the PDF (1.3 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 Microscan MS-5000

Page 21

Install Concentrator 1–Setup and Inst.

If the unit does not have housing, use the measurements provided in figure 1-12 to locate the centers of the mounting holes.

5.8" (147.32)

5.2" (132.08)

3.8" (96.52)

5.8" (147.32)

0.030" (7.62)

0.160" (4.06) DIA (4 places)

1.0" (25.4)

4.5" (114.30)

Front

Figure 1-12 MS-5000 (without housing) Mounting Diagram (not full size)

MS-5000 Multidrop Concentrator User’s Manual

1-13

Page 22

Setup and Installation

1–Setup and Inst.

Chapter 1

1-14

MS-5000 Multidrop Concentrator User’s Manual

Page 23

Chapter

2

Multidrop Communications

Chapter Contents Standard Single Concentrator Network ............................................... 2-2 Multidrop Addresses .................................................................... 2-2 Data to the Host ........................................................................... 2-2 Select Commands from the Host ................................................. 2-4 Polling Cycle Timing .................................................................... 2-7 Multiple Concentrator Network............................................................. 2-8 Multiple Poll Sequence ................................................................ 2-9 Multiple Select Sequence .......................................................... 2-10

The MS-5000 concentrator’s function is to control the flow of data between the host and two or more decoders (or scanners, printers, etc.). Each device in the multidrop network is assigned an address. The concentrator polls each device for data and relays that data, along with the device address, to the host. The concentrator also directs select commands from the host to individual multidrop devices, to an auxiliary monitor, or to the concentrator itself. Note: See chapters 3, 4, and 5 for details of configuration.

MS-5000 Multidrop Concentrator User’s Manual

2-1

2-Multidrop Comm.

Multidrop Communications

Page 24

Chapter 2

Multidrop Communications

Standard Single Concentrator Network

2-Multidrop Comm.

In a typical multidrop network (figure 2-1), the host communicates with the concentrator in a point-to-point (unpolled) protocol. The concentrator communicates with decoders and other devices in Multidrop.1 Each decoder must be individually configured to Multidrop and assigned a unique address (from 01 to 50).

Host

Unpolled Protocol RS-232 or RS-422 Interface

Series 5000

Concentrator

Note: The MS-5000 concentrator is programmed to communicate with decoders in Multidrop protocol only; therefore, User Defined Multidrop cannot be used when setting up decoders.

Multidrop Addresses

Polled Protocol Multidrop ONLY RS-485 Interface (LAN) Decoder 01 Decoder 02 Decoder 03

Rules: Figure 2-1 Typical Multidrop Network 1. Each device must have an address assigned in its configuration menu. 2. No two devices can have the same address. 3. Additional devices (up to 50) can be added at any time to an active system (see “Polling Cycle Timing” on page 2-7). In a multidrop network, each device is assigned a number from 01 to 50. However, during poll and select sequences the concentrator provides background substitution from a table of hexadecimal ASCII values associated with each address (see table A-1 on page A-3). For example, when transmitting a poll request to a decoder the concentrator uses the poll value 20 hex (“SP” ASCII poll character). When the concentrator relays a select command from the host to the same device, it uses the select value 21 hex (“!” ASCII select character). This allows a device to readily distinguish between a poll and select sequence.

Data to the Host Data that is transmitted to the host (bar codes, noreads, counters, etc.) from multidrop devices is handled by poll requests. 1. See Chapter 2, “Multidrop Communications” for more details on Multidrop and other protocols, and “Multiple Concentrator Network” on page 2-8.

2-2

MS-5000 Multidrop Concentrator User’s Manual

Page 25

Standard Single Concentrator Network

Start of Sequence

C oncentrator D ecoder 02

R ES

1E

End of Sequence

R EQ

AC K 1E

S TX

D A TA

ET X

LR C

RES

Figure 2-2 Polling Sequence

It is followed by a REQ (request). The decoder responds by first transmitting its own address, 1E, followed by a STX (start of text) character, and then the actual data (a decoded barcode or a noread). Next it transmits an ETX (end of text) character and an LRC (longitudinal redundancy check) character. If the concentrator receives the data from the decoder and is able to validate it with an LRC calculation, the concentrator responds with an ACK (acknowledgment). If the decoder receives the ACK, the decoder ends this successful exchange with a RES (reset). Polling Reset Sequences. Both the concentrator and the decoder can terminate the polling sequence by transmitting a RES (reset) to the other device. The following conditions and responses apply: • If the concentrator does not receive a response from the decoder following its poll request, the concentrator will wait until it times out and then retry the request. It will retry the request three times before going on to another device. • If the decoder has no information, it responds to a request by transmitting a RES (reset). • If the decoder receives a NAK instead of the ACK after transmitting its data string it will re-attempt to transmit the data string, up to three times. If 1. See also “Polled Device Status Menu” on page 3-15. MS-5000 Multidrop Concentrator User’s Manual

2-3

2-Multidrop Comm.

The concentrator polls all active devices continuously and inactive devices intermittently (see “Polling Cycle Timing” on page 2-7).1 The concentrator polls devices under it by substituting the ASCII hex values associated with each poll address. It subsequently relays the data to the host whenever the host is available for input. Polling Sequence. In the polling sequence example in figure 2-2, the concentrator begins the poll sequence with a RES (reset) followed by poll address, 1E, the ASCII hex value for Decoder 02.

Page 26

Chapter 2

Multidrop Communications

2-Multidrop Comm.

the decoder still does not receive an ACK it will transmit a RES (reset) and discard the data in its buffers. • If the decoder transmits data to the concentrator and the concentrator responds with an ACK or NAK, but the decoder doesn’t receive the concentrator’s response, the decoder will timeout and transmit a REQ to the concentrator and request another response. If, after three retries (the number of times it transmits a REQ to the concentrator) the decoder receives no response, it ends the transmission with a RES (reset).1

Select Commands from the Host Unlike poll requests, select commands always originate from the host and consist of configuration or operation commands to decoders and other devices that are configured in Multidrop. The decoder complies with the command when it is polled during the polling cycle.2 For example, if the host requests a trigger count (command <T>) from Decoder 02, it will transmit the data string 02<T>CR3 to the concentrator. The concentrator takes this command, strips off the 02 and substitutes the hex value 1F as shown in the following select sequence (figure 2-3). Start of Sequence

Concentrator Decoder 02

RES

1F

REQ

End of Sequence

STX <T> ETX LR C 1F A CK

RES 1F ACK

Figure 2-3 Select Sequence

Note: Commands from the host must be sent as a data block or as a string from a softkey because hand entry is too slow to prevent the concentrator from timing out between characters. A RES (reset) is the first command in the select sequence. The 1F hex is the select address associated with the decoder’s 02 address (see Table A-4, “Multidrop Address Characters,” on page A-5). It is followed by a REQ (request). The decoder responds with its own select address, 1F hex, and an ACK (ac-

1. A retry can be triggered by a NAK or a timeout. A reset occurs after the retry limit (three) has been reached, or an ACK is sent by the other device. 2. See your decoder or scanner user's manual for specific configuration and operation commands. 3. The carriage return is the default ETX character.

2-4

MS-5000 Multidrop Concentrator User’s Manual

Page 27

Standard Single Concentrator Network

Note: Data in select command strings to decoders cannot contain characters that match the host-to-concentrator ETX character or the command will be terminated prematurely. For example, if a concentrator’s ETX is the default carriage return character and you attempt to send a carriage return through the concentrator to a decoder, the concentrator will interpret the carriage return as its own ETX character and terminate the command.

Select Reset Sequences. Both the concentrator and the decoder can terminate the select sequence by transmitting a RES (reset) to the other device. The following applies: • If the concentrator does not receive a response from the decoder after transmitting a select request (RES SEL REQ), the concentrator will wait for its time out and then retry the request. It will retry the request three times before advancing to another device. • If the decoder receives bad data from the concentrator, it transmits a SEL (its select address) and a NAK to the concentrator. The concentrator retransmits the data up to three times. The concentrator will end the sequence with a RES (reset) if no ACK is received. • If the concentrator transmits data to the decoder, and the decoder responds with an ACK or NAK, but the concentrator misses the decoder's response, the concentrator will timeout and transmit a REQ to the decoder, requesting another response to its transmission. If after three requests the concentrator does not receive an ACK, it will end the transmission with a RES (reset). ETX Character. Select commands (or select multiple commands) from the host to any address must end with an ETX, if defined. The default ETX character is a carriage return (CR). It can be changed to any ASCII character or nulled (undefined) in the concentrator configuration program.

MS-5000 Multidrop Concentrator User’s Manual

2-5

2-Multidrop Comm.

knowledge). The concentrator then transmits an STX (start of text), the data (in this case a <T>), an ETX (end of text), and an LRC character. The decoder replies by transmitting its own address, followed by an ACK. With an ACK the decoder acknowledges receipt of the command. Upon receipt of an ACK, the concentrator concludes the successful exchange with a RES. In the example above, the decoder only acknowledges a trigger counter request from the concentrator. It does not respond to the trigger counter request until a subsequent poll. For example, if the decoder’s trigger count was 12 at the time the trigger counter request was received, on a subsequent poll it would transmit 02T/00012. (The 02 at the beginning of the string is the decoder’s address.)

Page 28

Chapter 2

Multidrop Communications If ETX is undefined (nulled), then a time delay exceeding the Intercharacter Timeout must be inserted in place of each ETX character. Multiple Select Commands. You can concatenate several commands in a single string (or data block). (The maximum string length to a concentrator is 127 characters; to any decoder, 64.) NOTE: For multiple commands to function, the concentrator must communicate with the host in an unpolled mode with no ACK, NAK, or Reset defined.

2-Multidrop Comm.

Multiple Commands to a Single Decoder Commands (up the 64 characters) can be concatenated to a single decoder. For example, to enable Postamble and Codabar for decoder 01 (figure 2-1), enter 01<Ke1><R>CR. A command string must end with a ETX character, if defined (in the above example, the ETX character is a CR), or if undefined (nulled), must end with a delay that exceeds the Intercharacter Timeout. Multiple Commands to More Than One Decoder Commands (up the 127 characters total but no more than 64 characters to any single decoder) can be concatenated to more than one device. For example, to enable postamble for decoder 01 and enable Codabar for decoder 02, enter 01<Ke1>CR02<R>CR. Note that a separate ETX character (CR) follows the command to each device. If the ETX character is undefined (nulled), a delay exceeding the host Intercharacter Timeout (as defined in the concentrator) would be required in place of each ETX. Commands to a Concentrator. For direct communications from the host to a concentrator enter 51<data>CR. The 51 cues the concentrator to accept the following command so that it will not forward. Data is any serial configuration or operational command. Sending Data to an Auxiliary Monitor. To send data from the host to an auxiliary monitor enter 52data. The 52 indicates the information is to be sent to the auxiliary monitor. Do not insert brackets around the data. Information following the 52 is displayed on the auxiliary monitor verbatim.

2-6

MS-5000 Multidrop Concentrator User’s Manual

Page 29

Standard Single Concentrator Network

Polling Cycle Timing

W ith no label

W ith 8 charactres from each decoder

57.5 m s

38.K baud

195 m s 125 m s

9600 baud

582 m s 0

100

200

300

400

500

600

Polling cycle duration (in m illseconds) Figure 2-4 Polling Cycle Durations for 25 Active Decoders

MS-5000 Multidrop Concentrator User’s Manual

2-7

2-Multidrop Comm.

A properly connected decoder or other device, configured for Multidrop and assigned an address between 01 to 50, will be listed in the concentrator’s Device Status menu as Active. During the polling cycle, the concentrator polls each active decoder for label data and checks one inactive address (slow poll) to determine if it has become active. If so, it will be added to the Active list. Within a given number of polling cycles, all 50 decoder addresses are polled. This routine keeps polling cycles as brief as possible and allows any addressable device to be turned on or off during the polling operation without stopping or reconfiguring the concentrator. The time it takes to poll an inactive device will be slightly greater than the Turnaround Timeout setting, which by default is 12 ms. For a given baud rate, it would seem that a simple multiplication of total characters times baud rate could be used to predict the duration of a polling cycle. This is not the case, as evidenced in figure 2-4 which shows that the actual time of 582 ms to poll 200 characters (25 decoders times 8 characters each) is almost 3 times the time it should take to transfer 200 characters at 9600 baud. The rest of the time can be accounted for by overhead: addresses, STX, ETX, and LCR characters, etc. Add to this the slow poll routine which varies depending on the number of inactive devices and the distribution of active addresses, and it becomes clear that any formula you may derive will be imprecise and generally limited to your particular set of parameters.

Page 30

Chapter 2

Multidrop Communications

Multiple Concentrator Network

2-Multidrop Comm.

Sometimes an additional higher level concentrator is required if for example you are installing more than fifty decoders in a network. In this network the lower level concentrators are configured for Multidrop and assigned multidrop addresses (01 and 02, as shown in figure figure 2-5). Each lower level concentrator polls its devices, then holds that data until polled by the higher level concentrator, which in turn relays the data to the host. Each concentrator has the capability to buffer 18,000 characters. Note: To allow enough time for data retrieval, LAN Turnaround Timeout for Concentrator X (see figure 2-5) must (approximately) be greater than double LAN Turnaround Timeout for Concentrator 01. For example, if Concentrator 01 is set to the default of 12 ms, try setting Concentrator X to 25 ms (you may need to experiment to determine the best setting). For more information on Turnaround Timeout, see page 3-7. Note: Data output from the higher level concentrator may be slow if the lower level devices are in a high speed application. Note: See Table A-4, “Multidrop Address Characters,” on page A-5 for the translation between hex poll characters and multidrop addresses.

Host Multidrop address of both Concentrator 02 and Decoder 01 transmitted.

Unpolled Protocol (RS-232 or RS-422 Interface) Interface)

Polled Protocol (Multidrop RS-485 Interface)

Concentrator X

Second Poll Sequence Concentrator 02’s hex poll character transmitted; decoder 01’s multidrop address transmitted.

Concentrator 01

First Poll Sequence Concentrator Decoder 01 02 Decoder 02 Decoder 01’s hex poll character transmitted.

Figure 2-5 Multiple Concentrator Network

2-8

Decoder 01 Decoder 02

MS-5000 Multidrop Concentrator User’s Manual