background image

21

SERIAL COMMUNICATIONS

SERIAL PROGRAM-MODE COMMANDS

ESP — Enter Serial Programming

This command causes the counter to enter the serial pro-
gramming mode. The host must send this command before
the unit will respond to serial  programming commands (WPI,
RPI, and XSP). The counter displays the message  “LOAD-
ING PROGRAM” when it receives a valid ESP command.
The counter and preset values are saved and the outputs
dropout as when entering the  keyboard programming mode.

If  the counter is in the serial programming mode and power
is removed, it will enter the keyboard programming mode
when power is re-applied.

EXAMPLE:  >00ESP48(cr)   Causes unit 00 to enter the serial
programming mode.

XSP — Exit Serial Programming

This command causes the counter to store any new program
data and exit the serial programming mode. It is similar to
exiting the keyboard programming mode.

EXAMPLE:  >00XSP5B(cr) Causes unit 00 to exit serial
programming.

WPI(nnn - nnnnnnnn) — Write Program Item

This command allows a host computer to remotely program
an Ambassador unit. The unit must be in the serial program-
ming mode (ESP command). The host must send the WPI
command followed by the two to four digit edit menu number
of the desired function. A one to six digit data value is required
with some edit menus (see diagram on pages 22 and 23 for
edit menu item numbers).

EXAMPLE:  >00WPI02360000DB(cr) Sets the rate scaler to
60.000 on unit 00.

RPI(nn - nnn) — Read Program Item

This command allows a host computer to determine the
programming of an Ambassador unit. The unit must be in the
serial programming mode (ESP command). The host must
send the RPI command followed by a two or three digit
number representing the desired sub-menu (see diagram on
pages 22 and 23 for sub-menu  numbers). The counter
responds by transmitting a number representing the  current
option selected for a sub-menu.

EXAMPLE COMMAND:  >00RPI20AD(cr)  Read input 1
selection.

EXAMPLE RESPONSE:  A200D3(cr)  Input 1 is disabled.

SAMPLE COMMUNICATIONS PROGRAM

The following BASIC program can be used to demonstrate
the serial communications capability of the Ambassador
controls.  The program requires the user to enter an Ambas-
sador command with the correct unit ID# and format (ex-
ample: 00WP1123456).  The program will calculate the
checksum and include it in the command string along with the
preceding “>” character.  The command string will then be
printed to the screen and sent to the Ambassador unit
(example: >00WP11234566E).  The program then prints the
Ambassador response to the screen (example: A).

Note:  This sample program is intended for illustration pur-
poses only and is not guaranteed to work with all computers
and BASIC compilers or interpreters.

100 REM **** INITIALIZE AND INPUT *****
110 DEFINT A - Z
120 DEF SEG = &H40
130 CB = PEEK(1) * &H100 + PEEK(0)
135 DEF SEG
140 MSR = CB + 6
150 LSR = CB + 5
160 MCR = CB + 4
170 RTSON = 8 + 2 + 1 : RTSOFF = 8 + 1
180 OPEN “COM1:19200,N,8,1,RS” AS #1
190 ON TIMER(1) GOSUB 450
200 INPUT “ENTER COMMAND  >”,  A$
210 REM ***** CALCULATE CHECKSUM *****
220 CS = 0
230 R$ = “”
240 FOR X = 1 TO LEN(A$)
250 CS = CS + ASC(MID$(A$, X, 1))
260 NEXT X
270 CS = CS AND 255
280 CS$ = HEX$(CS)
290 IF CS < 16 THEN CS$ = “0” + CS$
300 T$ = “>” + A$ + CS$ : PRINT T$
310 REM ***** RTS CONTROL AND SEND *****
320 OUT MCR, RTSON
330 PRINT #1, T$
340 IF INP(LSR) <> &H60 THEN 340
350 OUT MCR, RTSOFF
360 REM ********* GET RESPONSE *********
370 TIMER ON
380 IF LOC(1) = 0 THEN 380
390 R$ = R$ + INPUT$(LOC(1), #1)
400 TIMER OFF
410 IF RIGHT$(R$, 1) <> CHR$(13) THEN 370
420 PRINT R$
430 GOTO 200
440 REM ***** NO RESPONSE ROUTINE ******
450 PRINT “NO RESPONSE” : PRINT
460 TIMER OFF : RETURN 200

Summary of Contents for 57600-401

Page 1: ...Green or Red Display TABLE OF CONTENTS 1 Introduction 3 Front Panel Features 4 Run Mode Operation 5 Programming 12 Scale Factors 13 Rear Terminal Description 15 Wiring Diagrams 18 Serial Communication...

Page 2: ...The Durant Ambassador 5760X 401 is a six digit single preset count control device with four programmable inputs three outputs and a built in rate meter The counter has nine count input modes and may b...

Page 3: ...ogrammed to reset to preset PROGRAMMABLE INPUTS The Ambassador unit has five programmable inputs RST CLR key and four terminals The user may program each input for one of six functions see INPUTS page...

Page 4: ...the run mode this key can be programmed to reset count values In the preset editing mode this key zeros pre sets that are being changed In the program mode it zeros numeric data that is selected for...

Page 5: ...red the unit will power up with the display that was last selected RUN MODE MENUS The keystroke sequence used to access all of the available run mode screens and change preset values is shown in a men...

Page 6: ...eturntothelastrunmodemenu ENTERING THE PROGRAM MODE Press Overview of Main Menus Select count mode reset to zero or reset to preset and auto recycle op erations Select the input function to be per for...

Page 7: ...nt SEL selects decimal point position HELP programs decimal point SEL selects decimal point position HELP programs decimal point Select Count Input mode using the UP and DOWN cursors to scroll thru th...

Page 8: ...ut Control Reset Counter Edge triggered Reset Counter Level sensitive INPUT 1 LOCK ALL INPUT 1 STOP CNT INPUT 1 LOCK PGM INPUT 2 DISABLED INPUT 3 DISABLED INPUT 4 DISABLED Count Inhibit Lock Program m...

Page 9: ...lse time XX XX seconds SEL SEL SEL MAIN MENU SUB MENU VIEW MENU EDIT MENU PROGRAM SERIAL PORT Preset 1 press to return one menu level press to enter data and return one menu level press to exit to sub...

Page 10: ...COUNT SKIP Select SKIP or SEND for each data block to be transmitted when requested by the host computer press to return one menu level press to exit to main menu press to scroll down RATE SKIP P1 SKI...

Page 11: ...count signals SOLID ST C x1 DIR same as contact count direction but can be used with high speed count signals SOLID ST C x2 DIR same as above except counts occur on both edges of input signal for inc...

Page 12: ...output 2 sub menus SERial PORT SER PORT ID enter the desired two digit serial ID number 00 99 decimal All communications to the control must contain this number in hexadecimal Each unit must have a u...

Page 13: ...000 400 Select the XXXXX X position on the rate decimal point menu COUNT SCALING The count scaler is a user programmable number which determines the count value of each input pulse It is used to corre...

Page 14: ...or maxi mumnoiseimmunity thegroundterminalmustbeconnected to a good earth ground All shielded signal cables should be connected to earth ground or ground on the counter 5 6 and 7 Not used 8 9 and 10 R...

Page 15: ...witch shall be included in the building installation It shall be in close proximity to the equipment and within easy reach of the operator It shall be marked as the disconnecting device for the equipm...

Page 16: ...1 12 2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 20 21 22 To prevent multiple counts use one of the contact count modes See programming diagram All dip switches OFF Push button limit switch relay conta...

Page 17: ...d in the same manner Do not connect Term 1 if sensor is powered from another power supply Wire colors shown correspond to Cutler Hammer inductive proximity and photo sensors Dip switches 1 and or 2 ON...

Page 18: ...or a single channel encoder All dip switches OFF This wiring example shows the load being controlled from the normally open contacts of Relay 1 Wiring for the normally closed contacts 8 9 would be don...

Page 19: ...e Program LPG Lock Program Item OCL Output Control UAL Unlock All RCD Read Counter Data UPG Unlock Program RDV Read Device Value XSP Exit Serial Pro RPI Read Program Item gramming RSC Reset Counter Ex...

Page 20: ...cuted the counter ignores the command and responds by sending an ASCII N not acknowledged followed by a one character error code and a carriage return Error Codes 00 Power up Error When power is appli...

Page 21: ...e the desired lock command after power is re applied Lock inputs are not affected by serial lock commands If both a lock input and a serial lock command are in effect the user must remove both locks b...

Page 22: ...a two or three digit number representing the desired sub menu see diagram on pages 22 and 23 for sub menu numbers The counter responds by transmitting a number representing the current option selecte...

Page 23: ...READ RPI 10 WRITE WPI 100 101 102 103 104 105 106 107 108 RESET TO AUTO CYC ZERO P1 DISABLED P1 0 11 12 110 111 120 121 INPUTS PROGRAM INPUT 1 Next item is PROGRAM SER PORT on next page OUT MODE PROGR...

Page 24: ...on NONE ODD EVEN 4800 2400 1200 300 SER PORT ID BAUD PARITY Tx DELAY 0 002 0 100 READ RPI 40 41 42 43 410 411 412 413 420 421 422 430 431 COUNT SEND SKIP 50 500 501 P1 RATE SEND SKIP SEND SKIP 53 54 5...

Page 25: ...will set all counters and preset values to zero and re run all tests If the counter shows ERROR 4 press the front panel reset key This will reset all user programmable options to the factory default...

Page 26: ...e unit to the factory for repair 5 Make and break a connection between terminals 4 and 19 using a jumper wire The counter should count down each time the connection makes If the counter does not count...

Page 27: ...ection 7 5 kHz N A Quadrature 6 5 kHz N A Quadrature x 2 6 5 kHz N A COUNT INPUTS Sink Impedance 4 6k ohms to 5 VDC Voltage high 3 5 to 34 0 low 0 0 to 1 9 VDC Source high Impedance 2 3k ohms to commo...

Page 28: ...xx Medium Duty single channel Shaft Encoder 38151 xxxx Medium Duty quadrature Shaft Encoder 48370 xxxx Heavy Duty single channel Shaft Encoder 48371 xxxx Heavy Duty quadrature Shaft Encoder ES9513 RS...

Page 29: ...on pursuant to the Magnuson Moss WarrantyAct P L 93 637 asnowineffectorasamendedhereafter The warranties and remedies provided for herein are available to Buyer and shall not extend to any other perso...

Page 30: ...Printed in U S A Durant 901 South 12th Street Watertown WI 53094 920 261 4070 800 540 9242 FAX 920 261 9097...

Reviews: