SDM-SIO1 Serial Input/Output Module Revision: 7/13 C o p y r i g h t © 2 0 0 8 - 2 0 1 3 C a m p b e l l S c i e n t i f i c , I n c .
Warranty “PRODUCTS MANUFACTURED BY CAMPBELL SCIENTIFIC, INC. are warranted by Campbell Scientific, Inc. (“Campbell”) to be free from defects in materials and workmanship under normal use and service for twelve (12) months from date of shipment unless otherwise specified in the corresponding Campbell pricelist or product manual. Products not manufactured, but that are re-sold by Campbell, are warranted only to the limits extended by the original manufacturer.
Assistance Products may not be returned without prior authorization. The following contact information is for US and international customers residing in countries served by Campbell Scientific, Inc. directly. Affiliate companies handle repairs for customers within their territories. Please visit www.campbellsci.com to determine which Campbell Scientific company serves your country. To obtain a Returned Materials Authorization (RMA), contact CAMPBELL SCIENTIFIC, INC., phone (435) 227-9000.
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. Specifications .............................................................2 2.1 2.2 Supported Data Rates and Protocols ....................................................2 Electrical Parameters..................................................................
Table of Contents 4.3 Example Datalogger Programs.......................................................... 20 4.3.1 Example Using RS-232 Mode.................................................... 20 4.3.2 Example Using RS-485 Mode.................................................... 21 5. Firmware Upgrades and Flash Signature Errors ...22 5.1 5.2 Upgrading the Firmware.................................................................... 22 Firmware Signature Errors ..........................................
SDM-SIO1 Serial Input/Output Module The SDM-SIO1 Module is designed to allow expansion of the number of serial ports available on a datalogger for communicating with intelligent sensors or driving external displays. 1. Introduction The SDM-SIO1 Module connects to Campbell Scientific dataloggers using the SDM port and communication protocol. It connects to the remote serial device using industry standard hardware that can be set to RS-232, RS-485 or RS-422 signal levels.
SDM-SIO1 Serial Input/Output Module 2. Specifications 2.1 Supported Data Rates and Protocols Data rates and protocols are set up using the SerialOpen() instruction in CRBasic. The SerialOpen() instruction is discussed elsewhere in this document.
SDM-SIO1 Serial Input/Output Module 2.2 Electrical Parameters 2.2.1 SDM-SIO1 Current Consumption Nominal Max Notes 100 µA Current after SerialClose has been called. General Currents Standby current 70 µA RS-232 and RS-485 Current Consumption(1) Idle current 5.5 mA 6 mA After SerialOpen has been called Idle current (receive only) 4.1 mA 4.5 mA After SerialOpen in receive only mode Active current (RS232) 11.5 mA 12 mA Active RS-232 command Active current (RS485) 12.
SDM-SIO1 Serial Input/Output Module 2.2.2 SDM-SIO1 Voltage Specifications Minimum Voltage(1) Nominal Voltage(1) Maximum Voltage(1) Power supply, +12 V connection(2) 7V 12 V 20 V RS-232 input threshold Low 0.8 V – – RS-232 input threshold High – – 2.4 V RS-232 input absolute maximum(2) – ±15 V ±18 V RS-232 input resistance 3 kΩ 5 kΩ 7 kΩ RS-232 output voltage swing(3) ±5 V ±5.4 V – RS-232 output absolute maximum – – ±13.
SDM-SIO1 Serial Input/Output Module 2.3 2.4 2.5 Temperature and Humidity Ranges Temperature Range Minimum Maximum Standard range –25ºC +50ºC Extended range (optional) –40ºC +80ºC (Contact Campbell Scientific for further extended temperature requirements) Humidity Minimum Maximum Notes Standard range 0% 95% (non-condensing) Notes Physical Parameters Height: 5.4 cm (2.2 in) Width: 8.0 cm (3.1in) main body; 11.2 cm (4.5 in) with mounting flange Depth: 2.5 cm (1.
SDM-SIO1 Serial Input/Output Module TABLE 3-1. SDM Address Settings Rotary Switch Position SDM Address SerialOpen Command Comm. Port 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 F(1) 15(1) 47(1) (1) Address ‘F’ is not available as it’s the broadcast address. Setting this address will result in the SDM-SIO1 having an address of ‘0’ not ‘F’. 3.
SDM-SIO1 Serial Input/Output Module TABLE 3-2. SDM-SIO1 Connections (left to right as viewed from the front of the unit) SDM Power Connections RS-232 Connections RS-485/RS-422 C1 C2 C3 G +12 V G RX-A CTS-B RTS-Y TX-Z 0V Z Y B A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 15 14 13 12 10 9 8 7 Note: Italic numbers indicate which pins are connected internally (for use with RS-485 termination resistors etc.).
SDM-SIO1 Serial Input/Output Module As shown above in TABLE 3-3 connections 1 to 5 need to be made to the datalogger. SDM connections are made to appropriate logger control ports or to the dedicated SDM port when fitted, e.g. the CR3000. The connection of the wires to the remote serial device will vary with type of device and method of communication.
SDM-SIO1 Serial Input/Output Module 3.3 Examples for Connecting the SDM-SIO1 to Other Equipment 3.3.1 RS-485 One to One Connection Example 1 C1 2 C2 3 C3 4 G 5 +12V 6 G 7 RX-A 8 CTS-B 9 RTS-Y 10 TX-Z 11 0V RS-485 0V 12 Z RS-485_B 13 Y RS-485_A 14 B RS-485_Z 15 A RS-485_Y To logger 100 R or higher R R RS-485 equipment with termination resistors Notes: • Z, Y, B and A are connected to their corresponding differential wire pairs when in RS-485/RS-422 mode.
SDM-SIO1 Serial Input/Output Module 3.3.2 RS-485 Multi Unit / In Line Example 1 C1 2 C2 3 C3 4 G 5 +12V 6 G RS-485_0V 7 RX-A RS-485_Y 8 CTS-B RS-485_Z 9 RTS-Y RS-485_A 10 TX-Z RS-485_B 11 0V RS-485 0V 12 Z RS-485_B 13 Y RS-485_A 14 B RS-485_Z 15 A RS-485_Y NOTE 10 RS-485 0V for ground referencing To logger First RS-485 equipment Second RS-485 equipment As with all RS-485 configurations the use of termination resistors is optional.
SDM-SIO1 Serial Input/Output Module 3.3.3 RS-485 Half Duplex Wiring Example 1 C1 2 C2 3 C3 4 G 5 +12V 6 G 7 RX-A 8 CTS-B 9 RTS-Y 10 TX-Z 11 0V RS-485 0V 12 Z RS-485_B 13 Y RS-485_A 14 B RS-485_Z 15 A RS-485_Y To logger 100 R or higher (Termination resistor may not be needed for many applications) R RS-485 equipment 3.3.
SDM-SIO1 Serial Input/Output Module 3.3.5 RS-232 Wiring Example with Handshaking 1 C1 2 C2 3 C3 4 G 5 +12V 6 G 0V 7 RX-A RS-232_RX 8 CTS-B RS-232 RTS 9 RTS-Y RS-232 CTS 10 TX-Z 11 0V 12 Z 13 Y 14 B 15 A To logger DTE DCE RS-232 DCE equipment RS-232 TX * Note CTS and RTS are optional if hardware handshaking is not required. Not connecting the handshaking lines will decrease the overall current consumption of the SDM-SIO1 and the RS-232 device. 3.3.
SDM-SIO1 Serial Input/Output Module 3.3.7 Connecting a 9-Way Socket to the SDM-SIO1 1 C1 2 C2 3 C3 4 G 5 +12V 6 G 0V Pin 5 7 RX-A RS-232_TX Pin 3 8 CTS-B RS-232 CTS Pin 8 9 RTS-Y RS-232 RTS Pin 7 10 TX-Z RS-232 RX Pin 2 11 0V 12 Z 13 Y 14 B 15 A To logger DTE Configuration RS-232 9-Way Dtype Connector Note 2 1) Note this diagram is for adding a 9 way D-type plug to the SDM - SIO1.
SDM-SIO1 Serial Input/Output Module sends data one-way to the datalogger, run the SDM-SIO1 in “receive only mode” as this does not turn on the output drivers. If using RS-232 mode avoid connecting handshaking lines that are not required. This eliminates 2 mA drain per line for unused lines. 4. Programming the Datalogger The normal serial port instructions such as SerialOpen() and SerialIn() are used with the SDM-SIO1.
SDM-SIO1 Serial Input/Output Module TABLE 4-1. Communications Port Parameters RS-232 Code 0 1 2 3 (default) 4 5 6 7 8 9 10 11(1) 12 13 14 15 Parity None Odd Even None Odd Even None Odd Even None Odd Even None No. Stop Bits 1 1 1 1 Not used 2 2 2 Not used 1 1 1 Not used 2 2 2 No. Data Bits 8 8 8 8 8 8 8 7 7 7 7 7 7 (1) This mode is only supported if there is at least a one bit delay between characters received by the SDM-SIO1 TABLE 4-2.
SDM-SIO1 Serial Input/Output Module TABLE 4-3. Communications Port Parameters RS-485 Half Duplex Code 48 49 50 51 52 53 54 55 56 57 58 59(1) 60 61 62 63 Parity None Odd Even None Odd Even None Odd Even None Odd Even None No. Stop Bits 1 1 1 1 Not used 2 2 2 Not used 1 1 1 Not used 2 2 2 No. Data Bits 8 8 8 8 8 8 8 7 7 7 7 7 7 (1) This mode is only supported if there is at least a one bit delay between characters received by the SDM-SIO1 TABLE 4-4.
SDM-SIO1 Serial Input/Output Module 4.1.2 SerialClose() This will place the SDM-SIO1 unit into shutdown mode where only SDM communications will operate. This means any data coming into the SDM-SIO1 on the RS-232/RS-485 interface will be lost. This is the lowest power mode and for optimum power efficiency the SDM-SIO1 should be placed in this mode whenever possible. 4.1.
SDM-SIO1 Serial Input/Output Module 4.1.5 SerialInBlock() The SerialBlock() instruction can be used as described in the datalogger manual. However, if using the option to capture only the most recent data, make sure the instruction is called often enough to avoid filling up the SDMSIO1's buffer. The SDM-SIO1's buffer operates in a fill and stop mode, and therefore will not include the most recent data if it gets full. 4.1.6 SerialOutBlock() No special information.
SDM-SIO1 Serial Input/Output Module worth noting that normally setting the BaudRate to a negative number will enable automatic baud rate detection, this is not the case for the SDM-SIO1. When enabled, the two I/O ports (pins 8 and 9) will operate as RTS and CTS lines. It is important that the remote equipment supports handshaking as no data will be sent if handshaking is enabled but isn’t supported by the equipment connected to the SDM-SIO1.
SDM-SIO1 Serial Input/Output Module 4.3 Example Datalogger Programs Some simple examples of how to write programs in CRBasic to send and receive data using the SDM-SIO1 follow. These programs are not extensive and are fundamentally no different to those written for use when reading data from a standard serial port. The exact program to be used will vary with the serial device being used. Unfortunately the number of possible variations of reading different sensors is almost infinite.
SDM-SIO1 Serial Input/Output Module 4.3.2 Example Using RS-485 Mode '----------------------------------------------------------------------' Example use of the SDM-SIO1. ' This example shows how to open the a RS-485 serial port using an SDM-SIO1. ' Data is sent from the logger to the sensor.
SDM-SIO1 Serial Input/Output Module 5. Firmware Upgrades and Flash Signature Errors 5.1 Upgrading the Firmware Firmware upgrades can be done by connecting it to a PC and using the Campbell Scientific Device Configuration program to load the operating system. (This program can be downloaded free of charge from www.campbellsci.com/downloads). The SDM-SIO1 needs a reliable source of 12 V power connected in the standard way and a cable made similar to that shown in Section 3.3.
Appendix A. Using the Handshaking Lines for General Input/Output This Appendix describes how to use the CTS and RTS lines for input and output ports. The I/O pins (pins 8 and 9) can be read or set by the user as required allowing unique protocols to be created, or they can simply be used as flags or enable lines. If the user enables automatic handshaking as discussed earlier then pins 8 and 9 can’t be accessed. A.
Appendix A. Using the Handshaking Lines for General Input/Output ‘IF value returned is over 4095 then input line is high ‘ELSE input line must be low If ChkValReturned > 4095 Then InputStatus = 1 ‘Flag that input line is high else InputStatus = 0 ‘Flag input line is low EndIf … next scan … The input line can accept 0 and 5V logic inputs OR -12 and +12V RS-232 level inputs. Below is a break down of the different input voltages allowed and the state of the input line flag.
Appendix A.
Appendix A.
Campbell Scientific Companies Campbell Scientific, Inc. (CSI) 815 West 1800 North Logan, Utah 84321 UNITED STATES www.campbellsci.com • info@campbellsci.com Campbell Scientific Africa Pty. Ltd. (CSAf) PO Box 2450 Somerset West 7129 SOUTH AFRICA www.csafrica.co.za • cleroux@csafrica.co.za Campbell Scientific Australia Pty. Ltd. (CSA) PO Box 8108 Garbutt Post Shop QLD 4814 AUSTRALIA www.campbellsci.com.au • info@campbellsci.com.au Campbell Scientific do Brasil Ltda. (CSB) Rua Apinagés, nbr.