EasyManua.ls Logo

Caen N1471 - USB - RS485 Communication Protocol; Command Format; Format of Response String; MONITOR Commands Related to the Channels

Default Icon
38 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
PRELIMINARY
Document type: Title: Revision date: Revision:
User's Manual (MUT) N1471 4 Channel Programmable HV Power Supply 24/03/2010 1
NPO: Filename: Number of pages: Page:
00112/07:N1471.MUTx/01 N1471_REV1.DOC 38 33
3.5. 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.
3.5.1. 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)
3.5.2. 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 >
3.5.3. MONITOR commands related to the Channels
The following table contains the strings to be used to handle monitor commands related
to the Channels.
The 'X' in the Field 'Channel' can be set in the '0..4' range.
When 'X=4' the module returns the values of the parameter of all 4 Channels.

Table of Contents

Related product manuals