B&B Electronics 232OPSDA Manuel D’Utilisation
Documentation Number 232OPSDA1397 Manual
Table of Contents
i
B&B Electronics -- PO Box 1040 -- Ottawa, IL 61350
PH (815) 433-5100 -- FAX (815) 433-5105
TABLE OF CONTENTS
CHAPTER 1: INTRODUCTION ...........................................................1
232OPSDA F
EATURES
...........................................................................1
P
ACKING
L
IST
.........................................................................................2
S
OFTWARE
I
NSTALLATION
......................................................................3
232OPSDA S
PECIFICATIONS
..................................................................3
Analog to Digital Converter ..............................................................3
Digital Input.......................................................................................4
Digital Output ....................................................................................4
Power Supply .....................................................................................4
Communications ................................................................................4
Digital Input.......................................................................................4
Digital Output ....................................................................................4
Power Supply .....................................................................................4
Communications ................................................................................4
CHAPTER 2: CONNECTIONS .............................................................5
A/D C
ONNECTIONS
.................................................................................5
D
IGITAL
I/O C
ONNECTIONS
.....................................................................7
Digital Input.......................................................................................7
Digital Output ....................................................................................7
Digital Output ....................................................................................7
S
ERIAL
P
ORT
C
ONNECTIONS
...................................................................7
P
OWER
S
UPPLY
C
ONNECTIONS
...............................................................9
CHAPTER 3: COMMANDS ................................................................11
S
YNTAX
................................................................................................12
R
EADING
A/D C
HANNELS
C
OMMAND
...................................................13
R
EADING
D
IGITAL
I/O C
OMMAND
........................................................14
S
ET
D
IGITAL
O
UTPUT
C
OMMAND
.........................................................14
CHAPTER 4: A/D..................................................................................15
S
AMPLING
R
ATE
...................................................................................15
A/D C
ONVERTER
R
ANGE
......................................................................15
Non-buffered 0 to 5VDC A/D Inputs................................................15
Buffered 0 to 5V A/D Inputs.............................................................15
0 to 10VDC A/D Input......................................................................16
4-20mA Current Loop A/D Input .....................................................16
Buffered 0 to 5V A/D Inputs.............................................................15
0 to 10VDC A/D Input......................................................................16
4-20mA Current Loop A/D Input .....................................................16
CHAPTER 5: SOFTWARE ..................................................................19
A
PPLICATION
P
ROGRAM
I
NTERFACE
.....................................................19
B232OPSDA_ReadAnalog...............................................................19
B232OPSDA_ReadDigital ...............................................................20
B232OPSDA_SetDigitalOutput .......................................................21
deinitComPort..................................................................................21
initComPort......................................................................................21
B232OPSDA_ReadDigital ...............................................................20
B232OPSDA_SetDigitalOutput .......................................................21
deinitComPort..................................................................................21
initComPort......................................................................................21
L
OW
-L
EVEL
C
OMMUNICATIONS
............................................................22
Read A/D Command ........................................................................23
Read Digital I/O Command .............................................................24
Set Digital Output State ...................................................................26
Read Digital I/O Command .............................................................24
Set Digital Output State ...................................................................26