OWNER'S MANUAL ________________ MODEL V79 PDI-1 AND V80 PDI-2 SWITCH INPUT AND OPTICALLY ISOLATED INPUT MODULES BayTech Publication #U140E105
Thank you for selecting a BayTech Model V79 PDI-1 Switch Input Module or Model V80 PDI-2 Optically Isolated Input Module. The data provided in this Owner's Manual explains the various ways you can operate the V79 PDI-1 or V80 PDI-2, and how to configure your unit. We suggest that you read this manual carefully before attempting to install a PDI, and that you place special emphasis on correct cabling and configuration.
TABLE OF CONTENTS 1 GENERAL............................................................................................................................................................................................ 1 1.1 1.2 2 SPECIFICATIONS............................................................................................................................................................................... 3 2.1 2.2 3 V79 PDI-1 SWITCH INPUT STATUS MODULE.........................................
5 CONFIGURATION ........................................................................................................................................................................... 19 5.1 MENU-DRIVEN CONFIGURATION ..................................................................................................................... 19 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.2 21 22 22 23 5.1.4.1 5.1.4.2 5.1.4.3 5.1.4.4 5.1.4.5 5.1.4.6 24 25 26 27 27 28 REPORTING METHOD ............................
1 GENERAL BayTech's PDI modules are designed for use with the M16 and M8 (DAC) Data Acquisition Controllers. Both modules are used to detect events where an event is defined as a change-in-state of an input and return to the original state. The V79 PDI-1 module is used for the detection of switch closure in applications requiring notification of device status such as burglar alarms, fire alarms, event counters and timers, process control, etc..
1.1 V79 PDI-1 MODULE The main features of the V79 PDI-1 module are sixteen microprocessor-controlled input channels that can be connected with individual ground returns, or a common single-point ground. The input channels provide a flexible, reliable method to detect and report the change-in-state of a circuit. The change can be from infinite resistance (open) to continuity (closed), and vice versa. For example, the changein-state could be for a set of form C (dry) relays or switch contacts.
These optically isolated inputs provide an efficient means for the monitoring of external process and control functions. All functions provided by the board are programmable through a series of detailed configuration menus. Additional functionality is made available through the use of BayTech or user provided application software. Input connections to the PDI-2 are made through a standard DC-37F connector. 2 SPECIFICATIONS 2.
2.
3 INSTALLATION The PDI-1 and PDI-2 are installed in the M Series chassis as described in Section 3.5 of the base unit operator's manual. NOTE: The PDI-1 or PDI-2 cannot be installed as Module 1. If an PDI-1 or PDI- 2 is removed from a module slot and a different PDI-1 or PDI-2 is installed in that location, the newly installed module acquires the previous module's configuration.
3.2 PDI-2 AC INPUT SETUP The PDI-2 module has two banks of dip switches which are used to add ripple filtering for AC inputs. AC input is selected by individual channel. Location of the dip switches is shown in Figure 3. CHANNEL SW1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 2 3 4 5 6 7 8 SW2 Figure 3 1 2 3 4 5 6 7 8 Table 1 Dip switch SW1 1-8 provides filtering control for channels 1-8 while SW2 1-8 controls channels 9-16.
4 OPERATION This section discusses the general PDI operation (Section 4.1), user-programmable features (Section 4.2), data commands (Section 4.3), event sample reporting (Section 4.4), and presentation (Section 4.5). 4.1 GENERAL The V79 PDI-1 and V80 PDI-2 modules are used in applications requiring notification of device status (e.g., burglar and fire alarms, event counters/timers, process control, etc.).
4.2 USER-PROGRAMMABLE FEATURES You may program the Sampling Setup, Reporting Setup, and Dynamic Configuration on the PDI which are discussed in Section 4.2.1 through Section 4.2.3 respectively. 4.2.1 SAMPLING SETUP Sampling Setup allows you to program the Debounce Delay and Latch Polarity for the input channels. The Debounce Delay is used to guard against erroneous events. An event will not be valid unless the input channel has remained at a changed state for the debounce duration.
4.2.2.2 REPORT START TIME Report Start Time is the time reporting begins when Schedule Reporting Method is selected. The start of reporting may be delayed up to 24 hours from the current time recorded by the M Series time-of-day clock and reporting will occur in cyclic periods as determined by the Report Interval. The default Report Start Time is 00:00. 4.2.2.
4.2.2.6 TERMINATING CHARACTER(S) The Terminating Character(s) is added at the end of an event sample to match the requirements of the host terminal or application software. The Terminating Character(s) consists of one or two hexadecimal characters. The default Terminating Characters are 0D Hex (Carriage Return) followed by 0A Hex (Line Feed). 4.2.3 DYNAMIC CONFIGURATION You may enable or disable Dynamic Configuration for the PDI.
2. Once the PDI is selected, it will go into Command Mode and allow you to send data commands. The PDI data commands begin with two capital letters designating the specific command and are terminated with a Carriage Return. Most data commands also require a number between the command letters and Carriage Return. This number is typically the desired channel(s) for the data command.
4.3.1 CLEAR EVENT BUFFER COMMAND The Clear Event Buffer (CB) command is used to clear all stored event samples from the buffer of the selected channel(s). The Clear Event Buffer command has the following format: CB n where c = Channel# (1 to 16 or 0 for all). 4.3.2 CLEAR EVENT COUNTER COMMAND The Clear Event Counter (CC) command is used to reset the event counter for one or more channels to zero without reading the value of the event counter.
4.3.4 REPORT ALL BUFFERED EVENTS COMMAND The Report All Buffered Events (RA) command instructs the PDI to report all event samples currently stored in the buffer of the selected channel(s). The Report All Buffered Events command has the following format: RAn where c = Channel# (1 to 16 or 0 for all). 4.3.
4.3.7 REPORT EVENT LATCH DATA COMMAND The Report Event Latch Data (RL) command instructs the PDI to report the active state of the initial event and the time the initial event occurred (if time tagging is enabled). This command does not reset the latch buffer. The Report Event Latch Data has the following format: RLc where c = Channel# (1 to 16 or 0 for all). 4.3.
4.3.10 REPORT A SINGLE BUFFERED EVENT COMMAND The Report A Single Buffered Event (RS) command instructs the PDI to report the first event sample stored in the buffer of the selected channel(s). The Report A Single Buffer Sample command has the following format: RS c where c = Channel# (1 to 16 or 0 for all). 4.4 EVENT SAMPLE REPORTING An event is defined as a change-in-state of an input channel and return to the original state.
The PDI module can observe, record, and report when an event happened, how long the event lasted, and how many events occurred for each individual channel. The initial occurrence of an event will set the event latch bit and store the associated time in the latch buffer. You may read the state of the initial event and the time it was recorded (if time tagging is enabled) by issuing the RL or RR commands. Each occurrence of an event starts the duration counter and increments the event counter.
4.5 EVENT SAMPLE PRESENTATION Event Sample presentation varies slightly in format depending on module configuration. Entries such as, time tag, data format, number of active channels, etc. all change how event samples appear to a host-controller.
The following examples show the messages received using data commands where the PDI is installed in Unit 1 Module 15 with time tagging enabled.
If you issue the RL1 command (Report Event Latch Data for Channel 1), the module will respond with a message showing the state of the input that started the initial event. This will be "1" (closed) for LO to HI Latch Polarity or "0" (open) for HI to LO Latch Polarity if using the PDI-1. This will be "1" (voltage detected) for LO to HI Latch Polartiy or "0" (no voltage detected) for HI to LO Latch Polarity if using the PDI-2.
For example, if the PDI is installed in a non-cascaded unit as Module 2 and you are using the default port select code ($BT), send $BT2$CONFIG to enter into configuration mode. No characters should be typed between $BT2 and $CONFIG. If this happens, the entire configuration sequence will be discarded and you will have to send the configuration sequence again. NOTE: All commands must be in uppercase.
5.1.1 CONFIGURATION MAIN MENU A PDI-1 module installed as Module X will respond to the receiving of $CONFIG with an identification block and a menu of the available configuration options similar to the following: Copyright (c) Bay Technical Associates,1993 DAC V79 PDI-1 Rev. 1.XX This Module is X CONFIGURATION MAIN MENU Module Status......................1 Sampling Setup.....................2 Reporting Setup....................3 Dynamic Configuration..............4 Exit...............................
5.1.2 MODULE STATUS By responding to the Enter Selection: message at the end of the Configuration Main Menu (see Section 5.1.1) with "1" (Module Status), you may review the current configuration status. The PDI will respond with a menu similar to the following: MODULE STATUS Debounce Delay (Milliseconds)......100 Latch Polarity.....................LO to HI Reporting Method...................COMMAND Reporting Start Time...............24:00 Reporting Period...................24:00 Host Address..............
Type the desired debounce delay time followed by . The debounce delay is used to guard against erroneous events. An event will not be valid unless the input channel has remained at a changed state for the debounce duration. If you type "2" from the "Sampling Setup" menu shown on the previous page (Latch Polarity), the PDI will respond with the following: SET LATCH POLARITY Latch Polarity..................HI TO LO Low to Hi Transitions only......1 Hi to Low Transitions only......2 Exit................
If you respond to one of the above selections with 1 to 6, a sub-menu will be presented for that item. After making any necessary changes under sub-menus 1 to 6, you be returned to the Reporting Setup menu. The "Exit" selection will return you to the Configuration Main Menu. 5.1.4.1 REPORTING METHOD By responding to the Enter Selection: message at the end of the Reporting Setup Menu with "1" (Reporting Method), you may program how the PDI reports event samples to the host device.
When Schedule Reporting Method is selected, the PDI will begin reporting event samples as events occur at the programmed Report Start Time (see Section 5.1.4.2). The Report Start Time is programmable up to 24 hours in advance of the current (time-of-day) clock time. Event samples are stored in the buffer until the Report Start Time is reached at which time all buffered event samples are reported to the host module. Further reporting is based upon the selected Report Interval as explained in Section 5.1.4.3.
IMPORTANT: The Current Date and Time is not updated during data entry. You must consider any delays from the time you enter the Report Start Time until you exit the Configuration Main Menu. Be sure to set the Report Start Time far enough ahead of the current time to complete all configurations and exit configuration mode.
5.1.4.4 HOST ADDRESS By responding to the Enter Selection: message at the end of the Reporting Setup Menu on page 23 with "4" (Host Address), you may program the address of the designated host module. The designated host module is where event samples are sent when using Immediate or Schedule Reporting Method. The PDI will respond with the Host Address menu as follows: HOST ADDRESS Host Address.......................
With time tag enabled, a MM/DD/YY HH/MM/SS entry is appended to all samples, where MM is the month, DD is the day, YY is the year, HH is the hour, MM is the minute, and SS is the second according to the base unit's time-of-day clock. 5.1.4.6 TERMINATING CHARACTER(S) By responding to the Enter Selection: message at the end of the Reporting Setup Menu on page 26 with "7" (Terminating Character(s)), you may program one or two characters to be appended at the end of each event sample.
Dynamic configuration mode allows the PDI to be programmed by downloading dynamic (on-the-fly) commands. See Section 5.2 for the procedure to program the PDI via dynamic configuration and a description of the available configuration commands. 5.1.6 EXIT By responding to the Enter Selection: message at the end of the Configuration Main Menu (see Section 5.1.1) with "X" (Exit), the PDI will exit the menu-driven configuration mode.
5.2 DYNAMIC CONFIGURATION PROCEDURE AND COMMANDS PDI-1 or PDI-2 dynamic configuration commands are issued through a host module. Some configuration commands apply to all types of DAC modules, while others apply to specific modules. The PDI will recognize dynamic configuration commands only when Dynamic Configuration is enabled (see Section 5.1.5). Use the following procedure to send dynamic configuration commands to the PDI from a host module: 1.
NOTE: Multiple configuration commands may be sent while the PDI is in command mode. Each command should be terminated with a Carriage Return. 5.2.1 DEBOUNCE DELAY COMMAND The Debounce Delay (DB) command programs the PDI Debounce Delay time (see Section 4.2.2 and Section 5.1.3). The Debounce Delay command has the following format: DB n where n = 0 to 65535 milliseconds. 5.2.2 REPORTING METHOD COMMAND The Reporting Method (RM) command programs the PDI Reporting Method (see Section 4.2.2.
5.3 FRONT PANEL CONFIGURATION The LCD display and associated front panel controls can provide the configuration status of the PDI. All the parameters shown in the LCD status message are fully described in Section 5.1. When the M8/M16 DAC has completed its power-up self-test, the following menu will be displayed on the LCD: Bay Technical Assoc Select Module 00 NOTE: The following LCD screens are examples and will vary depending upon current configuration status.
APPENDIX A DATA/CONFIGURATION COMMAND SUMMARY The tables below summarize the data and configuration commands supported by the V79 PDI-1 and V80 PDI-2 I/O modules: V79 PDI-1 & V80 PDI-2 COMMAND SUMMARY Command Description CBc ( c=Ch# 1 to 16, 0=all) Clear Event Buffer. Clear all buffered event samples.
APPENDIX B EPROM UPGRADE You will receive one EPROM (chip with label) for each PDI module to be upgraded. The materials you will need to supply are: Phillips-head screwdriver IC DIP extractor or a pair of curved needle-nose pliers 1. IMPORTANT: Remove power from the unit by depressing the power switch on the front of the unit to OFF. Also remove power cord from the AC outlet. 2.
APPENDIX C V79 PDI-1 MECHANICAL LAYOUT 35
36
2 37
APPENDIX D V80 PDI-2 MECHANICAL LAYOUT 38
39
3 40
APPENDIX E INDEX A AC input 2, 6 Active channels 17 Arrow key 32 ASCII 28 B Baud rate 20 BayTech 1, 2, 1, 3, 19, 20 Buffer 9, 12-16, 25, 26, 33 C Cabling 2, 5 Channel 2, 6-8, 12-19, 23 Clear 12, 16, 33 Commands 1, 7, 8, 10, 11, 19, 20, 24, 28-31, 33 Configuration 2, 1-3, 5, 7, 8, 10, 17, 19-26, 28-33 Contact 2 41
D DAC 1, 10, 21, 30, 32 Data commands 1, 7, 8, 10, 11, 24 Data format 8, 17, 22, 23, 33 Date 1, 7, 25, 26 DC-37F 2, 3, 5 Debounce delay 8, 16, 22, 23, 31, 33 Decimal 33 Default 8-10, 19-21, 30 Designated host 8, 9, 11, 26, 27 Disconnect 11, 30 Diskette 19 Dumb Terminal 19 Dynamic configuration 8, 10, 19, 21, 22, 26, 28-30, 33 E EIA-232 20 Emulation 19 Enter 7, 20-29 Event Duration time 16 F Factory default 21 FIFO 12 Format 8, 12-15, 17, 22, 23, 28, 31, 33 Front panel 19, 32 42
G,H Hex 10, 22, 28, 30 Host device 11, 23, 24 Host module 8-11, 19, 24-27, 30 Humidity 3, 4 I IBM 2, 19 Identification block 21 Installation 2, 5 Isolated input 1, 2, 4 J,K,L Laserjet 2 Latch buffer 12, 14, 16 Latch mode 7 Latch polarity 8, 15, 19, 22, 23 LCD display 32 M M Series 5, 9, 17, 19, 25, 27, 32 Menu 2, 7, 19-29, 32 Mode 7, 10, 11, 19-21, 26, 29-32 Module number 9-11, 17, 19, 20, 27, 30 Multiplexing 2 43
N,O,P Non-verbose mode 7 Operation 2, 6, 7 Parameter 29, 30 Parity 19, 20 PDI-1 1, 2, 1-3, 5, 7-10, 19, 21, 23, 30, 32, 33 PDI-2 1, 2, 1-10, 19, 21, 23, 30, 33 Period 22 Port select code 10, 11, 19, 20, 30 Q,R Receive buffer 9 Relay status 1 Report interval 8, 9, 23, 25, 26, 32 Report start time 8, 9, 15, 23, 25, 26 Reporting method 7-11, 15, 22-27, 31, 33 Reporting setup 8, 21, 23-28 Reset 7, 12-14, 16, 33 S Sampling setup 8, 21-23, 25 Schedule 1, 7-9, 11, 15, 17, 22, 24-27, 31, 33 SELECT button 32 Selec
T Temperature 3, 4 Term 19, 32 Terminal 2, 10, 19, 20, 28 Terminal emulation program 19 Terminating character 8, 10, 22, 23, 28, 30 Time tag 1, 7-9, 17, 18, 23, 27, 28, 31, 33 U,V Unit number 9, 17, 27 User-programmable 7, 8 Verbose mode 7 Voltage 1, 2, 4, 7 Voltage range 2, 4 Volts 2 W Word size 19, 20 45