Campbell SDM-SIO4 Bedienungsanleitung

SDM-SIO4
4-Channel Serial I/O
Interface
User Guide
Issued 17.3.97
Copyright 1997 Campbell Scientific Ltd.


Guarantee
This equipment is guaranteed against defects in materials, workmanship,
and software. This guarantee applies for twelve months from date of
delivery. We will repair or replace products which prove to be defective
during the guarantee period provided they are returned to us prepaid. The
guarantee will not apply to:
•Equipment which has been modified or altered in any way without the
written permission of Campbell Scientific
•Batteries
•Any product which has been subjected to misuse, neglect, acts of God
or damage in transit.
Campbell Scientific will return guaranteed equipment by surface carrier
prepaid. Campbell Scientific will not reimburse the claimant for costs
incurred in removing and/or reinstalling equipment. This guarantee and
the Company’s obligation thereunder is in lieu of all other guarantees,
expressed or implied, including those of suitability and fitness for a
particular purpose. Campbell Scientific is not liable for consequential
damage.
Please inform us before returning equipment and obtain a Repair Refer-
ence Number whether the repair is under guarantee or not. Please state the
faults as clearly as possible, and if the product is out of the guarantee
period it should be accompanied by a purchase order. Quotations for re-
pairs can be given on request.
When returning equipment, the Repair Reference Number must be clearly
marked on the outside of the package.
Note that goods sent air freight are subject to Customs clearance fees
which Campbell Scientific will charge to customers. In many cases, these
charges are greater than the cost of the repair.
Campbell Scientific Ltd,
Campbell Park, 80 Hathern Road,
Shepshed, Leicestershire, LE12 9RP, UK
Tel: +44 (0) 1509 601141
Fax: +44 (0) 1509 601091
Email: [email protected]
www.campbellsci.co.uk


i
Contents
Section 1. Introduction..................................................... 1-1
1.1 What is the SDM-SIO4?.................................................................................1-1
1.2 Specifications .................................................................................................1-3
1.2.1 Serial Ports............................................................................................1-3
1.2.2 SDM Port..............................................................................................1-4
1.2.3 Case ......................................................................................................1-4
1.2.4 Power Requirements.............................................................................1-4
1.2.5 Environmental Operating Range ..........................................................1-4
1.2.6 Other Key Features...............................................................................1-5
Section 2. Installation and Hardware Set-Up.................. 2-1
2.1 Setting the SDM Address ...............................................................................2-1
2.2 Selecting RS232 or 5V Logic for Each Port...................................................2-2
2.3 Connections to the SDM-SIO4.......................................................................2-2
2.3.1 Transient Protection and Grounding.....................................................2-2
2.4 Power-on Tests — the Status LED.................................................................2-3
Section 3. Understanding How the SDM-SIO4 Handles
Data................................................................. 3-1
3.1 Introduction ....................................................................................................3-1
3.1.1 Method of Entering Special / Control Characters.................................3-1
3.2 Input Filters ....................................................................................................3-2
3.2.1 Filter Types...........................................................................................3-2
3.3 Output Formatting ..........................................................................................3-5
3.3.1 Simple Output Formatter ......................................................................3-5
3.3.2 String Output Formats ..........................................................................3-6
Section 4. Programming the SDM-SIO4..........................4-1
4.1 Command Line Operation and Structure........................................................4-1
4.2 Entering Commands .......................................................................................4-1
4.3 Basic Commands............................................................................................4-2
4.4 Advanced Commands.....................................................................................4-3
Section 5. Programming the SDM-SIO4..........................5-1
5.1 Instruction 113 Parameters.............................................................................5-1
5.1.1 Parameter 1 — Reps .............................................................................5-1
5.1.2 Parameter 2 — Address........................................................................5-1
5.1.3 Parameter 3 — Mode............................................................................5-1
5.1.4 Parameters 4, 5 and 6 — SDM-SIO4 Command..................................5-1
5.1.5 Parameter 7 — Values per Rep.............................................................5-2
5.1.6 Parameter 8 — Starting Input Location................................................5-2
5.1.7 Parameters 9 and 10 — Multiplier and Offset......................................5-2
5.2 Commands and Options (Parameters 4, 5 and 6) ...........................................5-2
5.2.1 Understanding Parameter Options and Returned Values......................5-3
5.2.2 Command 1: Poll of Available Data....................................................5-3
5.2.3 Command 2: Signatures.......................................................................5-4
5.2.4 Command 3: Flush all Receive Buffers...............................................5-4
5.2.5 Command 4: Send Data to Datalogger ................................................5-4

ii
5.2.6 Command 5: Status .............................................................................5-4
5.2.7 Command 6: Flush Transmit Buffer....................................................5-5
5.2.8 Command 7: Activate Command Line................................................5-5
5.2.9 Command 8: Poll Tx Buffers for Data ................................................5-5
5.2.10 Command 9: Flush Converted Data Buffer.......................................5-5
5.2.11 Command 66: Send Single-Byte Data to Datalogger .........................5-5
5.2.12 Command 67: Get Return Code ........................................................5-6
5.2.13 Command 320: Send Data to SDM-SIO4 ..........................................5-6
5.2.14 Command 321: Execute Command Line Command.........................5-6
5.2.15 Command 1024: Send String to Device ............................................5-8
5.2.16 Command 1025: Transmit a Byte......................................................5-8
5.2.17 Command 1026: Serial Port Status....................................................5-8
5.2.18 Command 1027: ‘Manual’ Handshake Mode .................................5-10
5.2.19 Command 2049: Set Communications Parameters ..........................5-10
5.2.20 Command 2054: Set Up Receive Filter...........................................5-12
5.2.21 Command 2304: Transmit String and/or Data to Device ................5-12
5.2.22 Command 2305: Transmit Byte(s) ..................................................5-14
5.3 SDM-SIO4 Configuration Examples ...........................................................5-14
5.3.1 Sensors Where the Datalogger Can Request Data by Sending a Prompt
or Using a Handshaking Line:............................................................5-16
5.3.2 Sensors Which Send Data Out Without Prompting............................5-18
5.4 Outputting Datalogger Data .........................................................................5-25
5.5 Flushing the Input and Output Buffers.........................................................5-26
5.6 Return Error Codes ......................................................................................5-26
Section 6. Data Error Detection .......................................6-1
6.1 Error detection with the SDM-SIO4 ..............................................................6-1
6.2 Received Data ................................................................................................6-1
6.2.1 Example of Using Received Data Filters..............................................6-3
6.2.2 CR10X Program Example....................................................................6-3
6.3 Transmitted Data............................................................................................6-6
6.3.1 Example of Using Transmitted Data Filters .........................................6-7
6.3.2 CR10X Program Example....................................................................6-8
6.3.3 Alternative CR10X Program ................................................................6-8
Appendix A. ASCII Table ................................................. A-1
Appendix B. Serial Port Data Transfer Modes............... B-1
B.1 Baud Rates.................................................................................................... B-1
B.2 Stop Bits ....................................................................................................... B-1
B.3 Data Length .................................................................................................. B-1
B.4 Parity Bits ..................................................................................................... B-2
B.5 Serial Handshake Modes .............................................................................. B-2
Figures
1. Schematic Diagram of the SDM-SIO4.............................................................1-2
Tables
1. SDM-SIO4 Serial Port Pin Configuration........................................................1-3
2. Address Settings...............................................................................................2-1
3. Status LED Error Codes...................................................................................2-3
4. Fixed Strings Currently Allocated....................................................................3-6

1-1
Section 1. Introduction
The SDM-SIO4 has four configurable serial RS232 ports which allow it to be connected
to intelligent serial sensors, display boards, printers or satellite links. It can also be used
in many other applications where the data is transferred in a serial fashion. This device
is designed to send data to and receive data from the sensors, and process it in parallel
with the datalogger’s own program sequence, thus making the complete datalogging
system faster and more efficient.
The SDM-SIO4 can handle the incoming and outgoing data in many different ways. It
can either send data in the same format as sent from the datalogger or it can be
programmed to send pre-stored data strings to the sensor. Combinations of data sent
from the datalogger and pre-stored strings can be sent, allowing complex formatted data
to be sent. For input, the SDM-SIO4 can transfer data in the same form as received from
a sensor to the datalogger, or it can be programmed to filter out critical data from a
sensor and only pass back the data the datalogger requires.
This manual assumes that you have a basic knowledge of the
terminology and theory of serial communications. For further
information please refer to one of the standard textbooks on
this subject.
1.1 What is the SDM-SIO4?
The SDM-SIO4 is a device that is connected to a datalogger through the
datalogger SDM port. The SDM port is specific to Campbell Scientific
dataloggers and acts as a high-speed data exchange mechanism. On some
dataloggers it is a dedicated port; on others it is implemented using control
ports C1, C2 and C3.
Figure 1, on the next page, is a Schematic Diagram giving an overview of
the functions of the SDM-SIO4. When used in conjunction with the
following sections of this manual, it may help you to understand how the
SDM-SIO4 operates.
The datalogger program controls the sequence and timing of data exchange
with the sensors. However, unlike most other Campbell Scientific interfaces
the SDM-SIO4 can be configured in two ways:
1. By inserting commands in the datalogger program
2. By connecting a computer running a terminal emulation program to
serial port 1 on the SDM-SIO4. Pressing a switch on the SDM-SIO4
temporarily switches this port to allow you to access a ‘command line’
(for entering command strings in much the same way as entering
commands at the DOS prompt on a PC).
The ‘command line’ option allows you to store complex output strings and
data filters in the SDM-SIO4. This set-up information is stored in battery-
backed, write-protected memory, which allows you to set up the SDM-SIO4
in the office and then move it to the site of installation in an unpowered
state.
NOTE

SDM-SIO4 4-Channel Serial I/O Interface User Guide
1-2
¿¾
½ ¾
¿À
¿ À ¾
Switches -
Go to 1 if command
line active
½½
½
¾
¾
¿¿¿
¿¿ ¿
¿
À
À
À
À
À
¿
¿
To Other Ports
To Other Ports
1
À
PORT
Handshake
Control Tx Buffer Rx Buffer
Command Line
Control
Datalogger
Command
Control
CRC/SIG
Driver
Format
Driver
& User
Strings
CRC/SIG
Driver
Filter Driver
Converted
Data Buffer
1
00
K K K
Handshake Line
Command Line
Switch Status
LED
Datalogger can
Execute Command
Line Commands
Rx
Tx
Figure 1 Schematic Diagram of the SDM-SIO4
Data HS SDE
C1 C2 C3
to SDM port
of datalogger
Control Lines
Data Lines

Section 1 . Introduction
1-3
1.2 Specifications
1.2.1 Serial Ports
The SDM-SIO4 has four serial ports which can be configured independently
to use different serial data formats and baud rates (from 25 to 115,200
baud). These ports are 0-5V logic or ±5V for RS232 and are configured
similar to a PC ‘AT’ style DTE serial port.
Handshaking, to control the flow of data to and from a sensor, can be done
by the datalogger or SDM-SIO4 if needed, and can be in the form of
hardware or software protocols.
Table 1 SDM-SIO4 Serial Port Pin Configuration
Pin No. SDM-SIO4 Port
1. RI ring indicate/DCD in
2. RX in
3. TX out
4. DTR data terminal ready out
5. Ground
6. DSR in
7. RTS request to send out
8. CTS clear to send in
9. +5V if internal link fitted, otherwise no connection
If you have an older SDM-SIO4 which has female ‘D’ type
connectors, your connections will be different from those
shown above. Please either refer to your earlier Manual or
contact Campbell Scientific for further details.
Serial Port Buffers
Each serial port has a receive (Rx) buffer, a transmit (Tx) buffer and a
processed data storage buffer. It is important to understand these buffers as
their size can determine how often data must be collected from the
SDM-SIO4 by the datalogger. It is important to avoid letting these buffers
fill up. They are of the ‘fill and stop’ type, i.e. if they fill up, and more data
is sent into the buffer, the extra data will be lost.
The receive and transmit buffers for each port are 981 bytes long and there
is an additional 16-byte hardware buffer for each port.
The processed data storage buffer (used to store converted data ready for the
datalogger to collect) is 891 bytes long, which is large enough for 222 4-
byte Campbell Scientific floating point values (refer to the datalogger
manual for more details of this format).
There is one more buffer, which is used only when the datalogger outputs
floating point data via the SDM-SIO4. This buffer is 241 bytes — long
enough for 60 floating point values. (The size of this buffer is rarely a
limitation as it is emptied quickly.)
NOTE

SDM-SIO4 4-Channel Serial I/O Interface User Guide
1-4
1.2.2 SDM Port
This serial port is to connect to the SDM port of the datalogger, e.g. via C1,
C2 and C3 on a CR10X. The port is a set of screw terminals marked C1,
C2, C3, I/O, +12 and G. C3 is the Synchronous Device Enable line, C1 is
the Data line, C2 is the Clock line and I/O is a special-purpose Interrupt
line.
The Interrupt line can be used with some dataloggers to tell the datalogger
to collect data from the sensor. The SDM-SIO4 pulses the I/O line for 50ms
every 250ms if there is data available for the datalogger to collect. This can
be used for sensors which send out data without prompting. For dataloggers
which support interrupt-driven subroutines this can simplify program
operation.
The SDM port is used by the datalogger to communicate with the SDM-
SIO4 and other SDM peripherals. The speed at which data is transferred is
under the control of the datalogger and this can vary with other activities in
the datalogger and also the length of the SDM cables. The typical transfer
speed to and from the SDM is one byte per millisecond.
Multiple SDM-SIO4s can be connected to the datalogger in parallel with
other SDM-SIO4s or other SDM devices. The only difference would be the
SDM address of each device.
For high speed communications the SDM cable should be
kept as short as possible and connections made using screened
cable. The cable between the SDM-SIO4 and the datalogger
should not exceed 3m in length.
1.2.3 Case
The case is made of anodised aluminium. It has four slots for 9-way ‘D’
connectors and one slot for the SDM 6-way screw terminals. There is a
momentary push-button switch for command line activation. The size of the
case is 184 x 88 x 34mm. There is a tab at each end to allow for vertical
mounting.
1.2.4 Power Requirements
The SDM-SIO4 has a typical quiescent current consumption of about
0.7mA. This increases to about 29mA with all 4 ports active. The quiescent
state is entered if there has been no SDM or port activity for approximately
30ms.
The unit can be powered from an unregulated 12V supply (acceptable range
9 - 18V DC).
1.2.5 Environmental Operating Range
-25°C to +50°C (contact Campbell Scientific for extended temperature
requirements)
0 - 95% RH (non-condensing)
NOTE
Andere Handbücher für SDM-SIO4
1
Inhaltsverzeichnis
Andere Campbell E/A-System Handbücher

Campbell
Campbell SDM-SIO2R Bedienungsanleitung

Campbell
Campbell SDM-SIO1 Bedienungsanleitung

Campbell
Campbell SDM-SIO1A Bedienungsanleitung

Campbell
Campbell 4WPB100 Bedienungsanleitung

Campbell
Campbell SDM-CVO4 Bedienungsanleitung

Campbell
Campbell SDM-AO4A Bedienungsanleitung

Campbell
Campbell 3WHB10K Bedienungsanleitung
Beliebte E/A-System Handbücher anderer Marken

WAGO
WAGO 750-344 Bedienungsanleitung

Teknim
Teknim TWM-1887 Bedienungsanleitung

Intelligent Appliance
Intelligent Appliance IA-2662-E Bedienungsanleitung

BERGHOF
BERGHOF ECC DIO 16/16 Bedienungsanleitung

Advantech
Advantech PCM-27J3AU Installations- und Betriebshandbuch

Festo
Festo CP-E08-M12-CL Bedienungsanleitung











