SDM-SIO4 4-Channel Serial I/O Interface User Guide Issued 17.3.97Copyright 1997 Campbell Scientific Ltd.
SDM-SIO4 4-Channel Serial I/O Interface User Guide1-41.2.2 SDM PortThis serial port is to connect to the SDM port of the datalogger, e.g. via C1,C2 an
Section 1 . Introduction1-51.2.6 Other Key Features• An internal lithium battery which retains configuration information(estimated life 10 years)• A
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
SDM-SIO4 User Guide2-22.2 Selecting RS232 or 5V Logic for Each PortThe output voltage levels of each serial port can be set to either:• Logic level o
Section 2. Installation and Hardware Set-Up2-3• Electrical noise causing possible loss or corruption of serial data.• Electrical noise being transfer
3-1Section 3. Understanding How theSDM-SIO4 Handles DataFor simple applications the SDM-SIO4 can be configured and controlled from the dataloggeralon
SDM-SIO4 User Guide3-2The hex. number must always be two ASCII characters.Control characters can be entered for all commands in a similar way:• ^M is
Section 3. Understanding How the SDM-SIO4 Handles Data3-3See Section 5 – ‘Programming the Datalogger’.Filter StringsThese are used to define how to f
SDM-SIO4 User Guide3-4• i[ ] Scan until any ASCII characters entered between the brackets areencountered. The maximum number of characters between th
Section 3. Understanding How the SDM-SIO4 Handles Data3-52. n8 discards everything up to 12.65V.3. F converts the number to Campbell Scientific flo
SDM-SIO4 User Guide3-6• Convert a location sent into a 16-bit binary word. If this option is selected anextra ASCII character/delimiter can be added
Section 3. Understanding How the SDM-SIO4 Handles Data3-7Table 4 Fixed Strings Currently AllocatedString number String (enclosed in quotes)256 ‘+000
SDM-SIO4 User Guide3-8z273 – This outputs the fixed string ‘CrLf (carriage return line feed)’.*Table 1 Program 01: 2 Execution Interval (seco
4-1Section 4. Programming the SDM-SIO4This section gives both the basic commands and advanced command line options which allowtesting and advanced co
SDM-SIO4 User Guide4-2Control characters can be entered for all commands in a similar way:• ^M is carriage return, ^J line feed etc.• ^^ means ^• &
Section 4. Programming the SDM-SIO44-3because they are compiled.exitThis command exits the command line and returns port 1 of the SDM-SIO4 tonormal o
SDM-SIO4 User Guide4-4WD n WDERR n WDADDR nWD n is a count of the number of watchdog resets, WDERR is the number of thelast task that crashed and WDAD
Section 4. Programming the SDM-SIO44-5testio [test#]This is used by Campbell Scientific for test purposes.Each test command is carried out for 2 seco
GuaranteeThis equipment is guaranteed against defects in materials, workmanship,and software. This guarantee applies for twelve months from date ofdel
5-1Section 5. Programming the DataloggerThe datalogger instruction specific to the SDM-SIO4 is P113 (CR7 and CR10/10X only).(Please check with Campbe
SDM-SIO4 User Guide5-25.1.5 Parameter 7 — Values per RepThis determines how many values to send or receive, starting from the specifiedinput location
Section 5. Programming the Datalogger5-35.2.1 Understanding Parameter Options and Returned ValuesIn the following examples, ‘x’ indicates a single d
SDM-SIO4 User Guide5-45.2.3 Command 2: SignaturesThis command gets the SDM-SIO4 EPROM signature and the string memory areasignature; the two values
Section 5. Programming the Datalogger5-5If any of these four digits is greater than zero then data is available.Values per repetition = 25.2.7 Comma
SDM-SIO4 User Guide5-65.2.12 Command 67: Get Return CodeThis command gets the return error code and places it into a specified location.Command 67 i
Section 5. Programming the Datalogger5-7P65 Bulk load1:102 f2:108 l3:116 t4:115 s5:116 t6:32 ascii space7:50 28:53 59:1 First location to store the
SDM-SIO4 User Guide5-8;set flag one so that set-up will only be done once.P8611;end of set-up.P95If you use the RAMTEST command you will have to wait
Section 5. Programming the Datalogger5-9Second Value ReturnedCTS status (0=CTS low, 1=CTS high)| DSR status (0=DSR low, 1=DSR high)| | RI status (see
SDM-SIO4 User Guide5-10Break reset:0 Do nothing1 Reset line break count to zeroFraming reset:0 Do nothing1 Reset framing error count to zeroOverrun re
Section 5. Programming the Datalogger5-11First Command Option (Parameter 5)Handshake mode| Stop bits + parity| | Data length| | | Baud rate| | | |x x
SDM-SIO4 User Guide5-125.2.20 Command 2054: Set Up Receive FilterThis command clears all buffers relevant to the mode number and restarts thefilter.
Section 5. Programming the Datalogger5-13Output Mode:0 No output format string1 Convert location to ASCII floating point. Add character/delimiter b
SDM-SIO4 User Guide5-145.2.22 Command 2305: Transmit Byte(s)By using P113 command 2305 it is possible to transmit either one or two bytesfrom the co
Section 5. Programming the Datalogger5-15;set serial mode to DTR, RTS always set, ignore CTS, 1 stop bit no parity,;8 bit data length, 9600 baud and
SDM-SIO4 User Guide5-16*Table 2 Program 02: 0.0000 Execution Interval (seconds)*Table 3 SubroutinesEnd ProgramThe normal configuration would inclu
Section 5. Programming the Datalogger5-17^J^M – this is a way of entering control characters for carriage return/linefeedinto a stringThe following p
SDM-SIO4 User Guide5-18;get data from SDM-SIO4 and put into locations 1 and 2.3: SDM-SIO4 (P113) 1: 1 Reps 2: 0 Address 3: 1 Sen
Section 5. Programming the Datalogger5-19Example CR10X Program without Polling or InterruptsThis simple program is an example for sensors that send d
iContentsSection 1. Introduction... 1-11.1 What is the SDM-SIO4?...
SDM-SIO4 User Guide5-20;end of set up.5: End (P95);get the two floating point values from the SDM-SIO4.6: SDM-SIO4 (P113) 1: 1 Reps 2: 0
Section 5. Programming the Datalogger5-21x – this filter marks the start of the data set. In this case the data set is two floatingpoint numbers.f –
SDM-SIO4 User Guide5-22;if value returned from poll is >=1 then data must be available.7: IF (X<=>F) (P89) 1: 2 X Loc [ poll ] 2
Section 5. Programming the Datalogger5-23– see ‘SDM Port’ in Section 1 for details. This should be connected to control port8 for this example.A typi
SDM-SIO4 User Guide5-24;end of IF6: End (P95)*Table 2 Program 02: 0.0000 Execution Interval (seconds)*Table 3 Subroutines;interrupt routine for c
Section 5. Programming the Datalogger5-255.4 Outputting Datalogger DataThe SDM-SIO4 can be used to drive displays, printout devices and other output
SDM-SIO4 User Guide5-26*Table 2 Program 02: 0.0000 Execution Interval (seconds)*Table 3 SubroutinesEnd Program5.5 Flushing the Input and Output B
6-1Section 6. Data Error DetectionError detection by checksum, CRC or signatures is a way of detecting errors in data, eithertransmitted or received.
SDM-SIO4 User Guide6-23 CRC16-CCITT-IBM (Tag Receiver).4 CRC32 standard. Polynomial x32+x26+x23+x22+x16+x12+x11+x10+x8+x7+x5+x4+x2+x+1.5 CSI Sig
Section 6. Data Error Detection6-36.2.1 Example of Using Received Data FiltersIf a sensor transmitted the following string:Frequency=12.34567HzBB3D
ii5.2.6 Command 5: Status ...5-45.2.7 Command 6: Flush Transmit Buffer..
SDM-SIO4 User Guide6-4*Table 1 Program 01: 1.0 Execution Interval (seconds);test flag 1 – if not set tell the SDM-SIO4 to use filter string 10
Section 6. Data Error Detection6-5;if the value in location 1 is greater than zero then there must be data;this assumes only one sensor is connected
SDM-SIO4 User Guide6-61,2 CRC16 and CRC16-CCITT 0.159ms/char.3 CRC16-CCITT-IBM 0.159ms/char.4 CRC32 0.369ms/char.5 CSI Signature 0.077ms/char.6 Che
Section 6. Data Error Detection6-75 CSI Signature (CR10X user manual section C-4).6 Check sum using modulo 256.7 Check sum using modulo 8192 (CR10X u
SDM-SIO4 User Guide6-86.3.2 CR10X Program ExampleA typical CR10X datalogger program to work with the above formatter is shownbelow.The program assume
Section 6. Data Error Detection6-9*Table 1 Program 01: 1.0 Execution Interval (seconds);use formatter string 100 to set up the CRC16 on port 1
SDM-SIO4 User Guide6-10;use formatter string 102 and output datalogger location 1 as ASCII floating point;to port 1 and then output the calculated ASC
Section 6. Data Error Detection6-111 8 bit binary 0.155ms2,3 16 bit binary 0.216ms4,5 32 bit binary 0.334ms6 ASCII decimal 1.125ms7 8 bit ASCII hex 0
A-1Appendix A. ASCII TableAmerican Standard Code for Information InterchangeDecimal Values and Characters(X3.4-1968)Dec. Char. Dec. Char. Dec. Char.
1-1Section 1. IntroductionThe SDM-SIO4 has four configurable serial RS232 ports which allow it to be connectedto intelligent serial sensors, display
B-1Appendix B. Serial Port Data TransferModesThis appendix describes the serial port set-up in some detail. Please note that the numericaloption code
SDM-SIO4 4-Channel Serial I/O InterfaceB-2B.4 Parity BitsParity can be enabled and set to either odd or even.0. No parity set1. Odd parity set2. Even
SDM-SIO4 4-Channel Serial I/O Interface User Guide1-2Switches -Go to 1 if commandline activeTo Other PortsTo Other Ports1PORTHandshakeControlTx Buffer
Section 1 . Introduction1-31.2 Specifications1.2.1 Serial PortsThe SDM-SIO4 has four serial ports which can be configured independentlyto use differ
Komentarze do niniejszej Instrukcji