The text of a manual · part 17 of 23
Owner's Manual: BayTech M Series DAC, pages 161 to 170
Pages 161 to 170 of 229
The original document is the PDF (499 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the BayTech M3 DAC
Page 161
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________
The V77 ADM-1 generates digital data messages by taking samples of the analog input voltage(s) at a specified sampling rate. The V77 ADM-1 computes an average value of these samples and presents this average to the host device in the form of a data message. The number of samples taken per data message is determined by the Number of Samples to Average. The V77 ADM-1 will sample analog inputs in one of three ways: Command (via command only), Immediate, and Schedule. A host module may request a data message on command using any of these Sampling Methods. Immediate Sampling Method provides continuous or repetitive interval sampling. Schedule Sampling Method is basically the same as Immediate except sampling begins at a specified Sample Start Time. If a Sample Interval is used, the V77 ADM-1 will sample the input(s) in repetitive intervals. The Sample Interval is the time between the start of sample periods. A sample period is the time the V77 ADM-1 actually samples between each Sample Interval. The sample period is computed by dividing the Sampling Rate by the Number of Samples to Average. For example, suppose every 10 minutes you desire to sample at a 60 S/sec rate and average 720 samples. The V77 ADM-1 acquires 720 samples in 12 seconds (720/60), buffers the data, then waits 9 minutes and 48 seconds before taking another 720 samples. If the Reporting Period is set to 10 minutes, the data collected during the most recent Sample Interval is reported.
Figure 3: Sample Interval DATA MESSAGE PRESENTATION Data message presentation varies slightly in format depending on module configuration. Entries such as, time tag, data format, number of active channels, etc. all change how data messages appear to a host-controller. However, all data messages are presented in the same basic order of fields as follows: UU:MM,CC HHH or DDDD or VV MM/DD/YY HH:MM:SS
149
Page 162
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________ where, UU is the M Series Unit Number MM is the V77 ADM-1 Module Number CC is the V77 ADM-1 Channel Number HHH is a Hex value ranging from 000 to FFF DDDD is a Decimal value ranging from 0 to 4095 VV is an Engineering unit ranging from -10 to +10 volts MM is the month (if Time Tag enabled) DD is the day (if Time Tag enabled) YY is the year (if Time Tag enabled) HH is the hour (if Time Tag enabled) MM is the minute (if Time Tag enabled) SS is the second (if Time Tag enabled) EXAMPLE: A complete data message from an V77 ADM-1 installed as Unit 1, Module 15 with Channels 1-8 active using Hex Data Format and having Time Tag enabled, would appear as follows: 1:15:1 1:15:2 1:15:3 1:15:4 1:15:5 1:15:6 1:15:7 1:15:8
7FE 7FA 8C3 CD4 568 04E CBA 7D2
11/18/93 11/18/93 11/18/93 11/18/93 11/18/93 11/18/93 11/18/93 11/18/93
09:12:22 09:12:22 09:12:22 09:12:22 09:12:22 09:12:22 09:12:22 09:12:22
UNIT MODULE CHANNEL DATA DATE TIME Data messages requested through the use of Data Commands might include the messages from one or more channels. V78 OPERATION GENERAL The main feature of the V78 CRM-1 is eight (8) fully programmable, electromechanical, form-C, single-pole-double-throw (SPDT) relays. Each relay has a
150
Page 163
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________ set of normally open (NO) and normally closed (NC) contacts and is capable of switching AC and DC loads up to 3 amps. The V78 CRM-1 employs electromechanical relays having zero current leakage and can be used to switch very low-current loads. All relays may change state on demand via data commands or time schedule. Individual relay status may be presented to a host system automatically or upon request. The relay status may be the current state or change-in-state history of a specific relay. Data associated with the relay status which is generated by the V78 CRM-1 and sent to the host system will be referred to as a data message. Data messages consist of the actual relay status (energized or de-energized) preceded by the appropriate unit/module/relay number and may include a Time Tag showing the date and time the relay status was recorded. Data messages are supplied to the host system upon request, at a specific time, or as events occur. An event is the change-instate of a relay. You have the choice of programming the V78 CRM-1 via verbose (menu-driven) or non-verbose (dynamic) configuration mode. When using verbose configuration mode, a series of menus will prompt you to enter the desired configuration parameters. Non-verbose or dynamic configuration mode allows you to program certain parameters of the V78 CRM-1 by downloading configuration. You may review the current V78 CRM-1 configuration status from the control panel. USER-PROGRAMMABLE FEATURES You may program the Relay Operating Setup, Reporting Setup, and Dynamic Configuration on the V78 CRM-1. RELAY OPERATING SETUP Relay Operating Setup allows you to program the V78 CRM-1 relay time schedule. You may view the current relay schedule, create and/or modify the current schedule, enable or disable individual events, and delete individual events. The default relay schedule is null (no schedule). REPORTING SETUP Reporting Setup allows you to program how the V78 CRM-1 reports data messages to the host module. The items you may program in the Reporting Setup include Reporting Method, Report Start Time, Report Interval, Set Host Address, Time Tag, and Terminating Character(s). REPORTING METHOD
151
Page 164
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________
Reporting Method is the manner in which data messages are sent to a designated host computer/controller. The V78 CRM-1 provides three Reporting Methods. These are Command (upon request via data commands), Immediate (upon exiting configuration), and Schedule (where reporting begins at a specified time). The default Reporting Method is Command. 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. REPORT INTERVAL You may program the V78 CRM-1 to report in repetitive periods using Schedule Reporting Method, where the V78 CRM-1 will report all event data messages in the receive buffer after the specified Report Interval has elapsed. The V78 CRM-1 will report until the buffer is empty and then report again after the specified Report Interval has expired. The default Report Interval is 00:00 (every 24 hours). HOST ADDRESS Host Address is the designated host module where event data messages are sent when using Immediate or Schedule Reporting Method. The Host Address consists of the Unit Number (1 to 32), Module Number (1 to 16), and Port Number (1 to 4) of the designated host module. The default Host Address is Unit 1, Module 1, Port 1. TIME TAG When Time Tag is enabled, a time tag is included in each data message which is appended immediately after the actual relay status. The time tag consists of the month, day, year, hour, minute, and second at which the data was calculated. Time Tag may be enabled or disabled. The default Time Tag is disabled. TERMINATING CHARACTER(S) The Terminating Character(s) is added at the end of a complete data message 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 <cr> followed by 0A Hex <lf>.
152
Page 165
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________
DYNAMIC CONFIGURATION You may enable or disable Dynamic Configuration for the V78 CRM-1. Dynamic configuration mode allows non-verbose or "on-the-fly" configuration commands to be issued to the V78 CRM-1. The default Dynamic Configuration setting is disabled. DATA COMMANDS You may issue V78 CRM-1 data commands through a host module to perform single operations while temporarily overriding the module's current operating configuration. Some data commands apply to all types of DAC modules, while others apply to specific modules. Data commands may be entered repeatedly to get specific data messages or to direct the V78 CRM-1's actions. You may issue a single data command for action on multiple relays. Data commands must be used to obtain data messages when using Command Reporting Method. V78 CRM-1 data commands are sent through a host module using the following procedure: 1.
2.
Select the V78 CRM-1 from the host module by sending a select sequence which consists of the port select code ($BT - default), the appropriate unit number followed by a colon (01: to 30: for cascaded units only), the desired module number (2 to 16), and <cr> (0D Hex). For example, to select a V78 CRM-1 installed as Module 15 in a non-cascaded unit using the default port select code, send $BT15<cr>.
Once the V78 CRM-1 is selected, it will go into Command Mode and allow you to send data commands. The V78 CRM-1 data commands begin with two capital letters designating the specific command and are terminated with a <cr>. Most data commands also require a number between the command letters and <cr>. This number is typically the desired relay(s) for the data command. If you have a requirement to send the data command to multiple relays simultaneously, you may use one of the following formats as shown for the SA (sample) command: SA1,2,3,4,5,6,7,8<cr> SA1-8<cr> SA/0<cr>
Take a single sample for Ports 1-8 Take a single sample for Ports 1-8 Take a single sample for Ports 1-8
153
Page 166
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________ SA1,2,4-8<cr>
3.
Take a single sample for Ports 1, 3, 4, 5, 6, 7, and 8
After you have sent the desired data commands to the V78 CRM-1 module, you may disconnect by sending $BT<cr>. You may disconnect from the V78 CRM-1 and select a different module or the base unit by sending $BTn<cr.
IMPORTANT: If the V78 CRM-1 is operating in self reporting mode (i.e., Immediate or Schedule Reporting Method) and a host computer/controller issues a data command, the host system must disconnect by sending the Port Select Code and <cr> before the V78 CRM-1 will resume sending data messages to the designated host module. CLEAR BUFFER COMMAND The Clear Buffer (CB) command is used to clear stored data messages from the buffer of the selected relay(s). The Clear Buffer command has the following format: CBn<cr> where n = Relay# (1 to 8 or 0 for all). REPORT ALL BUFFERED DATA MESSAGES COMMAND The Report All Buffered Data Messages (RA) command instructs the V78 CRM-1 to report all data messages currently stored in the buffer of the selected relay(s). The Report All Buffered Data Messages command has the following format: RAn<cr> where n = Relay# (1 to 8 or 0 for all). REPORT A SINGLE BUFFERED DATA MESSAGE COMMAND The Report A Single Buffered Data Message (RS) command instructs the V78 CRM1 to report the first data message stored in the buffer of the selected relay(s). The Report A Single Buffer Sample command has the following format: RSn<cr> where n = Relay# (1 to 8 or 0 for all). SAMPLE COMMAND
154
Page 167
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________
The Sample (SA) command instructs the V78 CRM-1 to read and report a the open or closed status for each relay specified. The Sample command has the following format: SAn<cr> where n = Relay# (1 to 8 or 0 for all). DE-ENERGIZE RELAY COMMAND The De-energize Relay (DR) command instructs the V78 CRM-1 to de-energize the specified relay(s). The De-energize Relay command has the following format: DRn<cr> where n = Relay# (1 to 8 or 0 for all). ENERGIZE RELAY COMMAND The Energize Relay (ER) command instructs the V78 CRM-1 to energize the specified relay(s). The Energize Relay command has the following format: ERn<cr> where n = Relay# (1 to 8 or 0 for all). DATA MESSAGE GENERATION AND RELAY CONTROL A host computer/controller connected to a V71 or V96 host module may receive data messages and control individual relays on a V78 CRM-1 module. Data message generation depends on the Reporting Method used. When using Immediate Reporting Method, the V78 CRM-1 will generate an event data message whenever a change-instate of a relay occurs (i.e., energized to de-energized or vice versa). When using Schedule Reporting Method, the V78 CRM-1 will generate an event data message whenever a change-in-state of a relay occurs after the Report Start Time has elapsed . When using Command Reporting Method, the V78 CRM-1 will generate an event data message using the RAn<cr> or RSn<cr> commands only. Regardless of the Reporting Method used, the host system may obtain a data message showing the present state of a relay by sending the SAn<cr> command or clear the buffer of a relay by sending the CBn<cr> command. Individual relays may be controlled directly by a host computer/controller via command, by schedule, or both. When relays are controlled using a schedule, each
155
Page 168
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________ energizing and de-energizing of a relay is referred to as a relay event. Up to 12 relay events may be programmed in the schedule. Once the relay event schedule has been programmed, you may enable, disable, or delete specific relay events. Each relay event consists of a Start Time, Duration, Interval, and Relay Number. The Event Start Time consists of the day of the week and the hour/minute/second of the day the initial event is to occur. The Event Duration Time is the amount of time a specified relay will be energized and may be programmed in hours/minutes or milliseconds. Interval is the desired time subsequent occurrences of the same event will transpire. Interval consists of the desired day of the week and hour/minute/second of the day. The Relay Number is the particular relay that will be energized for a specific event. For example, you could program a relay to activate a sprinkler system starting on the following Monday at 5:00pm for one hour and then occurring every Monday, Wednesday, and Friday at 5:00pm for one hour after that. DATA MESSAGE PRESENTATION Data message presentation varies slightly in format depending on module configuration. Entries such as, time tag, data format, number of active channels, etc. all change how data messages appear to a host-controller. However, all data messages are presented in the same basic order of fields as follows: UU:MM,CC HHH or DDDD or VV MM/DD/YY HH:MM:SS where, UU is the M Series Unit Number MM is the V77 ADM-1 Module Number CC is the V77 ADM-1 Channel Number HHH is a Hex value ranging from 000 to FFF DDDD is a Decimal value ranging from 0 to 4095 VV is an Engineering unit ranging from -10 to +10 volts MM is the month (if Time Tag enabled) DD is the day (if Time Tag enabled) YY is the year (if Time Tag enabled) HH is the hour (if Time Tag enabled) MM is the minute (if Time Tag enabled) SS is the second (if Time Tag enabled) EXAMPLE: A complete data message from an V78 CRM-1 installed as Unit 1, Module 15 with Channels 1-8 active using Hex Data Format and having Time Tag enabled, would appear as follows: 1:15:1
156
7FE
11/18/93
09:12:22
Page 169
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________
1:15:2 1:15:3 1:15:4 1:15:5 1:15:6 1:15:7 1:15:8
7FA 8C3 CD4 568 04E CBA 7D2
11/18/93 11/18/93 11/18/93 11/18/93 11/18/93 11/18/93 11/18/93
09:12:22 09:12:22 09:12:22 09:12:22 09:12:22 09:12:22 09:12:22
UNIT MODULE RELAY # RELAY STATUS DATE TIME Data messages requested through the use of Data Commands might include the messages from one or more channels. V79 AND V80 OPERATION GENERAL The V79 PDI-1 and V80 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.). The V79 PDI-1 module has 16 channel switch inputs providing a reliable method to detect and report a state change from high resistance (open) to continuity (closed) or vice versa. The V80 V80 PDI-2 is a 16 channel opticallyisolated voltage input module that is non-polarity sensitive and can be individually set to detect the presence or the change of state of AC or DC inputs. We will refer to a change in state of a switch closure (V79 PDI-1) or a voltage change (V80 V80 PDI-2) as an event. An event sample is the actual data associated with an event which is calculated by the PDI module and sent to the host computer/controller. Individual PDI channels can be programmed to report event samples upon request via data commands (Command Reporting Method), at a specific date/time (Schedule Reporting Method), or as the event occurs (Immediate Reporting Method). Multiple events may be stored for later retrieval and analysis. The PDI features a latch mode where the time and state of the initial event is latched and held until user reset. False reporting of events is prevented by programming variable debounce times. Event samples are preceded by the appropriate unit, module, and channel number and may be appended with a "real time" Time Tag showing the date and time the status was recorded.
157
Page 170
M SERIES DAC BASE UNIT AND MODULE OPERATION ____________________________________________________________________________
You have the choice of programming the PDI via verbose (menu-driven) or nonverbose (dynamic) configuration mode. When using verbose mode, a series of menus will prompt you to enter the desired parameters. Non-verbose mode allows you to program the PDI by downloading configuration commands. USER-PROGRAMMABLE FEATURES You may program the Sampling Setup, Reporting Setup, and Dynamic Configuration on the PDI. 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. The debounce delay may be programmed from 0 (for no debounce) to 65535 milliseconds. The Latch Polarity is used to latch individual inputs based on a positive going (LO to HI) or negative going (HI to LO) input. The latch information is retained in memory until recalled by the user. The default Debounce Delay time is 100 milliseconds and the default Latch Polarity is a HI to LO transition. REPORTING SETUP Reporting Setup allows you to program how the PDI reports event samples to the host module. The items you may program in the Reporting Setup include Reporting Method, Report Start Time, Report Interval, Set Host Address, Data Format, Time Tag, and Terminating Character(s). REPORTING METHOD Reporting Method is the manner in which event samples are sent to the designated host module. The PDI provides three Reporting Methods: Command (upon request via data commands), Immediate (upon exiting configuration), and Schedule (where reporting begins at a specified time). The default Reporting Method is Command. 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.
158