Campbell SDM-SIO1A User manual

INSTRUCTION MANUAL
SDM-SIO1A and SDM-SIO4A
Serial Input/Output Modules
7/20
Copyright © 2016 - 2020
Campbell Scientific
CSL I.D - 1164


Guarantee
This equipment is guaranteed against defects in materials and workmanship.
We will repair or replace products which prove to be defective during the
guarantee period as detailed on your invoice, 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 Reference
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 repairs can be given on
request. It is the policy of Campbell Scientific to protect the health of its
employees and provide a safe working environment, in support of this policy a
“Declaration of Hazardous Material and Decontamination” form will be
issued for completion.
When returning equipment, the Repair Reference Number must be clearly
marked on the outside of the package. Complete the “Declaration of
Hazardous Material and Decontamination” form and ensure a completed copy
is returned with your goods. Please note your Repair may not be processed if
you do not include a copy of this form and Campbell Scientific Ltd reserves
the right to return goods at the customers’ expense.
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,
80 Hathern Road,
Shepshed, Loughborough, LE12 9GX, UK
Tel: +44 (0) 1509 601141
Fax: +44 (0) 1509 270924
Email: support@campbellsci.co.uk
www.campbellsci.co.uk


PLEASE READ FIRST
About this manual
Please note that this manual was originally produced by Campbell Scientific Inc. primarily for the North
American market. Some spellings, weights and measures may reflect this origin.
Some useful conversion factors:
Area: 1 in2(square inch) = 645 mm2
Length: 1 in. (inch) = 25.4 mm
1 ft (foot) = 304.8 mm
1 yard = 0.914 m
1 mile = 1.609 km
Mass: 1 oz. (ounce) = 28.35 g
1 lb (pound weight) = 0.454 kg
Pressure: 1 psi (lb/in2) = 68.95 mb
Volume: 1 UK pint = 568.3 ml
1 UK gallon = 4.546 litres
1 US gallon = 3.785 litres
In addition, while most of the information in the manual is correct for all countries, certain information
is specific to the North American market and so may not be applicable to European users.
Differences include the U.S standard external power supply details where some information (for
example the AC transformer input voltage) will not be applicable for British/European use. Please note,
however, that when a power supply adapter is ordered it will be suitable for use in your country.
Reference to some radio transmitters, digital cell phones and aerials may also not be applicable
according to your locality.
Some brackets, shields and enclosure options, including wiring, are not sold as standard items in the
European market; in some cases alternatives are offered. Details of the alternatives will be covered in
separate manuals.
Part numbers prefixed with a “#” symbol are special order parts for use with non-EU variants or for
special installations. Please quote the full part number with the # when ordering.
Recycling information
At the end of this product’s life it should not be put in commercial or domestic refuse but
sent for recycling. Any batteries contained within the product or used during the
products life should be removed from the product and also be sent to an appropriate
recycling facility.
Campbell Scientific Ltd can advise on the recycling of the equipment and in some cases
arrange collection and the correct disposal of it, although charges may apply for some
items or territories.
For further advice or support, please contact Campbell Scientific Ltd, or your local agent.
Campbell Scientific Ltd, 80 Hathern Road, Shepshed, Loughborough, LE12 9GX,
UK Tel: +44 (0) 1509 601141 Fax: +44 (0) 1509 270924
Email: support@campbellsci.co.uk
www.campbellsci.co.uk


Precautions
DANGER —MANY HAZARDS ARE ASSOCIATED WITH INSTALLING, USING, MAINTAINING, AND WORKING ON
OR AROUND TRIPODS, TOWERS, AND ANY ATTACHMENTS TO TRIPODS AND TOWERS SUCH AS SENSORS,
CROSSARMS, ENCLOSURES, ANTENNAS, ETC. FAILURE TO PROPERLY AND COMPLETELY ASSEMBLE,
INSTALL, OPERATE, USE, AND MAINTAIN TRIPODS, TOWERS, AND ATTACHMENTS, AND FAILURE TO HEED
WARNINGS, INCREASES THE RISK OF DEATH, ACCIDENT, SERIOUS INJURY, PROPERTY DAMAGE, AND
PRODUCT FAILURE. TAKE ALL REASONABLE PRECAUTIONS TO AVOID THESE HAZARDS. CHECK WITH YOUR
ORGANIZATION'S SAFETY COORDINATOR (OR POLICY) FOR PROCEDURES AND REQUIRED PROTECTIVE
EQUIPMENT PRIOR TO PERFORMING ANY WORK.
Use tripods, towers, and attachments to tripods and towers only for purposes for which they are designed. Do not
exceed design limits. Be familiar and comply with all instructions provided in product manuals. Manuals are
available at www.campbellsci.eu or by telephoning +44(0) 1509 828 888 (UK). You are responsible for conformance
with governing codes and regulations, including safety regulations, and the integrity and location of structures or land
to which towers, tripods, and any attachments are attached. Installation sites should be evaluated and approved by a
qualified engineer. If questions or concerns arise regarding installation, use, or maintenance of tripods, towers,
attachments, or electrical connections, consult with a licensed and qualified engineer or electrician.
General
•Prior to performing site or installation work, obtain required approvals and permits. Comply with all
governing structure-height regulations, such as those of the FAA in the USA.
•Use only qualified personnel for installation, use, and maintenance of tripods and towers, and any
attachments to tripods and towers. The use of licensed and qualified contractors is highly recommended.
•Read all applicable instructions carefully and understand procedures thoroughly before beginning work.
•Wear a hardhat and eye protection, and take other appropriate safety precautions while working on or
around tripods and towers.
•Do not climb tripods or towers at any time, and prohibit climbing by other persons. Take reasonable
precautions to secure tripod and tower sites from trespassers.
•Use only manufacturer recommended parts, materials, and tools.
Utility and Electrical
•You can be killed or sustain serious bodily injury if the tripod, tower, or attachments you are installing,
constructing, using, or maintaining, or a tool, stake, or anchor, come in contact with overhead or
underground utility lines.
•Maintain a distance of at least one-and-one-half times structure height, or 20 feet, or the distance
required by applicable law, whichever is greater, between overhead utility lines and the structure (tripod,
tower, attachments, or tools).
•Prior to performing site or installation work, inform all utility companies and have all underground utilities
marked.
•Comply with all electrical codes. Electrical equipment and related grounding devices should be installed
by a licensed and qualified electrician.
Elevated Work and Weather
•Exercise extreme caution when performing elevated work.
•Use appropriate equipment and safety practices.
•During installation and maintenance, keep tower and tripod sites clear of un-trained or non-essential
personnel. Take precautions to prevent elevated tools and objects from dropping.
•Do not perform any work in inclement weather, including wind, rain, snow, lightning, etc.
Maintenance
•Periodically (at least yearly) check for wear and damage, including corrosion, stress cracks, frayed cables,
loose cable clamps, cable tightness, etc. and take necessary corrective actions.
•Periodically (at least yearly) check electrical ground connections.
WHILE EVERY ATTEMPT IS MADE TO EMBODY THE HIGHEST DEGREE OF SAFETY IN ALL CAMPBELL
SCIENTIFIC PRODUCTS, THE CUSTOMER ASSUMES ALL RISK FROM ANY INJURY RESULTING FROM IMPROPER
INSTALLATION, USE, OR MAINTENANCE OF TRIPODS, TOWERS, OR ATTACHMENTS TO TRIPODS AND TOWERS
SUCH AS SENSORS, CROSSARMS, ENCLOSURES, ANTENNAS, ETC.


i
Table of Contents
PDF viewers: These page numbers refer to the printed version of this document. Use the
PDF reader bookmarks tab for links to specific sections.
1. Introduction ................................................................1
2. Precautions ................................................................2
3. Initial Inspection.........................................................3
4. Overview .....................................................................3
5. Specifications.............................................................4
5.1 Supported Data Rates and Protocols ....................................................4
5.2 Electrical Parameters............................................................................5
5.2.1Current Consumption....................................................................5
5.2.2 Voltage Specifications ..................................................................6
5.2.3 Compliance ...................................................................................6
5.3 Temperature and Humidity Ranges .....................................................6
5.4 Dimensions and Weight .......................................................................6
5.4.1 SDM-SIO1A .................................................................................6
5.4.2 SDM-SIO4A .................................................................................7
5.5 Datalogger Compatibility.....................................................................7
6. Installation ..................................................................7
6.1 Mounting..............................................................................................8
6.2 Connection and Wiring ........................................................................9
6.2.1Wiring Examples for Connecting the SDM-SIO1A ...................11
6.2.1.1 RS-485/RS-422 Full-Duplex, One-to-One Connection
Example ........................................................................12
6.2.1.2 RS-485 Full-Duplex, Multi-drop Example.......................12
6.2.1.3 RS-485 Half-Duplex Wiring Example .............................13
6.2.1.4 RS-232 Wiring Example with Handshaking ....................14
6.2.1.5 RS-232 Basic 3-Wire Example ........................................14
6.2.1.6 Connecting a 9-Way Socket to the SDM-SIO1A for
RS-232 Devices ............................................................15
6.3 Programming......................................................................................16
6.3.1 CRBasic Instructions ..................................................................16
6.3.1.1 SerialOpen() .....................................................................16
6.3.1.2 SerialClose().....................................................................19
6.3.1.3 SerialIn() ..........................................................................19
6.3.1.4 SerialOut()........................................................................19
6.3.1.5 SerialInBlock....................................................................20
6.3.1.6 SerialOutBlock .................................................................20
6.3.1.7 SerialInChk ......................................................................20
6.3.1.8 SerialInRecord..................................................................20
6.3.1.9SerialFlush........................................................................20
6.3.2 Example Datalogger Programs ...................................................20
6.3.2.1 Example using RS-232 Mode...........................................21

Table of Contents
ii
6.3.2.2 Example using RS-485 Mode.......................................... 22
7. Operation ..................................................................23
7.1 Configuring Handshaking and Receive-Only Modes........................ 23
7.1.1 Using RTS/CTS and Automatic Handshaking ........................... 23
7.1.2 RS-485 Half-Duplex Mode ........................................................ 23
7.1.3 Using the RS-232 Link in Receive-Only Mode ......................... 24
7.2 Power Conservation .......................................................................... 24
7.3 Schematic .......................................................................................... 24
8. Troubleshooting and Maintenance .........................25
8.1 Troubleshooting ................................................................................ 25
8.2 Maintenance ...................................................................................... 26
8.2.1 Upgrading the Operating System ............................................... 27
8.2.2 Operating System Signature Errors............................................ 27
8.2.3 Checking the Operating System Version and Signature ............ 28
Appendices
A. Using the Handshaking Lines for General
Input/Output ......................................................... A-1
A.1 The Input Pin (CTS/Pin 11)............................................................. A-1
A.2 The Output Pin (RTS/Pin 8) ............................................................ A-2
B. Matching SDM-SIO1A Connections to an
SDM-SIO1 ............................................................. B-1
Figures
1-1. SDM-SIO1A Serial Input/Output Module .......................................... 1
7-1. RS-485 Internal Circuit Diagram ...................................................... 25
Tables
6-1. SDM Address Settings ........................................................................ 9
6-2. SDM-SIO1A Terminal Labels and Functions ................................... 10
6-3. SDM-SIO1A Functional Description of the Connections ................. 10
6-4. Communications Port Parameters RS-232 ........................................ 17
6-5. Communications Port Parameters RS-485 Full Duplex .................... 17
6-6. Communications Port Parameters RS-485 Half Duplex ................... 18
6-7. Communications Port Parameters RS-232 Receive-Only Mode ....... 18
B-1. Pin Cross Connection Table for SDM-SIO1 to SDM-SIO1A......... B-1
CRBasic Examples
6-1. RS-232 Mode Example ..................................................................... 21
6-2. RS-485 Mode Example ..................................................................... 22
8-1. Checking the Operating System Version and Signature.................... 28
A-1. Detecting the State of the Input Line............................................... A-1

1
SDM-SIO1A and SDM-SIO4A
Serial Input/Output Modules
1. Introduction
The SDM-SIO1A and SDM-SIO4A Serial Input/Output Modulesare designed
to allow expansion ofthe number ofserial ports available on a datalogger for
communicating with intelligent sensors ordriving external displays.
The SDM-SIO1A is a functional replacement for theSDM-SIO1 interface,
being slightly smaller and having different labelling for some terminals (see
Appendix B, Matching SDM-SIO1A Connections to an SDM-SIO1 (p. B-1), for
more details ofthe differences).
FIGURE 1-1. SDM-SIO1A Serial Input/Output Module
The SDM-SIO4A module is functionally the same as four SDM-SIO1As fitted
inside in a compact case providing four serial ports. The SDM-SIO4A is used
in the same way as the SDM-SIO1A and uses the same CRBasic code in the
datalogger. Although it has a similar function to the older SDM-SIO4 module,
it is much easier to use, smaller, less expensive, has more flexible outputs, and
uses different instructions in the datalogger.

SDM-SIO1A and SDM-SIO4A Serial Input/Output Modules
2
FIGURE 1-2. SDM-SIO4A Serial Input/Output Module
For simplicity, except in sections specific to the SDM-SIO4A, only the
SDM-SIO1A is referred to in the text of this manual. All of the information in
the manual applies to both products unless otherwise noted.
2. Precautions
•WARNING: Ensure that the 12V power supply for the module is switched
off when connecting the power and ground wires to the SDM-SIO1A.
When making connections to a datalogger, always ensure power to the
datalogger is switched off and connect the ground (G) wire first.
•WARNING: The RS-485 0V ground reference connection may be needed
to ensure all units are referenced to a common ground voltage. This is
more often needed with long cable runs. It is advisable to check the
difference in ground potential with some caution before connecting any
wires, to ensure the potential differences are reasonably small and
excessive current will not flow between the two ground wires. There is a
current limiting resistor fitted in the RG line in the SDM-SIO1A, but this
will not be adequate in the event of a serious ground fault, for example, the
ground references being 240 V apart due to faulty AC wiring. If a large
potential difference is found, please seek the advice of a qualified
electrician before continuing with the installation
•CAUTION: The power ground connection to the datalogger should be
made with large gauge wire, (for example, 16 AWG or 1.5 mm2) to
provide a low impedance path to ground allowing full protection from
static and electrical transients.
•CAUTION: The SDM-SIO1A is considered to be a component of a
measurement system that is installed in an enclosure and wired in
accordance with this manual. Due to space considerations, full details of
the maximum ratings of the connections are not given on the device.
Instead the user should study this manual and in particular Section 5.2.2,
Voltage Specifications (p. 6), to determine the maximum voltages that are
applicable to any terminal before starting an installation.

SDM-SIO1A and SDM-SIO4A Serial Input/Output Modules
3
3. Initial Inspection
•The SDM-SIO1A ships with the following:
oTwo screws and plastic inserts to allow the module to be installed on
the backplate of standard Campbell Scientific enclosures
oResourceDVD (1), which includes the following:
−This manual
−DevConfig 2.12 software or later (only needed if upgrading the
operating system of the SDM-SIO1A)
•Upon receipt of the SDM-SIO1A, inspect the packaging and contents for
damage. File damage claims with the shipping company. Contact
Campbell Scientific to facilitate repair or replacement.
4. Overview
The SDM-SIO1A expands the number of serial ports on a Campbell Scientific
datalogger. It can be used as a means of collecting data from digital sensors
and/or to send commands to sensors and devices. It can also be used to send
data to remote display devices.
The SDM-SIO1A will accept serial data and store it in its buffer allowing
remote equipment to transmit large amounts of data without needing to stop
other processes in the datalogger whilst the data is received.
The SDM-SIO1A connects to the datalogger via three digital lines using a
proprietary protocol called SDM. It connects to the remote serial device using a
standard serial interface that can be set to RS-232, RS-485, or RS-422 signal
levels.
Up to 15 SDM-SIO1As can be connected to a single datalogger via the SDM
port, allowing the user to connect 15 different items of equipment to their
datalogger with ease, in addition to any connections made to the datalogger
built-in serial ports. Up to four SDM-SIO4As can be connected to the
datalogger as each module uses four successive SDM addresses, one per serial
port.
The SDM-SIO1A can also be used in “talk-through” mode to allow a user to
talk, via a terminal program, to a sensor connected to the SDM-SIO1A for test
and diagnostic purposes. Please refer to the datalogger manual for further
details.

SDM-SIO1A and SDM-SIO4A Serial Input/Output Modules
4
5. Specifications
5.1 Supported Data Rates and Protocols
Data rates and protocols are set up using the SerialOpen() instruction in
CRBasic. The SerialOpen() instruction is discussed in Section 6.3.1.1,
SerialOpen (p. 16).
Supported data rates: 300, 1200, 2400, 4800, 9600, 19200, 38400,
57600, and 115200 bits/s
Supported modes of operation: RS-232 (full duplex and receive only)
RS-485 (half and full duplex)
RS-422 (full duplex)
Hardware CTS/RTS flow control is
supported in RS-232 mode. The handshaking
lines can also be used as general purpose I/O
lines.
Supported data formats: 8, 7-bit data size*; none, odd or even parity;
one or two stops bits
* In 7-bit mode with no parity, the user must
ensure that the characters received by the
SDM-SIO1A have a delay of at least one bit
period between them. This does not affect
any other configuration and does not affect
transmissions out of the SDM-SIO1A.
Miscellaneous information: The SDM-SIO1A does not support auto baud
rate detection or use of the serial port for
general PakBus® communications. Modbus
and DNP3 communications are supported.
Buffer sizes
Transmit buffer size: 767 bytes (buffer from the datalogger to the
sensor)
Receive buffer size: 6143 bytes (buffer from the sensor to the
datalogger)
Both transmit and receive buffers are fill and
discard type; that is, once the buffers become
full, no new information is accepted and all
further data is discarded until space is made
when the datalogger requests data from the
SDM-SIO1A.

SDM-SIO1A and SDM-SIO4A Serial Input/Output Modules
5
5.2 Electrical Parameters
5.2.1 Current Consumption
Nominal Max Notes
General currents
Standby current SDM-SIO1A
Standby current SDM-SIO4A
110 µA
500 µA
400 µA(5)
1200µA
Current after SerialClose()
has been called
RS-232 and RS-485 current consumption (per active port)1
Idle current 4.8 mA 6 mA After SerialOpen() has been called
Idle current (receive only) 3.2 mA 4.5 mA After SerialOpen() in receive-only
mode
Active current (RS-232) 9.6 mA 12 mA Active RS-232 command
Active current (RS-485) 11.7 mA 13 mA Active RS-485 command (no
termination resistors)
Line load currents
RS-232 line load 2 mA per
load –
Average expected increase in drawn
current per RS-232 line connected in
idle or active modes (no extra current in
standby mode).
Both TX and RTS are considered to be
RS-232 loads.
RS-485 line load240 mA377 mA4This extra current is only present when
actively transmitting
1All currents are measured with noloads connected. For the SDM-SIO4A, the currents
quoted need to be totalized toallow for the state of each active serial port.
2The RS-485 transmit pair is disabled when not transmitting in order to save power.
Higher value resistors can be used to save power dependent upon the application. For
many applications, especially with shorter cable runs, no load/termination resistors will
be needed.
3Single 100Ω load between transmit lines. Two 100 Ω resistors (one on each end) is
the maximum recommended loading. Removing any termination resistance should
dramatically decrease current consumption during transfer of data.
4The RS-485 interface is protected against short circuits via a 44 Ω resistance making
thisthe maximum current possible even during short circuit. This resistance ispart of
the ESDprotection circuitry and will be present at all times; it shouldn’t affect normal
circuit operations. FIGURE 7-1, RS-485 Internal Circuit Diagram (p. 25), shows the
circuit in detail.
5Maximum current is only at maximum operational temperatures.

SDM-SIO1A and SDM-SIO4A Serial Input/Output Modules
6
5.2.2 Voltage Specifications
Connection Minimum Voltage1Nominal Voltage1Maximum Voltage1
Power supply, +12 V connection27 V 12 V 30 V
RS-232 input threshold low 0.8 V – –
RS-232 input threshold high – – 2.4 V
RS-232 input absolute maximum2– ±15 V ±18 V
RS-232 input resistance 3 kΩ5 kΩ7 kΩ
RS-232 output voltage swing3±5 V ±5.4 V –
RS-485 input (differential) 200 mV4– 6 V
RS-485 output (differential) 1.5 V (at 50 Ohms) – –
SDM lines (high level) 4.5 V 5 V 5.5 V
SDM lines (low level) 0 V – 0.7 V
5.2.3 Compliance
1Voltage values are dc.
2It isNOT recommended that the user run their SDM-SIO1A at maximum ratings for
extended periods of time.
3Assuming a worst case 3 kΩ load.
4It isnot recommended that the user allows such low input voltages as there will be an
increased chance that external noise may cause errors in the incoming data.
View theSDM-SIO1A EU Declaration ofConformity at:
www.campbellsci.eu/sdm-sio1a.
View the SDM-SIO4A EUDeclaration ofConformity at:
www.campbellsci.eu/sdm-sio4a.
5.3 Temperature and Humidity Ranges
Temperature Range Minimum Maximum Notes
Standard range –40 ºC +70 ºC
Humidity Minimum Maximum Notes
Standard range 0% 95% (non-condensing)
5.4 Dimensions and Weight
5.4.1 SDM-SIO1A
Main body
Height: 64 mm (2.51 in)
Width: 62.5 mm (2.46 in)
Depth: 22 mm (0.86 in)

SDM-SIO1A and SDM-SIO4A Serial Input/Output Modules
7
Main body including base
mounting flange
Height: 64 mm (2.52 in)
Width: 85 mm (3.35 in)
Depth: 23 mm (0.91 in)
70 g
76.2 mm (3.0 in)
5.4.2 SDM-SIO4A
Weight:
Mounting centres:
Main body
Height: 64 mm (2.51 in)
Width: 154 mm (6.06 in)
Depth: 22 mm (0.86 in)
Main body including base
mounting flange
Height: 64 mm (2.52 in)
Width: 188 mm (7.40 in)
Depth: 23 mm (0.91 in)
Weight: 180 g
Mounting centres: 177.8 mm (7.0 in)
5.5 Datalogger Compatibility
The SDM-SIO1A is compatible with our CR6-series, CR800-series, CR1000,
CR3000, CR5000, and CR9000X dataloggers. The CR5000 and CR9000X
operating system must be OS 6 or higher.
6. Installation
The SDM-SIO1A is an addressable interface; therefore, before use, its SDM
address needs to be set by rotating the switch on the side of its case using a
screwdriver. If there is only one SDM device, the address can be left at the
default of 0. (Refer to Section 6.1, Mounting (p. 8), if there is more than one
SDM device.) After mounting as close to the datalogger as possible (to
minimize the cable runs), the interface is connected to the datalogger SDM and
power connections. Refer to Section 6.2, Connection and Wiring (p. 9), for
further details.
Study the documentation of the serial device you want to connect to the
SDM-SIO1A to determine the most appropriate method of connection for the
application, for example, RS-232 or RS-485/RS-422, half or full duplex.
Generally, RS-485/RS-422 connections are used for cable runs over 50 m (164
ft) if the device supports them. Once decided, connect the wires to the relevant
SDM-SIO1A terminals. Make sure a connection is made between the ground
connections of the two devices. Use the RG terminal on the SDM-SIO1A for
RS-485/422 connections.
Some serial sensors are supported by Campbell Scientific’s Short Cut program.
The SDM-SIO1A can be used with those programs simply by selecting the
relevant serial port number to match the SDM-SIO1A (defined by the SDM
address of the SDM-SIO1A, see Section 6.1, Mounting (p. 8)). Care must be
taken when interpreting any wiring instructions generated by Short Cut to

SDM-SIO1A and SDM-SIO4A Serial Input/Output Modules
8
account for the differences in wiring a sensor to the SDM-SIO1A rather than
directly to the datalogger.
For other sensors or more complex applications, a CRBasic program needs to
be written to configure and enable the connection between the two devices.
To write a program, it is first necessary to determine how data will be
exchanged. When using the SDM-SIO1A to collect data from a sensor, there
are two options. The datalogger requests data and then picks up the data in the
response from the sensor (often called polling) or the sensor transmits data
“one-way” to the datalogger at fixed intervals based upon its internal timer.
The latter mode is more common but can lead to problems with synchronizing
the sensor measurements with other measurements the datalogger is making
and can also lead to the occasional missed data value if the sensor clock is
running slightly slower than the datalogger clock.
The SDM-SIO1A is implemented in such a way that it looks like a built-in
serial port to the user when writing programs in CRBasic. The only difference
in operation between the SDM-SIO1A and a built-in port is that there will be a
small delay as the data needs to be transferred from the SDM-SIO1A to the
datalogger via the SDM port. That delay is usually only significant if large
amounts of data are being read or the datalogger program needs to run very
fast.
For sending and receiving data, the SerialOpen() instruction is used to specify
which serial port, the speed, and mode of operation. The speed is set by the
BaudRate parameter in the instruction and the mode (bits, parity, duplex, RS-
232 or RS-485) is set by the SerialOpenFormat parameter. Refer to the
CRBasic Editor help system for more details of the options. With the correct
parameters in the SerialOpen() instruction, the program can be written in
almost exactly the same way as using any other serial port with SerialIn(),
SerialOut(), and similar instructions. Section 6.3, Programming (p. 16), of this
manual gives details of some of the minor changes needed and some simple
program examples.
The SDM-SIO1A can also be used as an interface to Modbus and DNP3
sensors or networks. The interface is configured by including an extra
SerialOpen() instruction at the start of the program. Normal calls to the
relevant Modbus or DNP3 instructions can then be used specifying the
COM port number relevant to the SDM-SIO1A.
6.1 Mounting
The SDM-SIO1A is normally mounted on the backplate of a Campbell
Scientific enclosure using the screws and plastic inserts provided. The
SDM-SIO1A is designed to be installed in a dry, non-condensing environment.
Before mounting, select and set the SDM address as this requires access to the
side of the case. The SDM address is set with a screwdriver. TABLE 6-1 lists
the possible SDM addresses and their relationships to the COMPort parameter
in the SerialOpen() instruction.
There can be up to 15 SDM-SIO1As on a single SDM bus. Each SDM-SIO1A
will need to be set to a unique address before they are powered. If any other
equipment is present on the bus, whether an SDM-SIO1A or other SDM
device, the user will have to ensure their addresses are unique.

SDM-SIO1A and SDM-SIO4A Serial Input/Output Modules
9
The SDM-SIO4A has a single address switch. This sets the address of the first
serial port of the module (port 1). Other ports have their own SDM address
which follow sequentially from the port 1 address. For example, if the address
switch is set to 4, port 1 has SDM address 4, port 2 has SDM address 5, port 3
has SDM address 6, and port 4 has SDM address 7. The equivalent ComPort
number of each port corresponds to the SDM address of the port in the same
way as for the SDM-SIO1A as shown in TABLE 6-1.
For the SDM-SIO4A, if the address switch is set to “C” (SDM 12) or above,
only the ports which would have valid SDM addresses are enabled. For
example, if the switch is set to “E” (14), only port 1 could be used as sequential
addresses above that are not valid.
TABLE 6-1. SDM Address Settings
Rotary Switch
Position SDM Address
SerialOpen()
Instruction
COMPort
Number
0 0 32
1 1 33
2 2 34
3 3 35
4 4 36
5 5 37
6 6 38
7 7 39
8 8 40
9 9 41
A 10 42
B 11 43
C 12 44
D 13 45
E 14 46
F1151471
1Address Fis not available as it is the broadcast address. Setting this address will result
in the SDM-SIO1A having an address of 0rather than F.
6.2 Connection and Wiring
Connection to the SDM-SIO1A is achieved via the 11 terminals arranged along
the top of the unit. The terminals are spring loaded providing an easy and
reliable method of connection. Strip wires 7 to 9 mm and twist. Open the clamp
by pushing the orange tab down with the tip of a small flat-blade screwdriver
and insert the wire into the round hole. Release the clamp and verify the clamp
grips the wire rather than the plastic insulation.

SDM-SIO1A and SDM-SIO4A Serial Input/Output Modules
10
If there is a need to insert more than one wire in each terminal, if using multi-
strand wire, twist the conductors together first. If using solid wires, solder or
crimp multiple pairs together before insertion.
TABLE 6-2 shows all the connections on the SDM-SIO1A.
TABLE 6-2. SDM-SIO1A Terminal Labels and Functions
Power SDM Communications Connections
12V
G
C1
C2
C3
RG
G
RTS/TD+
Tx/TD
–
Rx/RD+
CTS/RD
–
1 2 3 4 5 6 7 8 9 10 11
TABLE 6-3. SDM-SIO1A Functional Description of the Connections
Pin Case Text Connection To Description
1 12V
Datalogger
Power supply +12V
2 G Power supply 0V (same as other G pin)
3 C1 SDM data line
4 C2 SDM clock line
5 C3 SDM enable line
6 RG1
Equipment
RG – RS-485 ground. Connected to G via 100 Ω1 W resistor.
7 G20V – (same as other G pin)
8 RTS/TD+ RS-232 RTS. RS-485 half duplex non-inverting.
RS-485 full duplex outgoing.
9 Tx/TD– RS-232 transmit. RS-485 half duplex inverting.
RS-485 full duplex outgoing.
10 Rx/RD+ RS-232 receive. RS-485 receiver non-inverting.
RS-485 full duplex incoming.
11 CTS/RD– RS-232 CTS. RS-485 receiver inverting.
RS-485 full duplex incoming.
1Connection RG (pin 6) hasa 100 Ω resistor in series with the datalogger ground
connection. This connection should be used when connecting RS-485 equipment by
long wire lengths. Itensures both systems have a common ground reference point. See
Section 2, Precautions (p. 2), before connecting.
2The G(pin 7) can be used for the RS-232 zero volt reference or any other ground
connection needed, for example, shields.
The SDM-SIO4A has identical wiring for thedatalogger connections (pins 1 to
5). To allow for theextra serial ports, pins 6 to 11 are reproduced four times,
once for each port. The connections for different ports are clearly delimited,
with eachlabelled with the port number as a single large digit, that is, 1, 2, 3,
4.
Other manuals for SDM-SIO1A
2
This manual suits for next models
1
Table of contents
Other Campbell I/O System manuals