The text of a manual · part 16 of 18
Starnode PC Data Collection Network Operator's Manual, pages 151 to 160
Pages 151 to 160 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 151
Terminal Control Commands
Resetting Starnode Device
Sending this command to a terminal is similar to turning its power Off and On again, except that the terminal will not go through start-up diagnostics. Command Parameter Value: 59 (3B hex) Message Format: None
Clearing Diagnostic Count The value 60 (hexadecimal 3C) is used to clear the diagnostic count information from a terminal without having to restart the Starnode device. Refer to “Requesting Diagnostic String” on page 9-4 for more information. This count may also be resent by sending a command value of 59, or by powering the terminal Off and On. Command Parameter Value: 60 (3C hex) Message Format: None
Enabling DC Control Output Starnode devices may be equipped with DC control outputs, which may be used to control relays, conveyors, alarms, etc. These may be enabled from a PC application program using the 61 (hexadecimal 3D) command. Installation specifications for these DC control outputs are given in the operator's manual provided with each unit. Command Parameter Value: 61 (3D hex) Message Format: N where: N - Is a byte, single ASCII character, with an integer value between 1 and 256. The byte’s value determines which DC control output is enabled. The values represent the following: 1 - Turn on DC control output \#1
Rev B, February 2002
Starnode PC Data Collection Network Operator’s Manual
9-7
9 Controlling System’s Data Collection
Upon receipt of the 59 (hexadecimal 3B) command, the Starnode device will be reset to the operating parameters that were set up at the operating system level and power-up state. Refer to the unit's operator's manual for more specific information regarding the operating parameters.
Page 152
Chapter
9
Controlling System’s Data Collection Terminals
2 - Turn on DC control output \#2 4 - Turn on DC control output \#3 8 - Turn on DC control output \#4 16 - Turn on DC control output \#5 32 - Turn on DC control output \#6 64 - Turn on DC control output \#7 128 - Turn on DC control output \#8 The above values may be summed to turn on multiple outputs simultaneously. This command only turns outputs On. If an output is already On, its state will not be affected by this command.
Disabling DC Control Output Starnode devices may be equipped with DC control outputs, which may be used to control relays, conveyors, alarms, etc. These may be disabled from a PC application program using the 62 (hexadecimal 3E) command. Installation specifications for these DC control outputs are given in the operator's manual provided with each unit. Command Parameter Value - 62 (3E hex) Message Format - N where: N - Is a byte (single ASCII character) with an integer value between 1 and 256. The byte's value determines which DC control output is disabled. The values represent the following: 1 - Turn off DC control output \#1 2 - Turn off DC control output \#2 4 - Turn off DC control output \#3 8 - Turn off DC control output \#4 16 - Turn off DC control output \#5 32 - Turn off DC control output \#6
9-8
Starnode PC Data Collection Network Operator’s Manual Rev B, February 2002
Page 153
Screen Control Characters
64 - Turn off DC control output \#7
These values may be summed to turn off multiple outputs simultaneously. This command only turns outputs Off. If an output is already Off, its state will not be affected by this command.
Forwarding String to Application Program Any command value equal to or greater than 65 (hexadecimal 41) instructs the terminal to forward the message to the application program running in a Starnode device. The message received by the program will have the command byte as the first byte of the message data, followed by up to 126 characters of the message. For example, a message of TEST sent to a Starnode device with a command byte of 65 would be received by a user program as a single message: ATEST. Command Parameter Value - 65 or greater (40 hex or greater) Message Format - Any message (up to 126 characters) to be passed to the user application program in the Starnode device.
Screen Control Characters The Screen Control Characters are used to manipulate a data collection terminal's display. To use the characters, embed them in the data that is to be sent to the display. This data may be shown by a user program or sent to the terminal from the PC using the SSEND, SRBDC, or SBRDT routines. A short description of each character's is shown in Table 9–2. TABLE 9–2. Screen Control Characters
Dec
Hex
Description
7
07
Bell (Single Beep)
8
08
Backspace
9
09
Horizontal Tab
10
0A
Line Feed (Down One Line)
13
0D
Carriage Return (Beginning of Current Line)
Rev B, February 2002
Starnode PC Data Collection Network Operator’s Manual
9-9
9 Controlling System’s Data Collection
128 - Turn off DC control output \#8
Page 154
Chapter
9
Controlling System’s Data Collection Terminals
TABLE 9–2. Screen Control Characters (Continued)
Dec
Hex
Description
21
15
NAK (Clear Line)
22
16
Synchronous Idle (Error Beep)
24
18
Cancel (Clear Screen)
127
7F
Delete (Erase Character)
The following describe how a Starnode Terminal interprets Screen Control Characters.
9-10
•
Bell - This character causes a Starnode terminal to emit a single, short beep.
•
Backspace - This character causes the cursor to move backward, to the left, one space on the display, without deleting data. If the cursor is already in the home position when the Backspace character is received, the cursor will not move.
•
Horizontal Tab - This character causes the cursor to move forward (to the right) one character position on the display. If a character is already being shown in that position when the Horizontal Tab character is received, the character is overwritten by a Space character.
•
Line Feed - This character causes the cursor to move down one line on the display. For example, if the cursor is on the top line of the display, in the fourth character position, the Line Feed character results in the cursor moving to the second line of the display, still in the fourth character position.
•
Carriage Return - Causes the cursor to move to the beginning, left-most character position, of the display. If the cursor is on the first line of the Starnode terminal's display when the Carriage Return character is received, the cursor remains on the first line but returns to the first, left-most, character position.
•
Synchronous Idle - This character causes the Starnode terminal to emit an error tone, four 4 short beeps.
•
NAK - This character causes the line that the cursor is currently on, as well as the following line, if any, to be cleared of all characters. The cursor is moved to the beginning of the current line.
Starnode PC Data Collection Network Operator’s Manual Rev B, February 2002
Page 155
Screen Control Characters
Cancel - This character causes the Starnode terminal to clear its display completely of all characters currently being shown. The cursor returns to the home position.
•
Delete - This character causes the cursor to move backwards, to the left, one space. Any character that was being shown in the cursor's original position is cleared.
Rev B, February 2002
Starnode PC Data Collection Network Operator’s Manual
9-11
9 Controlling System’s Data Collection
•
Page 156
Chapter
9
9-12
Starnode PC Data Collection Network Operator’s Manual Rev B, February 2002
Controlling System’s Data Collection Terminals
Page 157
10
This chapter provides general maintenance procedures for the Starnode PC data collection network.
Network Troubleshooting Maintenance of the Starnode Data Collection consists of checking network cabling and device connections, ensuring the network is setup to specifications, and troubleshooting some common, minor network problems. A list of common network problems and their possible causes and solutions is provided in Table 10–1.
Rev B, February 2002
Starnode PC Data Collection Network Operator’s Manual
10-1
10 Maintenance & Troubleshooting
Maintenance & Troubleshooting
CHAPTER 10
Page 158
Chapter
10 Maintenance & Troubleshooting
TABLE 10–1. Common Network Problems
Description of Problem
Possible Cause
Possible Solution
Program running at Starnode device locks up at end of transaction. Any Starnode device on the Starnode network exhibits the same lock-up after one or two transactions have been entered.
The Starnode board's received message queue is full and the PC is no longer picking up messages from the Starnode board. There may be a bug in the application program or the program was halted.
De-bug or re-start your application program.
Time display on the Starnode terminal is frozen or a period (.) is shown to the right of the seconds position.
Network was stopped from PC by call to SSTOP routine.
Re-start your application program on the PC. Messages from Starnode devices may have been buffered in the terminals and transmission may be attempted again once the controller begins polling the network again.
Hardware failure or a cable break on the network.
Refer to Problem - Waiting for Starnode.
10-2
Starnode PC Data Collection Network Operator’s Manual Rev B, February 2002
Page 159
Network Troubleshooting
TABLE 10–1. Common Network Problems (Continued)
Possible Cause
Possible Solution
Prompt Waiting for Starnode remains on display.
Network cable may be disconnected from the Starnode device.
Reconnect the interface cable to the Starnode device.
Network cable may have pulled loose from T-tap box.
Re-install the cable in the Ttap box. Check all connections using a continuity tester.
Network cable is disconnected from Starnode board.
Re-connect network cable to Starnode board.
If the Starnode devices not driven by the Repeater continue to display the correct time, then the Repeater between the PC and the down device has failed.
Call SICK Auto Ident, Inc.’s Return Authorization department for an R.A. number. Remove the circuit board from the Repeater and return it for repair. Replace the faulty board with a working board.
A transceiver chip in a Starnode device or Repeater is shorting the network.
Disconnect and reconnect each terminal on the main branch circuit and each branch circuit off of each Repeater, one at a time, until the network resumes operating when the faulty unit or branch circuit is isolated.
Overlapping terminal IDs on gateway terminals.
Run STARNDEM diagnostics. These diagnostics will report all overlapping ID ranges. Change all affected terminal IDs to eliminate overlaps.
Downloads occasionally fail and errors occur when sending data to a specific terminal ID.
Rev B, February 2002
Starnode PC Data Collection Network Operator’s Manual
10-3
10 Maintenance & Troubleshooting
Description of Problem
Page 160
Chapter
10 Maintenance & Troubleshooting
TABLE 10–1. Common Network Problems (Continued)
Description of Problem
Possible Cause
Possible Solution
When download is attempted, nothing happens.
Starnode board did not receive a download table for that terminal's type.
Verify that you did indeed download the program table to the Starnode board. Try using STARNDEM to download the program. If this works, re-check your software's logic. Ensure that the terminal type corresponds to what is expected by the software on the PC.
Starnode board did not have room for this download table.
Reduce the size of your programs or download the programs to terminals individually (bypass the Starnode board entirely - call SICK Auto Ident, Inc. Application Support Department for instructions on how to do this).
PC is not receiving messages from terminal.
This is symptomatic of a PC that is too fast for the Starnode board.
Increase the delay time after each communication with the Starnode board by calling the SDLAY routine before your first call to SINIT. Try delay values of between 2 and 50.
PC periodically receives messages from terminal ID that is not on the network. STARNDEM diagnostics reports non-zero statuses for several IDs that do not exist.
The above problems are symptomatic of a PC that is too fast for the Starnode board.
Increase the delay time after each communication with the Starnode board by calling the SDLAY routine before your first call to SINIT. Try delay values of between 2 and 50.
Discontinuous cable shielding.
Check shield continuity through all T-tap boxes, or have a network verification done by Field Service.
Starnode board I/O port address conflicts with other I/O port addresses in machine.
Change JH4 jumpers on Starnode board to another I/O port address. If PC boots properly, run STARNDEM and test the new address.
PC fails to boot properly or PC has problem locating hard disk.
10-4
Starnode PC Data Collection Network Operator’s Manual Rev B, February 2002