Manuel d'utilisation / d'entretien du produit SIMATIC TIWAY 1 du fabricant Siemens
Aller à la page of 208
SIMA TIC TIW A Y 1 UNILINK Host Adapter User Manual Order Number: PPX:TIW A Y–8121–2 Manual Assembly Number: 2587871–0045 Second Edition.
UNILINK HOST ADAPTER 1–1 USER MANUAL CHAPTER 1 THE UNILINK HOST ADAPTER 1.1 INTRODUCTION The UNILINK Host Adapter , Figure 1–1 is a second generation host computer interface product that allows a host computer to operate and control secondary devices on a TIW A Y I network.
THE UNILINK HOST ADAPTER UNILINK HOST ADAPTER 1–2 USER MANUAL 1.2 FEA TURES The hardware is composed of the UNILINK Adapter , shown in Figure 1–1, with a plug-in Personality Interface Module (PIM) PPX:500–6224. The PIM, shown in Figure 1–2, contains the software that causes the UNILINK Adapter to operate as the UNILINK Host Adapter .
THE UNILINK HOST ADAPTER UNILINK HOST ADAPTER 1–3 USER MANUAL Host Computer RS–232–C/RS–423A Host Interface (Command Processor) TIW A Y I Interface External Input Point Output Point TIW A Y I .
THE UNILINK HOST ADAPTER UNILINK HOST ADAPTER 1–4 USER MANUAL The features of the UNILINK Host Adapter include: The adapter is noise hardened for factory floor use. There are internal diagnostics tests to check the internal operation when powered-up or reset, and during normal operation.
THE UNILINK HOST ADAPTER UNILINK HOST ADAPTER 1–5 USER MANUAL The adapter is configurable for a variety of applications needs and includes multiple host computer support, allowing several host computers to communicate with the secondary devices on the same T I WAY I network.
THE UNILINK HOST ADAPTER UNILINK HOST ADAPTER 1–6 USER MANUAL The flexibility of the UNILINK Host Adapter also provides for multiple hosts as illustrated in Figure 1–6.
THE UNILINK HOST ADAPTER UNILINK HOST ADAPTER 1–7 USER MANUAL 1.4 TIW A Y I SYSTEM CHARACTERISTICS TIW A Y I is a bus structure Local Area Network (LAN) designed for industrial environments. The TIW A Y I network connects a series of T exas Instruments Programmable Controllers (P/Cs) and other devices to one or more host computers.
THE UNILINK HOST ADAPTER UNILINK HOST ADAPTER 1–8 USER MANUAL W ith appropriate host software, an operator can program, monitor , and control any P/C or other intelligent device on the TIW A Y I network from a single location.
THE UNILINK HOST ADAPTER UNILINK HOST ADAPTER 1–9 USER MANUAL 1.5 INST ALLA TION Instructions for installing the UNILINK Adapter and the UNILINK Host Adapter PIM are given in the UNILINK Adapter Installation and Operation Manual (PPX:TIW A Y–8106).
UNILINK HOST ADAPTER 2–1 USER MANUAL CHAPTER 2 OPERA TION AND APPLICA TION 2.1 INTRODUCTION This chapter provides an introduction to the UNILINK Host Adapter operation and how it can be used in typical applications. Y ou should refer to Chapter 5 for the complete command syntax and to the Glossary for help with any unfamiliar terms.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–2 USER MANUAL Performance and Applications Flexibility Basic HIU Commands Mode Independent Commands Configure Adapter Commands Extended HIU Command.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–3 USER MANUAL Host Computer UNILINK Host Adapter Commands Responses Secondary Secondary Figure 2–3 Host Computer T o UNILINK Host Adapter Communications Commands are checked for errors before they are executed.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–4 USER MANUAL 2.3 FUNCTIONAL ORGANIZA TION AND OPERA TING MODES The UNILINK Host Adapter is organized into two primary functions; the Host Interface Unit (HIU) function and the Network Manager (NM) function.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–5 USER MANUAL HIU Establishes communications Uses memory for: Macro Buffers between the host computer and the secondary devices. (Dynamically allocated) Host–to–Secondary Statistics Figure 2–4 Host Inter face Unit Function Part of the statistics memory area is used for a Secondary Log.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–6 USER MANUAL 2.3.2 Network Manager Function Acting as the network primary , the Network Manager function is responsible for controlling the message traffic on the TIW A Y I network as shown in Figure 2–5.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–7 USER MANUAL The following operational modes include the NM function. However , the MHIU/EHA mode does not provide access to the NM command set.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–8 USER MANUAL 2.3.4 Typical Network Applications Both single and multiple host networks are supported by the UNILINK Host Adapter . Figure 2–7 illustrates a typical single host network which uses an MHIU as the host interface and network manager .
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–9 USER MANUAL Host Com- puter UNILINK UniLink Host Adapter (MHU) Host Com- puter UNILINK UniLink Host Adapter (MHU) Figure 2–8 Typical Multiple H.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–10 USER MANUAL 2.3.5 The Emulate Host Adapter Modes There are two modes available that provide an emulation of the TIW A Y I Host Adapter; the MHIU/EHA and the HIU/EHA. These modes are limited to the base command codes 01 through 08, 20, 21, and FC through FF .
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–1 1 USER MANUAL TIW A Y I Host Software can be used with adapters in a multiple host network. However , you must define an HIU address using the XP AR subroutine and the CONFIGURE HIU command, and you cannot use the POLL command.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–12 USER MANUAL 2.5 SETTING THE OPERA TING MODE Each adapter must be configured for one of the six possible operating modes. The mode is configured with the CONFIGURE ADAPTER command with the exception of the Standalone NM mode, which is chosen by setting Positions 9 and 10 of Dipswitch 1 down.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–13 USER MANUAL operating mode to the value specified. The only operating mode that can not be set with this command is the Standalone Network Manager (SANM), since it can not accept any host computer commands.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–14 USER MANUAL At any time, your applications software can retrieve the current values for these parameters by issuing the REPORT ADAPTER CONFIGURA TION command, code 21.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–15 USER MANUAL 2.5.5 Configuring the Standalone Network Manager The Standalone Network Manager (SANM) mode is configured completely with dipswitch settings. The definition for some of the dipswitch positions is different for this operating mode as shown in Figure 2–12.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–16 USER MANUAL Since the SANM cannot accept any NM commands, Positions 1–7 of Dipswitch 2 define certain Network Manager function options normally configured with the CONFIGURE NETWORK MANAGER command.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–17 USER MANUAL 2.6 SPECIAL NETWORK MANAGER FEA TURES The adapter provides two special features in the MHIU and NM operating modes. First is the redundant media channels with selectable automatic media channel switching.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–18 USER MANUAL offline, and if the secondary is an HIU. The Network Manager normally cycles through the secondary device log and checks to see if there are any outstanding directives or responses.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–19 USER MANUAL If the background monitor detects a secondary that went offline and the auto redundant media feature is active, the Network Manager will attempt to contact the secondary on the alternate channel as described in the Redundant Media section above.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–20 USER MANUAL 2.7 THE HIU AS A SECONDARY The HIU function appears as a special secondary device to the NM function.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–21 USER MANUAL 2.7.2 Primitive 03 Response The Primitive 03 response will be returned as follows. LLLL 03 HH DDDD EEEE FFFF GGGG IIII JJJJ KKKKKKKK.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–22 USER MANUAL 2.8 MODE INDEPENDENT OPERA TIONS The mode independent commands perform hardware and software resets, and external I/O point operations regardless of the operating modes.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–23 USER MANUAL 2.8.2 The Exter nal Input/Output Points The UNILINK Adapter provides a single external input point and a single external output point. These two points operate independently and can be used in a variety of applications like a remote “Adapter Good” indicator .
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–24 USER MANUAL 2.8.2.1 The Exter nal Input Point The input point latches a high level. The option parameter of the REPORT EXTERNAL INPUT ST A TUS command determines when to reset and latch the external input.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–25 USER MANUAL 2.9 BASIC NETWORK OPERA TIONS The simplest network operations, in either a single or multiple host network, are performed using the Base HIU commands, codes 1–8.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–26 USER MANUAL 2.9.2 Sending Data T o And Fr om Secondary Devices After the secondary device is connected, your applications software can send TIW A Y I Primitives to the secondary with the SEND NETWORK DA T A command or the BROADCAST NETWORK DA T A TRANSFER command.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–27 USER MANUAL The BROADCAST NETWORK DA T A TRANSFER command will send the Primitive to all logically connected secondary devices on the network and is provided for backward compatibility with the original TIW A Y I Host Adapter .
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–28 USER MANUAL 02 0002 1 1 00 02 03 01 03 01 0002 1 1 01 03 02 03 02 0002 1 1 01 03 03 Issue Broadcast command Accepted response Poll address #1 Address #1 response Poll address #2 Address #2 response Poll remaining addresses Example 2–1 BROADCAST/POLL Example 2.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–29 USER MANUAL 2.9.4 T aking Secondary Devices Of f-line The DISCONNECT SECONDARIES command performs the opposite function of the CONNECT SECONDARIES command. The secondary devices listed after the command code are logically disconnected and their addresses removed from the secondary log.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–30 USER MANUAL 2.10 EXTENDED NETWORK OPERA TIONS The Extended HIU (EHIU) commands provide several performance improvement benefits through macros and bandwidth adjustments.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–31 USER MANUAL 2.10.1.2 Repetitive and Non-Repetitive Macr os Y ou specify in each macro definition whether the macro should be issued one time or repeated at regular time intervals. Non-repetitive macros are issued once and collect one macro response, functioning much like a direct command.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–32 USER MANUAL 2.10.2 The Parts of a Macr o MACRO HEADER MACRO COMMAND BUFFER MACRO RESPONSE BUFFER Figure 2–14 The Parts of a Macro Each macro is stored in a variable length buffer .
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–33 USER MANUAL The total macro memory requirements can be calculated by summing the memory for each individual macro.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–34 USER MANUAL The UNILINK Host Adapter also supports multiprocessing in host computer applications through the host assigned Source Identification number . This number associates each host task with corresponding macros, preventing one task from interfering with another ’ s resources.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–35 USER MANUAL 2.10.4 Setting Up A Macr o Figure 2–16 flowcharts the steps for setting up macros. Commands for checking available memory are not included in the flowchart, but are described in the sections that follow .
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–36 USER MANUAL 2.10.4.1 Allocate A Sour ce Identification Number Use the ALLOCA TE SOURCE ID command, code 10, to specify a Source Identification number which can range from 1 to 254 (01 to FE hex).
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–37 USER MANUAL If this command is accepted, the UNILINK Host Adapter will echo back this same command string, otherwise the ERROR RESPONSE will be returned. Source Ids can also be used to group network responses, such as the status of each device.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–38 USER MANUAL 2.10.4.3 Define The Macr o Use the DEFINE MACRO command, code 14, to define the macro and the macro options. Figure 2–18 shows the DEFINE MACRO command frame. Macros can connect a secondary , disconnect a secondary , or send a Primitive to a secondary .
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–39 USER MANUAL The third macro type is “send Primitive” which is functionally equivalent to using the SEND NETWORK DA T A command, but is far more flexible.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–40 USER MANUAL MSB LSB Byte ACTIONS (hex) 0 0 0 0 0 0 0 0 = 00 Non-repetitive, must be explicitly enabled, 1 1 0 0 0 0 0 0 = C0 Repetitive, auto en.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–41 USER MANUAL Yo u can request more than one buffer at a time; however , be sure that the total combined length of each buffer response does not exceed the maximum message length, or the ERROR RESPONSE will be returned.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–42 USER MANUAL 2.10.6 Enabling and Disabling Macr os The ENABLE/DISABLE MACRO EXECUTION command explicitly enables and/or disables defined macros for execution.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–43 USER MANUAL 2.10.8 Checking Memory Usage There is a certain amount of housekeeping that your host application programs will need to do for the flexibility provided by macros. Y our programs should apply the following rules.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–44 USER MANUAL UNILINK Host Adapter Macro Response Buf fer #A Macro Response Buf fer #B Secondary #1 Secondary #2 Data Packet Data Packet Figure 2–19 Link Macro Stor e and Forward Operation Both macros must be disabled before the LINK MACRO command will be accepted.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–45 USER MANUAL Once the action macro has successfully completed, the trigger macro behaves as though the link never existed.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–46 USER MANUAL 2.10.10.2 NM Buf fer Allocation These buffers are allocated implicitly with the background monitor function. However , the NM function in an adapter in the MHIU/EHA mode does not support background monitor or multiple hosts.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–47 USER MANUAL 2.10.10.3 Adjusting An HIUs Bandwidth The REPORT NETWORK BANDWIDTH ALLOCA TION command, code 36, returns counters that reflect the relative network activity for a specific HIU. The counters do not reset after reaching their maximum value and must be explicitly reset.
OPERA TION AND APPLICA TION UNILINK HOST ADAPTER 2–48 USER MANUAL 2.10.10.4 Per formance Statistics The REPORT NETWORK MANAGER SECONDAR Y ST A TISTICS and REPORT NETWORK MANAGER NETWORK ST A TISTICS commands are provided as network diagnostic aids for locating bottlenecks or faulty secondaries.
UNILINK HOST ADAPTER 3–1 USER MANUAL CHAPTER 3 CONFIGURING THE HOST COMPUTER POR T 3.1 THE HOST COMPUTER INTERF ACE The UNILINK Host Adapter communicates with a wide range of host computer devices through a serial binary data interface using EIA RS–232–C control signals and EIA RS–423–A drivers as illustrated in Figure 3–1.
CONFIGURING THE HOST COMPUTER PORT UNILINK HOST ADAPTER 3–2 USER MANUAL 3.2 RS–232–C/RS–423–A PHYSICAL INTERF ACE Port 3 on the UNILINK Host Adapter , shown in Figure 3–2, is a serial communications interface which implements a subset of RS–232–C control, data, and timing signals using RS–423–A drivers and receivers.
CONFIGURING THE HOST COMPUTER PORT UNILINK HOST ADAPTER 3–3 USER MANUAL T able 3–1 RS–232–C/RS–423–A “D” Connector Pin Assignment Interchange Circuit Connector Pin No.
CONFIGURING THE HOST COMPUTER PORT UNILINK HOST ADAPTER 3–4 USER MANUAL When the synchronous modem operation is selected, the adapter expects the modem to provide the clocking signals on pins 15 (DB) and 17 (DD).
CONFIGURING THE HOST COMPUTER PORT UNILINK HOST ADAPTER 3–5 USER MANUAL The IBM PC/A T r uses a 9-pin “D” connector for its serial interface port.
CONFIGURING THE HOST COMPUTER PORT UNILINK HOST ADAPTER 3–6 USER MANUAL 3.2.3 Multidr op Host Inter face Cir cuit Y ou can multidrop up to 32 adapters using modems in a multipoint circuit as shown in Figure 3–6. This allows the host computer to control multiple TIW A Y I networks; however , each adapter must use the BDLC protocol.
CONFIGURING THE HOST COMPUTER PORT UNILINK HOST ADAPTER 3–7 USER MANUAL 3.2.4 XON/XOFF Flow Contr ol XON/XOFF flow control is provided at Port 3 to accommodate host computers with small input buffers. This is achieved with the XON and XOFF flow control characters sent from the host computer .
CONFIGURING THE HOST COMPUTER PORT UNILINK HOST ADAPTER 3–8 USER MANUAL 3.3 HOST PORT COMMUNICA TIONS The UNILINK Host Adapter provides a choice of two data link layer protocols for ensuring data integrity through the physical link; the Byte–oriented Data Link Control (BDLC) protocol and the Non–Intelligent T erminal Protocol (NITP).
CONFIGURING THE HOST COMPUTER PORT UNILINK HOST ADAPTER 3–9 USER MANUAL The host computer must wait for the adapter response for the command issued, before another command can be issued. This command/response sequence, illustrated in Figure 3–8, ensures that the response matches the command.
CONFIGURING THE HOST COMPUTER PORT UNILINK HOST ADAPTER 3–10 USER MANUAL The BDLC protocol is a byte–oriented subset of the ANSI X3.66 standard protocol, similar to the ISO standard HDLC protocol. The major features of the BDLC protocol are listed below .
CONFIGURING THE HOST COMPUTER PORT UNILINK HOST ADAPTER 3–1 1 USER MANUAL BDLC Host Command BDLC Host Command RR, “Poll” RR, “Poll” RR, “Message Received” RR, “Message Received” Firs.
CONFIGURING THE HOST COMPUTER PORT UNILINK HOST ADAPTER 3–12 USER MANUAL The host port communication parameters are configured with two 10-position dipswitches located at the front of the adapter as shown in Figure 3–3.
CONFIGURING THE HOST COMPUTER PORT UNILINK HOST ADAPTER 3–13 USER MANUAL Next set the positions on Dipswitch 2 to correspond with the communication parameters set for the host computer . The adapter always communicates with the host computer using seven data bits, one start bit, and one stop bit.
CONFIGURING THE HOST COMPUTER PORT UNILINK HOST ADAPTER 3–14 USER MANUAL Position 9 on Dipswitch 2 is for selecting the adapter ’ s operational mode and will be discussed in more detail in Chapter 2. Position 10 should be down for normal operation.
CONFIGURING THE HOST COMPUTER PORT UNILINK HOST ADAPTER 3–15 USER MANUAL T able 3–3 BDLC Pr otocol Address Dipswitch 1 Positions Address 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 .
CONFIGURING THE HOST COMPUTER PORT UNILINK HOST ADAPTER 3–16 USER MANUAL 3.4 HOST COMMAND TIMEOUT The Host Command T imeout is the user -selectable time period that guarantees a response from the adapter will be returned within that limit.
UNILINK HOST ADAPTER 4–1 USER MANUAL CHAPTER 4 THE TIW A Y I NETWORK POR TS 4.1 NETWORK PORTS The UNILINK Adapter offers a choice of two physical interfaces for network communications; the Local Line or Modem interfaces. The following table lists the model numbers and the type of interfaces in each.
THE TIW A Y I NETWORK PORTS UNILINK HOST AD APTER 4-2 USER MANU AL 4.1.1 Local Line Inter face Port 1 Port 2 Port 3 Port 4 Local Line Interface Ports I/O 12345 Figure 4–1 Local Line Inter face Ports The Local Line interface to TIW A Y I is a female 9-pin “D” connector shown as Ports 1 and 2 in Figure 4–1.
THE TIW A Y I NETWORK PORTS UNILINK HOST ADAPTER 4–3 USER MANUAL The TIW AY I Local Line interface has the advantage of being more economical than the modem interface since the media is shielded twisted pair cable, such as Belden 9860 or Belden 9271.
THE TIW A Y I NETWORK PORTS UNILINK HOST AD APTER 4-4 USER MANU AL 30 25 20 15 10 8 5 4 3 2 1 6 7 10 50 100 250 Cable Unit Loading (Number of Stations) 19.2 k bps 38.4 k bps 57.6 k bps 1 15.2 k bps 1 15.2 k bps or lower Belden 9860 Belden 9271 Cable Distance (1000’s of feet) 20 5 I003648 Figure 4–3 Number of Local Line Secondaries vs.
THE TIW A Y I NETWORK PORTS UNILINK HOST ADAPTER 4–5 USER MANUAL 4.1.2 Modem Inter face A000654 Port 1 Port 2 Port 3 Port 4 AC NEUT AC LINE GND 1 2 3 4 5 I/O Interface Ports Figure 4–4 RS–232–.
THE TIW A Y I NETWORK PORTS UNILINK HOST AD APTER 4-6 USER MANU AL T able 4–3 RS–232–C/RS–423–A “D” Connector Pin Assignment Interchange Circuit Connector Pin No.
THE TIW A Y I NETWORK PORTS UNILINK HOST ADAPTER 4–7 USER MANUAL Y ou also have a choice of using either NRZ or NRZI encoding with the modem interface.
THE TIW A Y I NETWORK PORTS UNILINK HOST AD APTER 4-8 USER MANU AL 4.2 REDUNDANT MEDIA TRANSMISSION Most TIW A Y I conformant devices support a redundant media scheme which provides active access to a device over one of two independent media channels.
THE TIW A Y I NETWORK PORTS UNILINK HOST ADAPTER 4–9 USER MANUAL 4.3 TIW A Y I HDLC NETWORK PROTOCOL The TIW A Y I network uses the HDLC protocol in the unbalanced, normal response mode (UNRM) for transmission of commands and responses. In this mode a single Network Manager (primary) controls the flow of messages between secondary devices.
THE TIW A Y I NETWORK PORTS UNILINK HOST AD APTER 4-10 USER MANU AL 4.4 SETTING THE NETWORK PORTS P ARAMETERS The network ports must be explicitly enabled with the CONFIGURE HIU and CONFIGURE NETWORK MANAGER commands. The syntax for these commands is given in Chapter 5.
THE TIW A Y I NETWORK PORTS UNILINK HOST ADAPTER 4–1 1 USER MANUAL 1 2 3 4567 8 9 1 0 U P DIPSWITCH 1 HOST COMMAND TIW A Y I BA UD RA TE MSB LSB UP = SYNCHRONOUS DOWN = ASYNCHRONOUS UP = FULL DUPLEX.
UNILINK HOST ADAPTER 5–1 USER MANUAL CHAPTER 5 HOST COMMAND SET REFERENCE 5.1 INTRODUCTION This chapter presents the syntax for each command. The command syntax descriptions begin in Paragraph 5.2 and are listed in numerical order (starting at 00 to FE hexadecimal).
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–2 USER MANUAL D All codes and parameters are separated by spaces. D Optional parameters are surrounded by parentheses, like (aa bb). D Parameter sequences that may be repeated are surrounded by brackets, like [aa bb].
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–3 USER MANUAL 5.1.2 Usage Description A usage description is included with each command reference to give an indication of when the command should be used. The meaning of the usage descriptors are CONFIGURA TION This command is used to configure the adapter for operation.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–4 USER MANUAL The cycle at power -up or reset is shown in Figure 5–2. Configuration Initiation Operation Performance T ermination Figure 5–2 Command Usage Cycle 5.1.3 Secondary Addr esses Secondary addresses are one byte in length and range from 1 to 254.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–5 USER MANUAL T able 5–1 Secondary Addresses Decimal Address 0 1–254 255 Hexadecimal Address 00 01–FE FF Usage Reserved for special functions, refer to individual commands. A vailable for secondary device addresses.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–6 USER MANUAL 5.2 ERROR RESPONSE An ERROR RESPONSE, rather than the normal command response, will be returned when the host request is invalid. Response: 00 dddd (aa) Parameters: dddd Error codes. All error codes and corrective actions are given in Chapter 6.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–7 USER MANUAL 5.3 BASE HIU COMMANDS The Base HIU commands are backward compatible with the original commands for the TIW A Y I Host Adapter .
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–8 USER MANUAL 5.3.1 Send Network Data — 01 The SEND NETWORK DA T A command sends a specified host Primitive to a network secondary via the Network Manager .
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–9 USER MANUAL 5.3.2 Br oadcast Network Data T ransfer — 02 The BROADCAST NETWORK DA T A TRANSFER command sends the Primitive data to all online secondary devices. The secondary device log contains only those secondary devices in the network that are online.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–10 USER MANUAL CAUTION Y ou should not issue the BROADCAST NETWORK DA T A TRANSFER command if your network contains Intelligent T ank T ransmitters (ITT s) as secondary devices, or you could lose responses.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–1 1 USER MANUAL 5.3.3 Poll Secondary — 03 The POLL SECONDAR Y command is issued to collect the responses to the broadcast command or a SEND NETWORK DA T A command that timed out in the Network Manager (NM).
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–12 USER MANUAL 5.3.4 Connect Secondaries — 04 The CONNECT SECONDARIES command logically connects one or more secondaries to the network. Each host computer must issue this command for the secondary devices that it will be communicating with.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–13 USER MANUAL 5.3.5 Disconnect Secondaries — 05 The DISCONNECT SECONDARIES command removes the specified secondaries from the secondary log and automatically disables associated macros, setting their MRSWs to the appropriate T ermination Code.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–14 USER MANUAL 5.3.6 Read Secondary Log — 06 The READ SECONDAR Y LOG command returns the list of secondaries that are logically connected to the HIU.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–15 USER MANUAL 5.3.7 Read Secondary Diagnostics — 07 The READ SECONDAR Y DIAGNOSTICS command returns statistics for the specified secondary device. Only counts related to the issuing HIU are returned.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–16 USER MANUAL hhhh This value will always be zero. iiii The number of times the secondary has been initialized as a direct request by the HIU.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–17 USER MANUAL 5.3.8 Read Adapter Diagnostics — 08 The READ ADAPTER DIAGNOSTICS command returns statistics for the entire network related to the issuing HIU.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–18 USER MANUAL jjjj The number of valid RESET ADAPTER commands processed. kkkk The number of polls transmitted to secondaries. llll The number of TIW A Y I HDLC I–Frames transmitted to secondaries.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–19 USER MANUAL 5.4 THE EXTENDED HIU COMMANDS The Extended HIU commands enhance the original TIW A Y I Host Adapter command set by providing improved performance and operation.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–20 USER MANUAL 5.4.1 Allocate Sour ce Id — 10 The ALLOCA TE SOURCE ID command establishes a source identification number that maintains the independence of task resources. This number is the link between the host applications task and the associated macro resources.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–21 USER MANUAL 5.4.2 Configure HIU Command — 11 The CONFIGURE HIU command enables the HIU function/TIW A Y I network interface.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–22 USER MANUAL 0 0 = Asynchronous, 1 = Synchronous 0 = Half Duplex, 1 = Full Duplex 1 0 = NRZ, 1 = NRZI 2 Not Used 3 Baud Rate (Bit 4 is MSB) 4 56 7.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–23 USER MANUAL Option–02 = The maximum allowable delay between the assertion of the RTS signal and the activation of the CTS signal by the network modem. The delay is specified in milliseconds ranging from 0 to 1000 (0000 hex to 03E8 hex) in increments of 1 ms.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–24 USER MANUAL 5.4.3 Report HIU Configuration — 12 The REPORT HIU CONFIGURA TION command reports the values for the HIU options specified with the CONFIGURE HIU command.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–25 USER MANUAL 5.4.4 Allocate Macr o Storage Buf fers — 13 The ALLOCA TE MACRO STORAGE BUFFERS command allocates buffers for macro storage.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–26 USER MANUAL In addition to the bytes specified, 22 bytes will be added for header information. If this total count is an odd number of bytes, one byte will be added to make the count even, so that all macro buffers begin and end on word boundaries.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–27 USER MANUAL 5.4.5 Define Macr o — 14 The DEFINE MACRO command defines or redefines a macro command in the specified macro buffer . Macros must be disabled and unlinked before they can be redefined.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–28 USER MANUAL 02 = Connect Secondary . This macro type performs the CONNECT SECONDARY function for the single secondary device in the background mode. When the connect attempt is complete, the MRSW will be set to 8004 hex and the exception flag will be set.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–29 USER MANUAL oo The macro options byte, which is bit mapped as follows: 0 1 = Automatically Enable For Execution 1 = Repetitive Macro 1 1 = Freeze.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–30 USER MANUAL Bit 2 when set to one enables the freeze feature. This option is only valid for repetitive macros. When an exception is found, the HIU will disable the macro. Bit 3 when set to one will disable the exception flag test on the first macro response.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–31 USER MANUAL 5.4.6 Gather Macr o Response — 15 The GA THER MACRO RESPONSE command returns one or more macro responses to the host computer . Y ou can choose to retrieve the entire macro response buffer data along with the MRSW or just the MRSW .
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–32 USER MANUAL T able 5–3 MRSW V alues MRSW V alues (hex) Description This macro has not been executed since the last time it was The number of times a repetitive macro response has been updated.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–33 USER MANUAL 5.4.7 Enable/Disable Macr o Execution — 16 The ENABLE/DISABLE MACRO EXECUTION command processes a list of macro buffer numbers to either enable or disable the specific macros for execution.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–34 USER MANUAL 05 = the macro buffer specified has not been defined yet. Issue the DEFINE MACRO command and then reissue this request.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–35 USER MANUAL Example: Byte 1, Command Code – ENABLE/ 16 Byte 2, Source Identification Number 0F Bytes 3–4, Enable Buf fer #03 03 Bytes 5–6, .
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–36 USER MANUAL 5.4.8 Initialize Macr o Response Buf fer — 17 The INITIALIZE MACRO RESPONSE BUFFER command sets the MRSW to the value specified. This will cause the exception flag to be set only when the response differs from this defined response.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–37 USER MANUAL 5.4.9 Report Memory Usage — 18 The REPORT MEMOR Y USAGE command returns the number of bytes of memory available for macro storage, the number of unused macro buffers, the number of Source Id numbers remaining of the 32 limit, and a list of the active Source Id numbers.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–38 USER MANUAL 5.4.10 Allocate HIU Bandwidth — 19 The ALLOCA TE HIU BANDWIDTH command allows an adapter configured as an HIU to control how the NM buffers allocated for its use will be used.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–39 USER MANUAL 5.4.11 Report HIU Bandwidth Allocation — 1A The REPORT HIU BANDWIDTH ALLOCA TION command returns the HIU bandwidth allocation defined in the ALLOCA TE HIU BANDWIDTH command.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–40 USER MANUAL 5.4.12 Report HIU Status — 1B The REPORT HIU ST A TUS command returns the status of the HIU and statistics on network performance. The statistics for the HIU are those associated with the Network Manager to HIU communication.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–41 USER MANUAL ffff The number of times the HIU has been issued a SNRM by the Network Manager . gggg The number of times the HIU has been issued a DISC by the Network Manager .
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–42 USER MANUAL 5.4.13 Link Macr o — 1C The LINK MACRO command links two macros together to form an “unconditional store and forward” command sequence that enables host initiated secondary-to-secondary communications.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–43 USER MANUAL will be set, disabling the trigger macro. Once the action macro has successfully completed, the trigger macro behaves as any non-linked macro. If the trigger macro is repetitive or the freeze option detected no change, it will be enabled.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–44 USER MANUAL Macro Linking Procedure 1. Allocate two macro buffers. The trigger response buffer will be at least eight bytes in length for Primitive 20 and at least ten bytes for Primitive A0.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–45 USER MANUAL Define macro 01 as a repetitive send Primitive 20 to read a block of data from secondary 05 — Command: 14 21 01 05 01 50 03E8 0006 .
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–46 USER MANUAL 5.5 ADAPTER CONFIGURA TION COMMANDS The following commands explicitly define the adapter ’ s operating mode and will report the configuration status back to the host computer .
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–47 USER MANUAL 5.5.1 Configur e Adapter — 20 The CONFIGURE ADAPTER command defines the operating mode and specifies the initial configuration parameters for the UNILINK Host Adapter . This command may be issued only once after the adapter is reset or powered up.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–48 USER MANUAL should be unique. HIUs function like other secondary devices and will use one of the available addresses as assigned. Address 00 is only valid for the default for an MHIU and cannot be specified.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–49 USER MANUAL 5.5.2 Report Adapter Configuration — 21 The REPORT ADAPTER CONFIGURA TION command returns the values specified in the CONFIGURE ADAPTER command. All parameters will be returned, even the defaults.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–50 USER MANUAL 5.6 NETWORK MANAGER COMMANDS The Network Manager commands define and operate the Network Manager function of an MHIU or a Network Manager . Additional commands return statistical data as a diagnostic aid.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–51 USER MANUAL 5.6.1 Configur e Network Manager — 30 The CONFIGURE NETWORK MANAGER command configures the network parameters and enables the Network Manager for operation. This command can only be issued once.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–52 USER MANUAL The adapter will automatically recognize which media type is installed. The parameters are bit mapped as shown in T able 5–4 with the baud rate selections given in T able 5–5.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–53 USER MANUAL T able 5–5 Baud Rates 0 0 0 0 0 0 0 0 1 1 00 0 MSB LSB 0 0 0 1 1 1 1 0 0 0 1 1 0 0 1 1 0 0 1 0 1 0 1 0 1 0 1 11 0 150 300 600 1200 2400 4800 9600 19200 38400 Baud Rate 1 1 0 0 1 1 0 1 57600 1 15200 * * * Not available on host port.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–54 USER MANUAL Option–04 = The number of milliseconds to delay transmission over Channel A (Port 1) after the CTS signal becomes active. This parameter is required for transmission over some radio links.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–55 USER MANUAL Option–09 = This parameter defines the number of Network Manager buffers to allocate to an HIU that is brought online after being detected by the background monitor feature.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–56 USER MANUAL Option–0B = This parameter defines the Poll period or the minimum delay between polls for a Primitive response. The delay is used to space out polls after the initial delayed poll specified by the poll delay option.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–57 USER MANUAL 5.6.2 Report Network Manager Configuration — 31 The REPORT NETWORK MANAGER CONFIGURA TION command returns the values for all the options specified in the CONFIGURE NETWORK MANAGER command, including default values.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–58 USER MANUAL 5.6.3 Report Secondary Link Status — 32 The REPORT SECONDAR Y LINK ST A TUS command returns the communications link status and connect status for all secondary device addresses up to the maximum secondary address specified during the adapter configuration.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–59 USER MANUAL 0 1 2 34 56 7 Not used 1 = HIU Allocated NM Buf fers 1 = Secondary Is An HIU 1 = Secondary Has Been Identified 0 = Secondary Has Not .
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–60 USER MANUAL 5.6.4 Switch Channel — 33 The SWITCH CHANNEL command explicitly specifies the channel to be used for communicating with each secondary when redundant media is used. One, several, or all secondaries may be switched to the alternate media channel at any time.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–61 USER MANUAL 5.6.5 Allocate Network Manager Buf fers — 34 The ALLOCA TE NETWORK MANAGER BUFFERS command specifies the number of Network Manager buffers to allocate to a specific HIU when the HIU is brought online.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–62 USER MANUAL 5.6.6 Report Network Manager Buf fers A vailable — 35 The REPORT NETWORK MANAGER BUFFERS A V AILABLE command returns the total number of Network Manager buffers and the number of buffers available for allocation to HIUs.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–63 USER MANUAL 5.6.7 Report Network Bandwidth Allocation — 36 The REPORT NETWORK BANDWIDTH ALLOCA TION command returns the relative amount of network bandwidth being used by a specific HIU. The counters stop incrementing when they reach their maximum value and must be explicitly reset.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–64 USER MANUAL 5.6.8 Report Network Manager Secondary Statistics — 37 The REPORT NETWORK MANAGER SECONDAR Y ST A TISTICS command returns statistical information for a specified secondary device.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–65 USER MANUAL 5.6.9 Report Network Manager Network Statistics — 38 The REPORT NETWORK MANAGER NETWORK ST A TISTICS command returns statistics for the entire network. The statistics reflect the network activity between the Network Manager and all secondary addresses.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–66 USER MANUAL eeee The number of TIW A Y I HDLC errors, including command rejects (FRMR), invalid HDLC responses, and sequence errors. This number may reflect errors logged because a BROADCAST NETWORK DA T A TRANSFER command was issued.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–67 USER MANUAL 5.7 MODE INDEPENDENT COMMANDS The following commands may be issued at any time to a UNILINK Host Adapter configured in any of the operating modes, except the Standalone Network Manager mode.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–68 USER MANUAL 5.7.1 Modify External Output Status — FC The MODIFY EXTERNAL OUTPUT ST A TUS command controls the external output point provided by the UNILINK Adapter . Command: FC cc Response: FC Parameters: cc Output status action: 00 = T urn the output off.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–69 USER MANUAL 5.7.2 Report Exter nal Input Status — FD The REPORT EXTERNAL INPUT ST A TUS command reads the status of the external input point provided by the UNILINK Adapter . Several options are available for reading and resetting the input latch.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–70 USER MANUAL 5.7.3 Soft Reset Command — FE The SOFT RESET COMMAND command forces the UNILINK Host Adapter to execute a software reset. All TIW A Y I communications will be aborted, all macros cleared, and the adapter will branch to the beginning of normal operating routines.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–71 USER MANUAL 5.7.4 Reset Adapter — FF The RESET ADAPTER command forces the UNILINK Host Adapter to execute a hardware reset. The reset will begin within one second after the response has been returned to the host computer .
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–72 USER MANUAL 5.8 COMMAND SYNT AX QUICK REFERENCE ERROR RESPONSE Response: 00 dddd (aa) BASE HIU COMMANDS Send Network Data Command: 01 aa pppp... Response: 01 aa pppp... Broadcast Network Data T ransfer Command: 02 pppp.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–73 USER MANUAL THE EXTENDED HIU COMMANDS Allocate Source Id Command: 10 ss oo Response: 10 ss oo Configure HIU Command Command: 1 1 ([oo vvvv]) Resp.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–74 USER MANUAL Report HIU Bandwidth Allocation Command: 1A (rr) Response: 1A (hh ll nn [iiiiiiii ssssssss rrrrrrrr]) Report HIU Status Command: 1B (rr) Response: 1B (jj kk bbbbbbbb cccccccc dddd eeee ffff gggg hh ii) Link Macro Command: 1C ss b1 b2 oo (vvvv .
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–75 USER MANUAL Report Network Manager Secondary Statistics Command: 37 aa (rr) Response: 37 aa (bbbb cccc dddd eeee ff) Report Network Manager Netwo.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–76 USER MANUAL 5.9 COMMAND CODES REFERENCE (NUMERICAL ORDER) Command Code Description 00 Error Response 01 Send Network Data 02 Broadcast Network Da.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–77 USER MANUAL 5.10 COMMAND CODES REFERENCE (BY FUNCTION) Configuration and Reset Commands 1 1 Configure HIU 12 Report HIU Configuration 20 Configur.
HOST COMMAND SET REFERENCE UNILINK HOST ADAPTER 5–78 USER MANUAL 36 Report Network Bandwidth Allocation 37 Report Network Manager Secondary Statistics 38 Report Network Manager Network Statistics In.
UNILINK HOST ADAPTER 6–1 USER MANUAL CHAPTER 6 ERROR CODES AND DIAGNOSTICS 6.1 ERROR RESPONSE CODES The following lists the possible error codes that will be returned with the ERROR RESPONSE when an error occurs. Macro response errors are listed in Paragraph 6.
ERROR CODES AND DIAGNOSTICS UNILINK HOST ADAPTER 6–2 USER MANUAL 000E An uneven number of bytes was received from the secondary . 0010 Lost Data Carrier Detect (DCD) from the TIW A Y I interface port(s). 001 1 Lost Clear T o Send (CTS) from the TIW A Y I interface port(s).
ERROR CODES AND DIAGNOSTICS UNILINK HOST ADAPTER 6–3 USER MANUAL 008D One of the ASCII characters between the beginning and ending delimiters was not in the NITP character set. V alid NITP characters are the ASCII values 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, and F .
ERROR CODES AND DIAGNOSTICS UNILINK HOST ADAPTER 6–4 USER MANUAL 2009 The device addressed in the command string was not an HIU. 200A There is not enough memory for the number of secondary devices specified with the maximum secondary address parameter .
ERROR CODES AND DIAGNOSTICS UNILINK HOST ADAPTER 6–5 USER MANUAL 2019 The exception flag was set on this macro. 201A T oo much data was requested in the GA THER MACRO RESPONSE command. 201B The action macro is enabled. 201C The action macro Primitive must be either Primitive 30 or Primitive B0.
ERROR CODES AND DIAGNOSTICS UNILINK HOST ADAPTER 6–6 USER MANUAL 6.2 PRIMITIVE ERRORS The HIU function will respond to the 02, 03, and 04 TIW A Y I Primitives, just like Network Interface Modules (NIMs). The following Primitive response errors will be returned to any device sending an invalid Primitive.
ERROR CODES AND DIAGNOSTICS UNILINK HOST ADAPTER 6–7 USER MANUAL 6.3 MRSW TERMINA TION CODES The following lists the Macro Response Status W ord (MRSW) termination codes that will be set when a macro has completed execution either successfully or by an exception.
ERROR CODES AND DIAGNOSTICS UNILINK HOST ADAPTER 6–8 USER MANUAL 8017 This macro is disabled because the host issued a disconnect to its HIU and an exception occurred prior to the disconnect. 8020 The macro response was too large to fit into the buffer .
ERROR CODES AND DIAGNOSTICS UNILINK HOST ADAPTER 6–9 USER MANUAL 6.4 DIAGNOSTIC TESTS The UNILINK Host Adapter provides both selectable and continuous diagnostic tests to insure proper operation. The pattern shown on the six LEDs, shown in Figure 6–1, will indicate whether the adapter is operating normally or if an error has occurred.
ERROR CODES AND DIAGNOSTICS UNILINK HOST ADAPTER 6–10 USER MANUAL 6.4.1 The LEDs Only the Adapter Good LED is visible through the door during normal operation. The Adapter Good LED will remain lit when the adapter is operating properly . The remaining LEDs assume the meanings shown in Figure 6–2 during normal operation.
ERROR CODES AND DIAGNOSTICS UNILINK HOST ADAPTER 6–1 1 USER MANUAL 1 2 3 4567 8 9 1 0 U P UP = TEST MODE DOWN = RUN MODE UP = HIU/EHA–IO LOOP TES DOWN = MHIU/EHA Figure 6–3 T est Mode Dipswitch When Position 10 of Dipswitch 2 is up, the test mode is selected.
ERROR CODES AND DIAGNOSTICS UNILINK HOST ADAPTER 6–12 USER MANUAL 6.4.3 LED Err or Codes Figure 6–4 shows the pattern that can be displayed on the LEDs when you run any of the diagnostic tests. If an error does occur , the Adapter Good LED will flash two times each second and one of the error codes shown below will be displayed.
ERROR CODES AND DIAGNOSTICS UNILINK HOST ADAPTER 6–13 USER MANUAL 6.4.4 External I/O Loopback T est There is a special diagnostic test for the Input/Output Points. This test is active when Positions 9 and 10 of Dipswitch 2 are up. T o run this test, perform the following steps.
UNILINK HOST ADAPTER A–1 USER MANUAL APPENDIX A USING THE NON-INTELLIGENT TERMINAL PROTOCOL A.1 CHARACTERISTICS OF THE NON–INTELLIGENT TERMINAL PROTOCOL The Non-Intelligent T erminal Protocol (NITP) is a simple, character-oriented method of data link communications using standard 7-bit ASCII codes.
USING THE NON-INTELLIGENT TERMINAL PROT OCOL UNILINK HOST AD APTER A-2 USER MANU AL T able A–1 NITP Character Set 30 31 32 33 34 35 36 37 38 39 3A 3B 41 42 43 44 45 46 0 1 2 3 4 5 6 7 8 9 : ; A B C .
USING THE NON-INTELLIGENT TERMINAL PROT OCOL UNILINK HOST ADAPTER A–3 USER MANUAL A.1.2 Message Delimiters A colon ( : ) marks the beginning of a message and a semicolon ( ; ) marks the end of a message.
USING THE NON-INTELLIGENT TERMINAL PROT OCOL UNILINK HOST AD APTER A-4 USER MANU AL A.1.5 Error -Checking Code Following the message body is an ASCII four -character error-checking code (ECC) in the form of a 16-bit hexadecimal number that is included at the end of the message just before the semicolon terminator .
USING THE NON-INTELLIGENT TERMINAL PROT OCOL UNILINK HOST ADAPTER A–5 USER MANUAL Then insert the character count at the beginning of the message body as “00182001000202000E”.
USING THE NON-INTELLIGENT TERMINAL PROT OCOL UNILINK HOST AD APTER A-6 USER MANU AL Figure A–2 illustrates how a TIW A Y I Primitive is enclosed in the adapter command string which is enclosed in the NITP message structure.
USING THE NON-INTELLIGENT TERMINAL PROT OCOL UNILINK HOST ADAPTER A–7 USER MANUAL A.2 NITP Protocol Operation Setting Position 1 of Dipswitch 1 up selects NITP as the communication protocol between the host computer and the adapter .
USING THE NON-INTELLIGENT TERMINAL PROT OCOL UNILINK HOST AD APTER A-8 USER MANU AL A.2.1 Err ors and Err or Recovery The following ERROR RESPONSE codes from Chapter 6 relate to NITP data link errors: 0086 HOST FRAME TOO LONG — the frame exceeded 590 bytes in total length.
USING THE NON-INTELLIGENT TERMINAL PROT OCOL UNILINK HOST ADAPTER A–9 USER MANUAL A.2.2 Response T imeouts The adapter will respond with ERROR RESPONSE 0001 if the network response has not returned within the Host Command T imeout period set on Dipswitch 1.
UNILINK HOST ADAPTER B–1 USER MANUAL APPENDIX B USING THE BDLC PROTOCOL The BDLC protocol is a subset of the ANSI X3.66–1979 Advanced Data Communication Control Procedure (ADCCP). BDLC provides a data link between the host computer and one or more UNILINK Host Adapters.
USING THE BDLC PROTOCOL UNILINK HOST ADAPTER B–2 USER MANUAL B.1 BDLC CONFIGURA TION BDLC is an unbalanced configuration meaning that there is one primary station (the host computer) and one or more secondary stations (UNILINK Host Adapters) as illustrated in Figure B–1.
USING THE BDLC PROTOCOL UNILINK HOST ADAPTER B–3 USER MANUAL B.2 BDLC PROTOCOL FRAME STRUCTURE Information is transferred in single frames without any blocking. Each frame includes the destination address, the BDLC control field, the information, and the block checksum as shown in Figure B–2.
USING THE BDLC PROTOCOL UNILINK HOST ADAPTER B–4 USER MANUAL B.2.2 Address Field The address field is eight bits in length and specifies the address of the UNILINK Host Adapter which is to receive the message. Up to 32 adapters may be multidropped on the same host network as discussed in Paragraph 3.
USING THE BDLC PROTOCOL UNILINK HOST ADAPTER B–5 USER MANUAL B.2.5 Block Checksum Field This two-byte field is the Block Checksum (BCS) calculated by the transmitter and checked by the receiver to detect transmission errors. The calculation is a 16-bit one’ s complement Fletcher Checksum.
USING THE BDLC PROTOCOL UNILINK HOST ADAPTER B–6 USER MANUAL B.3 BDLC PROTOCOL CONTROL FIELD STRUCTURES P/F N(S) 0 N(R) P/F 1 N(R) P/F 1 N 01 2345 67 MSB LSB 0 1 S M I–Frame Format Supervisoty Frame Unnumbered Frame Format Format First bit transmitted Where: N(S) is the transmitting station send sequence number .
USING THE BDLC PROTOCOL UNILINK HOST ADAPTER B–7 USER MANUAL The Unnumbered frame format is used to extend the number of supervisory control functions. Frames transmitted using this format do not increment the sequence counts at either the transmitting or receiving stations.
USING THE BDLC PROTOCOL UNILINK HOST ADAPTER B–8 USER MANUAL B.4 COMMANDS AND RESPONSES The following subset of the ANSI X3.66 standard is supported by the UNILINK Host Adapter: SNRM — The Set.
USING THE BDLC PROTOCOL UNILINK HOST ADAPTER B–9 USER MANUAL D RNR — The Receive Not Ready command is used by the adapter to indicate that its input buffer is full and the host should stop transmitting I-Frames and poll with RRs until the adapter responds with an RR or an I-Frame.
USING THE BDLC PROTOCOL UNILINK HOST ADAPTER B–10 USER MANUAL B.5 ERRORS AND ERROR RECOVERY BDLCs design includes methods for detecting and correcting transmission errors so that message integrity is assured. Methods are provided for busy condition, N(S) and N(R) sequence errors, BCS errors, invalid commands, and timeouts.
USING THE BDLC PROTOCOL UNILINK HOST ADAPTER B–1 1 USER MANUAL B.5.4 BCS Err or When the Block Checksum calculated by the receiver does not match the BCS in the I-Frame, the receiving station completely ignores the message. This is because with an incorrect checksum, there is no guarantee that the address field contains the correct address.
USING THE BDLC PROTOCOL UNILINK HOST ADAPTER B–12 USER MANUAL B.5.7 FRMR Recovery The FRMR response is returned by the adapter when it receives a frame with an invalid command, a frame of excessive length, or when the N(R) does not match.
USING THE BDLC PROTOCOL UNILINK HOST ADAPTER B–13 USER MANUAL B.6 ILLUSTRA TIVE BDLC SEQUENCES Example B–1 illustrates an error -free BDLC sequence between the host computer and the adapter .
USING THE BDLC PROTOCOL UNILINK HOST ADAPTER B–14 USER MANUAL (1) The host computer issues a SNRM to initialize the adapter and the adapter responds with a UA. (2) The host computer then sends an I-Frame. The sequence counts are both zero since the SNRM was issued previously .
USING THE BDLC PROTOCOL UNILINK HOST ADAPTER B–15 USER MANUAL The next example, Example B–2, illustrates errors in sequence counts, invalid commands, and timeouts.
USING THE BDLC PROTOCOL UNILINK HOST ADAPTER B–16 USER MANUAL B.7 BLOCK CHECKSUM GENERA TION AND CHECKING To calculate the BCS: 1. Zero both BCS field bytes. 2. Begin with the address field byte. 3. Add the byte to the most significant BCS byte including any carry bit generated.
USING THE BDLC PROTOCOL UNILINK HOST ADAPTER B–17 USER MANUAL Example B–3 Block Checksum T ransmitter Calculation DLE–STX Address Control Information BCS DLE–ETX 1002 01 93 1003 “SNRM” (Note: All values are in hexadecimal notation.
USING THE BDLC PROTOCOL UNILINK HOST ADAPTER B–18 USER MANUAL The receiver checks the BCS by adding all the received frame bytes excluding the starting and ending flags, and any inserted DLEs. The procedure is: 1. Zero the two calculation registers.
19 Appendices C and D not available in electronic form..
UNILINK HOST ADAPTER E–1 USER MANUAL APPENDIX E CONFIGURA TION WORKSHEET Network Name Location Cable Diagram Reference Adapter Configuration Parameters Adapter Mode MHIU MHIU/EHA NM HIU HIU/EHA SANM.
CONFIGURA TION WORKSHEET UNILINK HOST ADAPTER E–2 USER MANUAL Host Computer Port Parameters Baud Rate 11 0 150 300 600 1200 2400 4800 9600 19,200 38,400 Synchronous Asynchronous Full Duplex Half Dup.
UNILINK HOST ADAPTER F–1 USER MANUAL APPENDIX F MACRO DEFINITIONS FORM T able F–1 is a worksheet for planning macro buffer requirements. The labels at the top match the macro definitions with the particular network and adapter . They are: Network Enter the name used to describe the network with this Name adapter .
MACRO DEFINITIONS FORM UNILINK HOST ADAPTER F–2 USER MANUAL Freeze Check this box if the data causing the exception is to be frozen. No Check this box if the first exception is to be bypassed. Execp. Minimum Enter the time in milliseconds to wait before reissuing a Reissue repetitive macro.
Un point important après l'achat de l'appareil (ou même avant l'achat) est de lire le manuel d'utilisation. Nous devons le faire pour quelques raisons simples:
Si vous n'avez pas encore acheté Siemens SIMATIC TIWAY 1 c'est un bon moment pour vous familiariser avec les données de base sur le produit. Consulter d'abord les pages initiales du manuel d'utilisation, que vous trouverez ci-dessus. Vous devriez y trouver les données techniques les plus importants du Siemens SIMATIC TIWAY 1 - de cette manière, vous pouvez vérifier si l'équipement répond à vos besoins. Explorant les pages suivantes du manuel d'utilisation Siemens SIMATIC TIWAY 1, vous apprendrez toutes les caractéristiques du produit et des informations sur son fonctionnement. Les informations sur le Siemens SIMATIC TIWAY 1 va certainement vous aider à prendre une décision concernant l'achat.
Dans une situation où vous avez déjà le Siemens SIMATIC TIWAY 1, mais vous avez pas encore lu le manuel d'utilisation, vous devez le faire pour les raisons décrites ci-dessus,. Vous saurez alors si vous avez correctement utilisé les fonctions disponibles, et si vous avez commis des erreurs qui peuvent réduire la durée de vie du Siemens SIMATIC TIWAY 1.
Cependant, l'un des rôles les plus importants pour l'utilisateur joués par les manuels d'utilisateur est d'aider à résoudre les problèmes concernant le Siemens SIMATIC TIWAY 1. Presque toujours, vous y trouverez Troubleshooting, soit les pannes et les défaillances les plus fréquentes de l'apparei Siemens SIMATIC TIWAY 1 ainsi que les instructions sur la façon de les résoudre. Même si vous ne parvenez pas à résoudre le problème, le manuel d‘utilisation va vous montrer le chemin d'une nouvelle procédure – le contact avec le centre de service à la clientèle ou le service le plus proche.