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 4 of 18

Starnode PC Data Collection Network Operator's Manual, pages 31 to 40

Pages 31 to 40 of 172

The original document is the PDF (2.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.

Filed in the catalog under the Computer Identics 320, Computer Identics 325, Computer Identics 326, RVSI CiMatrix 7500, RVSI CiMatrix 7555A, Sick 7555A, RVSI CiMatrix 7600, RVSI CiMatrix 7655, and 11 more models

Page 31

Starnode Switch are online or offline, the last label each device has read, and performance statistics for each device such as minimum, maximum, and average read quality. OPC Server (requires Starnode OLE Server) The OPC Server (OLE for Process Control) can be used by any OPC compliant client software packages to access the barcode scanners. Just a few of the many OPC compliant software packages are CIMPLICITY, RSVIEW32, Fix Dynamics, FactoryLink, and Factory Suite 2000.

Starnode Switch A Starnode Switch is used when a backup controller is installed in conjunction with the primary controller. This configuration allows the backup to assume the primary controller functions if the primary controller fails. In such a case, the Starnode Switch must be present. If the Starnode Switch senses that the primary controller is no longer responding, it automatically switches the main branch circuit to the backup controller. The Starnode Switch is fully programmable through TALL. Instead of using two interface cables and a T-tap box to connect each controller to the Starnode Switch, use A1-70184-1. This 25-foot cable has a 9-pin connector installed on each end.

Starnode Repeater Branch circuits are added to a Starnode network using a Starnode Repeater. A Repeater is connected to a branch circuit via an interface cable. Up to seven additional branches may be connected to a single repeater. The Repeater works by holding all of its lines in an idle state. Upon receiving a character from a line, it repeats the character to all other lines connected to the Repeater as shown in Figure 3–1.

Rev B, February 2002

Starnode PC Data Collection Network Operator’s Manual

3-3

3

Starnode Accessories

•

Page 32

Chapter

3

Starnode Accessories

FIGURE 3–1. Data Repetition

Incoming Message (aaa)

STARNODE 8-Way Node Repeater

(aaa) (aaa) (aaa) (aaa) (aaa) (aaa) (aaa)

Repeater echoes incoming messages out on all other lines.

Note: The Starnode Repeater is designated as the active device on each branch circuit that originates from it. The Repeater contains a Power Switch, transformer, two terminal strips, cable clamps, and eight LEDs, as shown in Figure 3–2.

3-4

Starnode PC Data Collection Network Operator’s Manual Rev B, February 2002

Page 33

Starnode Repeater

FIGURE 3–2. Starnode Repeater

OFF

Power Switch Transformer

ON

Terminals Volt. AC 1&2 2&3 3&4 120 X X 240 X

1 3

Fuse

3

4

LED #8

LED #6

LED #7

LED #4

LED #5

J2

AC Input

12

Cable #6 Cable #7

LED #2

LED #1

J1

1

Cable #8

LED #3

Starnode Accessories

2

12

1

Cable #4 Cable #5

Cable #2 Cable #3

Main Branch Cable

The Power Switch turns the power to the Repeater box On and Off. The two terminal strips each have 12 screw-type connectors. The connectors are divided into groups of three. Each group of connectors is used for interfacing one cable. For example, terminals 11 and 12 on Connector J1 are used to connect the blue and white conductors of a short piece of Starnode 25' cable to a T-Tap box. This T-Tap box may be anywhere on a branch. The repeater conforms to all rules for any terminal. Inside the Repeater are eight LEDs (light emitting diodes). These are located on the circuit board, near the connectors. There is one LED for each group of three connectors. LED #1 indicates when data is being transmitted over the main branch circuit. LEDs 2 through 8 flash when data is being transmitted on one of the corresponding branch lines. Due to the controller's rapid polling of the network, the flashing of LEDs 2 through 8 appear continuously lit.

Rev B, February 2002

Starnode PC Data Collection Network Operator’s Manual

3-5

Page 34

Chapter

3

3-6

Starnode PC Data Collection Network Operator’s Manual Rev B, February 2002

Starnode Accessories

Page 35

4 Software & Programming Overview

CHAPTER 4

This chapter provides an overview of the Starnode polling protocol that allows Starnode devices to communicate with the Starnode PC Interface Board and the other Starnode controllers.

Starnode Communication Protocol The Starnode network uses a hybrid of probing and CSMA/CA (Carrier Sense Multiple Access with Collision Avoidance) polling techniques. The Starnode PC probes large groups of Starnode devices in an effort to determine which single Starnode device is attempting to transmit data. After probing has narrowed the possibilities to a group of 64 Starnode devices, CSMA is used. Following a synchronization message, each Starnode device is given a specific time interval in which it may start to transmit data. If a Starnode device misses its opportunity to communicate, it must wait until the next polling cycle to try again. If more than one Starnode device is trying to communicate at once, the other Starnode devices that have messages pending sense the start of the first Starnode device's transmission. These other Starnode devices wait for the next synchronizing message before beginning their own transmissions. Thus, a collision of message data by multiple Starnode devices is avoided.

Rev B, February 2002

Starnode PC Data Collection Network Operator’s Manual

4-1

Software & Programming

4

Page 36

Chapter

4

Software & Programming Overview

The Starnode PC Interface Board begins by polling the first 1024 addresses, looking for any device wishing to transmit a message. If there is no response from this group, it continues on through the next 1024, and so forth until it sees a response to the poll. This response tells the board that one or more Starnode devices in the group of 1024 wish to send some data. The board then polls each group of 256 within that group until another response is seen. Next, polls are performed on groups of 64 Starnode devices within the 256. When the transmission source has been narrowed to 64 terminal addresses, the board uses CSMA/CA. The first device with data sends its message, causing all other devices in the group of 64 to wait for the next synchronizing message. The next synchronizing message is sent to the same group of 64, starting with the Starnode device after the one that sent the last message. Every Starnode message is sent with a block check character. The receiving device verifies that the block check character is accurate and sends either an acknowledgment (ACK) or indicates that the block check revealed a bad transmission (NAK). If repeated re-transmissions are unsuccessful, the sending device returns an error code to the program that tried to send the message. Messages sent from Starnode devices to a controller may be prefixed with an <ESC> character. Such messages are automatically placed at the head of Starnode message queue. If the <ESC> buffer (with a capacity of one message) is full, the sending Starnode device re-transmits continuously until buffer space is available for storing the message. When the message is passed to the host, the <ESC> character is retained as the first character of the message. Message traffic is not limited to controller-terminal exchanges. In a Starnode network, Starnode devices can also communicate with each other. To use this feature, messages must be prefixed with an <ESC> character, followed by the four-digit ID number of the Starnode device to which the message is addressed. The entire message text following the <ESC> character and four-digit terminal ID is transmitted. The first character following the four-digit terminal ID becomes the command byte for the receiving Starnode device. When terminal-to-terminal messages are sent over the network, the sending Starnode device does receive any kind of acknowledgment from the receiving Starnode device. If it is important that the sending Starnode device be able to verify proper reception by the receiving Starnode device, it is best to configure the host computer to relay the message and verify reception.

4-2

Starnode PC Data Collection Network Operator’s Manual Rev B, February 2002

Page 37

Programming Overview

Programming Overview Programming of the Starnode data collection network is accomplished in two steps: •

Programming the Starnode devices to accept collected data

•

Programming the Starnode PC to process the data

The PC software required to test and run the network is supplied with your Starnode board. You should first examine the README file for a description of the files and the latest updates.

SICK Auto Ident, Inc. Starnode devices are programmed using Terminal Application Level Language (TALL), or in C using the C Programmers Platform. TALL compilers may be used on any PC running under DOS or SCO UNIX. The compilers generate output files that can be downloaded to and interpreted by a Starnode device. TALL is a powerful language, not unlike BASIC, which allows greater programming flexibility. Calculations, sophisticated string manipulation, and Starnode device data storage are all easily controlled using TALL. The C Programmers Platform may be used in the DOS environment to develop applications in ANSI compatible C language for any of the C68K based barcode scanners. The compiled programs can be downloaded, tested, and debugged with the help of the PC-resident STARNDEM program. This program is supplied as a demonstration program on the Starnode Development Disk. It allows you to test or demonstrate most features of the Starnode network.

PC Programming After a data collection program for the Starnode device has been written and compiled, an application program for the PC may need to be created. The PC software needs of many users can be conveniently met by a separately available package called DATA MANAGER +32 or the Multidem utility

Rev B, February 2002

Starnode PC Data Collection Network Operator’s Manual

4-3

4 Software & Programming

Starnode Device Programming

Page 38

Chapter

4

Software & Programming Overview supplied with OLE Servers. Refer to “Software Products” on page 3-1 for more information. For users with more complex data collection requirements, application program interface routines for the Starnode PC Interface Board are provided. These routines can be called from applications programs written in any language that supports Microsoft compatible .obj modules or DLL’s, including Microsoft Visual C++ 1.52, Microsoft Visual C++ 6.0, and Visual Basic.

4-4

Starnode PC Data Collection Network Operator’s Manual Rev B, February 2002

Page 39

5 Using Starndem

CHAPTER 5

Overview

•

Transmitting messages or control commands to one or more terminals in the network

•

Downloading compiled applications programs (*.LAN) or data files (*.DAT) to one or more terminals in the network

•

Viewing data collection transactions sent by terminals in the network

•

Viewing the communication status of a single, specific terminal or the status of all terminals in the network. The Starndem Utility offers the operator a choice of viewing detailed, specific status statistics or a broad, general summary

•

Starting and/or stopping all terminals in the network with a single command

•

Performing diagnostic tests on all terminals or on specific terminals

•

Collecting data and storing it to disk

Selection of most of the main menu action bar items causes a dialog box to appear. While one dialog box is still being shown, you may select another main

Rev B, February 2002

Starnode PC Data Collection Network Operator’s Manual

5-1

5 Using Starndem

The Starndem Utility is a general purpose, interactive Windows application program that may be used for downloading, sending & receiving messages etc. This program continuously polls the network for incoming data collection transactions. In addition, the utility allows an operator to perform a variety of functions, including the following:

Page 40

Chapter

5

Using Starndem menu item and cause a second dialog box to appear. Dialog boxes can be overlaid up to 20 deep. If desired, you can click on the dialog box and move it to view the main window or another dialog box. Starndem uses a configuration file named starndem.cnf to determine which applications to download at startup. The format of this file is type, file.lan. The default starndem.cnf downloads several demo programs. When you start the Starndem Utility, the Initialization dialog box is displayed as shown in Figure 5–1. FIGURE 5–1. Initialization Dialog Box

In most cases, the three default values appearing in the Initialization dialog box will be correct for your Starnode network. You might need to change one, two, or all three values, depending on how your network is set up. For example, if you changed the jumpers on your Starnode PC Interface Board, the Controller I/O Base field's value should be changed.

Controller I/O Base The Starnode PC Interface Board is configured with the W7 jumpers set for a default board address of hexadecimal 300. The address that you enter in the Controller I/O Base field must correspond to the hex setting of the W7 jumpers on the board, otherwise the Starndem Utility is unable to find the Starnode PC Interface Board. For I/O ports and addresses commonly encountered on PC's, refer to “Installing PC-Resident Starnode Board” on page 2-3. To change the value shown, click on the Controller I/O Base field and highlight the present value. Press the Delete or Backspace key to delete the current value. Then type in a new hex value.

5-2

Starnode PC Data Collection Network Operator’s Manual Rev B, February 2002