Campbell SDM-SIO1A Instruction Manual

Campbell SDM-SIO1A Instruction Manual

Serial input/output module
Hide thumbs Also See for SDM-SIO1A:
Table of Contents

Advertisement

Quick Links

SDM-SIO1A
Serial Input/Output Module
6/16
C o p y r i g h t
©
2 0 1 6
C a m p b e l l
S c i e n t i f i c ,
I n c .

Advertisement

Table of Contents
loading

Summary of Contents for Campbell SDM-SIO1A

  • Page 1 SDM-SIO1A Serial Input/Output Module 6/16 C o p y r i g h t © 2 0 1 6 C a m p b e l l S c i e n t i f i c , I n c .
  • Page 3 Limited Warranty “Products manufactured by CSI are warranted by CSI to be free from defects in materials and workmanship under normal use and service for twelve months from the date of shipment unless otherwise specified in the corresponding product manual. (Product manuals are available for review online at www.campbellsci.com.) Products not manufactured by CSI, but that are resold by CSI, are warranted only to the limits extended by the original manufacturer.
  • Page 4 (435) 227-9106. Campbell Scientific is unable to process any returns until we receive this form. If the form is not received within three days of product receipt or is incomplete, the product will be returned to the customer at the customer’s expense.
  • Page 5 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.
  • Page 7: Table Of Contents

    Datalogger Compatibility ..............6 6. Installation ..............6 Mounting ....................7 Connection and Wiring ................ 8 6.2.1 Wiring Examples for Connecting the SDM-SIO1A ....10 6.2.1.1 RS-485/RS-422 Full-Duplex, One-to-One Connection Example ................ 10 6.2.1.2 RS-485 Full-Duplex, Multi-drop Example ....... 11 6.2.1.3...
  • Page 8 6-6. Communications Port Parameters RS-485 Half Duplex ....17 6-7. Communications Port Parameters RS-232 Receive-Only Mode ..17 B-1. Pin Cross Connection Table for SDM-SIO1 to SDM-SIO1A ..B-1 CRBasic Examples 6-1. RS-232 Mode Example ..............20 6-2. RS-485 Mode Example ..............21 8-1.
  • Page 9: Introduction

    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.
  • Page 10: Initial Inspection

    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.
  • Page 11: Specifications

    * 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.
  • Page 12: Electrical Parameters

    SDM-SIO1A Serial Input/Output Module Electrical Parameters 5.2.1 SDM-SIO1A Current Consumption Nominal Notes General currents Current after SerialClose() has been 110 µA 150 µA Standby current called RS-232 and RS-485 current consumption Idle current 4.8 mA 6 mA After SerialOpen() has been called...
  • Page 13: Sdm-Sio1A Voltage Specifications

    – 0.7 V Voltage values are dc. It is NOT recommended that the user run their SDM-SIO1A at maximum ratings for extended periods of time. Assuming a worst case 3 kΩ load. It is not 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.
  • Page 14: Datalogger Compatibility

    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.
  • Page 15: Mounting

    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.
  • Page 16: Connection And Wiring

    SDM-SIO1A having an address of 0 rather than F. 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.
  • Page 17: Sdm-Sio1A Terminal Labels And Functions

    SDM-SIO1A Serial Input/Output Module TABLE 6-2. SDM-SIO1A Terminal Labels and Functions Power Communications Connections TABLE 6-3. SDM-SIO1A Functional Description of the Connections Case Text Connection To Description Power supply +12V Power supply 0V (same as other G pin) Datalogger SDM data enable line...
  • Page 18: Wiring Examples For Connecting The Sdm-Sio1A

    (p. 22) 6.2.1 Wiring Examples for Connecting the SDM-SIO1A The exact method of wiring the SDM-SIO1A varies with the type of device it is going to exchange data with. The variables include the type of interface used (RS-232, RS-485, or RS-422), whether handshaking is used, whether the connection is full or half duplex, and whether termination resistors are used (RS-485 and RS-422 only).
  • Page 19: Rs-485 Full-Duplex, Multi-Drop Example

    SDM-SIO1A Serial Input/Output Module 6.2.1.2 RS-485 Full-Duplex, Multi-drop Example As with all RS-485 configurations, the use of termination resistors NOTE is optional. They tend not to be required with shorter cable runs and with modern slew-rate-limited driver technology (as used in...
  • Page 20: Rs-485 Half-Duplex Wiring Example

    SDM-SIO1A Serial Input/Output Module 6.2.1.3 RS-485 Half-Duplex Wiring Example This shows how to connect a single device, but RS-485 half-duplex networks are the most common multi-drop configuration. If wiring for multiple devices, make the three wire connections in parallel, similar to that shown in the full- duplex multi-drop example.
  • Page 21: Rs-232 Wiring Example With Handshaking

    SDM-SIO1A Serial Input/Output Module 6.2.1.4 RS-232 Wiring Example with Handshaking * Note CTS and RTS are optional if hardware handshaking is not required. Not connecting the handshaking lines will reduce the overall current consumption of the SDM-SIO1A. 6.2.1.5 RS-232 Basic 3-Wire Example...
  • Page 22: Connecting A 9-Way Socket To The Sdm-Sio1A For Rs-232 Devices

    SDM-SIO1A Serial Input/Output Module 6.2.1.6 Connecting a 9-Way Socket to the SDM-SIO1A for RS-232 Devices This configuration may be used if the device is fitted with a standard 9-way D connector as was commonly fitted to PCs for their RS-232 port. You need to check whether the device is configured as a DTE or DCE device and whether it has a male or female connector before making up this cable.
  • Page 23: Programming

    SDM-SIO1A. • BaudRate BaudRate is used to set up the SDM-SIO1A baud rate as you would with any RS-232 interface. The SDM-SIO1A does not support automatic baud rate recognition. Instead, setting the rate to a negative number sets the automatic flow control system (RTS/CTS).
  • Page 24: Communications Port Parameters Rs-232

    SDM-SIO1A Serial Input/Output Module TABLE 6-4. Communications Port Parameters RS-232 SerialOpenFormat Parity No. Stop Bits No. Data Bits None Even 3 (default) None Not used Even None Not used Even None Not used Even None This mode is only supported if there is at least a one-bit delay between characters received by the SDM-SIO1A.
  • Page 25: Communications Port Parameters Rs-485 Half Duplex

    SDM-SIO1A Serial Input/Output Module TABLE 6-6. Communications Port Parameters RS-485 Half Duplex SerialOpenFormat Parity No. Stop Bits No. Data Bits None Even None Not used Even None Not used Even None Not used Even None This mode is only supported if there is at least a one-bit delay between characters received by the SDM-SIO1A.
  • Page 26: Serialclose()

    Time (in microseconds) = (10 + 1) • (8 • 30) Note that 30 µs per bit is the default data rate for most Campbell Scientific dataloggers. It is possible to reduce this time and the transfer time by using the SDMSpeed() instruction.
  • Page 27: Serialinblock

    The program code is the same for all dataloggers that support the SDM-SIO1A. The exact program to be used will vary with the serial device being used.
  • Page 28: Example Using Rs-232 Mode

    '----------------------------------------------------------------------- ' Example use of the SDM-SIO1A. ' This example shows how to open a serial port using an SDM-SIO1A. ' A prompt is sent from the datalogger to the sensor and it then waits for a response ' before reading the data.
  • Page 29: Example Using Rs-485 Mode

    'This example shows how to open the RS-485 serial port using an SDM-SIO1A. 'Data is sent from the datalogger to the sensor. 'The program then sits in a loop until the SDM-SIO1A reports it has data 'available 'The datalogger then retrieves the data and places it into a string...
  • Page 30: Operation

    Automatic handshaking for the SDM-SIO1A is activated through use of the BaudRate parameter of the SerialOpen() instruction.. When the BaudRate value is set to a negative number, the SDM-SIO1A will enable automatic handshaking. It is worth noting that normally setting the BaudRate to a negative number will enable automatic baud rate detection;...
  • Page 31: Using The Rs-232 Link In Receive-Only Mode

    If using RS-232 mode, also avoid connecting handshaking lines that are not required to avoid an unnecessary 2 mA drain per line. The SDM-SIO1A will start up with its last set of baud rate and protocol settings. This feature is to protect against brownout conditions where the SDM-SIO1A has reset but the datalogger has not.
  • Page 32: Troubleshooting And Maintenance

    SDM-SIO1A. Troubleshooting and Maintenance Troubleshooting If correctly connected, the SDM-SIO1A normally operates seamlessly. However, there are some common issues people encounter during setup or sometimes after a period of operation. During the setup phase, either no data or corrupt data may be received by the datalogger.
  • Page 33: Maintenance

    Where you see some serial activity which is invalid, check the documentation and configuration of both the device the SDM-SIO1A is connected to and the datalogger. Also, check the wiring carefully. In the case of RS-485/RS-422, there is also a big risk of confusion being caused by there being several different ways of labeling the transmit and receive lines.
  • Page 34: Upgrading The Operating System

    SDM-SIO1A Serial Input/Output Module 8.2.1 Upgrading the Operating System In the unlikely event that the operating system of the SDM-SIO1A needs to be upgraded, this can be achieved by connecting it to a PC and using the Campbell Scientific Device Configuration Utility (DevConfig) to load the operating system.
  • Page 35: Checking The Operating System Version And Signature

    SDMSpeed (30) 'Fix the speed Ver_Value = "" Sig_Value = "" Scan(1,Sec,0,0) 'Use the generic SDM instruction to get extra info from the SDM-SIO1A 'Ask for the operating system version Src = CHR(1) SDMGeneric(Ver_Value,SDM_Address,cmd,bytes_out,Src,Ver_values_in,bytes_val, big_endian,delay_usec) 'Read signature Src = CHR(2)
  • Page 36 SDM-SIO1A Serial Input/Output Module...
  • Page 37: Using The Handshaking Lines For General Input/Output

    CRBasic Example A-1. Detecting the State of the Input Line 'CR1000 Example program showing how to detect the state of the input line on an SDM-SIO1A 'Using the SDMGeneric instruction...
  • Page 38: The Output Pin (Rts/Pin 8

    ' This will set the spare output pin low The two example lines of code above will set the output pin on the SDM-SIO1A high then low respectively on the SDM-SIO1A device set to address 0 on its rotary switch.
  • Page 39: Matching Sdm-Sio1A Connections To An

    The labeling for the RS-422/RS-485 functions has also been changed to avoid the confusion caused by different labeling conventions used for the A and B terminals by different manufacturers. To avoid this, the SDM-SIO1A uses the alternative TD–, TD+, RD–, RD+ scheme of labeling, with the TD– and TD+ pair being those used for RS-485 half-duplex connections.
  • Page 42 Santo Domingo, Heredia 40305 SOUTH AFRICA COSTA RICA • cleroux@csafrica.co.za • info@campbellsci.cc www.campbellsci.co.za www.campbellsci.cc Campbell Scientific Southeast Asia Co., Ltd. Campbell Scientific Ltd. 877/22 Nirvana@Work, Rama 9 Road Campbell Park Suan Luang Subdistrict, Suan Luang District 80 Hathern Road Bangkok 10250...

Table of Contents