API Commands
TYPE
EXECUTION
SYNTAX
DESCRIPTION
The Set Digital Outputs (
banks) on the unit to a certain setting. The Bank to Digital Output mapping is as follows:
Each argument
argument is a decimal number, which, when converted to binary format is the desired settings for that bank of
digital outputs. For example, an argument of
as active high and
1
Note: The setting of a bank will force the digital outputs to the specified setting regardless of the current state of
If it is desired to not affect a certain bank (maybe because it is being used for alarm outputs), a value of
be used for the argument for that bank. This will effectively "mask off" that bank from being updated.
There are 8 digital input lines and 32 digital output lines available on a rear panel DB50 connector. The digital
output can be controlled either "automatically" via the alarm settings or manually using the Set Digital Outputs (
command. To determine the digital output state, use the User Status (
The Set Digital Outputs (
be cleared (logic false) or set (logic true). This command will force the specified digital output to the specified
condition. A
digital output(s) low.
Each digital output line will drive 5 standard TTL loads. All digital input lines are one-eighth (0.125) TTL loads. All
inputs are protected against damage from high static voltages. Normal precautions should be taken to limit the
input voltages to 0.3 to 5.3 volts. All digital I/O lines are referenced to digital ground.
EXAMPLE
PRINT#1, "OUTPUT07;O?X"
PRINT#1, "ENTER07"
LINE INPUT #2, N$
PRINT N$
PRINT#1, "OUTPUT07;O0,999,76,234X"
PRINT#1, "OUTPUT07;O?X"
PRINT#1
LINE INPUT #2, O$
PRINT O$
A-44
O
System
Immediate
Set any of the 32 digital outputs (separated into four 8-bit banks) to a
Obank1,
bank2,
bank3,
bank4
Query current state of digital output.
O?
) command may be used to force any of the 32 digital outputs (separated into four 8-bit
O
represents the desired bit mapping for the corresponding bank of digital outputs. The
bankn
as active low). This would affect the digital outputs of Bank 2 as follows:
0
9
10
high
high
the digital outputs (such as if an alarm has been assigned to the output).
) command allows you to enter an output range and specify whether the output should
O
will drive the corresponding digital output(s) high. Conversely, a
1
- Set Digital Outputs
specified setting, where
bankn
form of the number
such that
nnn
binary format represents the desired settings for the 8-bit bank.
Bank
Digital Output
1
2
3
4
for
would be interpreted in binary as
201
bank2
Bank 2 Digital Outputs
11
12
13
low
low
high
' Get the current state of the digital outputs banks
' Screen shows
' Set Banks 1, 3, and 4
' Get the current state of the digital outputs
' Screen shows
' Note that Bank 2 did not change
(for
=
,
,
,
) is an argument in the
n
1
2
3
4
<
<
when converted to
000
nnn
255
01 - 08
09 - 16
17 - 24
25 - 32
11001001
14
15
16
low
low
high
) commands.
U
will drive the corresponding
0
O128,255,065,024
O000,255,076,234
ChartScan User's Manual
Appendix A
(with
can
999
)
O
Need help?
Do you have a question about the OMB-CHARTSCAN 1400 and is the answer not in the manual?