Tel: 886. 909 602 109 Email: [email protected]
www.salukitec.com
38
4 Remote Programming
4.1 Command Syntax
Computers use ASCII characters to communicate with SE1201. Commands must be in upper case. A command
consists of a four-character command mnemonic, arguments if necessary, and a command terminator. The
terminator must be a linefeed <lf> or carriage return <cr> on RS232 to USB. No command processing occurs until
a command terminator is received. Commands may require one or more parameters. Multiple parameters are
separated by commas (,).
Multiple commands may be sent on one command line by separating them with semicolons (;). The difference
between sending several commands on the same line and sending several independent commands is that when a
command line is parsed and executed, the entire line is executed before any other device action proceeds.
The SE1201 has an input buffer that can store up to 50 instructions and processes commands in the order received.
When the input buffer is full, errors may occur. Thus, it is better to use no more than 50 commands.
SE1201 allows users to query the current value of internal parameters through commands. A query is formed by
appending a question mark "?" to the command mnemonic and omitting the desired parameter(s) from the
command. Values returned by the SE1201 are sent as a string of ASCII characters terminated by a corresponding
terminator. If multiply queries are sent on one command line (separated by semicolons), the answers will be
returned individually, each with a terminator.
When in cascade mode, add an
‘
S
’
character at the end of the command in the communication between master and
slave. More details are in “chapter 3.6 [UTILITY]- [RS232]”.
Examples of Command Formats:
FMOD 1 <cr>
Set the master reference source to internal
FMOD 1 S <cr>
Set the slave reference source to internal
FREQ 10E3 <cr>
Set the master internal reference frequency to 10 kHz
FREQ 10E3 S <cr>
Set the slave internal reference frequency to 10 kHz
OUTP? 1 <cr>
Queries the output value of CH1 of the master SE1201
OUTP? 1 S <cr>
Queries the output value of CH1 of the slave SE1201
4.2 Detailed Command List
The parameters in each command sequence specify the command. Multiple parameters are separated by commas.
Parameters shown in {} are optional. Commands that may be queries have a question mark in parentheses (?) after
the mnemonic. Do not send () or {} as part of the command.