qlc user’s guide - powergenics.com
TRANSCRIPT
QLC User’s Guide
Section Title Page
1-2-3
2-1-2-4-4-4-4
-52-5-52-6-6911133
15-1618
3-1-33-3-8
4-1-2
4812
Section 1. Introduction
1-1. Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-11-2. Contents of this Document . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3. Additional Reference Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Section 2. Hardware and Software Configuration
2-1. Section Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2. QLC Hardware Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2-2.1. Serial Port. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-2.2. SBX Connector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-2.3. LEDs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-2.4. Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-2.5. DIOB Interface (SW1). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-2.6. Processors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2.7. Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2-3. QLC Switch and Jumper Settings. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3.1. DIOB address DIP switch (SW1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-3.2. Configuration DIP switch (SW3). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2-3.3. User-Configurable Jumpers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-
2-4. Optional SBX Daughter Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2-4.1. SCOM Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-12-4.2. Non-Westinghouse SBX Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-
2-5. External Personal Computer Requirements and Cabling (Non-CE Mark Systems) 22-6. QLC Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-
Section 3. QLC Startup and Initialization
3-1. Section Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2. QLC Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3-2.1. Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2.2. Drive Identifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Section 4. QLC Programming and Operation
4-1. Section Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2. QLC Programming Approach. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
4-2.1. Application Programming for the Group 1 QLC. . . . . . . . . . . . . . . . . . . . . 4-4-2.2. Application Programming for the Group 2 QLC. . . . . . . . . . . . . . . . . . . . . 4-
4-3. Application Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-
9/98 i U0-1100Westinghouse Proprietary Class 2C
Table of Contents, Cont’d
Section Title Page
5-1-2-3-55-75-8
-1-2-6
-1-2-4-5-9
29
-1-2
Section 5. File Transfer
5-1. Section Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2. File Transfer Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55-3. Using File Transfer at the QLC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55-4. File Transfer Initiation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55-5. File Transfer Message Received by the DPU. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-6. File Transfer Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Appendix A. Cabling (Non-CE Mark Systems)
A-1. Section Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AA-2. External Personal Computer Cabling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AA-3. SCOM Cabling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A
Appendix B. QLC Programming Examples
B-1. Section Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . BB-2. Example Functions (Group 1 QLC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . BB-3. Function Declarations (QLC.H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . BB-4. Example QLC Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . BB-5. Example Performance Calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . BB-6. Example DPU Application Entries (Group 1 QLC) . . . . . . . . . . . . . . . . . . . . . . . . B-1B-7. Example DPU Application Entries (Group 2 QLC) . . . . . . . . . . . . . . . . . . . . . . . . B-1
Appendix C. QLC in CE Mark Certified Systems
C-1. Section Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CC-2. CE Mark Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C
Glossary
Index
U0-1100 ii 9/98Westinghouse Proprietary Class 2C
9/98 iii U0-1100
Table of Contents, Cont’dList of Figures
Figure Title Page
Westinghouse Proprietary Class 2C
Section 2. Hardware and Software Configuration
2-1. QLC Card Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-22-2. User-Configurable QLC Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-32-3. Example DIOB Address Switch Settings (SW1). . . . . . . . . . . . . . . . . . . . . . . . . . . 2-82-4. Example Configuration Switch Settings (SW3) . . . . . . . . . . . . . . . . . . . . . . . . . . 2-102-5. SCOM Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-14
Section 3. QLC Startup and Initialization
3-1. DPU with QLC and External Personal Computer (Initial Setup) . . . . . . . . . . . . . . 3-23-2. Controls and Indicators Used for QLC Initialization. . . . . . . . . . . . . . . . . . . . . . . . 3-6
Section 4. QLC Programming and Operation
4-1. Example QLC Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-34-2. QLC DIOB Interface (G01) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-44-3. Registers Numbers and Memory Addresses (Group 1 QLC Algorithms). . . . . . . . 4-54-4. Buffer Numbers and Memory Addresses (Group 1 QLC Algorithms) . . . . . . . . . . 4-64-5. QLC DIOB Interface (G02) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-94-6. QAW Data Format. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-104-7. QLC Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-14
Appendix A. Cabling (Non-CE Mark Systems)
A-1. Cable to External Personal Computer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-3
Appendix C. QLC in CE Mark Certified Systems
C-1. Cable to External Personal Computer (CE Mark) . . . . . . . . . . . . . . . . . . . . . . . . . . C-3
Table of Contents, Cont’dList of Tables
Table Title Page
U0-1100 iv 9/98Westinghouse Proprietary Class 2C
Section 1. Introduction
1-1. Reference Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
Section 2. Hardware and Software Configuration
2-1. Hexadecimal to Binary Conversion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-72-2. QLC Jumper Positions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-112-3. External Personal Computer Cable Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-17
Section 3. QLC Startup and Initialization
3-1. Drive Identifiers During EXTPC Use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9
Section 4. QLC Programming and Operation
4-1. User-Accessible I/O. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-15
Section 5. File Transfer
5-1. Error Messages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-8
Appendix A. Cabling (Non-CE Mark Systems)
A-1. Component Specifications for Cable 406A166 . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-4A-2. Component Specifications for Cable 406A167 . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-5A-3. SCOM Pin Designations — Group 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-6A-4. SCOM Pin Designations — Group 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A-7
Appendix C. QLC in CE Mark Certified Systems
C-1. External Personal Computer Cable Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-2C-2. Component Specifications for Cable 5A26123 . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-4C-3. Component Specifications for Cable 5A26124 . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-5
h in
es a
withn
ions:
anduse
te
Section 1. Introduction
1-1. Overview
The Q-Line Serial Link Controller (QLC) card is a single-board computer whicinterfaces to the WDPF Distributed Processing Unit (DPU). The QLC residesthe Q-Line I/O chassis (Q-Crate) and communicates with the DPU processorthrough the Distributed I/O Bus (DIOB).
The QLC processor is similar to an IBM-compatible personal computer and usmodified IBM-PC Basic Input/Output System (BIOS) and the DOS operatingsystem. Because the QLC’s architecture and operating system are compatiblean IBM-compatible personal computer, the QLC can execute programs writteusing commercially available compilers.
Due to its flexible and open design, the QLC can be used for various applicat
• The QLC can serve as a serial link (RS-232 or RS-422) between the DPUan external device, using an SBX daughter board (such as the WestinghoSCOM board).
• The QLC can provide online plant performance calculations.
• Programs designed to execute in an IBM-PC environment can communicawith the DPU and the WDPF system using the QLC.
• The QLC is applicable for use in CE Mark-certified systems. (SeeAppendixC.)
9/98 1-1 U0-1100Westinghouse Proprietary Class 2C
1-2. Contents of this Document
es
Xused.
tion
tond a
listsrd.
1-2. Contents of this Document
This document is organized into the following sections:
• Section1. Introduction provides an overview of the QLC card, and discussthe organization of this manual.
• Section 2. Hardware and Software Configuration describes the user-configurable QLC controls, provides instructions for installing the optional SBdaughter board (SCOM), and describes the correct version of software to be
• Section 3. QLC Startup and Initialization provides procedural instructionsfor initializing the QLC.
• Section 4. QLC Programming and Operationdescribes programmingapproaches for the Group 1 and Group 2 QLC cards and provides applicanotes on QLC use.
• Section 5. File Transfer discusses the file transfer program, which is usedtransfer files between an Engineer Station (Classic, PCH, or WEStation) aQLC card over the WDPF Highway.
• Appendix A. Cabling (Non-CE Mark Systems)describes the cable used toconnect the QLC to the external personal computer, provides component for cable assembly, and gives the Westinghouse pinouts for the SCOM ca
• Appendix B. QLC Programming Examplesprovides example QLCapplication programs (written in C language), as well as typical DPUapplication entries.
• Appendix C. QLC in CE Mark Certified Systemsdiscusses cable andcomponent specifications for QLCs used in CE Mark Certified systems.
U0-1100 1-2 9/98Westinghouse Proprietary Class 2C
1-3. Additional Reference Documentation
ing
ord
I
1-3. Additional Reference Documentation
Table1-1 lists additional reference documentation that may be helpful while usthis document.
Table 1-1. Reference Documents
DocumentNumber Title Description
M0-0053 Q-Line Installation Manual Provides information on the DIOB addressjumpers used on most Q-Line cards.
U0-0106 Standard Control Algorithms Provides detailed descriptions of QLCalgorithms.
U0-0131 Record Types User’s Guide Discusses WDPF process points and recfields.
U0-0135 Distributed Processing Unit(DPU) Introduction andConfigurations
Introduces the Distributed Processing Unit(DPU).
U0-0136 MAC Utilities User’s Guide Provides general information on DPUapplication programming, includingprocedures to add text algorithms to anapplication.
U0-0281 Engineer Station SupportUtilities
Describes the DPFCOPY support utility.
U0-2400 Introduction to PCH User’sGuide
Describes the WDPF Personal Computer onthe Westnet II Data Highway (PCH).
U0-2480 “Introduction to the ISA-PCHUser’s Guide”
Introduces the PCH platform that uses the IGhighway connections.
U0-8201 WEStation Support Utilities forClassic Drops
Discusses the utilities that provide anenvironment in which to configure andmaintain Classic drops from a WEStationEngineer Station.
9/98 1-3 U0-1100Westinghouse Proprietary Class 2C
reThe
Section 2. Hardware and SoftwareConfiguration
2-1. Section Overview
Prior to initializing and using the QLC, the user must verify that the QLC hardwahas been properly configured and the correct version of software is being used.following topics are included in this section:
• QLC hardware overview (Section 2-2).
• QLC switch and jumper settings (Section 2-3).
• Optional SBX daughter board (Section 2-4).
• External personal computer requirements (Section 2-5).
• QLC software (Section 2-6).
7/99 2-1 U0-1100Westinghouse Proprietary Class 2C
2-2. QLC Hardware Overview
2-2. QLC Hardware Overview
The components of the QLC card (Westinghouse part number 4256A01) areillustrated inFigure 2-1 andFigure 2-2.
Section 2-2.1 throughSection 2-2.7 provide an overview of the QLC hardwarerequirements and components.
Figure 2-1. QLC Card Components
Card EdgeConnector (DIOB)
DIOB Address Switch (SW1)
Group 2 DIOBAddress Range Jumpers
EPROM(BIOS)
SBX Connector
Serial Port(To ExternalPersonal Computer)
ConfigurationSwitch (SW3)
Reset Switch (SW2)
Status LEDs
Power OK LED (LE1)
(JS10 and JS16)
(LE2 - LE9)
U0-1100 2-2 7/99Westinghouse Proprietary Class 2C
2-2. QLC Hardware Overview
Figure 2-2. User-Configurable QLC Controls
JS8JS9JS10JS14JS15JS16
1 2 3
1 2 3
SW3
JS10
JS16
OP
EN
1 2 3 4 5 6 7
JS1
SW1
3 2 1
12
34
56
(Not User-Configurable)
7/99 2-3 U0-1100Westinghouse Proprietary Class 2C
2-2. QLC Hardware Overview
RT
to an
2-2.1. Serial Port
A serial port (as shown inFigure 2-1) consisting of a 9-pin male D-connector islocated on the top of the QLC’s front edge. This serial port is used forcommunication with an external personal computer (used for keyboard input, Cdisplay, and file transfer functions).
2-2.2. SBX Connector
A connector (as shown inFigure 2-1) is provided for an optional SBX daughterboard, such as the Westinghouse SCOM board (seeSection2-4). The SCOM SBXdaughter board provides an RS-232 or RS-422 serial port which can be linkedexternal device. The SCOM serial port emulates the IBM-PC COM1 port.
2-2.3. LEDs
The following LEDs (as show inFigure 2-1) are provided on the QLC board:
• Power OK LED (LE1).
• Status LEDs (LE2 - LE9).
2-2.4. Controls
The following user-configurable controls (as shown inFigure2-2) are provided onthe QLC board:
• DIOB address DIP switch (SW1).
• Configuration DIP switch (SW3).
• Group DIOB Address Range jumpers (JS10 and JS16).
Section 2-3 discusses these controls in more detail.
U0-1100 2-4 7/99Westinghouse Proprietary Class 2C
2-2. QLC Hardware Overview
ctor
PUne
LCcial
etheM.
hasetelyuld
data
ated
isk.
2-2.5. DIOB Interface (SW1)
The QLC incorporates a standard DIOB interface. A single card-edge conne(P1) is used to connect the QLC to the Q-Crate backplane, providing the QLCinterface to the DIOB, as well as 13V DC power.
The QLC contains 2,048 words of dual port static RAM which is dedicated to Dcommunications. This static RAM maps to the QLC CPU memory (through oport) and to the DIOB interface (through the other port).
Two versions (or “groups”) of the QLC card are available. The Group 1 (G01) Qallows access to any of the 2,048 locations within the dedicated RAM, using speDPU algorithms. The Group 2 (G02) QLC can be programmed to emulate thDIOB interface of various Q-Line I/O cards. Depending on the configuration ofGroup 2 QLC, access is allowed to the first 8 or 16 words of the dedicated RA
2-2.6. Processors
The QLC is based on an 80C186 Central Processing Unit (CPU). The 80C186the same base architecture as the 8088 CPU used in IBM-PCs, and is complobject-code compatible with the 8088. However, the following differences shobe noted:
• The 80C186 has an external 16-bit data bus, where the 8088 has an 8-bitbus.
• The 80C186 incorporates a number of peripheral functions (which are locon peripheral ICs for the 8088).
• The 8088 BIOS does not support Flash Memory.
For these reasons, the IBM-PC BIOS was modified for use with the 80C186.
2-2.7. Memory
The QLC incorporates memory used for various purposes:
• 64 Kbytes EPROM containing the modified BIOS.
• 1 Mbyte DRAM including a 360-Kbyte RAM disk.
• 384 Kbytes CMOS flash (non-volatile) memory used to back up the RAM d
• 2 K X 16 dual port static RAM for DPU communications.
7/99 2-5 U0-1100Westinghouse Proprietary Class 2C
2-3. QLC Switch and Jumper Settings
on
ine I/
ation
valid
or8H,ses
g on
se
2-3. QLC Switch and Jumper Settings
The following switch and jumper settings should be verified prior to initializatiof the QLC:
• DIOB address DIP switch (SW1) (Section 2-3.1).
• Configuration DIP switch (SW3) (Section 2-3.2).
• DIOB Address Range jumpers (JS10 and JS16) for Group 2 QLC only(Section 2-3.3).
2-3.1. DIOB address DIP switch (SW1)
SW1 is a 7-position DIP switch (shown inFigure2-2) used to set the QLC’s DIOBaddress. Its use is equivalent to the DIOB address jumpers used on most Q-LO cards, as described in “Q-Line InstallationManual”(M0-0053). The DIP switchis provided because the QLC does not use the card-edge or half-shell terminconnectors (which contain the address jumpers).
Each DIOB address is a hexadecimal number in the range 08 through FB. Theaddresses depend on which group of the QLC is in use:
• The Group 1 QLC card uses two consecutive DIOB addresses. The first (“base”) address must end with an even hexadecimal digit (x0H, x2H, x4H, xxAH, xCH, or xEH, where x = any hexadecimal digit). For example, addres52H-53H could be assigned to the QLC G01 but 53H-54H could not.
• The Group 2 QLC card uses 8 or 16 consecutive DIOB addresses dependinthe settings of jumpers JS10 and JS16 (described inSection 2-3.3). When 8addresses are assigned to the QLC, the base address must end with ahexadecimal 0 or 8. When 16 addresses are assigned to the QLC, the baaddress must end with a hexadecimal 0.
Note
Do not use addresses 0 through 6 for Q-Line cards.
U0-1100 2-6 7/99Westinghouse Proprietary Class 2C
2-3. QLC Switch and Jumper Settings
ed).
To set the DIOB address switches, determine the binary equivalent of thehexadecimal base address (seeTable 2-1).
Because the base address is always an even hexadecimal number, the leastsignificant bit (bit 0) will always equal 0 (no switch setting is required). Theremaining bits (bits 1-7) determine the SW1 switch settings (0 = open, 1 = clos
Example
The binary equivalents for hexadecimal values52H and53H are shown below:
Table 2-1. Hexadecimal to Binary Conversion
Hexadecimal Digit Binary Equivalent Hexadecimal Digit Binary Equivalent
0 0000 8 1000
1 0001 9 1001
2 0010 A 1010
3 0011 B 1011
4 0100 C 1100
5 0101 D 1101
6 0110 E 1110
7 0111 F 1111
Bits76543210
52H = 01010010
53H = 01010011
← For even hexadecimal numbers, bit 0 = 0
← For odd hexadecimal numbers, bit 0 = 1
Set corresponding SW1 switch positions
Disregard bit 0
7/99 2-7 U0-1100Westinghouse Proprietary Class 2C
2-3. QLC Switch and Jumper Settings
atress
flict
For each bit that equals 1, the corresponding switch is closed. For each bit thequals 0, the corresponding switch is open. The switch settings for base add52H are illustrated inFigure 2-3.
Note
For a Group 2 QLC which uses 8 addresses, SW1switches 1 and 2 will always be open. For a Group 2QLC which uses 16 addresses, SW1 switches 1, 2,and 3 will always be open.
When assigning the QLC address, verify that the selected address will not conwith addresses required by or assigned to other Q-Line cards. For additionalinformation on Q-Line addressing, see “Q-Line Installation Manual” (M0-0053).
Figure 2-3. Example DIOB Address Switch Settings (SW1)
0 1 0 1 0 0 1 0
52HTop ofQLC Board
Bit 0 Always = 0(No SwitchRequired)
7 6 5 4 3 2 1
(Switch Number = Bit Number)
Open = Off = Logic 0(Towards Q-Crate Backplane)
Note: Switch Markings May Vary
U0-1100 2-8 7/99Westinghouse Proprietary Class 2C
2-3. QLC Switch and Jumper Settings
ce
2-3.2. Configuration DIP switch (SW3)
SW3 is a 6-position DIP switch (shown inFigure 2-2) used to define several QLCconfiguration parameters:
• QLC boot from external disk or from flash memory
— To boot up the QLC from the external personal computer disk (forinitialization), place SW3 switch 6 in the closed (on) position.
— To boot up the QLC from flash memory (for stand-alone operation), plaSW3 switch 6 in the open (off) position.
— Place SW3 switch 5 in the open (off) position.
• Baud rate for communication with external personal computer
— To select the baud rate, set SW3 switches 3 and 4 as shown below:
Baud rate Switch 3 Switch 4
1200 Closed (On) Closed (On)
2400 Closed (On) Open (Off)
9600 Open (Off) Closed (On)
19200 Open (Off) Open (Off)
Example
Figure 2-4 illustrates example settings for switch SW3:
• QLC configured to boot from external personal computer disk.
• Baud rate = 9600.
Note
SW3 switches 1 and 2 are not used for QLCconfiguration. Switch 2 may be defined by the userapplication.
7/99 2-9 U0-1100Westinghouse Proprietary Class 2C
2-3. QLC Switch and Jumper Settings
Figure 2-4. Example Configuration Switch Settings (SW3)
O N1
2
3
4
5
6 Switch 6 On/Closed = Boot from External Disk(For initialization)
Switch 5 Off
Switch 4 On/ClosedAnd Switch 3Off/Open = 9600 Baud
Switch 2 = Spare
Switch 1 = Not Connected
SW3
Top of QLC Board
On = Closed = Towards Board EdgeOff = Open = Away from Board Edge
Note: Switch Markings May Vary
U0-1100 2-10 7/99Westinghouse Proprietary Class 2C
2-3. QLC Switch and Jumper Settings
p 2
e 1-2
e 2-3
2-3.3. User-Configurable Jumpers
In addition to setting the applicable SW3 configuration switches (for the GrouQLC only), jumpers JS10 and JS16 (as shown inFigure2-2) are used to determinethe number of DIOB addresses (8 or 16) to be occupied by the QLC.
• To use 8 consecutive DIOB addresses, install jumpers JS10 and JS16 in thposition.
• To use 16 consecutive DIOB addresses, install jumpers JS10 and JS16 in thposition.
Caution
All other jumpers should remain in the factory-shipped position, as shown inTable 2-2.
Table 2-2. QLC Jumper Positions
Jumper
Jumper Setting(s)
QLC G01 QLC G02
JS1 2-3 2-3
JS2 1-2 1-2
JS3 1-2 1-2
JS4 (No jumper installed) (No jumper installed)
JS5 2-3 2-3
JS6 2-3 2-3
JS7 2-3 2-3
JS8 1-2 2-3
JS9 1-2 2-3
JS10 1-2 User-configurable:1-2 = 8 DIOB Addresses2-3 = 16 DIOB Addresses
JS11 1-2 2-3
JS12 1-2 2-3
JS13 1-2 2-3
JS14 1-2 2-3
7/99 2-11 U0-1100Westinghouse Proprietary Class 2C
2-3. QLC Switch and Jumper Settings
JS15 1-2 2-3
JS16 1-2 User-configurable:1-2 = 8 DIOB Addresses2-3 = 16 DIOB Addresses
Table 2-2. QLC Jumper Positions (Cont’d)
Jumper
Jumper Setting(s)
QLC G01 QLC G02
U0-1100 2-12 7/99Westinghouse Proprietary Class 2C
2-4. Optional SBX Daughter Board
SBXport.
BX
If afor
riorded
inhe
2-4. Optional SBX Daughter Board
If the QLC is to be used as a serial interface to an external device, the optionaldaughter board provides a serial port which emulates the IBM-PC COM1 serial
The SCOM is an optically isolated serial port SBX board (Westinghouse partnumber 4256A06) designed for this purpose. The upper portion of the QLC Sconnector (pins 37 through 44) provides isolated 5V power to the SCOM.
The following instructions and illustrations are applicable to the SCOM board.different SBX board is to be used, refer to the manufacturer’s documentation additional information.
2-4.1. SCOM Installation
Use the following procedure to install an SCOM board onto a QLC card:
1. A nylon spacer is used with the SCOM to provide support for the board. Pto installing the SCOM, attach the spacer to the QLC using one of the provimounting screws, as shown inFigure 2-5.
2. The SCOM board is mounted with its serial port (J1) at the top, as shownFigure2-5. To install the SCOM board, align the SCOM P1 connector with tQLC J1 connector, and press into place.
3. Connect the second mounting screw to secure the SCOM board.
7/99 2-13 U0-1100Westinghouse Proprietary Class 2C
2-4. Optional SBX Daughter Board
Figure 2-5. SCOM Installation
SCOM SerialPort (Top)
QLC SerialPort (Top)
Two (2) Mounting Screwsand Spacer Usedwith SCOM
U0-1100 2-14 7/99Westinghouse Proprietary Class 2C
2-4. Optional SBX Daughter Board
ing
-bit
-pin
2-4.2. Non-Westinghouse SBX Board
Non-Westinghouse SBX boards may be used, providing they meet the followrequirements:
• Any non-Westinghouse SBX board to be used with the QLC must have an 8data interface (16-bit data interface is not supported).
Note
When a non-Westinghouse SBX board is used, theuser is responsible for ensuring that the mechanicaland signal interfaces of the SBX board meet theserequirements. The SCOM pinouts are provided inAppendix A.
• Any non-Westinghouse SBX board to be used with the QLC must use a 36connector (to connect to the lower portion of the QLC SBX connector).
Caution
If a non-Westinghouse SBX board with a 44-pinconnector is attached to the QLC, damage to theSBX board is likely to result.
7/99 2-15 U0-1100Westinghouse Proprietary Class 2C
2-5. External Personal Computer Requirements and Cabling (Non-CE Mark Systems)
yle
eor
er’s
ale.
ale
r (asotport.
2-5. External Personal Computer Requirements andCabling (Non-CE Mark Systems)
The external personal computer (used for initialization of the QLC) may be anIBM-PC, PC-XT, PC-AT, PS/2, or personal computer which is 100% compatibwith the DOS operating system (version 3.1, 3.2, 3.3, 5.0). At a minimum, thexternal personal computer must be equipped with a floppy disk drive (5-1/4 3-1/2 inch) and COM1 port.
Note
It is recommended that the external personalcomputer use the same version of PC-DOS that isloaded into the QLC.
The QLC card’s serial port (J2) is connected to the external personal computserial port (COM1 or COM2) using one of the following cables:
• Westinghouse Part Number 406A166 (to connect the QLC serial port 9-pin mD connector to a25-pin male D connector at the external personal computer)
• Westinghouse Part Number 406A167 (to connect the QLC serial port 9-pin mD connector to a9-pin male D connector at the external personal computer).
Both of these cables are available in several lengths, identified by group numbeshown inTable 2-3). For example, part number 406A166G03 identifies a 4-focable used to connect the QLC serial port to a 25-pin personal computer serial
SeeAppendix C for information on cables used in CE Mark systems.
U0-1100 2-16 7/99Westinghouse Proprietary Class 2C
2-5. External Personal Computer Requirements and Cabling (Non-CE Mark Systems)
tions
These cables may also be constructed by the user, as described inAppendix A.When constructing cables, the user must ensure that Westinghouse specificaare followed.Table 2-3. External Personal Computer Cable Numbers
Cable Group Length Cable Group Length
406A166 G01 3 feet 406A167 G01 3 feet
406A166 G03 4 feet 406A167 G03 4 feet
406A166 G05 5 feet 406A167 G05 5 feet
406A166 G07 6 feet 406A167 G07 6 feet
406A166 G11 8 feet 406A167 G11 8 feet
406A166 G13 10 feet 406A167 G13 10 feet
406A166 G15 12 feet 406A167 G15 12 feet
406A166 G18 15 feet 406A167 G18 15 feet
406A166 G21 20 feet 406A167 G21 20 feet
406A166 G23 24 feet 406A167 G23 24 feet
406A166 G26 30 feet 406A167 G26 30 feet
406A166 G27 35 feet 406A167 G27 35 feet
406A166 G28 40 feet 406A167 G28 40 feet
406A166 G29 45 feet 406A167 G29 45 feet
406A166 G30 50 feet 406A167 G30 50 feet
7/99 2-17 U0-1100Westinghouse Proprietary Class 2C
2-6. QLC Software
C,sk.ry.
ter:
uterLC.
2-6. QLC Software
As noted previously, the QLC BIOS is provided on EPROM. To operate the QLthe user must load PC-DOS (version 3.1, 3.2, 3.3, or 5.0) to the QLC’s RAM diOnce the RAM disk is loaded, it should be saved to flash (non-volatile) memo
Note
PC-DOS is recommended for use on the QLC. If anyother version of DOS is used, the user is responsiblefor ensuring that it is 100% compatible with PC-DOS.
The following programs are provided for use on the external personal compu
• EXTPC allows the QLC to receive commands from the external personalcomputer keyboard, and to write information to the external personal compCRT. This program must be used initially to load DOS (and files) to the Q
• BAKFLASH backs up the QLC’s RAM disk to flash (non-volatile) memory.
Note
The QLC’s RAM disk must be copied to flashmemory prior to resetting the card, rebooting, orcycling power. Otherwise, all data will be lost andthe QLC must be re-initialized.
Software installation is described inSection 3.
U0-1100 2-18 7/99Westinghouse Proprietary Class 2C
Section 3. QLC Startup and Initialization
3-1. Section Overview
This section describes the initialization of the QLC card.
Section 3-2 provides step-by-step procedures for initializing the QLC card.
9/98 3-1 U0-1100Westinghouse Proprietary Class 2C
Figure 3-1. DPU with QLC and External Personal Computer (Initial Setup)
MultibusChassis
J2 Connector
ExternalPersonalComputer
QLCQ-Crates
COM1 or COM2Connector
DistributedProcessingUnit (DPU)
U0-1100 3-2 9/98Westinghouse Proprietary Class 2C
3-2. QLC Initialization
d toMrd/r’sonal
stand-
kM
k.
used
y
3-2. QLC Initialization
The QLC must be initialized from an external personal computer, which is useformat the QLC RAM disk, load DOS, and copy any other desired files to the RAdisk. To perform the initial programming (or any later action requiring keyboaCRT I/O), a serial port on the QLC is linked to the external personal computeCOM1 or COM2 port. In this configuration, code generated on the external perscomputer can be loaded into the QLC (seeFigure3-1). Once the QLC is initialized,the external personal computer can be removed, and the QLC operates as aalone IBM-compatible microcomputer.
Note
After initialization, the RAM must be backed up tonon-volatile memory.
Two programs are provided for use in QLC initialization. EXTPC is used to linthe QLC to the external personal computer. BAKFLASH is used to copy the RAdisk to flash memory.
3-2.1. Procedure
It is recommended that all QLC file operations be performed from a floppy disUse the following procedure to accomplish this.
Note
The QLC card is designed to be compatible with anyversion of DOS. Versions 3.1 through 5.0 have beentested successfully with this procedure.
To initialize the QLC, use the following steps:
1. Determine the default disk drive on the external personal computer, to befor QLC communication.
Note
While communicating with the QLC, only one diskdrive on the personal computer will be accessible.All desired files must be on that drive.
2. Place diskPQL1xx (where xx = revision level) into the desired drive, or copfilesEXTPC.EXE andBAKFLASH.EXE to the desired drive. Verify that theselected drive is a system (DOS) disk.
9/98 3-3 U0-1100Westinghouse Proprietary Class 2C
3-2. QLC Initialization
and
d
3. Place the QLC in an available Q-Crate slot.
Note
If using default naming in the DPU application, referto “Q-Line Installation Manual” (M0-0053) forinformation on slot and address usage.
4. Connect the cable from the QLC (J2 connector) to the personal computer(COM1 or COM2). (SeeSection2 for additional information on the cable to beused.)
5. Confirm that the proper cable is connected between the QLC’s serial portthe PC’s serial port (described inSection 2).
6. Format a floppy disk as a DOS bootable floppy by doing the following:
Place the disk into a floppy drive at the PC and type the following comman(assuming the disk is in driveA: ):
C:\>FORMAT A: /S
7. Copy the following programs and files to the floppy disk:
— FORMAT.COM program
— BAKFLASH.EXE program
— EXTPC.EXE program
— Any applicable QLC executable programs
— AUTOEXEC.BAT file (required for automatic startup of the QLCapplication)
— Any applicable configuration files
8. Set the following SW3 switches on the QLC card to communicate with theexternal PC and to boot from the external disk:
• Set switch 3off and switch 4on for 9600 baud.
• Set switch 3off and switch 4off for 19200 baud.
• Set switch 6on to enable the QLC to boot from the external disk.
U0-1100 3-4 9/98Westinghouse Proprietary Class 2C
3-2. QLC Initialization
e
to
e
.
9. Place the formatted floppy into the disk drive, and set that floppy drive as thdefault disk by typing the following command (assuming the disk is in driveA: ):
C:\>A:
10. Run EXTPC using the command line syntax shown below (refer toTable 3-1for drive identifiers):
EXTPC [port] [baud]
where:
port = COM1 or COM2 (default = COM1)
baud = 1200, 2400, 9600, or 19200 (default = 9600)
For example, the following command line specifies that the QLC is linked COM1 and that the baud rate is 2400:
A:\>EXTPC COM1 2400
If the port and baud rate are not specified, the default values will apply(port = COM1, baud = 9600).
11. Press theReset button on the QLC card. This will cause the QLC to initializitself and then to load DOS from the floppy disk.
After DOS is loaded, the following will occur:
• The screen on the PC will display theA:\> prompt.
• DOS is executing on the QLC card.
• The external floppy disk is known asA: .
• The internal disk on the QLC card is known asB: .
Figure 3-2 illustrates the controls and indicators used for QLC initialization
9/98 3-5 U0-1100Westinghouse Proprietary Class 2C
3-2. QLC Initialization
12. When power is applied, the QLC board will perform a set of self-testdiagnostics. Observe the following indications:
Figure 3-2. Controls and Indicators Used for QLC Initialization
LE1
LE2
LE3
LE4
LE5
LE6
LE7
LE8
LE9
Board Reset
SW2
SW3
LE1 Should Be LitWhen Power is On
Press to Reset
To Boot from ExternalDisk, SW3 Switch 6Must be On/Closed(Toward Board Edge).
PWR
U0-1100 3-6 9/98Westinghouse Proprietary Class 2C
3-2. QLC Initialization
all
to
toal
E1
tion
he
’s
— Each of the set of eight LEDs (LE2 - LE9) will be individually lit and thenturned off in sequence starting with LE2. When this test is completed,LEDs (except LE1) should be off.
— The 640 Kbytes of user RAM will be tested. The amount tested will bedisplayed on the external personal computer (if connected). If the testencounters an error, LE2 will be lit and an error message will be writtenthe external personal computer (if connected).
— The QLC will now enter its bootstrap routine. If the QLC is configuredboot from the external disk, and it cannot communicate with the externpersonal computer, LE3 will be lit. If this occurs, check the cabling.
If no errors occur, when the QLC has completed its start-up routine, only L(Power OK) will be lit.
13. If the QLC card has not been initialized, format theB: disk as a system disk byentering the following command:
A:\>FORMAT B: /S
14. Copy any programs and files necessary for the operation of the QLC applicato the QLC disk (B:). These may include the following:
— Any applicable QLC executable programs.
— BAKFLASH.EXE program (if desired, and if there is sufficient space on tQLC’s internal disk B:).
— Any applicable configuration files.
— AUTOEXEC.BAT file (typically required in a QLC application). Do notplace this file on the QLC card until the application has been tested.
15. Enter the following command to save the current configuration of the QLCinternal disk:
A:\>BAKFLASH
Caution
It is extremely important to run the BAKFLASHprogram at this time. If this is not done, then thedata on the QLC internal disk will be lost.
16. At this time, set switch 6 of SW3 on the QLC card to theoff position.
This tells the QLC to read DOS from the internal disk. Reboot the QLC.
9/98 3-7 U0-1100Westinghouse Proprietary Class 2C
3-2. QLC Initialization
Cith
iblehe
well
M
After initial configuration of the QLC card, it is still recommended that the QLcard be operated from a floppy disk. This will avoid any potential problems wthe hard disk drive.
17. Once DOS is loaded to the RAM disk, the QLC operates as an IBM-compatpersonal computer. Executable files which are copied to (or created on) tRAM disk can be executed by entering the program name.
18. To exit the EXTPC program at the external personal computer, pressControl-Break .
For general information on the recommended QLC programming approach, asas application notes which may be helpful in programming the QLC, refer toSection 4. For additional information on IBM-PC programming, refer to theapplicable IBM and DOS documentation.
3-2.2. Drive Identifiers
Refer toTable 3-1 to determine the applicable drive identifiers for the QLC RAdisk and the default disk on the external personal computer.
Caution
Depending on the external drive selected, the driveidentifier may be changed during EXTPC use.
For example, if EXTPC is run from the floppydrive normally identified as B:, the drive will beidentified as A: during EXTPC use.
To avoid confusion, run EXTPC from drive A: ordrive C:.
Table 3-1. Drive Identifiers During EXTPC Use
Normal DOS identifier ofdefault drive
EXPTC identifier for QLCRAM disk
EXTPC identifier forexternal (default) drive
A: B: A:
B: B: A:
U0-1100 3-8 9/98Westinghouse Proprietary Class 2C
3-2. QLC Initialization
s
C: A: C:
D: A: C:
The default drive is defined as the current drive when EXTPC is invoked. For example, if EXTPC ilocated in A: and run from A:, the default drive is A:. If EXTPC is located in A: and run from C:, thedefault drive is C:. Only the default drive will be available while EXTPC is in use.
Table 3-1. Drive Identifiers During EXTPC Use
Normal DOS identifier ofdefault drive
EXPTC identifier for QLCRAM disk
EXTPC identifier forexternal (default) drive
9/98 3-9 U0-1100Westinghouse Proprietary Class 2C
to
ed
Section 4. QLC Programming andOperation
4-1. Section Overview
Due to the QLC’s open design and the variety of possible applications,programming of the QLC is highly application dependent. However, in order design an effective QLC application, the user must be aware of how the QLCcommunicates through the DIOB. The DIOB interface is different for the twoversions of the QLC (Group 1 and Group 2). For this reason, the recommendprogramming approach depends on the QLC group.
This section provides the following information:
• Programming approaches for Group 1 and Group 2 QLCs (Section 4-2).
• General application notes (Section 4-3).
Appendix B provides examples of QLC application programs written in Clanguage, as well as sample DPU application entries.
9/98 4-1 U0-1100Westinghouse Proprietary Class 2C
4-2. QLC Programming Approach
’salso
OM
matB).
PF
ingice
4-2. QLC Programming Approach
In a typical QLC application, information is sent from a field device to the QLCSBX port to be transferred to the DPU. Data or commands from the DPU maybe obtained by the QLC and transmitted to the field device.
To implement a QLC application, the following general steps are required:
• Define the format of the data to be received (or transmitted) through the SC(SBX) serial port.
• Create a QLC application program to convert the data to an appropriate forand place it in DIOB-accessible RAM (or read data placed in RAM by the DIO
• Create the DPU application program to place the DIOB information into WDprocess points (or write point data to the DIOB).
Figure 4-1 illustrates the information flow between a field device and a DPU, usthe QLC interface. In this example, data is transmitted to the QLC from a field devin RS-232 format. This data is made available to the DPU through the DIOB.
U0-1100 4-2 9/98Westinghouse Proprietary Class 2C
4-2. QLC Programming Approach
up 2n of
The details of the programming approach depend on whether a Group 1 or GroQLC is to be used. An overview of the programming approach for each versiothe QLC is provided inSection 4-2.1 andSection 4-2.2.
Figure 4-1. Example QLC Application
DPUProcessor
QLC/SCOMDIOB
DPU application must includerequired process points andcontrol algorithms.
Field DeviceRS-232 link
QLC application program mustperform the following functions:
• Convert RS-232 data to applicableformat for DIOB.
• Write data to static RAM forDIOB access.
9/98 4-3 U0-1100Westinghouse Proprietary Class 2C
4-2. QLC Programming Approach
s
for
4-2.1. Application Programming for the Group 1 QLC
When using the Group 1 QLC, the entire range of dual port RAM addresses(A0000H - A3FFFH) are available to the DIOB. Special DPU control algorithmreference this memory as holding registers or buffers.
When planning and implementing a Group 1 QLC application, the followingreference documents should be available:
• For detailed descriptions of the QLC algorithms, see“Control Algorithms”(U0-0106).
• For information on WDPF point record types and fields, see “Record TypesUser’s Guide” (U0-0131).
• For general information on DPU application programming, includingprocedures to add text algorithms to an application, see “MAC ApplicationUtilities User’s Guide” (U0-0136).
Figure4-2 illustrates the interface between the DIOB and the QLC static RAMQLC G01.
Figure 4-2. QLC DIOB Interface (G01)
QLC algorithmspecifies RAMlocation reference
Second DIOBaddress holds data
RAM location
Data
DIOB Addresses
•••
QLC RAM
0
1
2
2045
2046
2047
U0-1100 4-4 9/98Westinghouse Proprietary Class 2C
4-2. QLC Programming Approach
ryry
The QLC algorithms reference locations in QLC memory in one of two ways:
• As a series of 16-bit registers.
• As a series of 256-word circular buffers (for ASCII data only).
Figure 4-3 illustrates the correlation between the register numbers and memoaddresses.Figure 4-4 illustrates the correlation between the buffers and memoaddresses.
Figure 4-3. Registers Numbers and Memory Addresses (Group 1 QLC Algorithms)
RegisterNumber
Corresponding QLCMemory Address
A0000H
A0002H
A0FFCH
A0FFEH
•
•
•
Register range = 0 through2047
Each register numberreferences a 16-bit word
0
1
2046
2047
•
•
•
A0004H2
A0006H3 Range of memoryaddresses = A0000Hthrough A0FFFH
Each addressreferences an 8-bit byte
9/98 4-5 U0-1100Westinghouse Proprietary Class 2C
4-2. QLC Programming Approach
ofM,
eger,
ofM,eger,
ofM,ister
ofM,ister
a
h
The following text algorithms are provided for Group 1 QLC applications:
• QLCAIN reads up to 16 analog point values from a QLC (or redundant pairQLCs). The values are read from consecutive registers in the QLC static RAstarting at a user-specified register. The data format may be specified as intreal (Intel floating point format), or real with status word (AS record field).
• QLCAOUT writes up to 16 analog point values to a QLC (or redundant pairQLCs). The values are written to consecutive registers in the QLC static RAstarting at a user-specified register. The data format may be specified as intreal (Intel floating point format), or real with status word (AS record field).
• QLCDIN reads up to 16 digital point values from a QLC (or redundant pairQLCs). The values are read from consecutive registers in the QLC static RAstarting at a user-specified register. Each digital point occupies one data reg(equivalent to the DS record field).
• QLCDOUT writes up to 16 digital point values to a QLC (or redundant pairQLCs). The values are written to consecutive registers in the QLC static RAstarting at a user-specified register. Each digital point occupies one data reg(equivalent to the DS record field).
• QLCGPIN reads 16 packed group point values (or holding registers) fromQLC (or redundant pair of QLCs). The values are read from consecutiveregisters in the QLC static RAM, starting at a user-specified register. Eacpacked group or holding register value occupies one data register.
Figure 4-4. Buffer Numbers and Memory Addresses (Group 1 QLC Algorithms)
BaseRegister
Corresponding QLCMemory Address
A0000H
A0200H
A0C00H
A0800H
A0A00H
A0C00H
0
1
7
4
5
6
A0400H2
A0600H3 First 6 words of eachbuffer are reserved(each buffer can holdup to 500 bytes of data.
BufferNumber
0
256
1792
1024
1280
1536
512
768
U0-1100 4-6 9/98Westinghouse Proprietary Class 2C
4-2. QLC Programming Approach
a
h
r-II
II
(ores
ionell as
.
he must
• QLCGPOUT writes 16 packed group point values (or holding registers) toQLC (or redundant pair of QLCs). The values are written to consecutiveregisters in the QLC static RAM, starting at a user-specified register. Eacpacked group or holding register value occupies one data register.
• QLCRX reads ASCII characters from a QLC. The data is read from a useselected area within the QLC static RAM, defined as a circular buffer for ASCoperations. The user may specify the length of the ASCII message to bereceived, or define an end-of-message character.
• QLCTX writes ASCII characters to a QLC. The data is written to a user-selected area within the QLC static RAM, defined as a circular buffer for ASCoperations. The user may specify the length of the ASCII message to betransmitted or define an end-of-message character.
• QLCSTAT reads hardware and user application status values from a QLCredundant pair of QLCs). The hardware status information returned includthe watchdog timer status and configuration switch settings. The applicatstatus values can be used to specify a drop fault code and parameters, as wauxiliary information required by the specific application.
• QLCCMD sends a reset command to a QLC (or redundant pair of QLCs)
The QLC application program must be designed to convert data to and from tformats used by the QLC algorithms, as necessary. In addition, the programread and write data to the appropriate locations within the QLC static RAM(corresponding to the registers/buffers specified by the QLC algorithms).
9/98 4-7 U0-1100Westinghouse Proprietary Class 2C
4-2. QLC Programming Approach
ort
re
the
4-2.2. Application Programming for the Group 2 QLC
The Group 2 QLC is designed to operate with older DPUs (which do not suppthe special QLC algorithms) by emulating Q-Line input and output cards.
When using the Group 2 QLC, only the first 8 or 16 dual port RAM locations aavailable to the DIOB (depending on the JS10 and JS16 jumper settings, asdescribed inSection 2). The data at these locations can be accessed throughstandard DPU scan routines.
When planning and implementing a Group 2 QLC application, the followingreference documents should be available:
• For information on Q-card data formats, see“Q-Line Installation Manual”(M0-0053).
• For information on WDPF point record types and fields, see “Record TypesUser’s Guide” (U0-0131).
• For general information on DPU application programming, includingprocedures to add points to the database, see “MACApplicationUtilities User’sGuide” (U0-0136).
U0-1100 4-8 9/98Westinghouse Proprietary Class 2C
4-2. QLC Programming Approach
for
ramnt to bypret
Figure4-5 illustrates the interface between the DIOB and the QLC static RAMQLC G02.
The Group 2 QLC can be used for input or output of analog or digital points,depending on the type of Q-card which is emulated. The QLC application progmust use the correct data formats for the emulated cards. That is, the input sethe DIOB must follow the expected pattern in order to be correctly interpretedthe DPU scan routine. Similarly, the application program must be able to interthe data output from the DIOB.
Note
The Group 2 QLC is not recommended for transferof ASCII data to the DIOB.
Figure 4-5. QLC DIOB Interface (G02)
Points in DPU database mustspecify hardware addressoffset (HW field)corresponding to requiredmemory location
•••
QLC RAM
•••
DIOB Addresses
A0000H
A0002H
A0004H
A001AH
A001CH
A001EH
Base
Base + 1
Base + 2
Base + D
Base + E
Base + F
Depending on the Group 2 QLC hardwareconfiguration, either eight (A0000H - A000EH) orsixteen (A0000H - A001EH) memory locations canbe accessed.
9/98 4-9 U0-1100Westinghouse Proprietary Class 2C
4-2. QLC Programming Approach
:
alndd
at fortion
Although any Q-card can be emulated, the following types are recommended
• QAW (analog input)
• QAO (analog output)
• QBI (digital input)
• QBO (digital output)
For both the QAW and QAO, the lower 12 bits of the data word represent a renumber (Intel floating point) value. The QAW uses the upper 4 bits for sign aerror flags, as shown inFigure4-6. For the QBI and QBO, each bit of the data worrepresents a digital value.
If emulating any other card type, the user must determine the required data formthe emulated card, and ensure that the format is followed precisely. For informaon the Q-card data formats, refer to “Q-Line Installation Manual” (M0-0053).
Figure 4-6. QAW Data Format
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Hardware error flag (1 = OK, 0 = error)
Overrange bit (1 = overrange, for positive count only
Sign bit (1 = negative, 0 = positive)
Calibration error flag (1 = OK, 0 = error
MSB Data LSB
U0-1100 4-10 9/98Westinghouse Proprietary Class 2C
4-2. QLC Programming Approach
into
the
the
ilable
To access the Group 2 QLC using the DPU scan routines, enter point recordsthe DPU database, using the following guidelines:
• Enter the appropriate point record type (AI for analog input, AL for analogoutput, DI for digital input, or DL for digital output).
• Assign the appropriate card type (CD field) for the card to be emulated.
• Determine the hardware address offset (HW field) based on the QLC RAMlocation to be accessed.
• Assign conversion coefficients (using the CV and CI fields) as required byapplication.
• Other required and optional record fields should be initialized as required byapplication.
There is a one-to-one correspondence between the DIOB addresses and avamemory locations for the Group 2 QLC, as shown below:
The QLC application program must use the correct static RAM locations,corresponding to the hardware address assigned to each point.
DIOB Address QLC Memory Location
Base A0000H
Base + 1 A0002H
Base + 2 A0004H
Base + 3 A0006H
Base + 4 A0008H
Base + 5 A000AH
Base + 6 A000CH
Base + 7 A000EH
Base + 8 A0010H
Base + 9 A0012H
Base + A A0014H
Base + B A0016H
Base + C A0018H
Base + D A001AH
Base + E A001CH
Base + F A001EH
Available forall Group 2 QLCs
Available forGroup 2 QLCswhich are configuredto use 16 addresses
9/98 4-11 U0-1100Westinghouse Proprietary Class 2C
4-3. Application Notes
n
the
can
;
lyin
nal
er,
CRT
4-3. Application Notes
The following application notes may be helpful in planning the QLC applicatioand in programming the QLC.
Note
These application notes apply to both groups of theQLC, except where specifically noted.
1. Typically, the programs to be run in the QLC will be specified in theAUTOEXEC.BAT file. As in any other IBM-compatible microcomputer,AUTOEXEC.BAT will be executed automatically when the QLC is reset orpowered-up.
2. When defining an AUTOEXEC.BAT file (to run an application in a QLCwithout a connected external personal computer), it may be useful to includecommand BREAK=ON. This will allow the user to connect an externalpersonal computer, start the EXTPC program, and useControl-C to interruptthe program running in the QLC.
3. When the QLC is linked to the external personal computer, a QLC rebootbe performed by pressingCtrl-Shift-Delete (at the personal computerkeyboard). If the left-handShift key is used, a warm reboot will be performeda cold reboot will be performed if the right-handShift key is used.
4. DOS DEBUG can be used (as on an IBM-PC); however, it will not correctdisplay 80C186 extended instructions. Microsoft CODEVIEW may be usedsequential mode only and must be invoked with the /D option. For additioinformation, refer to the applicable manufacturer’s documentation.
5. For any application which will require CRT output or keyboard input, theexternal personal computer may be left in place after initialization. Howevthe graphics capability is extremely limited.
Once the external personal computer is removed, programs which requireoutput or keyboard input should not be run on the QLC.
U0-1100 4-12 9/98Westinghouse Proprietary Class 2C
4-3. Application Notes
ny
ther
use
ort
.
tus of9),sre
tion,
U
ualt by
d.ns,
6. Video display capability is only supported through the BIOS. Do not use asoftware that reads or writes directly to the video memory.
7. Due to differences between the QLC and IBM-PC hardware, due not usesoftware that attempts to program timers, the interrupt controller, or any oprocessor peripherals.
8. Figure 4-7 provides a memory map for the 80C186 processor. Note thefollowing points:
— The 640 Kbytes DRAM (addresses 00000H - 9FFFFH) are available forby the DOS operating system and DOS application programs.
— For purposes of communication with the DPU, store data in the dual pRAM. The available RAM addresses depend on the group of QLC, asdescribed inSection 4-2.1 andSection 4-2.2.
— The remaining memory addresses are reserved for Westinghouse use
9. Specific I/O addresses are available to the user application to read the stathe configuration switches (SW3), write to the eight status LEDs (LE2 - LEand read or write to the SBX serial port.Table 4-1 describes the I/O addressewhich may be accessed by the user application. All other I/O addresses areserved for Westinghouse use.
10. The QLC incorporates a watchdog timer which can be used by the applicaif desired. The timer will time-out after 160 msec, unless the applicationprogram writes any byte value to I/O address 0900H.
11. When using the Group 1 QLC, the watchdog status is available to the DPthrough the QLCSTAT algorithm. If the watchdog timer feature is notimplemented in the user’s application, the applicable status bit will always eq0. If a QLC watchdog time-out is detected, the Group 1 QLC can be resethe DPU using the QLCCMD algorithm. (Refer to“Standard ControlAlgorithms” (U0-0106) for additional information on the QLCSTAT andQLCCMD algorithms.)
12. After the QLC is reset, the DIOB registers (dual port RAM) are uninitializeThe application program in the QLC should initialize these memory locatioas necessary.
9/98 4-13 U0-1100Westinghouse Proprietary Class 2C
4-3. Application Notes
Figure 4-7. QLC Memory Map
StartingAddress
EndingAddress
640 KBYTESDRAM
DUAL PORT RAM
FLASH MEMORYWINDOW
DRAM WINDOW
RESERVED
NOT USED
RESERVED
9FFFFH
A3FFFH
A7FFFH
ABFFFH
AFFFFH
EFFFFH
FFFFFH
9FFFFH
A3FFFH
A7FFFH
ABFFFH
AFFFFH
DIOB access
00000H
WESTINGHOUSEUSE ONLY
U0-1100 4-14 9/98Westinghouse Proprietary Class 2C
4-3. Application Notes
Table 4-1. User-Accessible I/O
Description Address Width Bit Definitions
LED Status Register(Write only)
0980H 8 bits Bit 0 = LE2 (0 = lit, 1 = not lit)
Bit 1 = LE3 (0 = lit, 1 = not lit)
Note
LE2 and LE3 are used by the BIOSduring QLC start-up, but may alsobe defined by the user application.
Bit 2 = LE4 (0 = lit, 1 = not lit)
Bit 3 = LE5 (0 = lit, 1 = not lit)
Bit 4 = LE6 (0 = lit, 1 = not lit)
Bit 5 = LE7 (0 = lit, 1 = not lit)
Bit 6 = LE8 (0 = lit, 1 = not lit)
Bit 7 = LE9 (0 = lit, 1 = not lit)
Board Status Register(Read only)
0A00H 8 bits Bit 0 = Configuration switch 6(0 = closed = boot from external,1 = open = boot from flash memory
Bit 1 = Configuration switch 5(SW5 should be open = 1)
Bit 2 = Configuration switch 4(0 = closed, 1 = open)
Bit 3 = Configuration switch 3(0 = closed, 1 = open)
Note
Configuration switches 3 and 4 areused to define the baud rate for thecommunication with externalpersonal computer, as described inSection 2.
Bit 4 = Configuration switch 2(0 = closed, 1 = open)
Bit 5 = Flash memory type(0 = QLC standard, 1 = non-standard)
9/98 4-15 U0-1100Westinghouse Proprietary Class 2C
4-3. Application Notes
Board Status Register(Cont’d)
Bit 6 = SBX daughter board(0 = SBX board installed,1 = no SBX board installed)
Bit 7 = DRAM parity(0 = no parity error,1 = parity error)
SBX COM1 Serial Port 03F8H - 03FFH 8 bits Compatible with IBM-PC COM1 adapter(applicable only if SCOM card present)
Watchdog Timer Reset(Write only)
0900H 8 bits Data does not matter (see ApplicationNote 10).
Notes
1. The term “configuration switch” refers to DIP switch SW3.
2. When using the Group 1 QLC, status values equivalent to theboard status register bits (with the exception of bit 5) are availableto the DPU through the QLCSTAT algorithm. For details, refer to“Standard Control Algorithms” (U0-0106).
Table 4-1. User-Accessible I/O (Cont’d)
Description Address Width Bit Definitions
U0-1100 4-16 9/98Westinghouse Proprietary Class 2C
esrd
Section 5. File Transfer
5-1. Section Overview
This section discusses the File Transfer program, which is used to transfer filbetween aMaster Station (Engineer Station, PCH, or WEStation.) and a QLC caover the WDPF Highway.
The following topics are included in this section:
• File transfer overview (Section 5-2).
• Using file transfer at the QLC (Section 5-3).
• File transfer initiation (Section 5-4).
• File transfer message received by the DPU (Section 5-5).
• File transfer error messages (Section 5-6).
9/98 5-1 U0-1100Westinghouse Proprietary Class 2C
5-2. File Transfer Overview
ince
be
ass
’sver
tion
als,
5-2. File Transfer Overview
The QLC card is similar to an IBM-compatible personal computer and uses amodified IBM PC Basic Input/Output System and the DOS operating system. Sthe QLC’s architecture and operating system are compatible with an IBM-compatible personal computer, the QLC can execute programs written usingcommercially available compilers.
In order to communicate with a QLC over the WDPF Highway, the DPU mustused as an interface. For filedownloads, the file data is sent from a Master Stationover the highway to the DPU that contains the QLC card. The DPU will then pthe file to the QLC through the QLC’s DIOB dual-port registers.
For fileuploads, file data is passed from the QLC to the DPU through the QLCDIOB dual-port registers. The DPU will then send the file to the Master Station othe highway.
The program provides the following advantages:
• The ability to remotely access files on a QLC without having to connect anexternal personal computer to the QLC.
• The ability to copy files to/from the QLC without having to interrupt anapplication program at the QLC.
• The ability to use a standard Master Station to perform the entire upload/download of files to the QLC using the DPFCOPY application program.DPFCOPY is used to perform a highway file transfer between an Master Staand an HSR, SIU, TCU, or another Master Station.
For more information on the DPFCOPY program, see one of the following manudepending on the platform being used:
• “Engineer Station Support Utilities” (U0-0281) — Classic.
• “WEStation Support Utilities for Classic Drops” (U0-8201) — WEStation.
• “ Introduction to PCH User’s Guide” (U0-2400) — PCH.
• “Introduction to the ISA-PCH User’s Guide” (U0-2480) — PCH.
U0-1100 5-2 9/98Westinghouse Proprietary Class 2C
5-3. Using File Transfer at the QLC
ust
r/
ility.
5-3. Using File Transfer at the QLC
In order for the File Transfer program to be used, the following modifications mbe made to a QLC application:
• Reserve registers 1920 through 2047 of the dual port RAM for file transfeGPM capability.
• Link modulexf010a.obj into the application.
• Include the modulexf010a.h into the main application.
• Include a periodic call to the routinecheck_file_xfer in the main loop of theapplication.
There are two methods that may be used to implement the file transfer capabThese methods are discussed below.
Method 1
Using Method 1, downloaded files will be lost on QLC reset.
: /* main application include files */:#include “xf010a.h” /* file transfer include file */:void main(.........){ : /* main application initialization */ : while (1) /* main application loop */ { : : check_file_xfer(); /* check for file transfer */ }}
9/98 5-3 U0-1100Westinghouse Proprietary Class 2C
5-3. Using File Transfer at the QLC
Method 2
Using Method 2, downloaded files willnot be lost on QLC reset.
: /* main application include files */:#include <process.h> /* needed for spawn function */:#include “xf010a.h” /* file transfer include file */:void main (.........){ : /* main application initialization */ : while (1) /* main application loop */ { : :
if (check_file_xfer()==END_DOWNLOAD) /* check for file xfer */ {
file_xfer_ptr->cmd = DO_BAKFLASH; /* disable incoming filexfer */ spawnlp (P_WAIT, “bakflash.exe”,”bakflash”,NULL) ; /* dobakflash */
file_xfer_ptr->cmd = 0; /* re-enable incoming filexfer */ /* Note: bakflash.exe must be on QLC hard disk */ } }}
U0-1100 5-4 9/98Westinghouse Proprietary Class 2C
5-4. File Transfer Initiation
PY
data.
ion.t the
)
5-4. File Transfer Initiation
WDPF Highway file transfers are initiated at a Master Station using the DPFCOapplication program. See the appropriate user’s guide for more information onDPFCOPY according to the platform being used (Classic, PCH, or WEStation).
The DPFCOPY program performs the following functions:
• Interprets a command line entered by the user.
• Verifies that parameters entered by the user are valid.
• Reports any invalid parameters.
• Establishes a link with a slave drop.
• Sends and receives file data to/from the slave drop.
• Reports any errors that have occurred during the upload or download of file
• Terminates link with the slave drop.
• Reports successful file transfers to the user.
Example
The following is an example of using DPFCOPY at the Classic Engineer StatFor a file transfer to the QLC card, DPFCOPY must be invoked by the user aClassic Engineer Station with the following command line:
DPFCOPY <direction> <master-file> <slave-file> <slave-drop> <qlc-addrs>
Note
DPFCOPY is located in the\WDPF\SHC\BINdirectory on the PCH.
<direction> = UP (upload file from QLC to Engineer Station)DOWN (download file to QLC from Engineer Station
<master-file> = Name of the file at the Engineer Station
<slave-file> = Name of the file at the QLC
<slave-drop> = Drop number of the DPU where QLC resides
<qlc-addrs> = Hardware address of the QLC
9/98 5-5 U0-1100Westinghouse Proprietary Class 2C
5-4. File Transfer Initiation
ishisir
tosion
ueng
theC.
Hardware Address
The<qlc-addrs>parameter was added so that the DPU would be able to distinguwhich QLC was to upload or download a file. The DPU must know which QLCto download or upload a file. The DPU distinguishes between its QLCs by thehardware addresses.
The<qlc-addrs>parameter is required only when downloading/uploading a filethe QLC. The user must have the latest version of the DPFCOPY program (ver1A or above), as released in level 7.2, to enter the<qlc-addrs> parameter on thecommand line.
The<qlc-addrs> is read from the command line as either a 4-digit decimal valor a 3-digit + trailing hexadecimal value. Valid QLC addresses lie in the followiranges:
— Decimal value: 2 through 1022
— Hexadecimal value: 2H through 3FEH
For file downloads, the QLC file name will be the file to create or overwrite at QLC. For file uploads, the QLC file name will be the file to upload from the QL
U0-1100 5-6 9/98Westinghouse Proprietary Class 2C
5-5. File Transfer Message Received by the DPU
willrmine
Us.
user
f fileea
rol
at any
5-5. File Transfer Message Received by the DPU
When the DPU receives the file transfer message from the Engineer Station, itinterpret the message as a file transfer message. The DPU will check to deteif any of the following are true:
• A TCU or QLC file transfer is already in progress.
• The DPU is not in online mode.
• The QLC address specified by the user is not valid with the number of MB
• The QLC is currently processing a GPM message request.
• The QLC at the specified address is not responding.
If any of the above conditions are true, an error message will be displayed to theat the Engineer Station, and the file transfer will be aborted.
Upon receipt of a file transfer message, the DPU must prepare for the transfer odata by establishing a 10K byte receive/transmit buffer. A portion of Control Ar4 will be used for this buffer.
It must be noted that to implement the file transfer capability, only 48K of ContArea 4 will be available for loops, ladders, and text algorithms.
This means that the user must re-translate the source code of the DPU so thcontrol that was placed in Area 4 will not be overwritten during a file transfer.
9/98 5-7 U0-1100Westinghouse Proprietary Class 2C
5-6. File Transfer Error Messages
e
.
m
he
ce.
5-6. File Transfer Error Messages
The following error messages may be displayed at the Engineer Station by thDPFCOPY program.
Table 5-1. Error Messages
Error Cause
During File Transfer Invocation
Device is already attached. DPU is currently processing a previous filetransfer.
Device specified not ready. DPU is not in online mode.
QLC address not valid with number of MBUs
QLC currently processing a GPM.
QLC not responding to the request.
During File Uploads
File does not exist. File name cannot be opened for reading frothe QLC disk.
I/O error. Bad file read operation occurred at the QLC.
During File Downloads
Insufficient memory available. File name cannot be opened for writing to tQLC disk.
No space left on disk. Size of file exceeded the remaining disk spa
U0-1100 5-8 9/98Westinghouse Proprietary Class 2C
alare
Appendix A. Cabling (Non-CE MarkSystems)
A-1. Section Overview
This appendix discusses cabling to connect the QLC serial port to the personcomputer and for connecting the SCOM card to the QLC. The following topicsprovided:
• External personal computer cabling (Section A-2).
• SCOM cabling (Section A-3).
9/98 A-1 U0-1100Westinghouse Proprietary Class 2C
A-2. External Personal Computer Cabling
erial
aler)
ale)
,
A-2. External Personal Computer Cabling
The QLC card’s serial port is connected to the external personal computer’s sport using one of the following cables:
• Westinghouse Part Number 406A166 (to connect the QLC serial port 9-pin mD connector to a 25-pin male D connector at the external personal compute
• Westinghouse Part Number 406A167 (to connect the QLC serial port 9-pin mD connector to a 9-pin male D connector at the external personal computer
Both of these cables are available in several lengths (as described inSection 2).
These cables (illustrated inFigureA-1) may also be constructed by the user.TableA-1 andTable A-2 list the components required to assemble equivalent cablesincluding recommended manufacturers.
Note
When constructing cables, the user must ensure thatWestinghouse specifications are followed.
U0-1100 A-2 9/98Westinghouse Proprietary Class 2C
A-2. External Personal Computer Cabling
Figure A-1. Cable to External Personal Computer
QLC J2(9-pin male D-Connector)
IBM-PC COM1/COM2(9-pin male D-Connector)
Pin Signal Name
2345678
RXDTXDDTRGNDDSRRTSCTS
Pin Signal Name
3265487
TXDRXDDSRGNDDTRCTSRTS
a. External Personal Computer with 9-pin COM1/COM2 Connector
QLC J2(9-pin male D-Connector)
IBM-PC COM1/COM2(25-pin male D-Connector)
Pin Signal Name
2345678
RXDTXDDTRGNDDSRRTSCTS
Pin Signal Name
3267
2054
TXDRXDDSRGNDDTRCTSRTS
b. External Personal Computer with 25-pin COM1/COM2 Connector
9/98 A-3 U0-1100Westinghouse Proprietary Class 2C
A-2. External Personal Computer Cabling
Table A-1. Component Specifications for Cable 406A166
ComponentWestinghouse Part
Number Suggested Vendors Vendor Part Number
Cable, 3 individuallyshielded twisted pairs24 AWG wire1
405A263H01 Belden Corp. 9730-60-1000
Alpha Wire Co. 6073
Brand-Rex Co. (perW 405A263H01)
D connector, female9 position (1)
405A146H02 ITT Cannon DEU-9SFO
Cinch Connector DEU-9SFO
Hood, straight, 9-positionD connector (1)
405A146H10 ITT Cannon DE 24657
Cinch Connector DE 24657
Slide lock retainer (1) 405A146H07 ITT Cannon DE 51224-1
Cinch Connector DE 51224-1
Sockets (14) EX03159 Cinch Connector 030-1957-005
D connector, female25 position (1)
404A514H02 ITT Cannon DBC25SFO
Cinch Connector DBC25SFO
Hood, straight, 25-positionD connector (1)
404A514H10 ITT Cannon DB24659
Cinch Connector DB24659
Male screw retainer kit (1) 4257A93H09 Amp, Inc. 205980-1
Recommended cable lengths: 6 ft., 10 ft., 15 ft., 24 ft., or 50 ft. Do not exceed 50 feet in length.
U0-1100 A-4 9/98Westinghouse Proprietary Class 2C
A-2. External Personal Computer Cabling
Table A-2. Component Specifications for Cable 406A167
ComponentWestinghouse Part
Number Suggested VendorsVendor Part
Number
Cable, 3 individuallyshielded twisted pairs24 AWG wire1
405A263H01 Belden Corp. 9730-60-1000
Alpha Wire Co. 6073
Brand-Rex Co. (perW 405A263H01)
D connector, female9 position (2)
405A146H02 ITT Cannon DEU-9SFO
Cinch Connector DEU-9SFO
Hood, straight, 9-positionD connector (2)
405A146H10 ITT Cannon DE 24657
Cinch Connector DE 24657
Slide lock retainer (1) 405A146H07 ITT Cannon DE 51224-1
Cinch Connector DE 51224-1
Sockets (14) EX03159 Cinch Connector 030-1957-005
Male screw retainer kit (1) 4257A93H09 Amp, Inc. 205980-1
Recommended cable lengths: 6 ft., 10 ft., 15 ft., 24 ft., or 50 ft. Do not exceed 50 feet in length.
9/98 A-5 U0-1100Westinghouse Proprietary Class 2C
A-3. SCOM Cabling
and
tiver-
A-3. SCOM Cabling
Depending on the type of equipment being used for a project, the type, length,pinouts for cabling to the SCOM card may vary.TableA-3 andTableA-4 providepinout information for the SCOM card. Contact the Westinghouse representaassigned to your project for information on the connecting pinouts for the usespecified equipment.
Table A-3. SCOM Pin Designations — Group 1
Pin Signal Name Description
1 DCD Data Carrier Detect
2 RXD Receive Data
3 TXD Transmit Data
4 DTR Data Terminal Ready
5 GND Signal Ground
6 DSR Data Set Ready
7 RTS Request To Send
8 CTS Clear To Send
9 RI Ring Indicator
RS-232 9-pin male D-connector is used.
U0-1100 A-6 9/98Westinghouse Proprietary Class 2C
A-3. SCOM Cabling
Table A-4. SCOM Pin Designations — Group 2
Pin Signal Name Description
1 RXD- Receive Data - (A)
2 RXD+ Receive Data + (B)
3 TXD+ Transmit Data +(B)
4 TXD- Transmit Data - (A)
5 GND Signal Ground
6 RTS- Request To Send - (A)
7 RTS+ Request To Send + (B)
8 CTS+ Clear To Send + (B)
9 CTS- Clear To Send - (A)
RS-422 9-pin male D-connector is used.
9/98 A-7 U0-1100Westinghouse Proprietary Class 2C
set
d
tions
Appendix B. QLC ProgrammingExamples
B-1. Section Overview
This appendix contains example application programs for the QLC. Theseexamples (written in C language) illustrate the following:
• Functions used to transfer values to and from the DIOB registers.
• Test of QLC functions (access DIOB registers and QLC status register, andQLC LEDs) from the external personal computer.
• Online performance calculation (obtain values from the DPU, calculate anreturn a value to the DPU, and write to a dumb terminal through the SCOMserial port).
In addition, sample DPU application entries are shown (corresponding to theperformance calculation example). Alternatives are presented for DPU applicausing a Group 1 or Group 2 QLC.
9/98 B-1 U0-1100Westinghouse Proprietary Class 2C
B-2. Example Functions (Group 1 QLC)
ead the
ta 2tingith
B-2. Example Functions (Group 1 QLC)
The following listing contains functions used to obtain and store DIOB data, to rthe QLC status register, to write to the QLC LEDs, and to write ASCII data toSCOM serial port.
Note
These example functions are not applicable tothe Group 2 QLC.
As described inSection 4, the Group 2 QLC requires that the DIOB register damust be in the correct format for the emulated Q-card. Therefore, for a GroupQLC, the functions would need to handle the conversion between integer or floapoint format and the required bit pattern. Also note that "format 2" (real value wstatus) would not be available for a Group 2.
# include "qlc.h"# include <bios.h>
/* get integer value (format 0) from DIOB register */int get_fm0(int reg)
{int far *base = (int far *) 0xa0000000;return (*(reg + base));}
/* store integer value (format )) in DIOB register */void str_fm0(int reg, int value)
{int far *base - (int far *) 0xa0000000;*(reg + base) = value;}
/* get real value (format 1) from DIOB register */float get_fm1(int reg)
{int far *base = (int far *) 0xa0000000;return ((float) *(reg + base));}
/* store real value (format 1) in DIOB register */void str_fm1(int reg, float value)
{int far *base = (int far *) 0xa0000000;
((float *(reg + base)) = value;}
U0-1100 B-2 9/98Westinghouse Proprietary Class 2C
B-2. Example Functions (Group 1 QLC)
/* get real with status (format 2) from DIOB register */format2 get_fm2(int reg)
{int far *base = (int far *) 0xa0000000;return ((format2) *(reg + base));}
/* store real with status (format 2) in DIOB register */void str_fm2(int reg, format2 value)
{int far *base = (int far *) 0xa0000000;((format2) *(reg + base)) = value;}
/* set LED state */void qlc_led(char status)
{outp(0x980,status);}
/* read QLC status */int qlc_stat()
{return(inp(0x0a00));}
/* write string to dumb terminal */void string_out ( char *str ){
int i;
for (i =0; i <strlen(str); i++)_bios_serialcom(_COM_SEND,0,str[i]);
}
9/98 B-3 U0-1100Westinghouse Proprietary Class 2C
B-3. Function Declarations (QLC.H)
the
B-3. Function Declarations (QLC.H)
The following header file contains data structure and function declarations forexample functions inSection B-2.
Note
As noted previously, these example functions aredesigned for use with a Group 1 QLC and wouldrequire modification for use with a Group 2 QLC.
typedef struct
{int status;float ireal;} format2; /* real with status */
int get_fm0(int reg);void str_fm0(int reg, int value);
/* get integer value/* store integer value
*/*/
float get_fm1(int reg);void str_fm1(int reg, float value);
/* get real value/* store real value
*/*/
format2 get_fm2(int reg);void str_fm2(int reg, format2 value);
/* get real w/ status/* store real w/ status
*/*/
int qlc_stat(); /* read QLC status */
int qlc_led(char status); /* set LEDs */
void string_out ( char *str ); /* write to dumb terminal */
U0-1100 B-4 9/98Westinghouse Proprietary Class 2C
B-4. Example QLC Test
ess
ess
TPC
B-4. Example QLC Test
This example program can be used to test the following QLC functions:
• Store a value (integer, real, or real with status) from a specified DIOB accregister.
• Display a value (integer, real, or real with status) from a specified DIOB accregister.
• Display the QLC status register value.
• Set the QLC status LEDs (to a specified hexadecimal value).
Note
The "format 2" (real value with status) functions arenot applicable to the Group 2 QLC.
To use this program, the external personal computer must be connected and EXmust be running, as described inSection 3.
#include<dos.h>
#include<stdio.h>
#include<qlc.h>
#include<conio.h>
main()
{
int data0,count,cmd,reg,status;
float data1
format2 data2;
char *cls[3];
*cls = "cls";
cmd = 10;
data1 = 0;
while(cmd != 0)
{
9/98 B-5 U0-1100Westinghouse Proprietary Class 2C
B-4. Example QLC Test
printf("QLC TEST FUNCTIONS \n");
printf("1: Store Hex integer in DPU Buffer Area \n");
printf("2: Retrieve Hex integer from DPU Buffer Area \n");
printf("3: Store Real in DPU Buffer Area \n");
printf"4: Retrieve Real from DPU Buffer Area \n")
printf("5: Store Real with status in DPU Buffer Area \n");
printf("6: Retrieve Real with status from DPU Buffer Area \n");
printf("7: Read QLC Status Register \n");
printf("8: Write to QLC LED Register \n");
printf("0: EXIT \n");
printf("ENTER NUMBER OF FUNCTION TO TEST: ");
scanf("%d" ,&cmd);
printf("\n\n");
switch(cmd){
case 1:
{
printf("ENTER REGISTER NUMBER AND DATA reg=data(0xhex) ");
scanf("%d=%x" ,®,&data0);
printf("\n");
str_fm0(reg,data0);
data0 = 0x0;
break;
}
case 2:{
printf("ENTER REGISTER NUMBER TO RETRIEVE DATA ");
scanf("%d" ,®);
data0 = get_fm0(reg);
printf("\n HEX in reg# %d is %04xH \n\n" ,reg,data0);
break;
}
U0-1100 B-6 9/98Westinghouse Proprietary Class 2C
B-4. Example QLC Test
case 3:{
printf("ENTER REGISTER NUMBER TO STORE REAL reg=data ");
scanf("%d=%f" ,®,&data1);
printf("\n");
str_fm1(reg,data1);
break;
}
case 4:{
printf("ENTER REGISTER NUMBER TO RETRIEVE REAL ");
scanf("%d" ,®);
data1 = get_fm1(reg); ‘
printf("\n Real in reg# &d is %f \n\n" ,reg,data1);
break;
}
case 5:{
printf("ENTER REGISTER NUMBER STATUS & REAL VALUEreg=0xhex:value ");
scanf("%d=%x:%f" ,®,&data2.status,&data2.ireal);
printf("\n");
str_fm2(reg,data2);
break;
}
case 6:{
printf("ENTER REGISTER TO RETRIEVE REAL PLUS STATUS ");
scanf("%d" ,®);
data2 = get_fm2(reg);
printf("\nStatus and Real in reg# ");
printf("\%d are %04x:%f \n\n" ,reg,data2.status,data2.ireal);
break;
}
9/98 B-7 U0-1100Westinghouse Proprietary Class 2C
B-4. Example QLC Test
case 7:
{
status = qlc_stat();
printf("\nQLC Status register value is %02x \n\n" ,status);
break;
}
case 8:
{
printf("\nENTER STATUS TO DISPLAY ON LEDs (hex): ");
scanf("%x" ,&status);
qlc_led(status);
printf("\n");
break;
}
}
printf("\n\n\n Strike any key to continue");
while(kbhit() == 0);
system(*cls);
}
}
U0-1100 B-8 9/98Westinghouse Proprietary Class 2C
B-5. Example Performance Calculation
nce
PU.
al
e seter in
B-5. Example Performance Calculation
This example program illustrates how the QLC can be used for online performacalculations. In this example, the following steps are performed:
• Three point values are obtained from the DIOB registers.
• An adjusted value (for one of the points) is calculated.
• The adjusted value is written to a DIOB register, where it can be read by the D
• The original value and the adjusted value are displayed on a dumb terminconnected to the SCOM serial port.
These steps are repeated once every 10 seconds.
To implement a complete performance calculation, the DPU application must bup to transfer the point values. Sample DPU application entries are shown latthis appendix.
include<dos.h>
#include<stdio.h>
#include"qlc.h"
#include<math.h>
#include <bios.h>
#include <time.h>
float abs_gagge(float press);
main()
{
float t_flow,t_press,t_temp;
float al,a2;
int tm1,tm2;
char string_buffer[256];
/* set up serial port */
_bios_serialcom(_COM_INIT,0,_COM_CHR8|_COM_STOP2|_COM_NOPARITY|_COM_9600);
9/98 B-9 U0-1100Westinghouse Proprietary Class 2C
B-5. Example Performance Calculation
count = 1;
WHILE(COUNT !=0)
{
qlc_led(0x7f); /* turn on LED while program isrunning */
tm1 = clock(); /* initialize counter for delay */
t_flow = get_fm1(0); /* get value for throttle flow */
t_press = abs_gage(get_fm1(2)); /* get adjusted pressure value */
t_temp = get_fm1(4); /* get temperature value */
/* calculate correct throttle flow */
al = (0.0005529*t_temp) - (0.0004131*t_press) + 0.61072;
a2 = t_flow*sqrt(0.52238/al);
/* store corrected throttle flow value */
str_fm1(8,a2);
/* write values to dumb terminal via serial port */
sprintf(string_buffer,"initial throttle flow value%f\n\r",t_flow);
string_out(string_buffer);
sprintf(string_buffer,"corrected throttle flow to orifice plate%f\n\r",a2);
string_out(string_buffer);
qlc_led(0xff); /* turn off LED until next pass */
do
{
tm2 = clock();
} while (((tm2 - tm1) / CLK_TCK) < 10); /* wait 10 seconds */
} /* while count != 0 */
} /* main */
U0-1100 B-10 9/98Westinghouse Proprietary Class 2C
B-5. Example Performance Calculation
/* pressure value adjustment */
float abs_gage(float press)
{
return(press + 14.7);
}
9/98 B-11 U0-1100Westinghouse Proprietary Class 2C
B-6. Example DPU Application Entries (Group 1 QLC)
the
.
inC
ld)
ts
B-6. Example DPU Application Entries (Group 1 QLC)
The following example screens illustrate typical DPU application entries (usingMAC Utilities Edit function) for a Group 1 QLC.
These examples correspond to the example QLC performance calculationapplication inSection B-5. However, only samples are shown (one QLCAINalgorithm, one QLCAOUT algorithm, and one originated analog point). Tocomplete this example application, additional points would need to be defined
For a Group 1 QLC, the point hardware address offset (HW field) will be set to 0each point used by the QLC input and output algorithms. The appropriate QLhardware address offset and starting DIOB register must be defined in theapplicable algorithm fields, as shown. Also, for AI points, the card type (CD fieof each point will be set to 67 for a QLC G01.
For additional information on the QLC algorithms, see "Standard ControlAlgorithms"(U0-0106). For additional information on adding algorithms and pointo the DPU application, see"MAC Application Utilities User’s Guide" (U0-0136).For additional information on point record types and fields, see "RecordTypesUser’sGuide" (U0-0131).
U0-1100 B-12 9/98Westinghouse Proprietary Class 2C
B-6. Example DPU Application Entries (Group 1 QLC)
QLCAIN Algorithm (page 1)
STATEMENT USER INPUT PARAMETER DESCRIPTIONALGORITHM NAME QLCAIN
ALGORITHM NO TUNABLE SYSTEM ID NO. 678
A1 ANALOG POINT NAME (OPTIONAL)
A2 ANALOG POINT NAME (OPTIONAL)
A3 ANALOG POINT NAME (OPTIONAL)
A4 ANALOG POINT NAME (OPTIONAL)
A5 ANALOG POINT NAME (OPTIONAL)
A6 ANALOG POINT NAME (OPTIONAL)
A7 ANALOG POINT NAME (OPTIONAL)
A8 ANALOG POINT NAME (OPTIONAL)
A9 ANALOG POINT NAME (OPTIONAL)
A10 ANALOG POINT NAME (OPTIONAL)
A11 ANALOG POINT NAME (OPTIONAL)
A12 ANALOG POINT NAME (OPTIONAL)
A13 ANALOG POINT NAME (OPTIONAL)
A14 ANALOG POINT NAME (OPTIONAL)
A15 ANALOG POINT NAME (OPTIONAL)
A16 ANALOG POINT NAME (OPTIONAL)
*MORE*
YES77
QLCTHRF
F10
F1 F2 F3 F4 F5Enter Alg
F9F8F7F6
9/98 B-13 U0-1100Westinghouse Proprietary Class 2C
B-6. Example DPU Application Entries (Group 1 QLC)
QLCAIN Algorithm (page 2) )
STATEMENT USER INPUT PARAMETER DESCRIPTIONALGORITHM NAME QLCAIN
ALGORITHM NO TUNABLE SYSTEM ID NO. 678
FRMT N-DATA REGISTER FORMAT
REG1 N-FIRST QLC DATA REGISTER
PHW N-PRIMARY QLC HARDWARE ADDR
SHW N-SECONDARY QLC HARDWARE ADDR
PSTA DIGITAL POINT NAME (OPTIONAL)
SSTA DIGITAL POINT NAME (OPTIONAL)
YES77
1
F10
F1 F2 F3 F4 F5Enter Alg
F9F8F7F6
8
0020H
0
QLCPSTA
U0-1100 B-14 9/98Westinghouse Proprietary Class 2C
B-6. Example DPU Application Entries (Group 1 QLC)
QLCAOUT Algorithm (page 1)
STATEMENT USER INPUT PARAMETER DESCRIPTIONALGORITHM NAME QLCAOUT
ALGORITHM NO TUNABLE SYSTEM ID NO. 679
A1 ANALOG POINT NAME (OPTIONAL)
A2 ANALOG POINT NAME (OPTIONAL)
A3 ANALOG POINT NAME (OPTIONAL)
A4 ANALOG POINT NAME (OPTIONAL)
A5 ANALOG POINT NAME (OPTIONAL)
A6 ANALOG POINT NAME (OPTIONAL)
A7 ANALOG POINT NAME (OPTIONAL)
A8 ANALOG POINT NAME (OPTIONAL)
A9 ANALOG POINT NAME (OPTIONAL)
A10 ANALOG POINT NAME (OPTIONAL)
A11 ANALOG POINT NAME (OPTIONAL)
A12 ANALOG POINT NAME (OPTIONAL)
A13 ANALOG POINT NAME (OPTIONAL)
A14 ANALOG POINT NAME (OPTIONAL)
A15 ANALOG POINT NAME (OPTIONAL)
A16 ANALOG POINT NAME (OPTIONAL)
*MORE*
YES78
QLCTFLOW
F10
F1 F2 F3 F4 F5Enter Alg
F9F8F7F6
QLCTTEMP
QLCTPRES
9/98 B-15 U0-1100Westinghouse Proprietary Class 2C
B-6. Example DPU Application Entries (Group 1 QLC)
QLCAOUT Algorithm (page 2) )
STATEMENT USER INPUT PARAMETER DESCRIPTIONALGORITHM NAME QLCAOUT
ALGORITHM NO TUNABLE SYSTEM ID NO. 679
FRMT N-QLC DATA FORMAT
REG1 N-FIRST QLC DATA REGISTER
PHW N-PRIMARY QLC HARDWARE ADDR
SHW N-SECONDARY QLC HARDWARE ADDR
TOUT N-TIMEOUT ACTION 1 => USE
PSTA DIGITAL POINT NAME (OPTIONAL)
SSTA DIGITAL POINT NAME (OPTIONAL)
YES78
1
F10
F1 F2 F3 F4 F5Enter Alg
F9F8F7F6
0
0020H
0
0007H
QLCPSTA
U0-1100 B-16 9/98Westinghouse Proprietary Class 2C
B-6. Example DPU Application Entries (Group 1 QLC)
Originated Analog Point (page 1) )
STATEMENT USER INPUT ATTRIBUTE DESCRIPTIONINIT/
PTNAMEREC_TYPE AL
FREQUENCY
IV N-INITIAL VALUE
FM N-PRINTER FORMAT-DECIMAL POINT
DG N-SYSTEM DIAGRAM INDEX
TB N-FULL SCALE VALUE OF POINT
BB N-MINIMUM SCALE VALUE OF POINT
ED C-ENGLISH DESCRIPTION
EU C-ENGINEERING UNITS
EV N-OPERATOR ENTERED VALUE
CD N-CARD TYPE INDEX
HW N-OFFSET OF HARDWARE ADDRESS
AP N-ALARM PRIORITY
LC N-INCLUDE STATUS CHECKING
HL N-HIGH ALARM LIMIT
LL N-LOW ALARM LIMIT
*MORE*
1.0
500.000000
F10
F1 F2 F3 F4 F5Enter Point
F9F8F7F6
QLCTFLOW
4
2193
0
600
THROTTLE FLOW - QLC CALC
KPPH
459.345000
67
0000H
11
1
595.000000
0.000000
9/98 B-17 U0-1100Westinghouse Proprietary Class 2C
B-6. Example DPU Application Entries (Group 1 QLC)
Originated Analog Point (page 2) )
STATEMENT USER INPUT ATTRIBUTE DESCRIPTIONINIT/
PTNAMEREC_TYPE AL
FREQUENCY
IL N-INCREMENTAL ALARM VALUE
DB N-HIGH/LOW/INC LIMIT DEADBAND
HS N-HI SENSOR LIM/TOP SCALE OUT
LS N-LO SENSOR LIM/BOT SCALE OUT
1.0
5.000000
F10
F1 F2 F3 F4 F5Enter Point
F9F8F7F6
QLCTFLOW
2.000000
0.000000
0.000000
U0-1100 B-18 9/98Westinghouse Proprietary Class 2C
B-7. Example DPU Application Entries (Group 2 QLC)
the
tionTo.
ondthis
be(two
this
s
B-7. Example DPU Application Entries (Group 2 QLC)
The following example screens illustrate a typical DPU application entry (usingMAC Utilities Edit function) for a Group 2 QLC.
This example corresponds to the example QLC performance calculation applicain SectionB-5. However, only a sample is shown (one originated analog point).complete this example application, additional points would need to be defined
For a Group 2 QLC, each point’s hardware address offset (HW field) must correspto the QLC card hardware address and appropriate DIOB register in the QLC. Inexample, the QLC card’s hardware address is 0010H, and the point value is towritten to register 0. Therefore, the hardware address offset is specified as 0020Htimes the hardware address, with no additional offset for this point).
The point’s card type (CD field) will depend on the Q-card to be emulated. In example, a QAO G01 is emulated (CD = 21).
For additional information on adding points to the DPU application, see"MACUtilities User’sGuide"(U0-0136). For additional information on point record typeand fields, see "Record Types User’s Guide" (U0-0131).
9/98 B-19 U0-1100Westinghouse Proprietary Class 2C
B-7. Example DPU Application Entries (Group 2 QLC)
Originated Analog Point (page 1) )
STATEMENT USER INPUT ATTRIBUTE DESCRIPTIONINIT/
PTNAMEREC_TYPE AL
FREQUENCY
IV N-INITIAL VALUE
FM N-PRINTER FORMAT-DECIMAL POINT
DG N-SYSTEM DIAGRAM INDEX
TB N-FULL SCALE VALUE OF POINT
BB N-MINIMUM SCALE VALUE OF POINT
ED C-ENGLISH DESCRIPTION
EU C-ENGINEERING UNITS
EV N-OPERATOR ENTERED VALUE
CD N-CARD TYPE INDEX
HW N-OFFSET OF HARDWARE ADDRESS
AP N-ALARM PRIORITY
LC N-INCLUDE STATUS CHECKING
HL N-HIGH ALARM LIMIT
LL N-LOW ALARM LIMIT
*MORE*
1.0
500.000000
F10
F1 F2 F3 F4 F5Enter Point
F9F8F7F6
QLCTFLOW
4
2193
0
600
THROTTLE FLOW - QLC CALC
KPPH
459.345000
67
0000H
11
1
595.000000
0.000000
U0-1100 B-20 9/98Westinghouse Proprietary Class 2C
B-7. Example DPU Application Entries (Group 2 QLC)
Originated Analog Point (page 2) )
STATEMENT USER INPUT ATTRIBUTE DESCRIPTIONINIT/
PTNAMEREC_TYPE AL
FREQUENCY
IL N-INCREMENTAL ALARM VALUE
DB N-HIGH/LOW/INC LIMIT DEADBAND
HS N-HI SENSOR LIM/TOP SCALE OUT
LS N-LO SENSOR LIM/BOT SCALE OUT
1.0
5.000000
F10
F1 F2 F3 F4 F5Enter Point
F9F8F7F6
QLCTFLOW
2.000000
0.000000
0.000000
9/98 B-21 U0-1100Westinghouse Proprietary Class 2C
desld)
undenect
ion
ion
the
hownsed
endix.
Appendix C. QLC in CE Mark CertifiedSystems
C-1. Section Overview
The QLC configured with an SCOM board is applicable for use in CE Markcertified systems. The following rules apply:
1. The QLC configuration drawing number is 1B30021.
2. The QLC must be used in the CE Mark certified cabinet. This cabinet inclua transition panel for the SCOM serial port cable. Connections from the (fiedevice to the SCOM port arenot brought directly to the SCOM board. Theconnection is brought to the transition panel. This provides a solid earth groconnection for the cable shield. There is an internal cable that connects thSCOM port to the connector at the transition panel. The cables used to conan external device to the transition panel are as follows:
• Westinghouse part number 5A26123 to connect the QLC/SCOM transitpanel connector to a 25-pin male D connector at the external device.
• Westinghouse part number 5A26124 to connect the QLC/SCOM transitpanel connector to a 9-pin male D connector to the external device.
3. If the connection to the QLC serial port is permanent, it must be handled insame manner as the SCOM connection (see #2 above).
These cables are available in several lengths, identified by group number, as sin TableC-1. For example, part number 5A26123G03 identifies a 4-foot cable uto connect the QLC SCOM port (at the transition panel) to a 25-pin personalcomputer serial port.
These cables may also be constructed by the user, as described later in this app
Note
When constructing cables, the user must ensure thatWestinghouse specifications are followed.Otherwise, the CE Mark certification is invalid.
9/98 C-1 U0-1100Westinghouse Proprietary Class 2C
C-2. CE Mark Specifications
C-2. CE Mark Specifications
The following tables and figure provide CE Mark specifications:
• External personal computer cable numbers (Table C-1).
• Cable to External Personal Computer (Figure C-1).
• Component Specifications for Cable 5A26123 (Table C-2).
• Component Specifications for Cable 5A26124 (Table C-3).
Table C-1. External Personal Computer Cable Numbers
Cable Group Length Cable Group Length
5A26123 G01 3 feet 5A26124 G01 3 feet
5A26123 G03 4 feet 5A26124 G03 4 feet
5A26123 G05 5 feet 5A26124 G05 5 feet
5A26123 G07 6 feet 5A26124 G07 6 feet
5A26123 G11 8 feet 5A26124 G11 8 feet
5A26123 G13 10 feet 5A26124 G13 10 feet
5A26123 G15 12 feet 5A26124 G15 12 feet
5A26123 G18 15 feet 5A26124 G18 15 feet
5A26123 G21 20 feet 5A26124 G21 20 feet
5A26123 G23 24 feet 5A26124 G23 24 feet
5A26123 G26 30 feet 5A26124 G26 30 feet
5A26123 G27 35 feet 5A26124 G27 35 feet
5A26123 G28 40 feet 5A26124 G28 40 feet
5A26123 G29 45 feet 5A26124 G29 45 feet
5A26123 G30 50 feet 5A26124 G30 50 feet
U0-1100 C-2 9/98Westinghouse Proprietary Class 2C
C-2. CE Mark Specifications
QLC/SCOM Transition Panel(9-pin D-connector)
External Device(9-pin D-connector)
Pin Signal Name Pin Signal Name
2 RXD ---------------------------------- 3 TXD
3 TXD ---------------------------------- 2 RXD
4 DTR ---------------------------------- 6 DSR
5 GND ---------------------------------- 5 GND
6 DSR ---------------------------------- 4 DTR
7 RTS ---------------------------------- 8 CTS
8 CTS ---------------------------------- 7 RTS
a. External Device with 9-pin COM1/COM2 Connector (5A26124)
QLC/SCOM Transition Panel(9-pin D-connector)
External Device(25-pin D-connector)
Pin Signal Name Pin Signal Name
2 RXD ---------------------------------- 2 TXD
3 TXD ---------------------------------- 3 RXD
4 DTR ---------------------------------- 6 DSR
5 GND ---------------------------------- 7 GND
6 DSR ---------------------------------- 20 DTR
7 RTS ---------------------------------- 5 CTS
8 CTS ---------------------------------- 4 RTS
B. External Device with 25 -pin COM1/COM2 Connector (5A26123)
Figure C-1. Cable to External Personal Computer (CE Mark)
9/98 C-3 U0-1100Westinghouse Proprietary Class 2C
C-2. CE Mark Specifications
5
Table C-2. Component Specifications for Cable 5A26123
ComponentWestinghousePart Number Suggested Vendors
VendorPart Number
Cable, 5 twisted pairs with anoverall shield 24 AWG wire1
4A00158H01 Belden Corp. 8105
D connector,female 9 position (1)
405A146H02 ITT Cannon DEU-9SFO
Cinch Connector DEU-9SFO
Hood, straight, 9-position Dconnector (1)
405A146H10 ITT Cannon DE 24657
Cinch Connector DE 24657
Male screw retainer kit (1) 405A146H12 ITT Cannon D20419
Cinch Connector 008-00055-1
Sockets (14) EX03159 Cinch Connector 030-1957-00
D connector, female 25 position(1)
404A514H02 ITT Cannon DBC25SFO
Cinch Connector DBC25SFO
Hood, straight, 25-position Dconnector (1)
404A514H10 ITT Cannon DB24659
Cinch Connector DB24659
Male screw retainer kit (1) 4257A93H09 Amp, Inc. 205980-1
- Recommended cable lengths: 6 feet, 10 feet, 15 feet, 24 feet, or 50 feet.- Do not exceed 50 feet in length.
U0-1100 C-4 9/98Westinghouse Proprietary Class 2C
C-2. CE Mark Specifications
5
Table C-3. Component Specifications for Cable 5A26124
ComponentWestinghousePart Number Suggested Vendors
VendorPart Number
Cable, 5 twisted pairs with anoverall shield 24 AWG wire1
4A00158H01 Belden Corp. 8105
D connector,female 9 position (1)
405A146H02 ITT Cannon DEU-9SFO
Cinch Connector DEU-9SFO
Hood, straight, 9-position Dconnector (2)
405A146H10 ITT Cannon DE 24657
Cinch Connector DE 24657
Male screw retainer kit (1) 405A146H12 ITT Cannon D20419
Cinch Connector 008-00055-1
Sockets (14) EX03159 Cinch Connector 030-1957-00
Male screw retainer kit (1) 4257A93H09 Amp, Inc. 205980-1
- Recommended cable lengths: 6 feet, 10 feet, 15 feet, 24 feet, or 50 feet.- Do not exceed 50 feet in length.
9/98 C-5 U0-1100Westinghouse Proprietary Class 2C
Index
Aalgorithms 4-6application programming
See Appendix BSee Section 4
BBAKFLASH 2-18
See Section 3
CCabling
CE Mark C-2, C-3external personal computer 2-17, A-2non-CE Mark 2-16, 2-17, A-2SCOM A-6
card components 2-2CE Mark certification
See Appendix Ccontrols 2-3, 2-4
DDIOB interface 2-5, 4-1, 4-4, 4-9DIP switch (SW1) 2-5, 2-6, 2-8DIP switch (SW3) 2-9, 2-10DPFCOPY 5-2, 5-5drive identifiers 3-8
EEngineer Station
See master stationexternal personal computer 2-16, 3-2
cable numbers 2-17EXTPC 2-18
See Section 3
Ffile transfer 5-2
at QLC (method 1) 5-3at QLC (method 2) 5-4error messages 5-8hardware address 5-6initiation 5-5message from DPU 5-7
Hhardware configuration
card components 2-2DIOB interface 2-5, 4-4, 4-9DIP switch (SW1) 2-5, 2-6, 2-8DIP switch (SW3) 2-9, 2-10LEDs 2-4memory 2-5, 4-14processors 2-5SBX daughter board 2-13SCOM 2-13serial port 2-4user-configurable controls 2-3, 2-4user-configurable jumpers 2-11
hexadecimal to binary conversion 2-7
IInitialization 3-1
controls and indicators 3-6drive identifiers 3-8hardware setup 3-2procedure 3-3
Jjumpers 2-11
LLEDs 2-4
Mmaster station 5-1, 5-2, 5-5memory 2-5, 4-14
Ooverview 1-1
Pprocessors 2-5programming examples
DPU application entries (Group 1) B-12DPU application entries (Group 2) B-19function declarations B-4functions (Group 1) B-2performance calculation B-9QLC test B-5
9/98 Index-1 U0-1100Westinghouse Proprietary Class 2C
Index
QQLC card
algorithms 4-6application notes 4-12application programming (Group 1) 4-4application programming (Group 2) 4-8cabling (CE Mark) C-2cabling (non-CE Mark) A-1CE Mark certification C-1components 2-2example programs B-1external personal computer 2-16, 3-2file transfer 5-2hardware requirements 2-2initialization 3-3jumper settings 2-11overview 1-1SBX daughter board 2-13SCOM 2-13software 2-18switch settings 2-6, 2-8, 2-9, 2-10
SSBX connector 2-4SBX daughter board
non-Westinghouse 2-15See SCOM
SCOM 2-4, 2-13installation 2-13, 2-14
serial port 2-4software configuration 2-18
BAKFLASH 2-18, 3-3EXTPC 2-18, 3-3
StartupSee Initialization
Uuser-configurable controls 2-3, 2-4user-configurable jumpers 2-11
U0-1100 Index-2 9/98Westinghouse Proprietary Class 2C