Campbell SDM-SIO1A Instruction Manual

Campbell SDM-SIO1A Instruction Manual

Hide thumbs Also See for SDM-SIO1A:
Table of Contents

Advertisement

Quick Links

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

Advertisement

Table of Contents
loading

Summary of Contents for Campbell SDM-SIO1A

  • Page 1 SDM-SIO1A and SDM-SIO4A Serial Input/Output Modules 7/20 Copyright © 2016 - 2020 Campbell Scientific CSL I.D - 1164...
  • Page 3 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”...
  • Page 5 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 in...
  • Page 7 • 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...
  • Page 9: Table Of Contents

    Datalogger Compatibility ..............7 6. Installation ..............7 Mounting ....................8 Connection and Wiring ................ 9 6.2.1 Wiring 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...
  • Page 10 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.
  • Page 11: Introduction

    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.
  • Page 12: Precautions

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

    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.
  • Page 14: 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 15: Electrical Parameters

    SDM-SIO1A and SDM-SIO4A Serial Input/Output Modules Electrical Parameters 5.2.1 Current Consumption Nominal Notes General currents 110 µA 400 µA Current after SerialClose() Standby current SDM-SIO1A Standby current SDM-SIO4A 500 µA 1200 µA has been called RS-232 and RS-485 current consumption (per active port) Idle current 4.8 mA...
  • Page 16: 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 17: Sdm-Sio4A

    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 18: 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 19: 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 20: Sdm-Sio1A Terminal Labels And Functions

    TABLE shows all the connections on the SDM-SIO1A. 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)
  • Page 21: Wiring Examples For Connecting The Sdm-Sio1A

    (p. 23) 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 22: Rs-485/Rs-422 Full-Duplex, One-To-One Connection Example

    SDM-SIO1A and SDM-SIO4A Serial Input/Output Modules 6.2.1.1 RS-485/RS-422 Full-Duplex, One-to-One Connection Example 6.2.1.2 RS-485 Full-Duplex, Multi-drop Example...
  • Page 23: Rs-485 Half-Duplex Wiring Example

    SDM-SIO1A and SDM-SIO4A Serial Input/Output Modules 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 the SDM-SIO1A).
  • Page 24: Rs-232 Wiring Example With Handshaking

    SDM-SIO1A and SDM-SIO4A Serial Input/Output Modules 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 25: Connecting A 9-Way Socket To The Sdm-Sio1A For Rs-232 Devices

    SDM-SIO1A and SDM-SIO4A Serial Input/Output Modules 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 26: 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 27: Communications Port Parameters Rs-232

    SDM-SIO1A and SDM-SIO4A Serial Input/Output Modules 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 28: Communications Port Parameters Rs-485 Half Duplex

    SDM-SIO1A and SDM-SIO4A Serial Input/Output Modules 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 29: 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 30: 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 31: 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 32: 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 33: 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 34: 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 35: 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 36: 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 labelling the transmit and receive lines.
  • Page 37: Upgrading The Operating System

    SDM-SIO1A and SDM-SIO4A Serial Input/Output Modules 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 38: 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 39: The Input Pin (Cts/Pin 11

    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 40: Using The Handshaking Lines For General Input/Output

    ' 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 41: Matching Sdm-Sio1A Connections To An

    The labelling for the RS-422/RS-485 functions has also been changed to avoid the confusion caused by different labelling 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 labelling, with the TD– and TD+ pair being those used for RS-485 half-duplex connections.
  • Page 44 Global Sales & Support Network A worldwide network of companies to help meet your needs CANADA GERMANY FRANCE CHINA SPAIN SOUTHEAST ASIA COSTA RICA Campbell Scientific group companies Sales representatives AUSTRALIA BRAZIL SOUTH AFRICA Australia Costa Rica Southeast Asia Garbutt, QLD Australia...

This manual is also suitable for:

Sdm-sio4a

Table of Contents