Aalborg XFM Digital User Manual

Page 31

Advertising
background image

28

7. Save AoutScale_mA in to the EEPROM:

!11,MW,27,Y[CR]

Save AoutOffset_mA in to the EEPROM:

!11,MW,28,Z[CR]

Where: Y – the calculated AoutScale_mA value.

Z – the calculated AoutOffset_mA value.

Enable DAC update by typing:

!11,WRITE,4,N[CR]

Unit will respond with:

!11,DisableUpdate: N

Close BackDoor access by typing:

!11,MW,1000,0[CR]

Unit will respond with:

!11,BackDoorEnabled: N

8.

RS-485/RS-232 SOFTWARE INTERFACE COMMANDS

8.1 General

The standard XFM comes with an RS-485 interface. For the optional RS-232
interface, the start character (!) and two hexadecimal characters for the address
must be omitted. The protocol described below allows for communications with
the unit using either a custom software program or a “dumb terminal.” All values
are sent as printable ASCII characters. For RS-485 interface, the start character
is always (!). The command string is terminated with a carriage return (line feeds
are automatically stripped out by the XFM). See section 2.2.3 for information
regarding communication parameters and cable connections.

8.2 Commands

Structure

The structure of the command string:

!<Addr>,<Cmd>,Arg1,Arg2,Arg3,Arg4<CR>

Where:

!

Start character **

Addr

RS485 device address in the ASCII representation of hexadecimal
(00 through FF are valid).**

Cmd

The one or two character command from the table below.

Arg1 to Arg4 The command arguments from the table below.

Multiple arguments are comma delimited.

CR

Carriage Return character.

Note: When done with the analog output calibration make sure the
DAC update is enabled and the BackDoor is closed
(see command below).

Note: Default address for all units is 11. Do not submit start
character and two character hexadecimal device address for
RS-232 option.

Advertising