Manuals
/
Campbell Hausfeld
/
Computer Equipment
/
Network Card
Campbell Hausfeld
SDM-SIO4
manual
Issued
Models:
SDM-SIO4
1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
72
Download
72 pages
17.79 Kb
1
2
3
4
5
6
7
8
9
Specs
Error messages
Data Error Detection
Warranty
Issued
End of serial and filter setup
Datalogger Command Control
Get battery voltage
Setting the SDM Address
What is
Page 1
Image 1
SDM-SIO4
4-Channel
Serial I/O
Interface
User Guide
Issued 17.3.97
Copyright
©
1997 Campbell Scientific Ltd.
Page 1
Page 2
Page 1
Image 1
Page 1
Page 2
Contents
Issued
Page
Guarantee
Page
Contents
Appendix A. Ascii Table
Data Error Detection
Introduction
What is the SDM-SIO4?
Datalogger Command Control
SDM-SIO4 Serial Port Pin Configuration
Specifications
Serial Ports
Serial Port Buffers
SDM Port
Power Requirements
Case
Environmental Operating Range
Other Key Features
Page
Setting the SDM Address
Installation and Hardware Set-Up
Address Settings
Selector Block Settings SDM Address
Connections to the SDM-SIO4
Selecting RS232 or 5V Logic for Each Port
Transient Protection and Grounding
Status LED Error Codes
Power-on Tests the Status LED
No. of Flashes Description of error/status
Page
Introduction
Understanding How the SDM-SIO4 Handles Data
Method of Entering Special / Control Characters
Filter Types
Input Filters
Simple Filters
Filter Strings
Ibn8Ficn8F
Simple Output Formatter
Output Formatting
Predefined Filter Strings
Filter No Filter String Used
Output Format Strings
CR10X Program Example
Fmtst 123 z261 f62 iBattery z257 f61z273
Get panel temperature
Get battery voltage
Entering Commands
Command Line Operation and Structure
Programming the SDM-SIO4
Basic Commands
Advanced Commands
Hexdump start address number of bytes
Errorres
Bytewr address byte
WD n Wderr n Wdaddr n
Testio returns
Testio test#
Page
Instruction 113 Parameters
Programming the Datalogger
Parameter 7 Values per Rep
Commands and Options Parameters 4, 5
Parameter 8 Starting Input Location
Parameters 9 and 10 Multiplier and Offset
Understanding Parameter Options and Returned Values
Command 1 Poll of Available Data
Command 3 Flush all Receive Buffers
Command 2 Signatures
Command 4 Send Data to Datalogger
Command 5 Status
Command 7 Activate Command Line
Command 6 Flush Transmit Buffer
Command 8 Poll Tx Buffers for Data
Command 9 Flush Converted Data Buffer
Command 320 Send Byte Data to SDM-SIO4
Command 67 Get Return Code
Command 321 Execute Command Line Command
Program Example for P113 Command
Execute the command line string
Command 1025 Transmit a Byte
Command 1024 Send String to Device
Command 1026 Serial Port Status
First Value Returned
Second Value Returned
First Command Option Reset Error Counters
Third Value Returned
Fourth Value Returned
Command 2049 Set Communications Parameters
Command 1027 ‘Manual’ Handshake Mode
Second Command Option Parameter
First Command Option Parameter
Command 2054 Set Up Receive Filter
String Number or Character Code
Command 2305 Transmit Bytes
SDM-SIO4 Configuration Examples
Example CR10X Program
Set flag one high so the above will only be done once
End of serial and filter setup
Get two floating point numbers into locations 1
Strst 101 Send DataJM
Example CR10X Program Using Instruction P113 Command
Wait long enough for sensor to send data
Set up the filter and then send string
Get data from SDM-SIO4 and put into locations 1
Sensors Which Send Data Out Without Prompting
Time stamp
Instantaneous sample form the sensor
Fltst 200 tdataA5xff
Example CR10X Program without Polling or Interrupts
End of set up
Example CR10X Program using the Polling Method
Get the two floating point values from the SDM-SIO4
Instantaneous values stored to final storage
Delay required by filter set-up command
Set up string filter
Do filter set-up only if flag one is clear
Set flag one high so the filter set-up is only done once
Get voltages into locations 3 and 4 if poll was true
Example CR10X Program using Interrupts
Instantaneous value stored into final storage
Delay required by filter setup command
Do filter setup only if flag one is clear
Set control port 8 to i/p so it can be used as an interrupt
Get voltages into locations 3
Interrupt routine for control port
Instantaneous readings stored into final storage
End of interrupt routine
Outputting Datalogger Data
Flushing the Input and Output Buffers
Return Error Codes
Error Detection with the SDM-SIO4
Data Error Detection
Received Data
SDM-SIO4 User Guide
2 CR10X Program Example
Example of Using Received Data Filters
Fltst 100 TFrequency=xg2n10fCCG8
End of filter setup
Minimum delay of 4ms is required by the above P113
Tell the SDM-SIO4 to use filter string
End of get data
CRC32
Transmitted Data
Fmtst 100 g1i123456789G8
Example of Using Transmitted Data Filters
Fmtst 100 g1 Fmtst 101 isome data Fmtst 102 f62 G8
Alternative CR10X Program
Minimum delay of 1ms is required after this command
Use formatter string 100 to set up the CRC16 on port
Minimum delay of 3.8ms is required after this command
Send the Ascii characters ‘Y’ and ‘Z’ to port
CRC16-CCITT-IBM
Data Error Detection
Page
Dec Char
Appendix A. Ascii Table
Page
Baud rates
Appendix B. Serial Port Data Transfer Modes
Stop Bits
Data Length
Serial Handshake Modes
Parity Bits
Top
Page
Image
Contents