Analog Way HD Scan AG/DG - XTD920 Manuel d'utilisation

Page 20

Advertising
background image

HD SCAN™

PAGE 20

Chapter 11 : RS-232 PROGRAMMER'S GUIDE

11-1. INTRODUCTION

If you need to use your own Control Software Program with a PC, MAC or WORKSTATION by a RS-232 port. The
HD SCAN

allows to communicate by simple transmit or receive ASCII code.

The HD SCAN

treats any character that it received on the RS-232 as a possible command but accepts only legal

commands. There are no starting/ending in a command string.

A command can be 1 or 2 characters typed on a keyboard and does not required any special characters before or after it
(it is not necessary to press "ENTER" from the keyboard). A command can be preceded by a value (see chapter 11-2.
COMMANDS STRUCTURE).

When the HD SCAN

receives a valid command, it will execute the command. Then the HD SCAN

will send back

the status of all parameters that have changed due to this command.

If the command cannot be executed (value out of range, no signal on the selected input) the HD SCAN

just send back

the current status of the corresponding parameters.

If the command is invalid, an error response will be returned to the control device. All responses sent to the control
device end with a carriage return <CR> and a line feed <LF> signaling the end of the response character string. (see
chapter 11-3. ERROR RESPONSES).

11-2. COMMANDS STRUCTURE

Commands are usually composed of a numerical value followed by the command characters (1 or 2). The characters
used without any numerical value return the current setting of the command.

COMMAND = VALUE (optional) + CHARACTER(S).

Examples:

COMMAND

VALUE CHARACTER(S)

RESPONSE DESCRIPTION

none F

TSY3

Read the output format.

10 v

VP10

Set the vertical position to 10.


11-3. ERROR RESPONSES

When the HD SCAN

receives from the controlling device an invalid command or value, it returns an error response:

COMMAND

VALUE CHARACTER

RESPONSE DESCRIPTION

none BB

E10

Invalid command.

70260 v

E13

Invalid value.

Advertising