background image

Summary of Contents for SDM-SIO1

Page 1: ...SDM SIO1 Serial Input Output Module Issued 5 1 15 Copyright 2006 2015 Campbell Scientific Ltd CSL 627 USER GUIDE ...

Page 2: ......

Page 3: ...ether the repair is under guarantee or not Please state the faults as clearly as possible and if the product is out of the guarantee period it should be accompanied by a purchase order 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 Hazardo...

Page 4: ......

Page 5: ...fore beginning work Wear a hardhat and eye protection and take other appropriate safety precautions while working on or around tripods and towers Do not climb tripods or towers at any time and prohibit climbing by other persons Take reasonable precautions to secure tripod and tower sites from trespassers Use only manufacturer recommended parts materials and tools Utility and Electrical You can be ...

Page 6: ......

Page 7: ... but sent for recycling Any batteries contained within the product or used during the products life should be removed from the product and also be sent to an appropriate recycling facility Campbell Scientific Ltd can advise on the recycling of the equipment and in some cases arrange collection and the correct disposal of it although charges may apply for some items or territories For further advic...

Page 8: ......

Page 9: ...g 12 3 3 6 RS 232 basic 3 wire example 12 3 3 7 Connecting a 9 way socket to the SDM SIO1 13 3 4 Power conservation 13 4 Programming the datalogger 14 4 1 Special information about the Serial I O CRBasic commands when used with the SDM SIO1 14 4 1 1 SerialOpen 14 4 1 2 SerialClose 16 4 1 3 SerialIn 17 4 1 4 SerialOut 17 4 1 5 SerialInBlock 17 4 1 6 SerialOutBlock 17 4 1 7 SerialInChk 18 4 1 8 Seri...

Page 10: ...ngs 6 3 2 SDM SIO1 connections left to right as viewed from the front of the unit 7 3 3 SDM SIO1 Functional description of the connections 7 4 1 Communications port parameters RS 232 15 4 2 Communications port parameters RS 485 full duplex 15 4 3 Communications port parameters RS 485 half duplex 16 4 4 Communications port parameters RS 232 receive only mode 16 ...

Page 11: ...size allowing remote equipment to transmit large amounts of data without needing to stop other processes in the datalogger Up to 15 SDM SIO1s can be connected to a single logger using the SDM port allowing the user to connect 15 different items of equipment to their logger with ease in addition to any connections made to the dataloggers other serial ports To start using the SDM SIO1 it is first ne...

Page 12: ...en 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 Hardware CTS RTS flow control is supported in RS 232 mode the handshaking lines can also be used as general purpo...

Page 13: ...loads RS 485 line load 2 40 mA 3 77 mA 4 This extra current is only present when actively transmitting 1 All currents are measured with no loads connected 2 The RS 485 transmit pair is disabled when not transmitting in order to save power higher value resistors can be used to save power dependent upon the application For many applications especially with shorter cable runs no load termination resi...

Page 14: ...commended that the user runs their SDM SIO1 at maximum ratings for extended periods of time 3 Assuming a worst case 3 KΩ load 4 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 2 2 3 EMC compliance The SDM SIO1 has been tested and shown to comply with IEC 61326 The device incorporates t...

Page 15: ...the backplane of a Campbell Scientific enclosure using the screws and plastic inserts provided The SDM SIO1 is designed to be installed in a dry non condensing environment Before fixing it select and set the SDM address as this requires access to the side of the case The SDM address is set with a screw driver Below is a list of the possible SDM addresses and their relationships to the COMport numb...

Page 16: ...ing a screwdriver into the hole on the side of the connector Remove the screwdriver to close the clamp making sure the clamp grips the wire rather than the plastic insulation If there is a need to insert more than one wire in each terminal if using multi strand wire twist the conductors together first If using solid wires either solder or crimp multiple pairs together before insertion For RS 485 c...

Page 17: ...M SIO1 connections left to right as viewed from the front of the unit SDM Power connections RS 232 connections RS 485 RS422 C1 C2 C3 G 12V 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 For example the signals present on pin 7 will also be pres...

Page 18: ...of the wires to the remote serial device will vary with type of device and method of communication It is necessary to work out the best mode of operation of the serial device taking into consideration issues such as power consumption cable lengths RS 485 being better than RS 232 synchronisation of data collection etc In Section 3 3 there are some examples of different connection schemes for the se...

Page 19: ...tial wire pairs when in RS 485 RS422 mode Where A and Y are the lines and B and Z are the lines Connections 7 10 are connected internally to connections 12 15 This allows for terminations resistors to be added when in RS 485 mode if needed or more than one connection to the I O lines or TX and RX lines in RS 232 mode If the use of termination resistors is required in RS 485 mode then they should b...

Page 20: ...rter cable runs and with modern slew rate limited driver technology as used in the SDM SIO1 NOTE RS 485 0V RS 485_Z RS 485_Y RS 485_B RS 485_A To logger Second RS 485 equipment Not connection orde RS 485 0V RS 485_ A RS 485_ B RS 485_ Y RS 485_ Z First RS 485 equipment RS 485 0V for ground referencing C1 C2 C3 G 12V V G RX A CTS S B RTS S Y TX Z 0V Z Y B A 1 2 3 4 5 6 7 8 9 10 Z 11 12 13 14 15 ...

Page 21: ...Z 0V Z Y B A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 22R 22R 22R 22R R R External Internal 100R or higher 100R or higher Note the external termination resistors are optional Some applications can use much higher value resistors and some may not need resistors at all depending on the distance and wire quality involved If the termination resistor is primarily needed for impedance matching then a value m...

Page 22: ...nal if hardware handshaking is not required Not connecting the handshaking lines will decrease the overall current consumption of the SDM SIO1 1 and the RS 232 device device DTE DCE C1 C2 C3 G 12V G RX A CTS B RTS Y TX Z 0V Z Y B A 1 2 3 4 5 6 7 8 9 10 Z 11 12 13 14 15 0V RS 232 TX RS 232_RX To logger RS 232 DCE equipment DTE DCE C1 C2 C3 G 12V V G RX A CTS B RTS Y TX Z 0V Z Y B A 1 2 3 4 5 6 7 8 ...

Page 23: ...rect signal levels which in itself requires power and partly because in the case of RS 232 signals the resting state of 6V driving a nominal RS 232 3k load implicitly wastes 2 mA of current per line 0V RS 232 RTS RS 232 RX RS 232_TX RS 232 CTS To logger Pin 5 Pin 7 Pin 2 Pin 3 Pin 8 RS 232 9 way D type connector connector 1 Note this diagram is for adding a 9 way D type plug to the SDM SIO1 A stan...

Page 24: ...e CRBasic programming language and how the serial commands are to be used with the SDM SIO1 This section assumes the user has knowledge of the CRBasic programming language if not then please contact Campbell Scientific for further assistance Only the parameters that need special explanation or where their functionality has changed are listed below Any other parameters should be taken as not having...

Page 25: ...en 2 8 7 None 2 8 8 Not used 9 Odd 1 7 10 Even 1 7 11 1 None 1 7 12 Not used 13 Odd 2 7 14 Even 2 7 15 None 2 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 Communications port parameters RS 485 full duplex Code Parity No stop bits No data bits 16 None 1 8 17 Odd 1 8 18 Even 1 8 19 None 1 8 20 Not used 21 Odd 2 8 22 Even 2...

Page 26: ...ceive only mode Code Parity No stop bits No data bits 64 None 1 8 65 Odd 1 8 66 Even 1 8 67 None 1 8 68 Not used 69 Odd 2 8 70 Even 2 8 71 None 2 8 72 Not used 73 Odd 1 7 74 Even 1 7 75 1 None 1 7 76 Not used 77 Odd 2 7 78 Even 2 7 79 None 2 7 1 This mode is only supported if there is at least a one bit delay between characters received by the SDM SIO1 4 1 2 SerialClose This will place the SDM SIO...

Page 27: ...32 1 0 10 using a 30µs bit rate would transfer its 10 bytes of data from the SDM SIO1 to the logger in approximately 2 7 ms Time 10 1 8 30 Note that 30µs per bit is the default data rate for most Campbell loggers It is possible to reduce this time and the transfer time by using the SDMSpeed instruction This can be done if using short cable runs between the logger and all SDM devices 4 1 4 SerialOu...

Page 28: ...ree to receive or transmit data This interface is often called RTS CTS Hardware handshaking or DTR DTE Automatic handshaking for the SDM SIO1 is activated through use of the SerialOpen commands BaudRate setting When the BaudRate value is set to a negative number the SDM SIO1 will enable automatic handshaking It is worth noting that normally setting the BaudRate to a negative number will enable aut...

Page 29: ...rmat value set within the range of 64 to 79 Consult Section 4 1 1 in this manual for more detailed information about these settings In receive only mode the SDM SIO1 will consume less current than normal but still can receive new information on its RS 232 port The example below will set the SDM SIO1 with the address 0 into receive only mode All normal baud rates and buffer sizes are supported Exam...

Page 30: ... the SDMSpeed not normally needed Scan 1000 mSec 0 0 Open serial port to RS 232 mode 115200bps 8 bit data 1 stop bit and no parity SerialOpen SensorPort 115200 3 100 10000 open the serial port to the sensor Request data will need to be replaced with the correct command for your sensor In this example we wait for the response Start for up to 1 second before continuing SerialOut SensorPort Request d...

Page 31: ...ort to RS 485 mode 115200bps 8 bit data 1 stop bit and no parity note that the SerialOpenFormat parameter is 19 for RS 485 mode SerialOpen SensorPort 115200 19 100 10000 open the serial port to the sensor Request data will need to be replaced with the correct command for your sensor SerialOut SensorPort Request data 0 10 Send data to the sensor wait for the sensor to respond using a loop this time...

Page 32: ...ogger and compared to the signature supplied with the version that was just loaded contact Campbell Scientific if you require to do this If the SDM SIO1 is not operational or is exhibiting random faults then the flash memory may be corrupted This is a very unlikely event due to the robust nature of the flash device used The unit automatically checks the flash memory against its signature upon powe...

Page 33: ...n 1 constant 1 big endian or 0 little endian Const delay_usec 0 constant delay between outgoing bytes negative means delay also for incoming bytes Const Ver_values_in 20 constant number of values to receive Const Sig_values_in 4 constant number of values to receive Sequentialmode BeginProg SDMSpeed 30 Fix the speed Ver_Value Sig_Value Scan 1 Sec 0 0 Use the generic SDM command to get extra info fr...

Page 34: ......

Page 35: ...R1000 Example program showing how to detect the state of the input line on an SDM SIO1 Using the SDMGeneric instruction Public sio1response As Long Inputstate As Boolean Const addr 0 constant sdm address CHANGE with SDM SIO1 address Const cmd 1 constant command 1 returns the input state in bit 16 Const bytes_out 0 constant number of bytes out none sent Const bytes_val 2 two bytes returned Const bi...

Page 36: ... 5V The following examples show you how to set the output pin using the SerialOutBlock instruction CRBasic example for setting the output pin SerialOutBlock 32 1 0 This will set the spare output pin high SerialOutBlock 32 0 0 This will set the spare output pin low The two example lines of code above will set the output pin on the SDM SIO1 high then low respectively on the SDM SIO1 device set to ad...

Page 37: ......

Page 38: ...ientific Centro Caribe S A CSCC 300N Cementerio Edificio Breller Santo Domingo Heredia 40305 COSTA RICA www campbellsci cc info campbellsci cc Campbell Scientific Ltd CSL 80 Hathern Road Shepshed Loughborough LE12 9GX UNITED KINGDOM www campbellsci co uk sales campbellsci co uk Campbell Scientific Ltd France 3 Avenue de la Division Leclerc 92160 ANTONY FRANCE www campbellsci fr info campbellsci fr...

Reviews: