The text of a manual · part 4 of 25
Attended Workstations (Catalog Nos. 2708-DH5B2L & -DH5B4L) (Series B) User Manual, pages 30 to 41
Pages 30 to 41 of 186: 3 - Barcode Connection; 4 - Status Displays
The original document is the PDF (513 KB). 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 2708
Page 30
Chapter
A–B
3
Barcode Connection Chapter Objectives
The barcode connector on the back of the workstation is a 9 pin DB-9 connector for the bar code scanner.
Connection The pin-out for the BARCODE connector on the back of the workstation is shown on Figure 3.1. Figure 3.1 BARCODE Connector 5
4 9
3 8
2 7
1 6
Pin Number Function 1 . . . . . . . . . . . . . . . Start of Scan 2 . . . . . . . . . . . . . . . Data 3 . . . . . . . . . . . . . . . LED light 4 . . . . . . . . . . . . . . . NOT CONNECTED 5 . . . . . . . . . . . . . . . Trigger 6 . . . . . . . . . . . . . . . Laser synchronization 7 . . . . . . . . . . . . . . . GROUND 8 . . . . . . . . . . . . . . . GROUND 9 . . . . . . . . . . . . . . . Power (+5V) Allen-Bradley offers the following barcode scanners for use with the workstation:, Catalog Number 2755-G3 or -G6 Hand-Held Scanner, Catalog Number 2755-W1, -W2, or -W5 Wand, Catalog Number 2755-B1 or -B2 Slot Scanner
3–1
Page 31
Chapter
A–B
4
Status Displays Introduction
The status display provides visible and easily available information concerning the state of the 2708-DH5B2L or -DH5B4L Attended Workstation. The workstation reports its operational status through ten informational displays on the front panel LCD Display. The status displays are automatically shown when the workstation is powered up unless a BASIC program is running. Each of the status displays is assigned a number from 0 to 9. To see status display 1, press the “1” key. When any number is entered, the workstation will present the status display associated with that number. The ten displays are: 1. Network Status. 2. Reserved Status. 3. Time Status. 4. System Reset Status. 5. Network Que Status. 6. Workstation Memory Status. 7. Program Load Status. 8. Program Run Status. 9. Application Status. 0. Summary Status. On the workstation’s 2 x 40 display, two separate status displays will be shown. Figure 4.1 Example Status Display
N . . . . . . NN .
01–01
01234556789
MASTR
<0 2>
NETWORK 2
4–1
Page 32
Chapter 4 Status Displays
Introduction (cont’d)
With the display, the workstation can show two status displays at the same time. In Figure 4.1, the summary status display is on the left hand side along with the reserved status on the right hand side. The ‘< 0’(in Figure 4.1) is associated with the summary status (left hand side), and signifies that the summary status is status display number zero. The ‘2>’ tells us that the right hand display is status display number 2. On the display, as the user selects a new status display, the new status screen will be displayed on the left hand side, and the display on the right hand side will be replaced by the one from the left hand side. Invoking Status Display – Status displays are visible under these circumstances: 1. After power-up for 15 seconds. 2. When the workstation has a non-zero terminal number, but is without an A-B VBASIC program. 3. When the A-B VBASIC program terminates. 4. When manually invoked during a power up. This method will present the status display for 15 seconds after the last keystroke. The A-B VBASIC program, if loaded, will resume execution after this 15 second status display.
Summary Status Display (Status Display 0)
The Status Display 0 summarizes the status of the other nine status displays. The numbers 0-9 on the lower line represent the ten status displays. The information above each number refers to the number under it, i.e. the ’.’ over the 3 refers to the status display 3 – the time display. Figure 4.2 Summary Status Display
4–2
N . . . . . . NN .
01–01
01234556789
MASTR
Page 33
Chapter 4 Status Displays
Summary Status Display (Status Display 0) (cont’d) Display No. / Name 1
Code
Network Status. O S
2 3
Reserved Status. Time Status.
• T
4
System Reset.
• R
5
Network Queue.
• O
6
Workstation Memory.
• F
7
Program Load.
• N L
8
Program Run.
9
Application.
0
Summary
•
Description Online Offline Standalone Always a period Time is set Time is not set No serious errors Serious error occurred Online Offline Memory remains Out of memory Program loaded Never loaded Loading error
E N
No errors Run error Never ran
•
Always a period
To view one of the other nine status displays, simply enter the number key associated with the status display desired while viewing status. The ‘01-01’ is the workstation number. The first number is the Master number (01), the second number is the individual workstation number (01). In this example the Master number and the workstation number are the same. In the case of Master number 06 and workstation number 24 the total workstation I.D. number would be ‘06-24’.
4–3
Page 34
Chapter 4 Status Displays
Network Status (Status Display 1)
The Network Status display shows information about the network. The information is updated many times a second, to reflect the status as it changes. The information displayed appears in the following form: Figure 4.3 Network Status, Display 1 mm-tt Ready a mode a
[type] where, moving from left to right on the top line: mm is the Master ID or Submaster attached to the workstation. If the workstation is not attached to a network string, no Master ID will be present.
tt is the workstation or station ID number.
Ready indicates that the application program is capable of performing a SEND operation. Alternately,
Full
Indicates that there is no memory remaining in which to save data.
a represents the current polling address. The character which represents the polling address will be a space, while the unit has the factory configuration and is offline. If the workstation is online and waiting for a poll, a question mark will appear in this position.
Moving from left to right, the bottom line meanings are: mode
ONLINE OFFLINE TERMINAL type
The role the workstation plays in the network: [N] [M[ [A] [C] [SM] [AM] [G]
4–4
The workstation will send records to its Master. The workstation will not send records. The workstation is in standalone mode, and sends each keystroke.
Normal Master Alternate Master Concentrator Submaster Alternate Submaster Gateway
Page 35
Chapter 4 Status Displays
Reserved Status (Status Display 2)
This display (Figure 4.4) currently has no function. Allen-Bradley has reserved this menu for future enhancements. Figure 4.4 Reserved Status, Display 2
NETWORK 2
Time Status (Status Display 3)
This display shows the time and date. Figure 4.5 Time Status, Display 3
2:01:25 PM MON MAY 8, 1990 To change the format of the time and data, simply choose the option CLOCK MODE on the system menu (menu 3). Refer to Appendix I for a description of the CLOCK MODE options.
System Reset Status (Status Display 4)
Serious errors encountered by a workstation are known as “system resets”. To try and correct a problem the workstation will reset itself and in the process will attempt to identify the error. The error is then logged, and the number of system resets is incremented. Figure 4.6 System Reset Status, Display 4
EC
##
AThhmmssnnyymmdd The EC in Figure 4.6 represents the Error Code. The ## represents the number of serious errors. The lower lines gives you “at time and date”.
4–5
Page 36
Chapter 4 Status Displays
System Reset Status (Status Display 4) (cont’d)
Network Queue Status (Status Display 5)
A – Error Codes 1
Undetermined reason for failure
8, 10
These error codes could be the result of excessive power fluctuations or a sign that the workstation is not functioning properly because of a hardware problem. Technically, the error is a result of the micro-processor vectoring to the restart vectors. If the problem continues, contact your A-B representative.
82
Stack overflow
83
Bad transaction memory structure
84
Illegal interrupt
85
8048-64180 mismatch
86
Bad byte count from extended RAM
87
String from network not properly terminated
88
Invalid block address
89
Out of memory for files
This display presents the status of the data queues which link the A-B VBASIC program to the network. Figure 4.7 Network Queue Status, Display 5
MODE
R
C
H L
RS
S
The top line contains:
4–6
Mode
[OFF] Offline, the workstation is unable to communicate with the Host. [ON] Online, the workstation has established communications with the Host.
R
Records From Host – Records from Host applies to the number of data records which have arrived from the Host. This number does not include network commands, only data destined for the A-B VBASIC program.
Page 37
Chapter 4 Status Displays
Network Que Status (Status Display 5) (cont’d)
C
Count Of Records Lost From Host – This count is incremented whenever a data record arrives from the network, before the previous one was read by the A-B VBASIC program.
The lower line contains: H
Host Output Blocked Flag. Data collected by the application is not being forwarded to the network, because the Host device is not currently OPEN by an A-B VBASIC program. Unless some action is taken to OPEN “Host”, this data will be stranded. The condition can be cleared by an: OPEN “Host” KILL “Host” KILL “QUE”
L
Lost Data Flag Data has been lost. This could be because the Host sent a record and the workstation was not ready to receive it, or the Host is sending faster than the workstation can process the data.
RC
Record Count From Network – This is a count of the records which have been transmitted to the Host from the A-B VBASIC program.
S
Size Of Host Queue – This is the number of bytes currently in the que for transmission to the Host. Data in this queue can be prevented from going to the Host by:
1. A Host computer which has stopped polling (when the Master is in polled mode). 2. A Host computer which has issued a XOFF, (any mode). 3. The device Host being closed. This condition is associated with the Host Output Blocked Flag. 4. The workstation being offline.
4–7
Page 38
Chapter 4 Status Displays
Workstation Memory Status (Status Display 6)
This display presents information that describes the utilization of the workstation’s RAM. Figure 4.8 Workstation Memory Status, Display 6
RAM PGMEM
LPMEM
BFUSE
BLEFT
The top line contains: RAM
Total RAM Memory – Displays the total number of K bytes of RAM installed.
PGMEM Bytes Remaining For Program Use – This value shows the amount of RAM available for an A-B VBASIC program. The value is decreased from its factory default setting by the use of memory for: 1. Program pseudo-code (i.e. “logic”) 2. Program variables 3. Program pseudo-stack (for procedure returns, etc.) This value is reset to its factory default when the first record of an A-B VBASIC program is received (the “>, AA record”). It is decremented as the program arrives and as it runs. Thus, this value reflects the difference between the factory default and the maximum used by the current application (A-B VBASIC program). LPMEM Least Used Program Memory – This value represents the program’s peak memory utilization. A value of zero means that at some point, the program memory was full. The lower line contains:
4–8
BFUSE
Bytes For File Usage – This value shows the amount of RAM available for use in A-B VBASIC files. If this value ever reaches zero, the effect will be quite serious, unless the A-B VBASIC program detects this condition.
BLEFT
Bytes Remaining For File Use – The amount of RAM available for file use that has never been used by the current application.
Page 39
Chapter 4 Status Displays
Program Load Status (Status Display 7)
This display shows the progress of the loading operation of the A-B VBASIC program on the top line and the date/time of the loading operation on the lower line. Figure 4.9 Program Load Status, Display 7
LOAD STATUS
MSG
AT yymmdd hhmmss
Program Load Messages that could appear on the top line are: Never loaded
This message appears from the time the workstation is set to factory defaults until the arrival of a program record.
Loading Line: xx
This message is shown as each program record is received. It should take only a few moments at most to load a program. If this line is not being updated every few seconds, the download operation has been interrupted, possibly by a communications protocol error from the Host computer.
Loaded <filename>
This message indicates that the A-B VBASIC program was loaded without error and started. The PC program name is shown. Note: This does not imply that the program loaded is currently running. For workstation run status, check status display eight.
Load Sequence xx –
This message indicates that at least one of the records of the program was received in the wrong order. The ‘xx’ indicates the expected record.
Length Counters! –
This message indicates that the counters holding the size of the program’s pseudo-code and array descriptions do not equal the total program length counter.
Load Length! –
This message says the amount of pseudo-code received does not equal the number supplied in the total length count.
Program Checksum – This message says the checksum of the pseudo-code does not equal the value expected.
4–9
Page 40
Chapter 4 Status Displays
Program Load Status (Status Display 7) (cont’d)
Interpreter Vers –
Unlike the previous errors, this error is probably due to an incompatibility between the interpreter firmware in the workstation and the version of the LXB cross-compiler that made the program file. Consult technical documentation or Allen-Bradley representative to determine whether the compiler employed is correct for the workstation which is being downloaded.
The lower line tells you at what time and date the error occurred.
Program Run Status (Status Display 8)
This display shows the running status of the A-B VBASIC program. Figure 4.10 Program Run Status, Display 8
PROGRAM STATUS ####: yymmddhhmm Program run status messages that could appear on the top line are: Argument count Argument count mismatch Big file number Copy record leng Divide by zero Double overflow End of SYSTEM File memory File name overflow File not open File number busy Formal Parameter Format type mismatch Get needs RANDOM New Progrm Load No field format Not Data item Not a NORMAL terminal type Not string item* ON jump out-of-range Operator Abort Open file limit
POP-LOAD wrong tag* Pseudo-PC* Pseudo-stack underflow RETURN no GOSUB Seek < 1 Seek past EOF Stack tag* STORE stack tag mismatch* String overflow String/Network type mismatch Subscript range Swap length SWAP_STR IV item* Tag required popping stack* Type count mismatch* Type for PRINT&WRITE* Type mis: whole Type mismatch
The offset in the pseudo code causing the message appears as ####: on the lower line with the date and time. * Indicates a Bad Error Message (problem in the application program). 4–10
Page 41
Chapter 4 Status Displays
Application Status (Status Display 9)
This display is available for workstation application use. It is under the control of the A-B VBASIC program currently running. It’s contents are set via the STAT device (see I/O supplement for details). Unless changed, the display reads as follows. Figure 4.11 Application Status, Display 9
Application Status
4–11