Omega Engineering OMB-NETSCAN 1500 User Manual page 175

Ethernet/internet-based data logging & control instrument
Table of Contents

Advertisement

Appendix A
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
1
as active high and
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, "O?X"
LINE INPUT #1, N$
PRINT N$
PRINT#1, "O0,999,76,234X"
PRINT#1, "O?X"
LINE INPUT #1, O$
PRINT O$
NetScan User's Manual
O
System
Immediate
Obank1,
Set any of the 32 digital outputs (separated into four 8-bit banks) to a
bank2,
bank3,
bank4
O?
Query current state of digital output.
O
) command may be used to force any of the 32 digital outputs (separated into four 8-bit
bankn
represents the desired bit mapping for the corresponding bank of digital outputs. The
0
as active low). This would affect the digital outputs of Bank 2 as follows:
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
1
will drive the corresponding digital output(s) high. Conversely, a
- Set Digital Outputs
specified setting, where
bankn
form of the number
nnn
such that
binary format represents the desired settings for the 8-bit bank.
Bank
Digital Output
1
2
3
4
201
for
bank2
would be interpreted in binary as
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
API Command Reference
(for
n
=
1
,
2
,
3
,
4
) is an argument in the
000
<
nnn
<
255
when converted to
01 - 08
09 - 16
17 - 24
25 - 32
11001001
14
15
16
low
low
high
U
) commands.
0
will drive the corresponding
O128,255,065,024
O000,255,076,234
(with
999
can
O
)
A-35

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omb-netscan

Table of Contents