Teledyne THCD-100 instruction manual Serial Communication, Command/Query Format

Page 17

5. SERIAL COMMUNICATION

5.1.Introduction

The THCD-100 allows full control and feedback via serial communication protocols (RS232 or RS485). Calibration, in fact, all controls available through the front panel, are available as commands sent using serial communications.

Serial communications is available using an RS232 or RS485 link between the client (typically a PC) and the THCD. A baud rate must be configured, along with the selection of protocol. Valid baud rates are 9600, 19200 & 57600. Additional communication setup parameters (e.g. parity, stop bits, etc.) are always the same and nonconfigurable. By default the THCD is setup to communicate via RS232 with the following communication parameters:

Baud: 57600

Data bits: 8

Parity: None

Stop bits: 1

Handshaking: None

5.2.Command/Query Format

The format of the commands and queries is common between all available communication protocols. That is, the address must be included whether using RS232 or 485.

Format: accc[?] [p][,p][,p]

where ‘a’ = address, ‘ccc’ = command/query, ‘?’ = query identification; ‘p’ = parameter (separated by commas if more than one)

The first letter to be entered on the command line, before any command or query, is the address identifier. This is a letter between a & h and is particularly important when communicating via RS485, if there are several units on the same RS485 network. On RS232 this address doesn’t really mean anything because RS232 is single point to point communication. However as mentioned above, the address letter is left in (and therefore required) between communication methods. By default the THCD has the letter ’a’ for its address.

Most commands are identified by three letters (although this is not always the case) and a query is identified by following the command letters with a ‘?’ character. For all commands with parameters, you must separate the command from its parameters with a space, and separate multiple parameters with commas.

Table 1 in Appendix A summarizes all commands and queries available. Note that where a command is also a query, you do not enter any parameters for the query ‘version’ unless explicitly stated in the table.

For everything sent through the communications port, the THCD will reply by informing the user of the command/query it has just received, along with any parameters identified, any data requested (if it was a valid command/query) and a line indicating whether the command was accepted. This reply block is the same for anything sent to the THCD and is as follows . (‘’ indicates a carriage return/line feed pair):

165-072011 THCD-100 Power Supply

Page 17 of 28

Image 17
Contents Teledyne Hastings Manual Print History Table of Contents General Information FeaturesSpecifications Pin Number Designation InstallationTransducer socket Pinout 15 Pin D Type Interface Interface Socket Pin out Miniature 15 Pin D TypeSerial Socket Pinout 9 Pin D Type Pin Number Designation 1Panel Mounting Power Connection SocketIntroduction FeaturesAnalog Inputs Analog OutputsUser Re-zero Setpoint ModeAdaptive Filtering Setpoint SourceFilter Size Edit Mode Common Switch FunctionsMenu Screens Editable ScreensFront Panel Screens Switch FunctionsMain Screen not changing setpoint Main Screen changing setpointSetpoint Screen Switch FunctionsMain Menu Screen Filtering Screen Input ScreenSerial Screen Comms Menu ScreenRelay Screen Factory Defaults Confirmation ScreenSerial Communication Command/Query FormatOutput Current Readings Repeatedly ‘rp’ Main CommandsOutput Current Readings ‘r’ Setpoint Value ‘spv’ Setpoint Mode ‘spm’Setpoint Source ‘sps’ Setpoint Initial Value ‘siv’Setpoint Initial Mode ‘sim’ Serial CommandsSerial Baud Rate ‘bra’ Serial Communication Protocol ‘pro’Filtering Commands Channel Setup CommandsFilter Size ‘fls’ Relay Control CommandsRelay Trip Point ‘rlt’ Relay Hysteresis ‘rlh’Retrieve All Settings ‘ras’ Other CommandsUser Input Re-zero ‘irz’ Date of Last Factory Calibration ‘dlc?’Service Service & CalibrationCleaning End of LifeAppendix a AppendicesAppendix B Setting Default Value Additional InformationDescription Type and size Settings in ‘ras’ command stringAppendix C Non-Warranty Repair Policy WarrantyWarranty Repair Policy