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...
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.
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.
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.
* 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.
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...
– 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.
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.
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.
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.
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)
(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).
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).
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...
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.
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).
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.
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.
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.
'----------------------------------------------------------------------- ' 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.
'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...
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;...
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.
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.
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.
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.
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)
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...
' 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.
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...