Campbell Hausfeld SDM-SIO4 manual Data Error Detection, Appendix A. Ascii Table

Page 6

 

5.2.6 Command 5: Status

5-4

 

5.2.7 Command 6: Flush Transmit Buffer

5-5

 

5.2.8 Command 7: Activate Command Line

5-5

 

5.2.9 Command 8: Poll Tx Buffers for Data

5-5

 

5.2.10 Command 9: Flush Converted Data Buffer

5-5

 

5.2.11 Command 66: Send Single-Byte Data to Datalogger

5-5

 

5.2.12 Command 67: Get Return Code

5-6

 

5.2.13 Command 320: Send Data to SDM-SIO4

5-6

 

5.2.14 Command 321: Execute Command Line Command

5-6

 

5.2.15 Command 1024: Send String to Device

5-8

 

5.2.16 Command 1025: Transmit a Byte

5-8

 

5.2.17 Command 1026: Serial Port Status

5-8

 

5.2.18 Command 1027: ‘Manual’ Handshake Mode

5-10

 

5.2.19 Command 2049: Set Communications Parameters

5-10

 

5.2.20 Command 2054: Set Up Receive Filter

5-12

 

5.2.21 Command 2304: Transmit String and/or Data to Device

5-12

 

5.2.22 Command 2305: Transmit Byte(s)

5-14

5.3 SDM-SIO4 Configuration Examples

5-14

 

5.3.1 Sensors Where the Datalogger Can Request Data by Sending a Prompt

 

or Using a Handshaking Line:

5-16

 

5.3.2 Sensors Which Send Data Out Without Prompting

5-18

5.4

Outputting Datalogger Data

5-25

5.5

Flushing the Input and Output Buffers

5-26

5.6

Return Error Codes

5-26

Section 6.

Data Error Detection

6-1

6.1

Error detection with the SDM-SIO4

6-1

6.2

Received Data

6-1

 

6.2.1 Example of Using Received Data Filters

6-3

 

6.2.2 CR10X Program Example

6-3

6.3

Transmitted Data

6-6

 

6.3.1 Example of Using Transmitted Data Filters

6-7

 

6.3.2 CR10X Program Example

6-8

 

6.3.3 Alternative CR10X Program

6-8

Appendix A. ASCII Table

A-1

Appendix B. Serial Port Data Transfer Modes

B-1

B.1

Baud Rates

B-1

B.2

Stop Bits

B-1

B.3

Data Length

B-1

B.4

Parity Bits

B-2

B.5

Serial Handshake Modes

B-2

Figures

 

 

 

1.

Schematic Diagram of the SDM-SIO4

1-2

Tables

 

 

 

1.

SDM-SIO4 Serial Port Pin Configuration

1-3

2.

Address Settings

2-1

3.

Status LED Error Codes

2-3

4.

Fixed Strings Currently Allocated

3-6

ii

Image 6
Contents Issued Page Guarantee Page Contents Data Error Detection Appendix A. Ascii TableWhat is the SDM-SIO4? IntroductionDatalogger Command Control Serial Ports SpecificationsSDM-SIO4 Serial Port Pin Configuration Serial Port BuffersCase Power RequirementsSDM Port Environmental Operating RangeOther Key Features Page Address Settings Installation and Hardware Set-UpSetting the SDM Address Selector Block Settings SDM AddressSelecting RS232 or 5V Logic for Each Port Connections to the SDM-SIO4Transient Protection and Grounding Power-on Tests the Status LED Status LED Error CodesNo. of Flashes Description of error/status Page Understanding How the SDM-SIO4 Handles Data IntroductionMethod of Entering Special / Control Characters Input Filters Filter TypesSimple Filters Filter Strings Ibn8Ficn8F Predefined Filter Strings Output FormattingSimple Output Formatter Filter No Filter String UsedOutput Format Strings Fmtst 123 z261 f62 iBattery z257 f61z273 CR10X Program ExampleGet battery voltage Get panel temperatureCommand Line Operation and Structure Entering CommandsProgramming the SDM-SIO4 Basic Commands Advanced Commands Bytewr address byte ErrorresHexdump start address number of bytes WD n Wderr n Wdaddr nTestio test# Testio returnsPage Programming the Datalogger Instruction 113 ParametersParameter 8 Starting Input Location Commands and Options Parameters 4, 5Parameter 7 Values per Rep Parameters 9 and 10 Multiplier and OffsetCommand 1 Poll of Available Data Understanding Parameter Options and Returned ValuesCommand 4 Send Data to Datalogger Command 2 SignaturesCommand 3 Flush all Receive Buffers Command 5 StatusCommand 8 Poll Tx Buffers for Data Command 6 Flush Transmit BufferCommand 7 Activate Command Line Command 9 Flush Converted Data BufferCommand 321 Execute Command Line Command Command 67 Get Return CodeCommand 320 Send Byte Data to SDM-SIO4 Program Example for P113 CommandExecute the command line string Command 1026 Serial Port Status Command 1024 Send String to DeviceCommand 1025 Transmit a Byte First Value ReturnedThird Value Returned First Command Option Reset Error CountersSecond Value Returned Fourth Value ReturnedCommand 1027 ‘Manual’ Handshake Mode Command 2049 Set Communications ParametersFirst Command Option Parameter Second Command Option ParameterCommand 2054 Set Up Receive Filter String Number or Character Code SDM-SIO4 Configuration Examples Command 2305 Transmit BytesExample CR10X Program End of serial and filter setup Set flag one high so the above will only be done onceGet two floating point numbers into locations 1 Example CR10X Program Using Instruction P113 Command Strst 101 Send DataJMSet up the filter and then send string Wait long enough for sensor to send dataTime stamp Sensors Which Send Data Out Without PromptingGet data from SDM-SIO4 and put into locations 1 Instantaneous sample form the sensorExample CR10X Program without Polling or Interrupts Fltst 200 tdataA5xffGet the two floating point values from the SDM-SIO4 Example CR10X Program using the Polling MethodEnd of set up Instantaneous values stored to final storageDo filter set-up only if flag one is clear Set up string filterDelay required by filter set-up command Set flag one high so the filter set-up is only done onceExample CR10X Program using Interrupts Get voltages into locations 3 and 4 if poll was trueInstantaneous value stored into final storage Do filter setup only if flag one is clear Delay required by filter setup commandSet control port 8 to i/p so it can be used as an interrupt Instantaneous readings stored into final storage Interrupt routine for control portGet voltages into locations 3 End of interrupt routineOutputting Datalogger Data Return Error Codes Flushing the Input and Output BuffersData Error Detection Error Detection with the SDM-SIO4Received Data SDM-SIO4 User Guide Example of Using Received Data Filters 2 CR10X Program ExampleFltst 100 TFrequency=xg2n10fCCG8 Minimum delay of 4ms is required by the above P113 End of filter setupTell the SDM-SIO4 to use filter string End of get data Transmitted Data CRC32Example of Using Transmitted Data Filters Fmtst 100 g1i123456789G8Alternative CR10X Program Fmtst 100 g1 Fmtst 101 isome data Fmtst 102 f62 G8Minimum delay of 3.8ms is required after this command Use formatter string 100 to set up the CRC16 on portMinimum delay of 1ms is required after this command Send the Ascii characters ‘Y’ and ‘Z’ to portCRC16-CCITT-IBM Data Error Detection Page Appendix A. Ascii Table Dec CharPage Stop Bits Appendix B. Serial Port Data Transfer ModesBaud rates Data LengthParity Bits Serial Handshake Modes