INSTRUCTION MANUALSDM-SIO4 4-ChannelSerial I/O InterfaceRevision: 2/04Copyright (c) 1996-2004Campbell Scientific, Inc.
Section 1. Introduction1-4There is one more buffer, which is used only when the datalogger outputsfloating point data via the SDM-SIO4. This buffer i
Section 1. Introduction1-51.2.5 Environmental Operating Range-25°C to +50°C (contact Campbell Scientific for extended temperaturerequirements)0 - 95
Section 1. Introduction1-6This is a blank page.
2-1Section 2. Installation and HardwareSet-UpThe SDM-SIO4 is designed to be mounted on an enclosure chassis plate using the twomounting holes in the
Section 2. Installation and Hardware Set-Up2-22.2 Selecting RS232 or 5V Logic for Each PortThe output voltage levels of each serial port can be set
Section 2. Installation and Hardware Set-Up2-3lightning protection is recommended on all lines connected to the serial ports(contact Campbell Scienti
Section 2. Installation and Hardware Set-Up2-4This is a blank page.
3-1Section 3. Understanding How theSDM-SIO4 Handles DataFor simple applications the SDM-SIO4 can be configured and controlled from thedatalogger alon
Section 3. Understanding How the SDM-SIO4 Handles Data3-2To enter a control character in the range of 0-255 decimal in a filter string,formatter stri
Section 3. Understanding How the SDM-SIO4 Handles Data3-3• Search for an ASCII hex pair to convert to Campbell Scientific floatingpoint format.*• S
Warranty and Assistance The SDM-SIO4 4-CHANNEL SERIAL I/O INTERFACE is warranted by CAMPBELL SCIENTIFIC, INC. to be free from defects in materials and
Section 3. Understanding How the SDM-SIO4 Handles Data3-4• e[ ] Scan until any ASCII character not entered between the brackets isencountered. The m
Section 3. Understanding How the SDM-SIO4 Handles Data3-5• vn[ ] Convert ‘n’ ASCII hex pairs into Campbell Scientific floating pointformat until the
Section 3. Understanding How the SDM-SIO4 Handles Data3-6Predefined Filter StringsA small number of fixed filter strings are pre-defined as follows:F
Section 3. Understanding How the SDM-SIO4 Handles Data3-73.3.2 Output Format StringsThese allow either just long strings to be sent from the SDM-SIO
Section 3. Understanding How the SDM-SIO4 Handles Data3-8TABLE 3-1. Fixed Strings Currently AllocatedString number String (enclosed in quotes)256 ‘+
Section 3. Understanding How the SDM-SIO4 Handles Data3-9i[Battery ] – This outputs the word between the brackets [ ].z257 – This outputs the fixed s
Section 3. Understanding How the SDM-SIO4 Handles Data3-10This is a blank page.
4-1Section 4. Programming the SDM-SIO4This section gives both the basic commands and advanced command line options whichallow testing and advanced co
Section 4. Programming the SDM-SIO44-2The hex. number must always be two ASCII characters.Control characters can be entered for all commands in a sim
Section 4. Programming the SDM-SIO44-3strrd [string number]This command outputs the stored string or definition 0..255 to the commandline.1. When st
i SDM-SIO4 Table of Contents PDF viewers note: These page numbers refer to the printed version of this document. Use the Adobe Acrobat® bookmarks ta
Section 4. Programming the SDM-SIO44-4port is chosen or power is removed and then re-applied, in which case thecommand line reverts to port 1.statusT
Section 4. Programming the SDM-SIO44-5hexdump [start address] [number of bytes]This is used by Campbell Scientific for test purposes and outputs a he
Section 4. Programming the SDM-SIO44-6This is a blank page.
5-1Section 5. Programming the DataloggerThe datalogger instruction specific to the SDM-SIO4 is P113 (CR7 and CR10/10X only).(Please check with Campbe
Section 5. Programming the Datalogger5-25.1.4 Parameters 4, 5 and 6 — SDM-SIO4 CommandThis command (with up to two options) defines exactly what the
Section 5. Programming the Datalogger5-3The delay required in the program can either be forced usingInstruction P22, or by using the time to execute
Section 5. Programming the Datalogger5-4Port 4 data available| Port 3 data available| | Port 2 data available| | | Port 1 data available| | | |x x x
Section 5. Programming the Datalogger5-5Number of invalid commands executed: This is a count from 0-9 and indicatesthat the command you have tried t
Section 5. Programming the Datalogger5-6If any of these four digits is greater than zero then the buffer has data.Values per repetition = 15.2.10 Co
Section 5. Programming the Datalogger5-7there would be no point executing some commands, for example STATUS,from the datalogger, as there would be no
SDM-SIO4 Table of Contents ii 5.2 Commands and Options (Parameters 4, 5 and 6) ... 5-2 5.2.1 Understanding Parameter
Section 5. Programming the Datalogger5-8P1131: 12: 03: 14: 21 Command to execute command line command.5: 06: 07:1 5 Length of command line string. ;n
Section 5. Programming the Datalogger5-95.2.15 Command 1024: Send String to DeviceThis command requests the SDM-SIO4 to transmit a user-defined tex
Section 5. Programming the Datalogger5-10Third Value ReturnedFraming errors| | Overrun errors| | | |x x x xFraming errors is a count from 0-99. This
Section 5. Programming the Datalogger5-11Parity reset:0 Do nothing1 Reset parity error count to zero5.2.18 Command 1027: ‘Manual’ Handshake ModeIn
Section 5. Programming the Datalogger5-12Handshake Mode:0 Leave as set previously1 DTR always set, set RTS when data is available to transmit, onlytr
Section 5. Programming the Datalogger5-135.2.20 Command 2054: Set Up Receive FilterThis command clears all buffers relevant to the mode number and
Section 5. Programming the Datalogger5-14First Command Option (Parameter 5)Output mode| String number or termination character| | | |x x x xOutput Mo
Section 5. Programming the Datalogger5-15the termination character as an ASCII code 0..255; 999 means character notenabled.Min. delay for floating po
Section 5. Programming the Datalogger5-16*Table 1 Program01: 2 Execution Interval (seconds);if flag one is not set then set up the serial mode and fi
Section 5. Programming the Datalogger5-176: End (P95);get two floating point numbers into locations 1 and 2.7: SDM-SIO4 (P113)1: 1 Reps2: 0 Address
SDM-SIO4 Table of Contents iii Appendix C. Limitations of the Talk-Through Mode.C-1 C.1 Limitations ...
Section 5. Programming the Datalogger5-18by using Instruction 22, or a delay loop, or more efficiently by runningsome of the other measurement tasks
Section 5. Programming the Datalogger5-19*Table 1 Program01: 2 Execution Interval (seconds);set up the filter and then send string 101.1: SDM-SIO4 (
Section 5. Programming the Datalogger5-20;Instantaneous sample form the sensor.6: Sample (P70)1: 2 Reps2: 1 Loc [ number ];Average over the 10 mi
Section 5. Programming the Datalogger5-21f – this filter searches for the first ASCII floating point number to convert.f – this filter searches for t
Section 5. Programming the Datalogger5-226: SDM-SIO4 (P113)1: 1 Reps2: 0 Address3: 1 Send/Receive Port 1 4: 4 Command5: 0 1st Parameters6: 0 2nd Par
Section 5. Programming the Datalogger5-23A5 – this filter sets up a 250ms filter time-out; this time-out should be longenough for the sensor to trans
Section 5. Programming the Datalogger5-246: SDM-SIO4 (P113)1: 1 Reps2: 0 Address3: 1 Send/Receive Port 14: 1 Command5: 0 1st Parameters6: 0 2nd Para
Section 5. Programming the Datalogger5-25*Table 2 Program02: 0.0000 Execution Interval (seconds)*Table 3 SubroutinesEnd ProgramExample CR10X Program
Section 5. Programming the Datalogger5-26;set up string filter3: SDM-SIO4 (P113)1: 1 Reps2: 0 Address3: 1 Send/Receive Port 14: 2054 Command5: 9200
Section 5. Programming the Datalogger5-272: SDM-SIO4 (P113)1: 1 Reps2: 0 Address3: 1 Send/Receive Port 14: 4 Command5: 0 1st Parameters6: 0 2nd Para
SDM-SIO4 Table of Contents iv This is a blank page.
Section 5. Programming the Datalogger5-28The user-defined formatter used is:fmtst 123 "z261 f6:2 i[Battery ]z257 f6:1z273"An example of typ
Section 5. Programming the Datalogger5-29*Table 3 SubroutinesEnd Program5.5 Flushing the Input and Output BuffersOne important aspect of the SDM-SIO
Section 5. Programming the Datalogger5-30This is a blank page.
6-1Section 6. Data Error DetectionError detection by checksum, CRC or signatures is a way of detecting errors in data,either transmitted or received.
Section 6. Data Error Detection6-20 No Signature type used.1 CRC16 standard. Polynomial x16+x15+x2+1.2 CRC16-CCITT standard. Polynomial x16+x12+x5 +1
Section 6. Data Error Detection6-33 16-bit binary most significant byte first. Expects 2 bytes4 32-bit binary least significant byte first. Expects 4
Section 6. Data Error Detection6-4on the received data. If they match then the value converted with the “f” filter ismade available for the datalogge
Section 6. Data Error Detection6-54: Do (P86)1: 11 Set Flag 1 High ;end of filter setup5: End (P95);poll SDM-SIO4 to see if data is available for t
Section 6. Data Error Detection6-6*Table 3 SubroutinesEnd ProgramThe program shown above will only put data into the storage locations if anydata was
Section 6. Data Error Detection6-7The total extra processing time over and above the SDM-SIO4’s normal delayis calculated by the following:The extra
1-1Section 1. IntroductionThe SDM-SIO4 has four configurable serial RS232 ports which allow it to be connected tointelligent serial sensors, display
Section 6. Data Error Detection6-87 8 bit ASCII hex. Expects 2 ASCII bytes, if not 0-9,a-f,A-F then fail.8 16 bit ASCII hex. Expects 4 ASCII bytes, i
Section 6. Data Error Detection6-91: SDM-SIO4 (P113)1: 1 Reps2: 0 Address3: 1 Send/Receive Port 14: 2304 Command5: 9100 1st Parameters6: 0 2nd Param
Section 6. Data Error Detection6-10;A minimum delay of 1ms is required after this command2: Excitation with Delay (P22)1: 1 Ex Channel2: 0 Delay W/E
Section 6. Data Error Detection6-116: SDM-SIO4 (P113)1: 1 Reps2: 0 Address3: 1 Send/Receive Port 14: 2304 Command5: 9102 1st Parameters6: 0 2nd Para
Section 6. Data Error Detection6-12is for a number with ten digits – if the number is less than this the 1.125msfigure would reduce by 0.1ms per digi
A-1Appendix A. ASCII TableAmerican Standard Code for Information InterchangeDecimal Values and Characters(X3.4-1968)Dec. Char. Dec. Char. Dec. Char.
This is a blank page.
B-1Appendix B. Serial Port Data TransferModesThis appendix describes the serial port set-up in some detail. Please note that thenumerical option code
Appendix B. Serial Port Data Transfer ModesB-20. 5 data bits1. 6 data bits2. 7 data bits3. 8 data bitsB.4 Parity BitsParity can be enabled and s
C-1Appendix C. Limitations of the Talk-Through ModeWhen using talk-through mode, other aspects of the SDM-SIO4 can be affected or limited.This Append
Section 1. Introduction1-2write-protected memory, which allows you to set up the SDM-SIO4 in theoffice and then move it to the site of installation i
Appendix C. Limitations of the Talk-Through ModeC-2to complete and then start a new talk-through session and use the commandLASTERROR to get the resu
This is a blank page.
Campbell Scientific CompaniesCampbell Scientific, Inc. (CSI)815 West 1800 NorthLogan, Utah 84321UNITED [email protected]
Section 1. Introduction1-31.2 Specifications1.2.1 Serial PortsThe SDM-SIO4 has four serial ports which can be configured independently touse differ
Commentaires sur ces manuels