background image

Technical Support - 

International: (928) 778-3554     US: (800) 933-1780     Europe:  (31) 20-6238-983

www.rdlnet.com

5

The use of return codes from the CS1 (

REN 

command) is highly recommended in conjunction with the

OnComm event as used in the demo program. The alternative is to use delays after all commands are
sent. This technique is used in the demo program in the start up code in the Form, Load event in the
automatic baud rate setting code, where it is a necessity.

If the application being developed will make use of ramping the 0 to 10 (or 0 to 5) volt outputs it is
recommended but not necessary to use ramp end reporting, activated with the 

RER 

command. This method

is useful when the application needs to know when the ramp is complete to initiate another action.

4.  Command and Error Code Reference

All commands are case insensitive. Commands can be upper or lower case.
(Commands are for both models unless otherwise specified)

REN

: Enables response codes. With response codes enabled, one of the following codes is returned to

the computer each time the CS1 receives a command:

E0: Command was okay, requested action taken.

E1: Framing error. Usually caused by an incorrect baud rate or number or data bits or start or stop bits.

E2: RS-232 hardware buffer overrun. Could be caused by an excessive incoming baud rate.

Check parity and start/stop bit settings as well.

E3: Internal receive buffer overrun. Too many characters with no terminator were received.

Possibly caused by an incorrect baud rate.

E4: Command not understood. An unknown command was received.

E5: Argument incorrect. Command was recognized but an invalid value parameter was detected.

Note: An argument containing more characters than required may not trigger an “E5” error code. The CS1 will process the
command characters first, followed by processing the parameter until the correct number of characters needed are found.
Any excess characters will be ignored up to a valid terminator (CR, LF, CR+LF or LF+CR).

RDIS

: (default mode) Disables response codes. With response codes disabled, the only communication

sent from the Sys84IF results from a STATUS INPUT terminal change (if enabled; see IC commands
below) or an input alert (if enabled; see IA command below).

T

n: (n = 0 to 3) Selects what terminator character(s) is/are sent from the CS1 after any/all responses.

0 = no terminator (Default)
1 = Carraige Return (ASCII 13)
2 = Line Feed (ACSII 10)
3 = Both CR and LF

V

: Returns the software Revision level. The response is “

V

n” where ‘n’ is the revision level, starting with 1.

Only whole numbers are used for ‘n’.

INIT

: Initializes unit. All output pins are set off and all 0 to 10V outputs are set to 0 Vdc. Clears all input

alerts set from ICE, ICEALL and IA commands. Ramp rate will default to 1 (0.5 sec. full scale ramp time).
Resets outgoing terminator to ‘none’ (same as T0 command). Sets CS1 to send back no responses (same
as RDIS command).

Содержание SYS-CS1

Страница 1: ...er Communications and Connections 2 RS 232 Communication 2 RS 232 Connection 2 3 Programming 3 Command Protocol 3 External Inputs 3 Response Protocol 3 Power Up Default Conditions 3 Computer Issues 3 Ramping 3 Sample Program 4 Baud Rate 4 Status Monitor 4 Windows Hyper Terminal 4 4 Command and Error Code Reference 5 5 Rear Panel Connections and Typical Performance 8 2005 Radio Design Labs Inc ...

Страница 2: ...ducts are in the same size chassis which is one RU rack unit high and two thirds wide Either CS1 model will occupy 2 of 3 bays in an available RDL RU RA3 rack mounting accessory Note References in this manual that apply to both SYS CS1 and RU2 CS1 will use the term CS1 2 Computer Communications and Connections RS 232 Communication The CS1 communicates with a host controller using an RS 232 connect...

Страница 3: ...en sent Response Protocol All responses from the CS1 can have an optional terminator added which may be a Carriage Return ASCII 13 or Line Feed ASCII 10 or both CR LF The default power up condition is no terminator Terminators are activated using the Tn commands covered later in the Command Reference section Power up Default Conditions The CS1 powers up ready to accept any command and to not provi...

Страница 4: ...ialog select the baud rate that is set on the CS1 rear panel switches The data bits should be 8 the parity setting should be None and the Stop bits 1 The Flow control must be set to None Click OK when ready Hyper Terminal is now configured and the setup should be saved for convenient use later The info bar at the bottom should have a Connected message If not click on the telephone icon on the menu...

Страница 5: ...t stop bit settings as well E3 Internal receive buffer overrun Too many characters with no terminator were received Possibly caused by an incorrect baud rate E4 Command not understood An unknown command was received E5 Argument incorrect Command was recognized but an invalid value parameter was detected Note An argument containing more characters than required may not trigger an E5 error code The ...

Страница 6: ... b 0 for inactive and 1 for active The first character after I is STATUS INPUT 8 then 7 etc IAbbbbbbbb Returns alert for STATUS INPUT terminal pattern bbbbbbbb where b 0 for inactive 1 for active and X for don t care The first character after IA is terminal 8 then 7 etc The response is IA when the user input terminals match the defined pattern The alert response is sent even if the CS1 is in no re...

Страница 7: ...ely to level xxx This command follows the leading zero rules as in VO command above No value for xxx will set the output off to 0 Vdc VRmn m A to H n 0 or 1 to set Output Voltage Range Default value of n is 0 which is the 0 to 10Vdc range a value of 1 sets the range to 0 to 5 Vdc RMPmxxx m A to H xxx 0 to 255 Ramps 0 to 10V output m to level xxx using rate set by RR command RRmxxx m A to H xxx 1 t...

Страница 8: ... cm Depth 3 98 in 10 10 cm Width 11 60 in 29 50 cm SYS CS1 5 Rear Panel Connections and Typical Performance RU2 CS1 TYPICAL PERFORMANCE Control Input Output RS 232 DB 9 female jack Control Outputs 8 Open collector 50 mA Status Inputs 8 Low active internally pulled high to 5 V MAX input 24 Vdc 0 to 10 VDC Outputs 8 22 Ω ground referenced 20 mA 256 steps Ramp Rate 0 to 10 V Outputs 0 5 to 120 second...

Отзывы: