CAEN
Electronic Instrumentation
UM2619 – N1419 User Manual
30
the calibration is performed and the program asks for coefficients to be saved.
Fig. 55: Current offset calibration confirmation
USB - RS485 Communication Protocol
The following Protocol allows to communicate with up to 32 daisy chained modules. The Protocol is based on
commands made of ASCII characters strings. The protocol requires firmware revision 1.0.1 or greater.
Command Format
The Format of a command string is the following :
$BD:**,CMD:***,CH*,PAR:***,VAL:***.**<CR, LF >
The fields that form the command are :
BD
:
0..31
module address (to send the command)
CMD
:
MON, SET
CH
:
0..4
(4 for the commands related to all Channels)
PAR
: (see parameters tables)
VAL
: (numerical value must have a Format compatible with resolution and range)
Format of response string
Format response in case of error
String
Function (Units)
#BD:**,CMD:ERR
Wrong command Format or command not recognized
#BD:**,CH:ERR
Channel Field not present or wrong Channel value
#BD:**,PAR:ERR
Field parameter not present or parameter not recognized
#BD:**,VAL:ERR
Wrong set value (<Min or >Max)
#BD:**,LOC:ERR
Command SET with module in LOCAL mode
Each string is terminated by
< CR, LF >
Format response in case of correct command
String
Function (Units)
#BD:**,CMD:OK
command Ok
#BD:**,CMD:OK,VAL:***
command Ok *** = value for command to individual Channel
#BD:**,CMD:OK,VAL:
*;*;*;*
command Ok
*;*;*;*
= values Ch0,1,2,3 for command to all Channels
Numerical value Field
'VAL'
has Format compatible (comma and decimal part) with the resolution and the range
related to the parameter.
Each string is terminated by
< CR, LF >
MONITOR commands related to the Channels
The following table contains the strings to be used to handle monitor commands related to the Channels.