The text of a manual · part 10 of 25
Attended Workstations (Catalog Nos. 2708-DH5B2L & -DH5B4L) (Series B) User Manual: 8 - Host Communications
Pages 76 to 84 of 186, from Attended Workstations (Catalog Nos. 2708-DH5B2L & -DH5B4L) (Series B) User Manual
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 76
Chapter
A–B
8
Host Communications Network Status Records
The Master workstation sends notification to the Host of any change of status in the network. Usually these status records indicate that a workstation which used to be communicating with the Master has been disconnected. Status records consist of a 10-character prefix described below. However, all status records carry 00 as the transaction number. The ten character transaction prefix is explained in the following: ccssrrqqtt ccssrrqqtt ccssrrqqtt ccssrrqqtt ccssrrqqtt
Station number of the Concentrator or Master Station (workstation) number Number of retries required to transfer the record Sequence number used internally by the network Transaction number containing the SEND
In addition, a two-letter code follows the prefix. These codes are referred to as Network Diagnostics. The codes are: ON
WORKSTATION ONLINE: the workstation indicated by the Concentrator/ID and workstation number has just been attached to the network. The Host may need to set up a new transaction configuration for this workstation.
OF
WORKSTATION OFFLINE: the workstation indicated by Concentrator/ID and workstation number has ceased to respond to polling. The Master or Submaster reports this problem.
MO
ON-LINE: the workstation indicated has come on line as a Master.
CO
Concentrator ON-LINE: the workstation indicated has come on line as a Concentrator.
SO
Submaster ON-LINE: the workstation indicated has come on line as a Submaster.
DU
DUPLICATE: the Master has detected a station with a duplicate station number attempting to act as a Master. This MUST be corrected before network operation.
AO
Alternate OVERRIDE: this Master has detected another workstation that is operating on the same network that has a smaller station number than this one. This message indicates that this workstation is giving up control and turning itself into an Alternate.
8–1
Page 77
Chapter 8 Host Communications
Network Status Records (cont’d)
NF
NO FORWARD: the addressed station cannot forward the requested information to a sub-network. It is NOT a Concentrator.
ER
ERROR: the transaction command contains some form of error or the workstation has detected an error. The remainder of the record contains text which indicates the contents of the error.
A sampling of network status messages the Host could expect to see as this network comes up would be: Message 0101001100MO 0102000000ON 0103000000ON 0104000000ON 0104000000CO 0105000100ON 0105000000SO 0509000000ON
Description actual Master indicating it is ready backbone workstation 2 online backbone workstation 3 online backbone workstation 4 online workstation 01-04 indicating it is a Concentrator tributary workstation 5 online tributary workstation 5 becomes Submaster tributary workstation 05-09 online
As the number of Concentrators and Submasters in a network increases, more time is required for each of the workstations on the sub-strings to come ONLINE. When installing very large networks with many sub-networks, it is advisable to set up the network with all the workstations in one room, and observe just how long it takes for the last workstations on the sub-networks to come online. When installing very small networks, set the upper and lower polling addresses (in the Main Menu), such that they narrowly window the Concentrators in the network. This will reduce time in bringing workstations online, as the Master will not spend time polling for non-existent workstations. For example, if a Master is connected to only 2 Concentrators, (Concentrators #4 and #5), then set the lower poll address to 3 and the upper poll address to 6.
8–2
Page 78
Chapter 8 Host Communications
Using Retry Counts for Network Diagnosis
The middle pair of numbers in the status records, the retry count, may be used to diagnose improper cabling, or to identify workstations which may be malfunctioning. Normally all retry counts should be 00. If the retry count has a non-zero value, then the record following that prefix had to be sent more than once in order for it to reach the Master. If certain workstations require retries on a frequent basis, then it is recommended that the cabling be checked for these workstations. If one workstation only is registering consistent retries, consider swapping it with another workstation to show if it is cabling or the workstation which is the cause of the problem. If the number of retries shown in prefix becomes much greater as the workstations creating those records are farther from the Master along the network cable, then a faulty or poorly grounded cable is suspect. See the Chapter 2 for information pertaining to cabling, termination and network layouts.
Responses to Network Directives
The network directives are a set of commands which can be sent from the Host to any workstation on the network. All responses are directed to the Host, and take the form: <10-byte prefix> ND <command letter> data where: 10-byte prefix is the prefix attached to all records (as described above)
ND appears in positions 11 and 12, and indicates a Network Diagnostic
<command letter> is a single UPPER case character which identifies the data which follows data the useful portion of the response.
For example, the response to the <T directive (a request for time) might be: 0808001400ND
T
1743077788020506
8–3
Page 79
Chapter 8 Host Communications
Network Directives
Requests may be sent through the network to perform various command functions on the workstation. These requests constitute a valid “poll”. For workstations which are currently using polled mode, any available record will be forwarded to the Host after receipt of one of these network directives. Your Host software must be able to handle any data records which are transmitted during the course of network directives transmissions. The following is a list of the network directives, with a one-line description of what each does. Details on each individual network directive follow the list. These commands are of two principle types: 1. Requests for information 2. Commands The way you can distinguish between these two types is by observing which way the arrow (bracket) points in the command. < is a request for information > is a command The directives which start with a left angle bracket request information from the workstation. <D <E <R <S <T <V shows contents of front panel display shows last language error message shows last RESET error message shows serial number and other status shows date and time as set on workstation shows firmware version and description 10-3:<V
This request is made to workstation 3 attached to master 10. The directive <V asks to return the firmware version and description. Directives preface with a left arrow (<) identifies a request for information. Right arrow directives (>) indicate a command that requires an action. If the colon (:) is replaced by an equal sign (=) then all subsequent transfers will take place on the specified workstation. For example, if 10-3 = is entered, all directives will only act on this workstation until another workstation number is specified.
8–4
Page 80
Chapter 8 Host Communications
Network Directives (cont’d)
The directives which begin with a right angle bracket > direct the workstation to perform a specific action. Note that any data which is sent along with the command must be preceded by a space. >>A >>G >A >C >c >D >E >F >N >R >S >T >Z abort the currently running BASIC program restart an aborted program abort the test invoked by B directive output text to communications port output text to aux communications port output test to unit display erase the current menu password reset the unit to factory defaults Initialize the network reboot the unit save the configuration set date and time zero the reset error and powerfail counters
Several of the network directives are intended for internal use only, as indicated in the detailed descriptions which follow. They have been included here for completeness. < D – Show Unit Display Is used to request what is currently on the display of the workstation addressed. In the example below, it is the status line. Directive: < D Response: 0808001600ND D 8-8 Ready ––Online [M] ? 45 < E – Show Last Error Message Requests the text of the last error message issued from the language interpreter at the workstation addressed. Directive: < E Response: 0808001600ND E ERROR 03 UNKNOWN AT 255.00.00 TIME OF ERROR ... 1742478802056 < R – Show Last Reset Message Request the text of the last ‘reset’ error message. If a recoverable “reset” condition occurs, this message is automatically generated. The < R directive can then be used to see it again.
8–5
Page 81
Chapter 8 Host Communications
Network Directives (cont’d)
Directive: < R Response: 0808001600ND 0808001600ND 0808001600ND 0808001600ND 0808001600ND 0808001600ND
R Reset 30 #1 00005017000000 [1234] PF = 0 @ T1 PC = 32DA SP = 87D4 Regs = 0000 0000 0000 . 338F BC8B 0003 0013 0868 0C9E 6AA5 650F . 83AF 646C 0380 0000 0000 0000 0000 0000 . 0000 0000 0000 0000 0000 0000 FFFF FF00 . FFFF FFF FFFF FFFF FFFF FFFF FFFF FFFF
If a recoverable “reset” condition occurs, this message is automatically generated. The < R command can be used to view it again. In the R line, Reset 30 is the error number, #1 counts the number of resets, the date/time string follows. [1234] is the unit serial number and PF is the power fail count. In the @ line, is the task number, PC is the program counter, or top of stack; SP is the stack counter and the values following represent registers BC, DE and HL. < S – Show Unit Serial Number Requests the workstation to return its current status and serial number. The number appearing between [ ] is the workstation’s serial number. The size of the workstation’s memory is next, followed by the number of reset errors and the number of power failures. Directive: < S Response: 0808001600ND S [1234] 4K RS = 1 PF = 0 < T – Show Workstation Date & Time Requests the workstation to show its date and time. The string format for the message response is the same as that used in the Set Time network directive (> T). Directive: < T Response: 0808001600ND T 174423518802056 < V – Show Firmware Version Asks for the firmware version and description. Directive: < V Response: 0808001600ND V A-B VBASIC ABC
8–6
Page 82
Chapter 8 Host Communications
Network Directives (cont’d)
> > A – Abort Currently Running A-B VBASIC Program Terminates the program which is currently running on the workstation. This will also generate an error message back to the Host which says: “BASIC Error: Operator Abort xxxx: yymmddhhmmss”, where xxxx is the address at which the program was aborted. > > G – Restart an Aborted BASIC Program A program which has been aborted using the > > A network directive can be restarted with this command. The program is restarted at the beginning, and all variables can be assumed to be re-initialized. > A – Abort Test Allows the Host program to terminate the network performance test initiated by the B command (described next). > C – Send Text Out Comm Port Causes the text which follows the command to be sent out the communications port of the destination workstation. If the symbol “&” appears first in the text, no carriage return will be output. Note: Control codes cannot be directly sent, only printable characters. However, a backslash ( \ ) is converted to a carriage return, a grave accent ( ’ ) is converted into an escape, and an up arrow ( ^ ) is converted into a linefeed. Directive: > C text Action: text specified is sent out comm port of destination workstation. > c – Send Text Out Aux Comm Port Same as > C except it uses the aux comm port. > D – Display Text on Front Panel Causes the specified text to appear on the front panel displayof the indicated workstation. If the symbol “&” is the first character of the text, the display is not cleared prior to displaying the text. Directive: > D text Action: text specified is displayed on front panel of workstation. Note: Control codes cannot be directly sent, only printable characters; however a grave accent (’) is converted into an ESC.
8–7
Page 83
Chapter 8 Host Communications
Network Directives (cont’d)
> E – Erase the Menu Password Causes the menu password to be erased on the specified workstation. Directive: > E Action: erases menu password. > F – Reset to Factory Defaults Causes the unit to be reset to the factory defaults. Directive: > F Action: resets specified workstation to factory default settings. Note that the factory default for Terminal Number is 0, which will immediately abort the Host communications protocol currently in use, and will put the terminal into Standalone mode. (You may not be able to continue commanding the workstation.) > N – Initialize Network Gives the Host program the ability to tailor the network for throughput. It contains three required numeric parameters in the range 0 to 255. They affect the network activity only in workstations which are currently serving a network role, i.e., Master, Concentrator or Submaster. The network is initialized after any (or none) of the parameters are reset. These parameters are: 111 the lower polling address uuu the upper polling address + 1 sss the sync count (leave at 0 for Asynchronous communications) The parameters are the same ones which are set by entering the Main Menu at the Keypad of a workstation. When the > N directive is issued, the network polling will perform in the manner specified by setting these parameters. Directive: > N 111 uuu sss Action: initializes network > R – Reboot Unit Causes the specified workstation to be rebooted. Directive: > R Action: reboots the specified workstation
8–8
Page 84
Chapter 8 Host Communications
Network Directives (cont’d)
> T – Set Time Causes the time and date in the destination workstation to be set to the value provided as a parameter. Directive: > T hhmmssnnyymmddw Where:
hh mm ss nn yy mm dd w
= hours = minutes = seconds = 1/100 second = year = month = day # = dayof week
Action: resets time and date in the destination workstation. The entire string is mandatory. You cannot, for example, set only the time and leave the date portion off, or the workstation’s date will be set to zeros. The “w” (day of the week: Sunday – 1) parameter is, however, optional: if ommited or specified in error, the workstation will calculate and set its own day of the week. > Z – Zero Reset Error Used to zero the reset error and powerfail counters on the designated workstation. Intended for internal use only. Directive: > Z Action: resets the error and powerfail counters
8–9