Campbell-scientific SDM-SIO4 4-Channel Serial I/O Interface Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Matériel Campbell-scientific SDM-SIO4 4-Channel Serial I/O Interface. Campbell Scientific SDM-SIO4 4-Channel Serial I/O Interface User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 82
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
INSTRUCTION MANUAL
SDM-SIO4 4-Channel
Serial I/O Interface
Revision: 2/04
Copyright (c) 1996-2004
Campbell Scientific, Inc.
Vue de la page 0
1 2 3 4 5 6 ... 81 82

Résumé du contenu

Page 1 - INSTRUCTION MANUAL

INSTRUCTION MANUALSDM-SIO4 4-ChannelSerial I/O InterfaceRevision: 2/04Copyright (c) 1996-2004Campbell Scientific, Inc.

Page 2 - Warranty and Assistance

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

Page 3 - SDM-SIO4 Table of Contents

Section 1. Introduction1-51.2.5 Environmental Operating Range-25°C to +50°C (contact Campbell Scientific for extended temperaturerequirements)0 - 95

Page 4 - Appendices

Section 1. Introduction1-6This is a blank page.

Page 5 - Figures

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

Page 6

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

Page 7

Section 2. Installation and Hardware Set-Up2-3lightning protection is recommended on all lines connected to the serial ports(contact Campbell Scienti

Page 8

Section 2. Installation and Hardware Set-Up2-4This is a blank page.

Page 9 - 1.2.1 Serial Ports

3-1Section 3. Understanding How theSDM-SIO4 Handles DataFor simple applications the SDM-SIO4 can be configured and controlled from thedatalogger alon

Page 10 - 1.2.4 Power Requirements

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

Page 11 - 1.2.6 Other Key Features

Section 3. Understanding How the SDM-SIO4 Handles Data3-3• Search for an ASCII hex pair to convert to Campbell Scientific floatingpoint format.*• S

Page 12 - This is a blank page

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

Page 13 - 2.1 Setting the SDM Address

Section 3. Understanding How the SDM-SIO4 Handles Data3-4• e[ ] Scan until any ASCII character not entered between the brackets isencountered. The m

Page 14

Section 3. Understanding How the SDM-SIO4 Handles Data3-5• vn[ ] Convert ‘n’ ASCII hex pairs into Campbell Scientific floating pointformat until the

Page 15

Section 3. Understanding How the SDM-SIO4 Handles Data3-6Predefined Filter StringsA small number of fixed filter strings are pre-defined as follows:F

Page 16

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

Page 17 - SDM-SIO4 Handles Data

Section 3. Understanding How the SDM-SIO4 Handles Data3-8TABLE 3-1. Fixed Strings Currently AllocatedString number String (enclosed in quotes)256 ‘+

Page 18 - 3.2.1 Filter Types

Section 3. Understanding How the SDM-SIO4 Handles Data3-9i[Battery ] – This outputs the word between the brackets [ ].z257 – This outputs the fixed s

Page 19 - Filter Strings

Section 3. Understanding How the SDM-SIO4 Handles Data3-10This is a blank page.

Page 20

4-1Section 4. Programming the SDM-SIO4This section gives both the basic commands and advanced command line options whichallow testing and advanced co

Page 21

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

Page 22 - 3.3 Output Formatting

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

Page 23 - 3.3.2 Output Format Strings

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

Page 24 - CR10X Program Example

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

Page 25

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

Page 26

Section 4. Programming the SDM-SIO44-6This is a blank page.

Page 27 - CR) is sent. This is normally

5-1Section 5. Programming the DataloggerThe datalogger instruction specific to the SDM-SIO4 is P113 (CR7 and CR10/10X only).(Please check with Campbe

Page 28 - 4.3 Basic Commands

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

Page 29 - 4.4 Advanced Commands

Section 5. Programming the Datalogger5-3The delay required in the program can either be forced usingInstruction P22, or by using the time to execute

Page 30

Section 5. Programming the Datalogger5-4Port 4 data available| Port 3 data available| | Port 2 data available| | | Port 1 data available| | | |x x x

Page 31 - [address] [byte]

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

Page 32

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

Page 33 - 5.1.3 Parameter 3 — Mode

Section 5. Programming the Datalogger5-7there would be no point executing some commands, for example STATUS,from the datalogger, as there would be no

Page 34

SDM-SIO4 Table of Contents ii 5.2 Commands and Options (Parameters 4, 5 and 6) ... 5-2 5.2.1 Understanding Parameter

Page 35 -

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

Page 36 - 5.2.6 Command 5: Status

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

Page 37

Section 5. Programming the Datalogger5-10Third Value ReturnedFraming errors| | Overrun errors| | | |x x x xFraming errors is a count from 0-99. This

Page 38

Section 5. Programming the Datalogger5-11Parity reset:0 Do nothing1 Reset parity error count to zero5.2.18 Command 1027: ‘Manual’ Handshake ModeIn

Page 39

Section 5. Programming the Datalogger5-12Handshake Mode:0 Leave as set previously1 DTR always set, set RTS when data is available to transmit, onlytr

Page 40

Section 5. Programming the Datalogger5-135.2.20 Command 2054: Set Up Receive FilterThis command clears all buffers relevant to the mode number and

Page 41 - Second Value Returned

Section 5. Programming the Datalogger5-14First Command Option (Parameter 5)Output mode| String number or termination character| | | |x x x xOutput Mo

Page 42 - Fourth Value Returned

Section 5. Programming the Datalogger5-15the termination character as an ASCII code 0..255; 999 means character notenabled.Min. delay for floating po

Page 43

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

Page 44

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

Page 45 - (Formatter/Filter)

SDM-SIO4 Table of Contents iii Appendix C. Limitations of the Talk-Through Mode.C-1 C.1 Limitations ...

Page 46

Section 5. Programming the Datalogger5-18by using Instruction 22, or a delay loop, or more efficiently by runningsome of the other measurement tasks

Page 47 - Example CR10X Program

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 (

Page 48

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

Page 49

Section 5. Programming the Datalogger5-21f – this filter searches for the first ASCII floating point number to convert.f – this filter searches for t

Page 50

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

Page 51

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

Page 52

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

Page 53

Section 5. Programming the Datalogger5-25*Table 2 Program02: 0.0000 Execution Interval (seconds)*Table 3 SubroutinesEnd ProgramExample CR10X Program

Page 54

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

Page 55

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

Page 56

SDM-SIO4 Table of Contents iv This is a blank page.

Page 57

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

Page 58

Section 5. Programming the Datalogger5-29*Table 3 SubroutinesEnd Program5.5 Flushing the Input and Output BuffersOne important aspect of the SDM-SIO

Page 59

Section 5. Programming the Datalogger5-30This is a blank page.

Page 60

6-1Section 6. Data Error DetectionError detection by checksum, CRC or signatures is a way of detecting errors in data,either transmitted or received.

Page 61 - 5.6 Return Error Codes

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

Page 62

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

Page 63 - 6.2 Received Data

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

Page 64

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

Page 65

Section 6. Data Error Detection6-6*Table 3 SubroutinesEnd ProgramThe program shown above will only put data into the storage locations if anydata was

Page 66 - 6.2.2 CR10X Program Example

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

Page 67

1-1Section 1. IntroductionThe SDM-SIO4 has four configurable serial RS232 ports which allow it to be connected tointelligent serial sensors, display

Page 68

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

Page 69 - 6.3 Transmitted Data

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

Page 70 - 6.3.2 CR10X Program Example

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

Page 71

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

Page 72

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

Page 73

A-1Appendix A. ASCII TableAmerican Standard Code for Information InterchangeDecimal Values and Characters(X3.4-1968)Dec. Char. Dec. Char. Dec. Char.

Page 74

This is a blank page.

Page 75 - Appendix A. ASCII Table

B-1Appendix B. Serial Port Data TransferModesThis appendix describes the serial port set-up in some detail. Please note that thenumerical option code

Page 76

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

Page 77 - B.3 Data Length

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

Page 78 - B.5 Serial Handshake Modes

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

Page 79 - Through Mode

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

Page 80

This is a blank page.

Page 81

Campbell Scientific CompaniesCampbell Scientific, Inc. (CSI)815 West 1800 NorthLogan, Utah 84321UNITED [email protected]

Page 82 - Campbell Scientific Companies

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

Pas de commentaire