beautypg.com

Chapter 6, Planning your application program – B&B Electronics ADAM-5000_TCP - Manual User Manual

Page 144

background image

Planning Your Application Program

Chapter 6


$aaSi9shhhh

Name

CJC Zero Calibration (ADAM-5018 only)

Description

Calibrates an analog input module to adjust for offset
errors of its CJC (Cold Junction Compensation) sen-
sor

Syntax $aaSi9shhhh(cr)

$ is a delimiter character.
aa (range 00-FF) represents the 2-character hexadeci-
mal address of the ADAM-5000/TCP system. Si
identifies the I/O slot which contains the CJC Sta- tus
you wish to retrieve.

9 is CJC Status command.
s sign, + or -, indicates whether to increase or de-
crease the CJC offset value.
hhhh is a four character hexadecimal “count” value.
Each count equals approximately 0.009°C. The value
can range from 0000 to FFFF.

(cr) is the terminating character, carriage return (0Dh)

Response !aa(cr)

if the command is valid.

?aa(cr) if an invalid operation was entered. There is
no response if the module detects a syntax error or
communication error or if the specified ad- dress
does not exist.
! delimiter character indicating a valid command was
received.
? delimiter character indicating the command was in-
valid.
aa (range 00-FF) represents the 2-character hexadeci-
mal address of an ADAM-5000/TCP system.

(cr) is the terminating character, carriage return (0Dh)

Example

command: $01S29+0042(cr)
response: !01(cr) The command increases the CJC
offset value of the analog input module in slot 2 of
the system at ad- dress 01h with 66 counts (42 hex)
which equals about
0.6°C.


ADAM-5000/TCP User’s Manual


6-77