SDM-SIO1 Serial Input/Output Module 3/08 C o p y r i g h t © 2 0 0 8 C a m p b e l l S c i e n t i f i c , I n c .
Warranty and Assistance The SDM-SIO1 SERIAL INPUT/OUTPUT MODULE is warranted by CAMPBELL SCIENTIFIC, INC. to be free from defects in materials and workmanship under normal use and service for twelve (12) months from date of shipment unless specified otherwise. Batteries have no warranty. CAMPBELL SCIENTIFIC, INC.'s obligation under this warranty is limited to repairing or replacing (at CAMPBELL SCIENTIFIC, INC.'s option) defective products.
SDM-SIO1 Table of Contents PDF viewers note: These page numbers refer to the printed version of this document. Use the Adobe Acrobat® bookmarks tab for links to specific sections. 1. Introduction..................................................................1 2. Specifications ..............................................................2 2.1 Supported Data Rates and Protocols.........................................................2 2.2 Electrical Parameters ...........................................
SDM-SIO1 Table of Contents 4.3 Example Datalogger Programs .............................................................. 19 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 Upgrading the Firmware ........................................................................ 22 5.2 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 command in CRBasic. The SerialOpen command is discussed elsewhere in this document. 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 (Half and full duplex).
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 Temperature and Humidity Ranges Temperature Range Minimum Maximum Standard range -20º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 2.4 Physical Parameters Main body Height: 2.2” H (5.4 H cm) Width: 3.1” W (8.0 W cm) Depth: 1.0” D (2.5 D cm) Main body including base mounting flange Height: 2.2” H (5.
SDM-SIO1 Serial Input/Output Module There can be up to 15 SDM-SIO1s on a single SDM bus. Each SDM-SIO1 will need to have a unique address before they are powered up. If other equipment is present on the bus, whether it’s an SDM-SIO1 or not, the user needs to insure no addresses are the same. TABLE 3-1. SDM Address Settings Rotary Switch Position SDM Address SerialOpen Command Comm.
SDM-SIO1 Serial Input/Output Module When making connections to the datalogger always insure power to the datalogger is switched off and connect the ground (G) connection first. Below is a table showing all the connections on the SDM-SIO1. There are a number of pins that are common within the unit. These are also shown below. TABLE 3-2.
SDM-SIO1 Serial Input/Output Module (3) There is a 100R resistor in series with the datalogger’s ground connection. This connection should be used when connecting RS-485 equipment by long wire lengths. It insures both systems have a common ground reference point. See section 3.2 below before connecting. 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.
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.6 SerialOutBlock No special information. This can also be used to set the general purpose output line (see Appendix A). 4.1.7 SerialInChk This returns the number of characters that have been received by the SDMSIO1 and that are currently held in its buffer (0-2047). In addition it also allows the program to determine the state of the input handshaking line by setting bit 16 of the returned number if the port is high.
SDM-SIO1 Serial Input/Output Module Enabling handshaking will increase active current consumption due to the extra RS-232 load. It will not affect sleep current however as the RS-232 chip is disabled (sleep is set by calling the ‘SerialClose’ function). For connection diagrams and further information on using handshaking consult section 3.3 within this manual.
SDM-SIO1 Serial Input/Output Module 4.3.1 Example Using RS-232 Mode '----------------------------------------------------------------------' Example use of the SDM-SIO1. ' This example shows how to open the a serial port using an SDM-SIO1. ' A prompt is sent from the logger to the sensor and it then waits for a response ' before reading the data.
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.
This is a blank page.
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 444 Thuringowa Central QLD 4812 AUSTRALIA www.campbellsci.com.au info@campbellsci.com.au Campbell Scientific do Brazil Ltda.