Sei sulla pagina 1di 92

XBT-K DISPLAY TERMINAL

ASCII and ADJUSTMENT PROTOCOLS

User Guide 1990

TRADE MARKS: - XBTEL@ is a registered trademark of TELEMECANIQUE. - PS!28 is a registered trademark of INTERNATIONAL BUSINESS MACHINES CORPORATION.

Index

Chapter
1. Introduction 2. Description 3. Technical characteristics 3.1 3.2 3.3 3.4

Section

Page
4 5

Environmental characteristics Mechanical characteristics Mounting Electrical characteristics 3.4.1 Supply 3.4.2 Display 3.4.3 Serial link 3.4.4 Parallel link 3.4.5 Message memory

6 6, 7 8 9 to1 1 9 9 9 to1 1 11 11 12,13 14 14 14 15,16 15 15,16 17to22 23 to 25 26,27 26 26,27

4. Operation

4.1 4.2

General Storing the messages 4.2.1 4.2.2 In operating mode In storage mode

5. Storing the messages

5.1 General 5.1 .l Selecting the storage mode 5.1.2 Scrolling messages 5.2 Storing with a visual display terminal 5.3 Storing with the T407 terminal 5.4 Compatibility 5.4.1 General rules for composing messages 5.4.2 Particular rules for ADJUSTMENT MODE

.kiH

6. Serial operation

6.1 General 6.1.1 ASCII mode with asynchronous modules (SCM modules) 6.1.2 Adjustment mode on the TSX 7 terminal port

28 to 30 28 28

Index

33 33 6.3.1 Configuration 33 6.3.2 Exchanges 34 6.4 Format of the exchanges 35 to 39 6.5 Commands from the PLC to the XBT-K terminal 6.6 Sending from the XBT-K terminal to the PLC 40 to 42 43 6.7 Review of the commands 44 to 46 6.6 Multidrop operation in ASCII mode 44,45 6.6.1 Principles 46 6.8.2 Operation 7. Parallel operation 7.1 7.2 Structure Commands 7.2.1 Displaying a stored message 7.2.2 Embedding a numeric value 7.2.3 Clearing the display 7.2.4 Scanning the memory 7.2.5 Hard-copy of the display 7.2.6 Clearing the display 7.2.7 Clearing the numeric field Programming the TSX 17 (PL7-1 language) 47 46 to 52 46 46 46 to 50 51 52 52 52 53,54 55 to 57

6.1.3 Parallel link control 6.1.4 Summary of the exchanges 6.2 ASCII mode 6.2.1 Configuration 6.2.2 Exchanges 6.3 ADJUSTMENT mode

29 29,30 31,32 31 32

8. Programming examples

6.1

parallel link 8.2 Programming the TSX 7 (PL7-2 language) serial link

Index

9. Connections

9.1

9.2

Pin connections 58 Configuration 59 to 61 9.2.1 With a visual display terminal 59 9.2.2 With the T407 terminal 59,60 9.2.3 With the PC, PS/2 personal computer 60, 61 9.3 Connections for TSX 17-20 62 (ADJUSTMENT MODE) 63 to 66 9.4 Connections for TSX 27-47 (ADJUSTMENT MODE) 9.5 Connections for the asynchronous module 67 to 71 (ASCII MODE) 9.5.1 Current loop connections 67,68 9.5.2 RS 232 C connections 69,70 9.5.3 RS 422 connections 70,71 9.6 Connecting contact to inputs 72 9.7 Connecting to static inputs 9.8 Printer connections 9.9 Serial and parallel multidropconnection 9.9.1 Current loop / Serial multidrop 9.9.2 RS422 / Parallel multidrop
73 74 75 to 79 75,76 77 to 79 80 80,81 82,83 84 85 86 87

10. Self-tests

10.1 General 10.2 Automatic self-tests 10.3 Self-test commands

11. Error messages

11.1 Messages displayed on the XBT-K 11.2 Messages transmitted over the line

12. Appendix

12.1 XBT-K message definition table 12.2 ASCII character table

PI

mrroauction

User dialogue

(I

m---l
PROGRRtl = 7 . COIIPONEHT = 3

To meet the overriding need for machine productivity, control systems are required to provide ever increasing amounts of data. In order to be able to control machines during operation the operator needs a simple form of dialogue in the production language. This is a primary feature of the XBT-K display terminal. It allows the operator to be informed about the status of the machine: - display of operating settings, PROGRAM = 7.COMPONENT 3 - continuous display of measurements, CONVEYOR SPEED = 5 - clear display of faults, OIL PRESSURE FAULT The XBT-K display terminal has been developed for use in industrial environments: - rugged : zinc alloy front facia, - practical : flush mountable, fast installation, - protection : watertight front facia (IP 65) - readable : fluorescent display, - reliable : integrated self-tests. The terminals can be adapted according to usage : - memory for 180 messages of 20 characters, - standard serial transmission interface (simplified RS 232 C, 20 mA current loop or RS 422) and parallel interface.

Descrbtion

Message memory

The XBT-K terminal is equipped with a memory for 180 messages. Storing these messages in the XBT-K alleviates the application memory requirement for the programmable controller, and considerably reduces the flow of information along the serial link. These messages are protected by a lithium battery (5 year back-up for normal conditions of use). The messages can be : - display of settings - display of changing variables - display of faults The messages include one or several attributes, defined during storing, to simplify later use by the application program :

Storing these messages is achieved using : 1) a visual display terminal 2) a T407 programmingterminal, 3) a personal computer (PCPSR).

The display of a message is always controlled by: - an ASCII message via an asynchronous link. (The use of TSX7 adjustment protocol considerably simplifies the application program for the user.) - via a parallel interface.

Technical characteristics

3.1

Environmental characteristics
Standards Degree of protection According to IEC 801-2/801-4; UL 508; CSA 122-2 Accordingto IEC 529 and NFC 20 010 : IP 653 (front facia with flange) Ambient temperature Operation : 00C to +500 C Storage : -400 c to +700 c 0 to 95% without condensation According to IEC 68-2-27 degree 3 (l/2 sinusoidal pulse along the 3 axes. 509 for 11 ms). According to IEC 68-2-8 : Amplitude : 2 mm from 2 to 25 Hz ; 0.15 mm from 25 to 57 Hz. Acceleration : 1g from 57 to 150 Hz

Humidity Shock

Vibration

3.2

Mechanical characteristics
Mounting - Method : Flush mounting with a seal, fixed by a collar and two clamping screws . Thickness of supporting panel : (min = 1.5 mm, max = 6.0 mm) - Sense : Any Casing Black processed zinc alloy 5.5 mm thick (rear cover in bichromated steel). Connectlons Supply connection and parallel link connection via screw terminal connector, 17 terminals (5.08 mm spacing). Clamping capacity : 1.5 mm2 Serial link : 25 pins female SUB. D connector type HE 50 NFC 93 425 Weight 1.7 kg (without fixing collar) 1.9 kg (with fixing collar)

Technical characteristics
Mechanical characteristics

Dimensions: in mm; (in inches)

$
2

t
288 (11.34)

1 4
cl

-iiY
60.5 (2,W 745 (2.93)
276 f 0.5 (10.6710.02)

c r

276 (10.87)
l

266 (10,06)

Panel cut-out thickness 1 .S min ; 6.0 max (0,06 min; 0,24 max)

Technical characteristics

3.3 Mounting

Pre-cutsupportpanel XBT-K casing Fixingcollar Clampingscrew Clampingkey Removable terminalconnector Cable and 25 pinsSUB. D male connectorfor serial transmission

Technical characteristics

3.4 Electrical characteristics


3.4.1. Supply Nominal voltage Ripple, max. Voltage limits (including ripple) Max. consumption 3.4.2 Display

24VDC 25 % 18... 30 V DC

low Capacity : 20 digits display line : 14 segment (with decimal point) fluorescent : height = 10 mm, width = 6.4 mm : green

Type Size Colour 3.4.3 Serial link

Choice of transmission type depends on the distance and required speed. Choice of physical link
Distance (m) _--_----_--20mA current loop 1 \ --h RS422/485

1200

1 -1 1 , I
RS2;2C

\ \
\

1
10M

S&(Baud)

100

10 K 19.2 K 100 K

Technical characteristics
Electrical characteristics

Passive

An external supply provides the current. A current circulates whilst at rest.

Busy

Transmission

PROTECTED (with current limit) 2omA*20% 4VMax PROTECTED

Current lo Voltage drop Vo

jy--s=
AVl

Reception

Current Ii

E;z;ymit) _
4VMax

Voltage drop Vi

Technical characteristics
Electrical characteristics

RS 422 link : 4 wire differential mode

(RXD)B VD+)A

(TDX-,B (RXD+)A

RS 485 link : 2 wire differential mode


RS485

3.4.4 Parallel link _ Electrical characteristics of the inputs: -Isolation : All the inputs are opto-isolated

Input /J ov COM zc

-Common mode voltage : 30 volts _ or 42 volts = max. -Input characteristics : Logic level 0 : OVto+5Vons Logic level 1 : +16Vto+30VoRs current consumed : 85 mA (for 24 V) for each input

3.4.5 Message memory Y The XBT-K terminal has an SRAM memory for 180 messages of 20 characters. Information is protected by a lithium battery. Back-up lasts 5 years under normal conditions of use.

Operation

4.1

General
When the equipment is powered up, the XBT-K executes a series of selftests (see chapter 10). Selection of the operating protocol is made by wiring connections in the serial link connector.

Screen messages

Power-up

catalogue number (XBT-K 70101) and of the software version (V1.3)

No connection on the serial line (ASCII selected) XBT-Z902 connection to the serial line (ADJUSTMENT MODE selected)

\ ASCH96006BODlS or 1 REGH96006BODlS

I 5 second display of the line parameters ( )

1 OPERATING MODE

The XBT-K waits for an operatins command

( Parameter settings on initial power-up : ) ASC : ASCII mode H : HALF DUPLEX 9600 : speed 9600 bauds 8B OD 1s : 8 bit format : odd parity : 1 stop bit

ODeration
General

Selection of transmission parameters

ESC G [parameters] CR 1 OPERATING MODE

Send the XBT-K an ESC G 1 command (see chapter 6 : COMMUNICATION) 1 -The display blinks for 10 seconds - Display is then steady : the new parameters are loaded and saved. The XBT-K is now in the OPERATING MODE

1 ASCH48007B

EV2S

Operating mode This mode is reserved for the operator during operation. The control system and the XBT-K dialogue via a serial or parallel link. The dialogue is achieved using protocols,for which the commands are defined in chapters 6 and 7.

Storage mode This mode allows the operator to store the messages in the XBT-K : - from a visual display terminal, - from a T407 programming terminal. - from XBTEL programm running on a PC,PSR computer.

Operation

4.2 Storing the messages


4.2.1 In operating mode Using a PC, PS/2 computer with XBTEL programm, application messages can be created without the XBT-K. They can be saved on to the disk and then printed. All the stored messages can be listed together with their attributes. Storing in the XBT-K is then performed as follows : -power-up the XBT-K in the OPERATING MODE, -connect the serial port on the XBT-K to the serial port on the PC, PS/2 (see chapter 9 : CONNECTIONS), -adapt the line parameters for the PC, PS/2 running under XBTEL to those of the XBT-K, -transfer the PC, PS/2 application to the XBT-K, -compare the contents of the XBT-K memory and the application file in the PC, PS/2. 4.2.2 In storage mode In this mode the operator can choose between : - Storing the messages with conversational guidance (using a visual display terminal) or - Storing the messages without conversational guidance (using a T 407 terminal).

Switching the storage mode is achieved when the XBT-K receives a particular command via the serial link : ESC D [OP] CR. [OP] = 1: Storing non-conversationally, 2: Storing conversationally, 0: Return to operating mode. A message definition sheet is provided in chapter 12 : APPENDIX.

Storing the messages

5.1

General

5.1.1 Selecting the storage mode

ESCD2CR or ESCDl CR (@ Dl for T407)

~STOFIAGE MODE 1

The XBT-K is ready to store messages in conversational mode The XBT-K is ready to store the messages in nonconversational mode

[STORAGEMODE]

ESCDOCR (@ DO for T407) or ESC D CR (@ D for T407) 1 OPERATING MODE/

The XBT-K quits the storage mode and returns to the operating mode

The XBT-K systematically acknowledges by echoing the ESC D command along the serial link. 51.2 Scrolling messages The XBT-K offers a total display capacity of 40 characters. All display commands exceeding 20 characters cause the display to scroll horizontally cancelling all blinking. During storage, the following rules must be respected: X+ length of message I 40 X+ start of numeric field I 32
Y

The attribute X (column number) positions the first character of the message in the display.

Storing the messages


General

Example 1 : - message number : 015 - message (19 characters) : PROGRAMME = - - - CYCLES -type:v - column number X = 0 A request to display message 015 will not initiate scrolling. Display of the same message stored with X = 10 (for example) will initiate scrolling (10 + 19 = 29 characters requested for display).

Example 2 : - message number : 015 - message (19 characters) : PROGRAMME = - - - CYCLES -type :v - column number X = 0 - message number : 029 - message (19 characters) : COMPOSITION 3 = - - - Kg -type:v -column number X = 20 The request to display messages 015 and 029 is made as follows :

ESC V 015 [LF] CR.

\pRmRAMME

= _ _ _ CYCLES

Steady display message of


015 Appearance of message 029 from right to left of the display Complete appearance of message 029

ESC V 029 [LF] CR.

~MME=--

- CYCLES COMPGq

[ COMPOSITION 3 = - - - KG 1

The cycle then starts again by presenting message 015 followed by scrolling of message 029.

Storing the messages

5.2 Storing with a visual display terminal w


A physical link is made to a visual display terminal (see chapter 9 : CONNECTIONS). Before all storage : 1) Adapt the line parameters of the bi-directional terminal to those of the XBT-K (displayed on power-up) or vice-versa, 2) Consult the compatibilitytable for the messages (chapter 5). Visual display terminal keys Changing the character w

K
w

BACKSPACE (HEXA 08) deletes the last character DELETE (HEX 7F) deletes all of the parameters shown ESCAPE ARROBAS

Checking the messages

1 1

Message limit characters

Storing blank messages

[!zFEzjj

SPACE - Message number (without text) KspAcEJl@ - Message number (with text) @zJ]~]Q

~W

Confirmation
~

ENTER or CR (carriage return) confirmsthe parameter shown

Storing the messages


Storing with a visual display terminal

Message of display during storage

OPERATING MODE

1 Power-up The display waits for commands from the visual display terminal 1 At this stage all dialogue is made on the terminal screen

STORAGE MODE

RUNNING

Storing the messages Message number


;..: ............................ .:

....... : ........................................................................... ....................................................................


....................

Message number: ?

ti5Naa3

O<n<179 Confirmatlon of number 55 If the message already exists, press m to erase

Example :

Storing the messages


Storing with a visual display terminal

Message text

Message < = 20 characters ? Defining the text of the message

The positions resewed for a numeric field are defined by entering the characters : m (Code ASCII 5 F)

An additional digit shoukf be included for variables with sign (variable words in ADJUSTMENT MODE).

Type of message
~~~C~,~lB~~~~~~~

.............................................................. :::::::::::::::::::::::::::::::::::j:::::::::::::::::: :.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.: ....................................................


:::.:.:.:.:.:.:.~.:.:.:f.:.:~.:.:...:.:.:.:.:...:.~:...:.:.~.:.:....:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.y..:.:.:.:.: .:. .:

Type : V=VISU,D=DEF?

Definition of the type of message Default value : V Numeric type can be displayed by the operator Fault message blinks Storing a type V message

.-e

Example :

Storing the messages


Storing with a visual display terminal

Page layout

Column number OSX132?

The page layout information defines the position of the first character on the XBT-K display. Default value X = 0

Example :

The display of the first character of the message VALVE YV-is made on the third character position of the XBT-K display.

Conversion coeff iclent CONVERSION COEFF. : 0.001 < C I 1

This coefficient enables a numerical value to be displayed in user units. Muftiplication is performed by the XBT-K. The conversion is made by the XBT-K when reading and writing the variable. Any rounding required still provides a precision of 1% (at full scale). When C = 1, the number transmitted is not converted and is displayed directly. It may consist of 1 to 20 digits. The defauft value is C = 1.

Storing the messages


Storing with a visual display terminal

Associated variables

TSX-7 PLC VARIABLE ?

This information, used only with the TSX 7 (ADJUSTMEN MODE), defines the variable associated with a type V message. It could be : - BOto B255 - wo to w1023 - CWO to CW1023 - Ti, V ; Mi, V ; Ci, V ; Di, V ; - Ti, P ; Mi, P ; Ci, P ; COMi, j TSX 7 variable stored : word 30. The terminal ethos the message with all its parameters.

Variable accessible :

Example :

PROG. OK : Y=YES
N=NO

Confirm the information and continue to the next step. Continue to edit the message.

For further storage

PROG. END : Y=YES N=NO

Move to the following message.

Storing the messages


Storing with a visual display terminal

Exiting the storage mode

PROG. END : Y=YES N=NO? Example of conversational programming

The message
OPERATING MODE

appears on the XBT-K

MESSAGE NUMBER : [ N < 180 ] MESSAGE : [ < = 20 CHARACTERS ] TYPE : V = VISU, D I FAULT COLUMN NUMBER : 0 < =X < = 32 CONVERSION COEFF. TSX-7 PLC VARIABLE : 0.001 < = CC c = 1

?55 ?VALVE V ?V -?O ?l ?W30 ?055 ?VALVE V ?V -?OO ?l ?W30 ?Y ?Y

MESSAGE NUMBER : N < 180 MESSAGE : [ < = 20 CHARACTERS ] TYPE : V = VISU, D = FAULT COLUMN NUMBER : 0 < -X < = 32 CONVERSION COEFF. [0.001-l TSX-7 PLC VARIABLE PROG. OK : Y = YES, N = NO PROG. END : Y = YES, N = NO ]

Storing the messages


Storing with the T407 terminal

5.3 Storing with theT407 terminal


Connection is made to the printer port on the TSX-T407 terminal (see

chapter 9 : CONNECTIONS ). ..........-... .. ....~:.~~...~:. ~::~::~~~:~~~~~~~~~~~~::::::::~:::::i~ ^ (,:.~.:.:.:.~.~.~.:~.~.~.~. +$:;;;~&:;* ::. ,:.:,:.:, .~ :.:.:.:.:.:.:.:.:.: : :. .....iiiii. % :.:...:.: . ...... ~~~~~~~;~~~~~~~~~~~~~~~~~~ .n.. .. ..... ~~~.~~.........~................. ...._. . ~....._. ::.:::..... ..~~ .___..__.,_....,,...._,~_,,,,~,,~,~,.~.~ ,.,_,.,.,,_ ;~:~::~~~~:~~~:~:~~:~::~::~~.~.~:~.~: :::~~~ ~~ ::::: .. :.:,::: :::: i,~~~~~~~~~~~~~~~~~~~~~~ ::::::::::: : ~~:~8 V..:... ..................... : ~ ........................:.:.:~.:.:.:.:.:.:.::::::.:.: :.:.: .~.:.~,~.~.~.~.~.~.~.~.~.:.~. :.:.:.;.:_:.:.:.:.: .:.:. :,:,~:,:.:.~:.:.:.:.:.:.:.:.~,:,:,:,~.:.:.:,:.:.:.:.:.:.:.:.:. ::::::::.:.:.:.:.:.:.:.:.:.:.: . :.:.:.:.:.:.:.:.:.:.:,z .:.:.:.:,
Setting up the display

OPERATING

MODE

Power-up the XBT-K The XBT-K is ready to receive messages to be stored

@Dim

STORAGE MODE

storage

syntax

@ nnn

[@ Mm1 ... m20)

[@ Ttl message

[@ XI X column number

I@ Ccl ..%I correction factor (0.001 to 1)

I@ Vvl TSX7 variable address

LP CR end of message

message text message number (20 alphanumeric (0 to 179) characters max.)

type V : steady (0 to 32) D : blinking

Special points when storing with the T407 terminal : - Up to 24 characters only can be entered on the T407 terminal. - Transfering messages : @ n @ E nnn : transfer a message address n to address nnn.

Storing the messages


Storing with the terminal T407

0 - 0
- The

PRT

key generates the LF CR characters

The CLR key clears the screen (required before entering new commands)

generates the @ character generates the numeric field ___

Terms between square brackets ([ 1) are optional when storing messages The ( ) signs represent spaces (w key )

Storage examples Example 1 : Store a message with the following complete syntax @TV@XX@CC@VW3OLFCR

@055@MVALVE_V__

The following must be stored successively : @ 055 @ M VALVE V

0
@055@TV@X3@Cl @VW30

CLR

PRT

Storing the messages


Storing with the T407 terminal

Example 2 : Store a message of 20 characters @ 132 @ M CONVEYORADJUSTMENTS The following should be stored successively : ADJUSTMENTS (PRT) @ 0 @ M CONVEYOR -

Store at address 000 Transfer the message to address 132

0
@O@E132=

CLR

Additional attributes may be stored by the following procedure : @ 132@TV@X15@ l G Example 3 : Store a blank message @77@M Y--Y--

0 0
PRT

PRT

Example 4 : Store a message with several points @ls@MWAIT.... Exit the storage mode

WAIT MESSAGE

The XBT-K waits for commands from theT407 (new message)

OPERATING MODE

Return to operating mode Check the storage Display message 132

Q L 132 v@ @L1321 V

ICONVEYOR[CONVEYOR

ADJUSTMENTSI ADJUSTMENTS

Display message 132 with T=V X=00 VAR=777 C=l

Storing the messages

5.4

Compatibility
When writing messages to the memory, it is important to ensure that the choice of parameters is compatible with the messages.

5.4.1 General ales for composing messages : - The length of text and numeric fiild must not exceed 20 characters. - The numeric field should be indicated using the _ (ASCII characters 5P). 5.4.2 Particular rules for ADJUSTMENT MODE : - The numeric field associated with a PLC word variable cannot exceed 6 characters, including the sign. - The numeric field cannot exceed 5 characters lf a conversion coefficient is used or if a TSX 7 PLC variable is a counter or a timer. - The numeric fieid associated with a bit in the TSX 7 PLC is only 1 character. The accessible TSX 7 PLC variables are : - - words WO to W1023, CWO to CW1023 and COMO,O to COM 15,3 - timers TOtoT - monostables MO to M7 - counters co to Cl5 - drums DOto D7 - bits BOto 8255

Storing the messages


Compatibility

X TEMP .__-------Visualisation (V)TEMP.______ w TEMP._____ TEMP._ Fault (D) V TEMP. 0 oto32 0 1 to6 1 to5 1 oto32 0 t032 oto32 1 to 20 oto32

C 1 1 Wi; Cwi Comi, j

v
Dlrphv vmmks with+I-sign

m, P; Ci, p; M, p

Ti, V; Ci, V; Mi, V 0.001 tO 1 Di V 1 Bi Dlrpbybll rtatur (0 or 1) Dltphytort without vahbk DofruIt vxIU#

1
1

Serial operation

6.1 General
Three modes of communication are available for the XBT-K : - ASCII MODE can be used for all types of programmable logic systems. - ADJUSTMENT MODE can be used with the terminal port on the TSX 7 PLC. - The parallel link can be used with the outputs of programmable controllers or all types of logic. 6.1.1 ASCII MODE with asynchronous modules (e.g. SCM module). The ASCII mode is used when an XBT-K is connected to a control system using a serial communications module (example TSX SCM 20 with TSX 7). Wiih this type of operation, it is necessary to adapt the transmission characters (generally by program) of the asynchronous module used, to that of the XBTLK display. The exchanges are in the form of strings of ASCII characters, completely controlled by the automation system. Coupler text blocks are used for programmingthe exchanges on TSX 7 PLCs.

6.1.2 Adjustment mode on the TSX 7 terminal port The adjustment mode is used when an XBT-K is connected to the terminal port of TSX 7 PLC. Pre-storing a message in the XBT-K enables the correspondence to be established between : -the message text, identified by its number. - a TSX 7 variable. The exchanges are made in the same way as for the ASCII protocol (terminal text block). When the PLC sends a message number the message is displayed. The value of the variable in the TSX 7 PLC is embedded transparently in the numeric field of the displayed message.

Serial operation
General

6.1.3 Parallel link control Displaying a text message is achieved by presenting the following to the XBT-K inputs : - the code for the type of display, -the number of the message coded in pure binary, - a validation signal (rising edge) for a minimum duration of 10 ms. Displaying a value in the numeric field is achieved digit by digit on the rising edge of the validation signal. Its position in the numeric field is defined by a BCD value. 6.1.4 Summary of the exchanges \
ASCII MODE asynchrmous (lsx nmduls SCM 20)

Application propram

CurNo

: tdween the

bhary --> ASCII

-q.

number and the

addnudavariabb

Text NC& -q.

:mite
no. and value I

ESCVW3 Message N .
003 BATH.TVu*ble

LF CR

Text

addtwa
--c W50

AWUSTMENT

Serial operation
General

ADJUSTMENT

protocol

0 @ @ @

The message is accessed when the TSX 7 PLC sends the message number. Message text is displayed. The XBT-K requests access to an associated PLC variable and displays its value. The XBT-K repeatedly updates this value.

ASCII protocol

0 0 0

The PLC sends a display command (message number and where applicable, the current value). The XBT-K displays the message and the current value. The application program repeatedly sends the current values to be displayed.

Serial operation

6.2 ASCII mode


6.2.1 Configuration In ASCII mode the serial line parameters, speed, format, pariiy... are adapted to the application . Types of link : RS 232, RS 422, 20 mA current loop. :.:.:.::.:;:::.:.: :.:.:.) :;;;;;:...: ...... -:;::~;;;;~;~~.~~~~~~~~~~~~~~~~W~~~~~~~~~~~~ >..~.....j~..........~~~~..:~:.:.:.:.:.: .... :: ................................................................................ ....:,y ........... ... ................ .> cc., ,,.~,.~ ......... . I _ . 1Z.~~ . .......... ,,,,,,,::~::~i~i~Ii~i~~~~~~~~~~~~~~~~~~~~~~~~~~~
................. .... A .................................. .. .,,,.,.,., ~ ~ . . . . : ~~ . . . . ....... ....... ~ ~~~~ ..~~~~~~~ ..,......,,......;;:~~~.~ ...~ <. ............. :::::::::::. .:. ...............................~...... :.:<.:.:.:.:.:.:.:.:.:.:.:.y,. ::::;:::.:*>:.:.~.:.:..,:. ... .......
.......................... ........................
............. . . . . . . . . . . . . . . . . ...................... . . ...................... .... . ........ . . . . . . ..... . . . . .................................................................................................. . ..... ............ . . . . . . . . . . . . . . . . ............................................. I.. ................

. .

::::::::

:::

. . ................................................ ..~...~...~.~....~~.~~~.~..~~.

................ ....................................

. ................................................................

..........

:.:.:.:.~...~....~.....:.:.:.:....:.~ ........
.:.

C.

..... :...:.:.:.:.:<.:.:

................................... ... ...... :.:,.,: ....................................... y..:::: ::~....................................................................................................................................................... _: ........................................... . ......................................................... ::::::,:~~~~~::~::::: :: .:.:,::::::~:~ .................................. .................................................. :.:.~~
...........................

Y.

. . .

..................................................

:.:::::::::::::::i::::::::::::::::::::::::::::::::::

.............

. ..........

~.~.~.~.~.,.~.~.~.,.,.,.,.,.,.,.,.,,.,.,.,.,~.~.~.~.~.~.~.~.~.~

: : :

Types of exchange : HALF DUPLEX Line parameters : Speed 110,300,600,1200,2400,4600,9600,19200 20 mA current loop) Format : 7 or 8 biis Parity : odd, even or none Stop:1 or2bits (9600 bauds max with

Adjustmentsto line parameters are programmed using the ESC G command (see chapter 6 : COMMANDS) and are simultaneously displayed on the XBT-K screen.

Note : The format 7 bits, no parity, 1 stop bit is not allowed. Default values : 9600 bauds, odd parity, 8 bit format, 1 stop bit. (ASC H 9600 OD 88 1S).

Serial operation
ASCII Mode

6.2.2 Exchanges The automation system controls all the exchanges. Message number 021 is stored in XBT-K : BATH.T = - - - C Message number 044 is stored in XBT-K as : SElTING = - - - C

Display a varying numeric parameter (measurement)

Displays the text corresponding to the message number and the current value

BATH.T= *c 2

I <iEEGjyr

Updates the value

1 BATH.T= 13oC 1 <w

Updates the value

r BATH.T= 130 C

1 <v

Requests message 044 to be read (with display)

Read a message in the XBT-K 1 SETTING----C

ESC L SEl-flNG = - - - C [LF] CR

Read the inputs of the parallel bus o the XBT-K

Requests the PLC inputs to be read

Response from the XBT-K (all inputs are at 1)

Serial operation

6.3 ADJUSTMENT Mode w6.3.1 Configuration In ADJUSTMENT mode, the line parameters are automatically set. Types of link : RS 232, RS 422,20mA current loop. On power-up, the XBT-K detects a request to be connected in the ADJUSTMENT mode if a strap is connected between pins 8 and 12 of the serial connector (see chapter 9 : CONNECTIONS).

6.3.2 Exchanges
Message number

021 is stored in XBT-K, BATH.T = - - - C associated with

variable W50

Display a varying numeric parameter (measurement)

1 BATH.T= 126 C 1

1 BATH.T= 127 C 1 BATH.T= 126 C

] 1

The XBT-K will repeatedly


fetch and display the value of W50

Note : Display of the + sign is replaced by a space ( for version vt .3 and UP)

Serial operation

6.4 Format of the exchanges


This chapter describes the format of the exchanges : - commands from the PLC to the terminal, - transmissions from the terminal to the PLC. Exchanges are bidirectional and comprise series of ASCII characters with the following structures : Example
:

Always

ESC

(1 B H) or @

(40 H)

ASCII character indicatingthe type of command .:.:.:.:,:.:.,:.:,:,:i:C ,:.:.:, :.:.:.:.: ;::::: .:.:.:.:.:. :.:.:.:. :.:.:.:.:.:.::c.:.:.:.~~.::::::::::::::::::::,:~:~:~~ i~~~~~~~~~~~~~~~ String of ASCII characters defining the parameters of a ::W.. _.,.,...... ,_,_(,, .. .:::.::::::: ~~~~~~~~~~~~~ command ... /.. .,....., icliSI~~~.:~~ja~:~:~~~~:~:~:~:~:~.~.~:~.~~~,~:~:~ i.,...,.,.,.... .................. ,., Characters LF : Line Feed (OA H) CR : Carriage return (ODH ) C

- Only exchanges commencing with ESC or @ are recognized by the XBT-K terminal, - It is possible to include NUL (00 H) characters in the command.

Serial operation

6.5 w
l

Commands from the PLC to the XBT-K terminal

Terminal status request ESC E [Cd] [LF] CR The PLC interrogates the XBT-K for the contents of its status words. Cd Optional command code :

The information is transmitted as 3 hexadecimal characters coded in ASCII (30 H to 39 H and 41 H to 46 H). Example : ESC E LF CR
E2= A&3+2) El ~8 EO = C&3+4)

The response to a request to read will be transmitted in the following form : ESC E A6C [LF] CR Cd=0 Read and display the program memory checksum, 16 biis (4 hexadecimal characters coded in ASCII, from 0 to F). Read and display the message memory checksum, 16 bits (4 hexa-decimal characters coded in ASCII from 0 to F). Cd=2 Read and display the product code including its software version.
u

Cd=1

Cd=3 Cd=4 Cd=5

(reserved) (reserved) Read the 12 parallel inputs into the XBT-K.

Serial operation
Commands from the PLC to the XBT-K terminal

The information is transmitted as 3 ASCII coded characters (30 H to 3F H). Example : ESC E5 LF CR
EL : (&2) El -8 EO = < (8+4)

The response to a read request will be transmitted in the following form : ESCE:8<[LF]CR

Changing the transmlsslon parameters

ESC G k@ Vspeedl W I@ Ffl [@ Ppl [@SS] [Lq KS (Speed)


d f P

CR

110, 300, 800, 1200, 2400, 4800, 9600, 19200 H F 7 8 E 0 N 1 2 half-duplex full-duplex 7 bits 8 biis even odd none 1 stop bit 2 stop bits

Mode of operation : Format Parity

stop bit

Note : For version 1.3 and upwards the MODE OF OPERATION parameter cannot be modified (HALF DUPLEX by default).

Serial operation
Commands from the PLC to the XBT-K Terminal

Reading a message ESC L XXX [OPl ] [OP2] [ LF] CR xxx Number of the stored message 01XXX1180 Read operation 0 = Message text only (defautt setting) 1 = Text + message parameters

IOPl I

fop21

V Steady display (by default, not steady display).

(version V1.3 and upwards)

Reading the transmission register of the XBT-K ESC Q LF CR The transmission register of the XBT-K memorises the last message sent by the terminal. In point to point operation this command enables a message already transmitted to be repeated, except for fault messages # @ or ?. In muttidropmode, the messages are only transmitted on receipt of this command.

^_

Serial operation
Commands from the PLC to the XBT-K terminal

Displaying a message not stored in the XBT-K ES T [MI

- - - MnlWT 1[@Xx] [@W [@b 1Wl CR


Ml -- - M20 : Text of message containing dashes for the optional numeric field (ASCII characters 5F). The characters of a message are coded in ASCII, between 20 and 5F (see chapter 12 : APPENDIX).

t : Type of message

V Steady display D Blinking Column number of the first character of the message 0 5 X 5 32 x = 0 clears the display before writing Conversion coefficient 0.001 I c I; 1 Signed or unsigned numeric value or alphanumeric value which is embedded in the numeric field position

x:

C:

p : Parameter

Examples ESC T PRESS = ----B@P+112LFCR 1 PRESS=+112B 1 The message is displayed with the associated numeric value. The fault message blinks.

ESC T PRESSURE FAULT @T D LF CR 1 PRESSUREFAULT 1

Serial operation
Commands from the PLC to the XBT-K terminal

Cancelling the current operations ESC Z [XXX] [LF] CR After a V type or T type command, this command allows the display terminal to be made available : stops all blinking, scrolling or updating of the current (ADJUSTMENT MODE). The terminal is made available. Optional number for the message. value

Displaying a pre-stored message ESC V XXX [parameter] [LF] CR 0 I XXX I 180 Number of pre-stored message. [parameter] 3 characters (obligatory). Optional numeric value with or without sign. The maximum of digits occupied by the value with the sign should correspond to the number of digits reserved in the numeric or alphanumeric field. Examples ASCII mode : ADJUSTMENT mode : (Version V 1.3) ESC V 025 LF CR Displays message 25 with current value : - Positive : the sign is not displayed - Negative : the sign is displayed.

ESC V 025 + 128 LF CR

Displays message 25 with the current value + 128.

Serial operation

6.6

Sending from the XBT-K terminal to the PLC

Status of the terminal (response to the E command) ESCEE,E,k LFCR Response to the ESC E LF CR command. Bit image of 3 characters E, , E, , E; hexadecimal, coded in ASCII (0 to 9 and A to F) at the parallel inputs.

Example : ESC EFFFLFCR ESCEOOOLFCR ESC E Ck LF CR Ck = Ck,C$ Ck, C 6 All the inputs to the parallel bus are at 1. None of the inputs are wired to the parallel bus. Response to the ESC EO [LF] CR or ESC El LF CR command. 16 bit checksum for program or message memory, hexadecimal, coded in ASCII. Most significant bits at the head and simultaneous display. ESC EV x.y LF CR Response to the ESC El [Lfl CR command. Identification of the product by its software version (V x-y). ESC E V1.3 LF CR Example of response to the ESC E 2 command.

Serial operation
Sending from the XBT-K terminal to the PLC

Link parameters (response to the G command)

133~ Wspedl [@W [@Ffl [@Ppl [@%I LF CR G


(Speed) d 110,300,600,1200,2400,4800,9600,19200 Mode of operation H F 7 8 E 0 N
S

half-duplex full-duplex 7 bits 8 bits even odd none 1 stop bit 2 stop bits

Format

Parity

stop bit

1 2

The XBT-K echoes the command and simultaneously displays it. ft then reconfigures with new parameters after a 10 second blinking period. Example : ESCG@V1200@F7LFCR Response of the XBT-K to the command : ESCG@V1200@F7CR The XBT-K then displays the new parameters : ASCH12007BODlS blinking before finally memorizing it.

Serial operation
Sending from the XBT-K terminal to the PLC

Transmlsslon of the text of a message (response to the L command ) ESCLM, ---M 2. LFCR

Examples : ESC L PRESSURE-

FAULT-

- - - - LF CR

Response (of 40 characters) to the ESC L LF CR command ESC L PRESSURE FAULT LF CR with [OP = 0] value by default Display of the text only ESC LXXX @MM,- - - M 2. [@Tt@Xx@Cc@Vv] LF CR with [OP = l] Display of the text with its parameters ESC L005@M PRESSURE FAULT@ TD @ X00 @ Cl @ VW45 LF CR

Acknowledgement of a cancellation command (response to the 2 command) ESC Z LF CR Echo returned by the XBT-K

Status messages ESC @ LF CR Transmission fault in the message received by the XBT (detected by parity or checksum) Syntax error in the message received (invalid mnemonic...) or message number not programmed ESC # LF CR The transmission register is empty.

ESC ? LF CR

Serial operation

6.7 -*

Review of the commands

TERMINAL STATUS FORMAT OF THE SERIAL LINK

I I

E G

E I I G

READ THE MESSAGE TEXT

READ THE TRANSMISSION REGISTER DISPLAY I CLEAR A MESSAGE DISPLAY A PRE-STORED MESSAGE

last message sent

T V z

CANCEL THE FLASHING, SCROLLING AND UPDATING TRANSMISSON MESSAGE STATUS MESSAGES STATUS MESSAGE - SYNTAX FAULT FAULT STATUS

?
#

- BUFFER EMPTY

Serial operation
Multidropoperation in ASCII mode

2) Using the multidropcommand format:

:.:.:.:.:.:.w$::z.z MODE :~!:!:::~:~::.~.~.~._-__ ESC A

ADDRESS I

Multidrop address F : all the terminals accept the command but cannot themselves send anything to the line (broadcast mode).

Parallel operation

7.1 Structure
The XBT-K display is controlled via opto-coupled inputs. The link is unidirectional (from the logic system to the XBT-K). The commands are sent to terminals COP1 and COP2.

Data

DO to D8

X X X X <-

X X X X I 1oms min ,

Command

OPl

OP2 Validation STRB

I I t

The command code and the data should be maintained for the complete duration of the validation signal (STRB). The display is refreshed on each validation pulse. The connections are made to a 17 terminal removable connector (see chapter 9 : CONNECTIONS).

Parallel oDeration

7.2

Commands

7.2.1 Displaying a stored message The message number is coded in binary (000 to 179).

Example : number 095 is displayed. 7.2.2 Embedding a numeric value This command enables numeric values (or signs) to be embedded (for messages stored with a numeric field : _ ASCII character 5F) digit by digit.

Example : the VALUE (with > sign) is to be embedded in POSITION 6. - The POSITION is defined as the position of the first dash (-) in the numeric field (from left to right). - The VALUE is defined as being : - numeric : between 0 and 9 - 6 signs : l , +, -, =, <, > 7.2.3 Clearing the display

FIX1

D8

07

D6 11

05

D4 11 lJ 1

D3

D2

Dl

DO

Parallel operation
Commands

The various possibilities for embedding data are summarised in the table below :

If the position and the value are zero the numeric field is completely erased. The decimal point (-) does not occupy a digit position. Loading this decimal point e) should always be preceded by embedding the character on which embedding is required.

rn

Parallel operation
Commands

Example : Display the message COLORING = + 3,5 KG, loaded at address 079.

display for message 079

embedding a plus sign (+ (first numeric field)

IDO] COL0Rlf-G ololllolololl~ 11

= + 3_KG.

embedding the figure 3 (second numeric field)

embedding the decimal D71D61D5/04] D3jD21DlI O~O~l~O] l/OllI

COLORING + 3 l _ KG. point(0 ) =


(second numeric field)

/DO COLORING O]Oll lllOlllOl1

_ +3.5

KG

embedding the figure 5

(third numeric field)

Parallel operation
Commands

7.2.4

Scanning the memory All the message addresses are scanned automatically (stored or not).

SCanfing I

Stark at the address presented to DO to D7.

...........i,.,....:_:_:.:.:.:.:.:.:.:.: ... .:,_ .:...:....v.... . : ,_, :.:.: -: : .ii .. ............. :.:.:,:.:,::::::::,:..::: ........ _,.,._,,_.. ,,,,.,_,__...... ...... ,.,., ~~ : . .......i. ::..:....:.:.:.:........:.~:.:.:.......:,:_ .~...:.:.:.:.:.:.:.::~.::::::::::~:::~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:~:: : . . :::::::~::::.:.:.~.~~~:.-. ..,.....:..,.,.,.,.,:,,., ... . >
.....:

_,__..___, (, (, __, ,.,,,_ ,._.,_:.i,.i,.(.,,,,,.,,, (,,. ,,(,,, _, iii:i.ijjjisrirxia~~~~~~~~~~~~~~~~~~~~~~~~~~~~~:~~~~~~~~~ ~~~~~~~~~~~~~ ~~ixiiiiijij~~~~~~~~~~~ :Y~::~
:::::I:~:i:i:idi:i_i,~jji

........

,,,,,,,,

j ii

,,

i,.,i,.

,::::.

:y:;;;

:.>:.:... .........,:,:,:,:, ...\._. ,~,~,~(,~,~,~_~_~,~~

_.~i

._._.,.,.,..._ .... ... .. ...

:,:

.,.,,:::: ~~~~~~~,;~,.,.,.,.~.~.,.,.~.~.~.~.~.~.,.~. . . .... .. :.:.:.:.:.:.:.:.::::is:-..,.,:::: ::: :.................... _. _. . . . . . . . . . :-:.:.:.:-:.:.:.:.:.:.:

z ,...,.:

.... ..,............. ... .... . ..i..i . . ..,.,. ,...:.._....... ...-.A. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . -....

. . . . . . . . . . ..I.... :..:.:,:,:,:,:.:,:,~ ,......... .:.:.: . . . . . . . . . . . . .

,::::f:.:.:.... :::::::

..>

.,._::.::::::::::::::::::

Scanning all the message memory space.


DFjD7lD6jD5lD4lD31D2]DljDO 1~1~1~1~1~1~111~1 iMESSAGE NUMBER= ,07

:: ..: 1
:I:: :::: ii::

1 display memory
starting at address 107

display the text of message no 107

ID0 olllllolllollll

71

display the attributes of message no 107 display the variable associated with

olllllollloll

message no 107 no message at the

olllllollloll

address scanned

Parallel operation
Commands

7.2.5

Hard copy of the display

The text displayed on the device can be printed on a printer connected to the serial connector. The characteristics of the equipment should be adjusted : 1) transmission parameters of the XBT-K and the printer, 2) format on a line of 40 characters followed by LF CR. The syntax of the command should be :

wi

D8 10

D7

D6 0

D5 0

D4 0

03 0

D2 0

Dl 0

DO 0:

The code presented at inputs COP2, COP1 and DO to D8 should remain during the printing, otherwise printing will be interrupted. The connection to the display can be made using cable XBT-2905 (RS 232 C link) or another. See chapter 9.7 : CONNECTIONS. 7.2.6
Clearing the display

The syntax of the command should be : D8 D7 D6 D5 D4 D3 D2 Dl DO

7.2.7

Clearing the numeric field The syntax of the command should be : D8 FIX0 D7 D6 0 D5 0 D4 0 D3 0 D2 0 Dl 0 DO o-

Programming examples

8.1 w

Programming the TSX 17 (PL7-1 language) parallel link


Tthe message: LENGTH = + 3 8 M. is to be displayed on the XBT-K terminaLThe display takes place over several steps and it is necessary to follow the sequence of the commands generated by the application program:
l

1 - Display message text LENGTH = --- M stored at number 013 (see chapter 5 : STORING THE MESSAGES), the - - - field indicates the three positions where the numeric part is to be embedded. 2 - Display the first digit (+ sign), 3 - Display the second digit (number 3) 4 - Embed the decimal point 6) in the second digit, 5 - Display the third digit (number 8). The data is to be entered via a coded keyboard, a 16 key XBL pad.

Programming examples
Programming the TSX 17 (PL7-1 language) Parallel link

PL7-1 programming example to be written in the TSX 17-20 :


TSX 17 XBT-K

1 STRB LI 0.05 - SI ' 21 _* _ 01

INITIALISATION
Skp3wndiibns

step 4 oonditiolls L I OJJO@) SIOP8 condiibns Al 0.01(4) AN I 0.02(2) Al O.Ow) Al OSM * 02 ShP2
_.__M Mmpl~ymuagon 13

Post procasIng - * - POST. L 0 0 0 _ L _ L _ L s L I L I L I X08


X05 X04

L I 0.06 A I 0,W
+

03
0.07

5-3

-s--o3
L I A I f - .-

Dhphy+dpn

X03 0 0.01 Cparstorseledon EMBED (OP2) X02 0 0.02 Operdor aelection DISPLAY (OPl) I 0.04 0 0.03 Cperalor selection VALIDATE (STRB) I 0.03 0 0,04 HEX ~ebctiin (weight1)
I 0,M 0

0,W 04 s*p4 04 Maptry nrst digit

L NO.03 A I 0.02 AN I 0.01 A I 0.00 A I 0,04 + 05 s-5 _._05 DiaptayIhdodm~point L I 0.00 A I 004 + 06 SW6 _._06 9w~Y~=mJaglt L I O,m Return to sIsp 2 z 02

0,05 HEX rebctiin (weight2)

I 0.01 0 0.06 HEX sektiin (weight4) I 0,m 0 0.07 HEX sekdbn (weight8)

Programming examples

8.2 Programming the TSX 7 (PV-2 language) serial link .7p


l

Terminal port (Adjustment mode) A 3 digit setpoint (selected value) is to be displayed on a XBT-K-/0101. - The text of the message : VOLUME = __ _ DM 3 is to be stored at address 013 (associated with the TSX 7 word W20) using the procedure described in chapter 5 : STORING THE MESSAGES. - The information is transmitted on connecting the TSX 7 terminal port (using cable XBT-Z902) to the XBT-K70101 serial link. - The followingconstant words have been loaded : CWlO=H 61 5 B (V/ESC) CWll =H 1 30 (l/O) 3 CW12=H D33 O (CPB) - Programming example: l-XT3 DISPLAY

(I 3,2 3 start the display).

{ 1 1,o I161 -

WO Wl

c ENTER3 DIGITS(BCD)

I
L40 t+l BlO

WOAND H0 FFF -

{ BINWl -

w20 BCD BINARY CONVERSION (in W 20)

Note : the contents of word W20 will be automatically updated by the XBT-K

Programming examples
Programming the TSX 7 (PL7-2 language) Serial link

Asynchronous module (ASCII) A three digit measurement is to be displayed on the XBT-K70101, (varying value). - The message text : VOLUME _ _ _ DM 3 is stored at address 013 as described in chapter 4.2 : CGNFIGUFIATIGN MODES. - The transmission of information from the TSX 7 to the XBT is achieved by using the TSX SCM20 module. For details of usage consult the ASYNCHRONOUS LINK manual (programming and utilisation) reference TSX D41726. Example program : The configuration for the serial link to the XBT-K70101 is as follows : ASC H 9600 8B OD 1s.
INITIALISATION OF

TXTO INITIALISATION OF THE MODULE (loading the configuration)

The configuration of the module is organised into constant words as follows : CWO = HI081 1 CW4 = H 0000 CWl H 9600 CW2 H 0000 CW5 H 0000 CW6 H 0000 CW3 H 0000 CW7 H 0000

Programming examples
Programming the TSX 7 (PL7-2 language) Serial link

BINARY /ASCII CONVERSION (for the 3 words W13, W14, W15)

TXTl I

830

MESSAGE DISPLAY ESC V 013 LF CR

Note : New values are displayed during each transmission of text block TXTl .

Connections

9.1

Pin connections

Type connector XBT f\

of

25 pin female subminiature (SUB D) type HE50 NF-C 93.425.


Pin no
1

DESIGNATION PG TXD RXD

FUNCTiCN &

0
10 20 30 40 50 60
70

PhysicalGround Reception RS 232

TransmissionRS 232

Of,

016
016

Q7
Q6 016
Q?O

COM

80 O*, 00 022 too O*, 110 02.


120 025

9 10 11 12 13 14 15 16 17 16 19 20 21 22 23 24 25

RXD+ RXDREG Bo 81 82 83 B TXD+ TXDSG PAR

COMMON multidropand adjustmentaddress (pins 12,i 4 to17, 24) Receptionisolated currenttoop Receptionisolated currentloop ReseWed Select ADJUSTMENT MODE Re%Wed Terminal addressfor multtdrop operation (binary 1) Terminal address for multidropoperation (binary 2) Terminal addressfor multidropoperation (binary 4) Teninal addressfor multidropoperation (binary 6) Reception RS 422/465 (RXD-) Resewed Transmission isolated currentloop Transmission isolated currentloop Common RS 422/RS 465 Reserved Parity, multidropaddress Resented

130 I

I 0 -.

I.

Connections

9.2 Configuration w
9.2.1 With a VISUAL DISPLAY terminal XBT-K70101 VISUAL DISPLAY

nj.

1 L

A two metre cable, type XBT-Z905, is used to connect the LINE port on the visual display terminal to the SERIAL LINK port on the XBT-K70101 display terminal.

9.2.2 With the T 407 terminal XBT-K70101 TSX T 407

ti%Fzz The connection between the T 407 programming terminal and the XBT-K70101 display is made using the two metre cable type XBT-Z905. - to the PRINTER port on the T 407 terminal, - to the SERIAL link connection on the XBT-K70101 display, - when connecting the XBT-Z905 cable, connect the end marked with the product reference TVthe XBT-K

Connections
Configuration

. Pin connectlons for cable XBT-2905 and XBT-29052


VIS;lJAL DISPLAY TERMINAL orT407

q q
TXD

TRANSMISSION

RXD

RECEPTION

u
CTS

q
DTR

RTS

I
*o *o *o 00
0

0: 00 *o *o *o

*o *o *o

9.2.3 With the PC, PS/2 personal computers

The XBT-K70101 terminal may be connected to a PC, PS/2 personal computer for application operations (creation, storage, modifications) using the XBTEL@ programm. The connection is made to the serial port on the PC, PS/2 (COM 1). Serial Port connector used on the PC, PS/2 9 pin male 25 pin female 25 pin male Cable Length Reference XBT-2915 XBT-Z905 XBT-Z9052 Index 21 21 11 2,50 m 2,50 m 2,50 m

Connections
Configuration

Pin connections for cable XBT-2915


PC 9 pin ----

RXD TRANSMISSION

cl

SG cl

ov

Lo
8

CTS r-l

0
_---

DSR

Connections

9.3

Connections for TSX 17-20 (ADJUSTMENT MODE)


The XBT-K (version 1.3) is connected to the terminal port on the TSX 17 using the 2.5m cable type XBT-2917.

Pin connections for connecting XBT-ZQ17 ---TSX 17 (TERMINAL PORT)

Connections

9.4 Connections for TSX 27/47/67/87 (ADJUSTMENT MODE) W


The XBT-K is connected to the programming port of the TSX 27/47/67/87 PLC using the 2.5m cable type XBT-Z902.

The supply for the current loop is provided by the TSX (ACTIVE). Current limitation is provided by the XBT-K (PROTECTED PASSIVE). Note : The terminal port on the TSX 27 and TSX 47100 is not isolated. Because o! this, if the distance between the XBT-K and the TSX 27/47 is greater than 3 metres, it is necessary to use the isolating device XBT-Z901 l/l 2 between the two devices (see below : Isolating device for the TSX).

XBT-K70101

TSX

Gonnections
Connections for TSX 27-47 (ADJUSTMENT MODE)

Pin connections

for the cable XBT-2902

Connections
Connections for TSX 27-47 (ADJUSTMENT MODE)

isolating device for the TSX 27 and TSX 47100 If the distance between the XBT-KM1 01 display and the TSX 7 is 2 3 metres, the XBT-Z901 l/12 isolation module should be used. The distance between TSX and XBT-ZSO- - must be less than 5 metres (two shielded, twisted pairs with minimum section : 0.34 mn? AWG 22). The distance between XBT-Z901 l/l 2 and XBT-K can be up to 1500 metres (two shielded, twisted pairs with minimum section : 0.34 mrr? AWG 22).

VIEW FROM ABOVE

XBT-K701 01

XBT-Z901 l/l2

TSX 7

CC

Connections
Connections for TSX 27-47 (ADJUSTMENT MODE)

L - 1000 m.

L<3m.

1112 r------1

n
ii

P
9

TSX (Terminal + 12v

--j-z&
L_________
Mechanicalcharacteristics :

- XBT-29011 : mountingon symetrlcrail - XBT-Z9012 : mountingon asymetricrail

Dimensions: Length :96mm :27mm :42mm

pJQ

h----d

iliz

Indication transmission receptionby lightemmlting of I diodes(LEDs).

Connections

9.5 Connections for the asynchronous module (ASCII MODE)


9.51 Current loop connections

The supply for the current loop is provided by the module (ACTIVE). Current limitation is provided by the XBT-K (PROTECTED PASSIVE). The maximum distance of the link is 1200 metres (two shielded, twisted pairs with minimum section 0.34 mrr? AWG22). For TSX 7 PLCs, connection should be made to the SCM20 module using a 2.5 metre cable type XBT-Z906.

100

1K

10K

lOoK

XBT-K70101

TSX 47167167

I
L

XBT-Z906

Connecting the XBT-Z906 cable: end with the reference to the XBT-K

Connections
Connections for the asynchronous module (ASCII MODE)

Pin connections for connecting cable XBT-2906

I
I

I I

7;

Transmission

Connections
Connections for the asynchronous module (ASCII MODE)

9.5.2 RS 232 C Connections

The maximum distance of the link is 15 metres. Connection : shielded, 3 wire, minimum section 0.34 mti

AWG 22.

For TSX 7 PLCs, connection should be made to the SCM20 module using cable XBT-Z905.

Dlstanco (m) t 1OOm

15m (Bauds) 100K

XBT-K70101

TSX 47167167

XBT-Z905

When connecting the XBT-Z905 cable: end with the reference to the XBT-K

Connections
Connections for the asynchronous module (ASCII MODE)

Pin connections for cable XBT-2905


~~~~~~~~~

,:.:.:....i...:,:,:.~:.:.:.:.:. ::.. . _M:::::::-

VISUAL DISPLAY TERMINAL or T 407

A -El PG-L -

I_

ISG I
RTS

OV

Connections
Connections for asynchronous module (ASCII MODE)

9.5.3 RS 422 connections Connection: two shielded, twisted pairs with minimum section 0,34 mm 2 (AWG 22). Examples of connection
General case

I I

---_-Special case for the SCM20 module


19 TSX 7 SCM20 modub

r-Q
-A

7-l
12

--E-u
I I

>

m I
RXD+

OV
R

I I I

18 A

, Recepfion

15 8

0: 00
00

ii

I I

RXD-

:I

A TXD+

23e

00 00 00 00 00 00 00 00 TfBflB- 00 0 mission
L_-

II

TXD-

,.........,...,.
I. .. . . .

..

.. .

;; ~~~&~~t%~hielding ~ constraints of the installation.

at each end of the cable depends on the electrical

-.

Connections

9.6

Connecting to contact inputs


Example of connections to TSX 17-20 (34 I/O relay)

TSX 17-20

__

Connections

9.7 Connecting to static inputs

3 4 5 6 7

& CO COP 1 COP

GROUND COMMON Operation code 1Operation code 7 buiCOP D0 l-17 Operation code Operation code data8 data7 ..l.../. ::i:i:i:i! ,$;! :.:.:.:.j ...... ,.:.:.:.:.

1 DP I n-

.\....I . ...... :.: :

24

Connections

9.8 Printer connections


The XBT-K display enables a printer to be used on the serial connector, provided the commands are transmitted via the parallel link. To adjust the transmission parameters on the XBT-K, refer to chapter 6.5 : SERIAL OPERATION. Depending on the distance, the transmission can be made with RS 232 C / 20 mA current loop / RS 422.

Choice of type of link


Dlstanco * (m) 1200 =_ ------_ 20mA current \ RS 422l485

loop

\ -1

1 i
RS2tj2C I

\ \
\ 10 M Speed (Ehds)

15 100

1
I

10 K 19,2 K 100 K

Example of connecting with RS 232 C. XBT-K70101 XBT-Z905

I
L

IL

I 1

-W PRINTER

Connecting the XBT-Z905 cable : end with the reference to the XBT-K Pin connections for the XBT-2905 cable : see chapter 9.2.

Connections

9.9 Serial and parallel multidrop connection iv


9.9.1

Current loop serial multidrop


The XBT-K displays operate in CURRENT LOOP ASCII MODE. Supply for the line is provided by the asynchronous module (ACTIVE). All the XBT-KS must be connected in serial mode. Current limitation is provided by the XBT-K (PROTECTIVE PASSIVE). Supply voltage for the multidrop loop : V min = 4 V x n (n = number of terminals connected). The XBT-K terminals must be addressed (coded) by wiring in the serial connector. Refer to chapter 6.8 : OPERATING IN ASCII MULTIDROP MODE for definition of the addresses.

Connections
Serial and parallel multidrop connection

Example of connecting to TSX 7 using an SCM20 asynchronous module


TSX ---------_7 (SCM20 module)_+ 12/24V.
(Supply for current kop)

Transmission

The connection the shielding at each end of the cable of depends on the electrical constraints of the installation.
l

Connections
Serial and parallel multidrop connection

9.9.2 AS 422 parallel multidrop RS 422 is used for making the connections. - All SLAVE receivers are cabled in parallel to the MASTER transmitter. - All SLAVE transmitters are cabled in parallel to the MASTER receiver.

The number of SLAVE terminals is limited to ten devices. The address of each terminal should be wired in its SUB D connector. Refer to chapter 6.8 : MULTIDROP OPERATION definition of the addresses. IN ASCII MODE for

__

Connections
Serial and parallel multidrop connection

Example of connecting to TSX 7 using an SCM20 asynchronous module

FIT ADAPTATION RESISTORS SHOULD SE USED AT END STATIONS

-0 lRXD+ A -RXD+ Connectingthe shieldingat both ends of the cable depends on the electricalconstraintsof the installation.

FIT: Llne adaptation resistors (typically 110 R l/4 W)

Connections
Serial and parallel multidrop connection

The lengths of the drop links should not exceed ten me&es. The maximum length of the total line should not exceed 1200 metres. Refer to installation manual : TSX SCM serial communication module (reference TSX 041724).

Note : Operation using RS 485 is possible by looping the receiver to the transmitter (connect A, A and 6, B ) of all the XBT-K terminals and of the master logic two wire link. All the devices connected to RS 485 must operate in HALF DUPLEX. The number is limited to a maximum of fifteen by address coding. Refer to chapter 6.8 : MULTIDROP OPERATION definition of the addresses. IN ASCII MODE for

Selt-tests

10.1 General
The XBT-K has two levels of diagnostics : - an internal test is automatically started each time the equipment is powered-up, - a test of the serial link and of the display can be initiated using special command codes over the parallel interface.

10.2 Automatic self-tests


On power-up, the following automatic self-tests are made in the order described: - normal test messages are transient (indicated by @ - fault messages are permanent (indicated by @ ) )

- to quit a permanent fault, it is necessary to cut the supply voltage.

Self-tests
Automatic self-tests

Program niimory

Internal fault on the equipment

1 CHECKSUM PROG =

I@

XBT-K program memory checksum fault Normal display Simultaneous presence of a

[ XBT-K70101 Serial connector address Multidrop address

V 1.3 18

CONFIG. FAULT

I@

multidrop address and adjustment strap The value of the parity bit does not correspond to the address read Normal display

1 ADDR. PARITY FAULT I@

[ ASCH96008BODlS Stored messages

10

1STORED MESS. NO = X X X - NIESS. CKSUM ERROR I@

Parallel bus

PARALLEL INTERFACE FAIJL -

Checksum error of message space : (updating of checksum)

_T(O
Parallel interface control circuit fault

OPERATING MODE

Normal message XBT-K waiting for commands

10

Self-tests

lo.3 Self-test commands


l

Serial

link test

The serial link test is made by applying command codes to the parallel interface and externally looping the serial link on the SUB D connector.

+V

>-pJ

E3
2 3 RS 232 C link loop

External SUPPlY 12to30v

ov

b--20 mA CL link loop

TESTING

TEST CORRECT

serial link loop. Thismessage appears as soon as the loopis correctly detected.
The XBT-K tests the

10

Self-tests
Self-test commands

Display

test

DDDD

Cyclic display test.

Y. Y. Y. Y. Y.

5 characters successively shifted

pluk*s*1
1

20 characters

q .cl.0.0.0.0.0.

20 characters

laEaE4

20 characters (all the segments are lit)

11

Error messages

11 .l Messages displayed on the XBT-K

> LINE FAULT <

iDJUSTMENT MODE

Malfunction of the line

TSX-

XBT-K

-Check the linkcable XBT TSX. -Test the XBT-K serial link. -Test the TSX terminalport with a T407 progammlng terminal. -Check If the text block transmission period 2.SOms. -Check the programcartridge, TSX configuration.

> TSX VAR. FAULT <

\DJUSTMENT MODE

Varlable not available in TSX. Varable too large for the numericflekf. Rejectton the PLC of request. No messageprogrammed in the memoryat address xxx. Value correctedby the conversion coeffldent greater than acceptableby the numericfieldin the message. Incorrectwritingof messagein memory. No messageprogrammed at the address.

e.g. : read WSOO TSX-27. In

XXX: MESS. ABSENT

4DJUSTMENTMODE IR ~SCII MODE 4DJUSTMENTMODE >R VSCII MODE

-Check the command -Program message. the

(IN THE NUMERIC FIELD)

-Check the lengthof the numericfield. -Check the conversion

> PROGRAM ERROR < > MESSAGE ABSENT <

:CNFIGURATION MDE hntrol using xvallel interface scan)

-Check message syntax.

-Program messageIf the


necessary

ADDR. PARITY FAULT.< 6CII MODE multidrop) > CHECKSUM ERROR < :ONFIGlJRATtCN UK3DE

Incorrectaddresswiring.

-Check the wiringof the serial link connector. -Check the configuration.

CONFIGURATION MODE exited out of procedure.

11

Error messages

11.2 Messages transmitted over the line M

ESC Q LF CR

Line transmission fault.

Parity error.

- Check the line parameters for the XBT-K and the PLC. - Check for parasites on the line. Use opto-isolation for the line if not isolated. - Reduce the transmission speed. - Shield the transmission cable.

ESC ? LF CR

Syntax fault. Message number not programmed.

- Check the message syntax transmitted by the control system to the XBT-K.

Multidrop address detection fault.

-1

- Check the coding of the addresses in the wnnector (multidrop).

12

Appendix

12 .l XBT-K message definition table

Updates Name A . . .. ... . .. . . . . .. . .. . . B . . . . . . . . . . . . . . . . ...*. C . . .. . .. . .. . . . . . . . .. . .

Date . . .. . .. . .. . .. . . . . .. . ... .. . .. . . . . .. . .. . .. . .. . .

Reference :

Sheet

12

Appendix

12.2 ASCII character table


(ASCII : American Standard Code for Information Interchange).

be

0 bs 0

0 0 0
1

0 1 0

0
1

1 0 1 0

BINARV

0
1

1 0

b.
br bz bl bo HEXADECMAL 0

1234567 10 I@ I P

~olololol 60 0
t-t
001

riULIDLErSP

0 1

2 3 4 5 6

01011

011

7
0 0

i-t
1 1

a 9
0

11010
0 1

A
B
C

LF SUB

:
; <

J
K L

2
[ \

j
k I

z
{ I

A B
C D E

1 0 1 1
1100 1101

VT
FF

ES 2 FS GS
I I

+
,

D
I I I
I

CR

=M]m)
I 1 I I

1 1 1 1

SI us

DEL

87

The products, hardware and services presented in this document are liable to be changed with respect to the presentation of characteristics, operation and utilisation. Their description cannot be used as a basis for contractual purposes. 8 Copyright Telemecanique 1990. All reproduction of this document is forbidden. Copying or reproduction, even partial, by whatever means, photographic, magnectic or other, as well as any other partial or total transcription able to be read by an electronic device, is strictly forbidden. XET XK700E 0711990 W904289210311 A04

Potrebbero piacerti anche