You are on page 1of 16

Generator

EDITOR HFe

Description of the data interface


EDITOR HFe

EDV Datei: 06220002 C en

Index compiler date: reviser date: released date:


name name name
B Hasso Kreß 26.01.2005 S.Rosenkranz 26.01.2005
C Hasso Kreß 02.02.2005 S.Rosenkranz 18.02.2005 J.Neubert 18.02.2005
D
E

Description of the data interface 06220002 C en.doc


EDITOR HFe Seite 1 von 16
Description of the data interface 06220002 C en.doc
EDITOR HFe Seite 2 von 16
Table of contents

1.1 General....................................................................................................................... 4
1.2 RS232 system ............................................................................................................ 4
1.2.1 Overview communication: ................................................................................... 4
1.2.2 Parameter ........................................................................................................... 5
1.2.3 Telegram ............................................................................................................. 5
1.2.4 Data traffic........................................................................................................... 5
1.3 Tables: ....................................................................................................................... 6
1.3.1 Device identifier:.................................................................................................. 6
1.3.2 Connector control desk (RS232 version, E, 25 pol. Sub-D):............................... 7
1.3.3 Connector control desk (RS232 version, G, 25 pol. Sub-D): .............................. 7
1.3.4 Commands from generator: ................................................................................ 8
1.3.5 Commands to generator: .................................................................................. 12
1.4 Exposure data from generator to practice system.................................................... 16
1.4.1 General ............................................................................................................. 16
1.4.2 Data format ....................................................................................................... 16
1.5 Control data PC -> generator (via control desk, option)........................................... 16

Description of the data interface 06220002 C en.doc


EDITOR HFe Seite 3 von 16
1.1 General

The communication are established via a bidirectional full duplex software protocoll.
Only one data set for each telegram. The receiver send a acknowledge sequence if the
telegram was ok. Was a communication error detected ('bcc' wrong or hardware error) the
receiver send a not acknowledge. In this case the transmitter sends the telegram again. Is
there no reply from the receiver after a timeout of 500msec the telegram is send again. Is
there no response after 5 seconds a transmit or receive error is generated.
In addition to the serial port there is a safety loop (‚NOT‘) through generator, control desk,
AEC and device interface. This loop stops xray at hardware.
To start and stop x-ray two wires supported for AEC and device control.

It's possible to install a control device or a PC to replace the control desk.


In this case the exposure button, the power on logic and the safety loop (‚NOT‘) has to be
realized by hardware.

1.2 RS232 system

1.2.1 Overview communication:

Generator RS232 Setup-PC


COM1

COM2..4

NOT

RS232
LOA6
AEC
BUS
COM4
COM2

Device- STR DEV


interface XPULS
COM2
COM1

COM3
Controldesk COM3

COM1 COM2

RS232 RS232

Control-PC, IF31 (interface


printer, image system)
practice-system

Description of the data interface 06220002 C en.doc


EDITOR HFe Seite 4 von 16
1.2.2 Parameter
8 bit ASCII asynchron
1..2 stop bits
no parity
4800..38400 baud(depends on wire length)

1.2.3 Telegram
The telegram consist of 3 ‚syn‘ characters followed by a ‚stx‘, a set of data, a ‚etx‘ and at last a
checksum byte ‚bcc‘. The data includes the telegram information. The checksum byte ‚bcc‘ is
generated via ‚xor‘ logic started after ‚stx‘ and inclusive ‚etx‘.
transmitter: ‘syn syn syn stx data etx bcc‘
receiver: answers with ‘syn syn syn stx ack etx bcc‘ if checksum was ok
or with ‘syn syn syn stx nak etx bcc‘ if checksum was wrong.

Characters:
control: 02 hex stx - start of text
03 hex etx - end of text
06 hex ack – acknowledge
15 hex nak - not acknowledge
16 hex syn - synchronisation
data: 20 - ff hex data - max. 60 characters
checksum: 00 - ff hex bcc - xor control checksum

A data set is leaded by device identifier (see table 1) followed by a 1 or 2 byte command
followed by command specific data.

example, command kV data (70kV) to control desk:


16h | 16h | 16h | 02h | 43h | 44h | 41h | 37h | 30h | 03h | 42h

1.2.4 Data traffic


The data dialogue takes place in full-duplex mode. Only one logical data record (command)
can be transferred in one telegram. This is then confirmed by the positive feedback. A further
telegram may be sent only after a positive acknowledgement of the preceding telegram. If it
should come to a negative acknowledgement (bcc incorrectly), the telegram is repeated. If no
feedback should take place, the telegram is transferred again after a timeout of 500ms. If no
feedback should have taken place after 5s, a sending-or an receipt-timeout-error is indicated.

Description of the data interface 06220002 C en.doc


EDITOR HFe Seite 5 von 16
1.3 Tables:
1.3.1 Device identifier:

device identifier
on desk 35
xray device 1 36
xray device 2 37
xray device 3 38
xray device 4 39
xray device 5 40
xray device 6 41
device 8 42
device 9 43
device 10 44
device 11 45
device 12 46
device 13 47
device 14 48
device 15 49
device 16 50
device 17 51
device 18 52
device 18 53
device 20 54
device 21 55
device 22 56
device 23 57
device 24 58
device 25 59
IF31 (interface image system) 60
high speed starter (150/180Hz) 61
- 62
2. control desk 63
practice system 64
setup PC 65
AEC 66
1. control desk 67

table 1

Description of the data interface 06220002 C en.doc


EDITOR HFe Seite 6 von 16
1.3.2 Connector control desk (RS232 version, E, 25 pol. Sub-D):
connector E, board BE26 (interface control desk - generator):
flag name pin description
0V2 1 0V
TXD2 2 serial RS232 output
RXD2 3 serial RS232 input
CTS2 4 clear to send, not used
RTS2 5 request to send, not used
U2IN 6 + 12 V
0V2 7 0V
U2IN 8 + 12 V
NOT+ 9 +NOT loop
NOT- 10 -NOT loop
EXP+P 11 +Exposure
EXP-P 12 -Exposure
- 13 reserve
+12V1 14 +12 V standby to power LED
0V2 15 0V
0V2 16 0V
RELHOLD 17 common relay contact off / on
12V/STDBY 18 relay contact off
RELPULS 19 relay contact on
0V1 20 0V standby
U2IN 21 +12 V
U2IN 22 +12 V
0V2 23,24 0V
PE 25 screen, potential earth
table 4

1.3.3 Connector control desk (RS232 version, G, 25 pol. Sub-D):


connector G, board BE26 (interface control desk – practice system or PC, via optocoupler):
Signal Pin description
XG_2 2 serial RS232 output (TXD_0 via optocoupler)
XG_3 3 serial RS232 input (RXD_0 via optocoupler)
XG_4 4 CTS, used to generate RS232 voltage level
XG_7 7 0V
XG_20 20 DTR, used to generate RS232 voltage level
table 5

Description of the data interface 06220002 C en.doc


EDITOR HFe Seite 7 von 16
1.3.4 Commands from generator:

1.3.4.1 command 'D', exposure- and fluoroscopy parameter


sub- parameter function
command
G 0..6, k, g show device, 0=on desk, 1-6=xray device 1-6, k=small focus,
g=large focus
U 1..2, k, g, K, G show tube, 1=tube1, 2=tube 2, k=small power, g=big power,
K=small power heat integrator limit, G= big power heat
integrator limit
O 0..100 show organprogram, 0=free mode, 1..100 organprogram 1-100
S bit 0..7 bit 0..2= show cast 0-5, bit 3= show thickness < flag, bit 4=
show thickness > flag,
bit 7= show organprogram changed flag
R 1..99 show thickness 1-99cm
P 1..3 show exposure mode, 1=falling load, 2=2 point mode, 3=3
point mode
A 40..150 show exposure voltage, 40-150kV
E 0.5..9.9, show exposure mAs, 0.5-9.9mAs or 10-600mAs
10..600
B 0.5..9.9, show exposure current, 0.5-9.9mA or 10-800mA
10..800
C 1..6300 show exposure time, 1-6300ms
M 0..7 show AEC fields (AEC on if <> 0), bit 0=aec left field, bit 1=aec
center field, bit 2=aec right field
T 0..2 show aec screen 0-2
F 0..8 show aec gray level, 0=-4, 8=+4
H 0..3 show fluoroscopy mode, 0=off, 1=normal fluoroscopy (1.0-
5.0mA), 2=high contrast fluoroscopy (5-10mA), 3=pulsed
fluoroscopy
I 35..125 show fluoroscopy voltage, 35-125kV
J 1.0..5.0, 5..10, show fluoroscopy current, 1.0-5.0mA, 5-10mA oder 50-300mA
50..300 (max. 2mAs per second)
K 0..5999 show fluoroscopy time, 0-5999s
L 0, 1 show ABC, 1=on
N 0, 1 show fluoroscopy time limit, 1=on
W 0..999999 show dose area product, 0-999999cGycm²
X 0..31 char. practice system, show text (31 char. max.)
Y 0..1, M, R show info line, 0= fluoroscopy, 1=organprogram, M= "to save
data push 'M' ", R=delete line
Z 0, 1..999 show error 1-999, 0=no error

table 6

Description of the data interface 06220002 C en.doc


EDITOR HFe Seite 8 von 16
1.3.4.2 Command 'H', buzzer
sub- parameter function
command
A buzzer off
B sound 2000ms, AEC
C sound 500ms, modulated, after exposure
D sound modulated, on, prepare
E sound unmodulated, on
F sound modulated, fluoroscopy
G sound modulated, high contrast fluoroscopy
H sound modulated, fluoroscopy time limit
I sound modulated, 2000ms, error

table 7

1.3.4.3 Command 'L', LED on/off


sub- parameter function
command
E 0..99 LED 0..99 on
A 0..99 LED 0..99 off
LED number
15 reset error
21 full power
22 small power
1 xray device 1
2 xray device 2
4 xray device 3
3 xray device 4
10 xray device 5
11 xray device 6
7 small focus
8 large focus
5 left aec field
6 center aec field
9 rigth aec field
13 aec screen system 1
14 aec screen system 2
21 function 1
22 function 2
23 function 3
24 function 4
16 xray

table 8

Description of the data interface 06220002 C en.doc


EDITOR HFe Seite 9 von 16
1.3.4.4 Command 'O', region
sub- parameter function
command
100..109, show region of organprogram group 0-9
999=aus
table 9

1.3.4.5 Command 'P', output to PC or printer


sub- parameter function
command
R reset serial printer interface to 38400 baud.
S text output to PC or printer (CR,LF added). The practice
system has to be enabled by setup.
table 10

1.3.4.6 Command 'Q', organprogram text


sub- parameter function
command
0..99, 999=off show organprogram text 0-99.
table 11

1.3.4.7 Command 'R', reset


sub- parameter function
command

H Reset device. Reset all functions and displays. The device


answers with the comamnd 07Dh and the error number. Then
the device makes a warm start with the command 'R' to the
Generator.
table 12

Description of the data interface 06220002 C en.doc


EDITOR HFe Seite 10 von 16
1.3.4.8 Command 'S', service keys
sub- parameter function
command
1..254 Keycode within service mode (keycodes are descriped at
command 'T')
Tasten-
Nummer
01 M, execute or save
02 0, numeric input
03 I, info key, input new service program
09 3, numeric input
10 2, numeric input
11 1, numeric input
17 6, numeric input
18 5, numeric input
19 4, numeric input
25 9, numeric input
26 8, numeric input
27 7, numeric input
33 cm-, decrement value
34 cm+, increment value
48 organprogram+, increment serviceprogram
49 organprogram-, decrement serviceprogram
table 13

1.3.4.9 Command 'U', text output


sub- parameter function
command
nnASCII String show ascii text within status line at position nn
table 14

Description of the data interface 06220002 C en.doc


EDITOR HFe Seite 11 von 16
1.3.5 Commands to generator:

1.3.5.1 Command 'D', exposure and fluoroscopy parameter


sub- parameter function
command
O 0..100 set organprogram, 0=free mode, 1..100 organprogram 1-100
G 0..6, k, g set xray device, 0=on desk, 1-6=xray device 1-6, k=small
focus, g=large focus
P 1..3 set exposure mode, 1=falling load, 2=2 point mode, 3=3 point
mode
A 40..150 set exposure kV, 40-150kV
E 0.5..9.9, set exposure mAs, 0.5-9.9mAs or 10-600mAs
10..600
B 0.5..9.9, set exposure mA, 0.5-9.9mA oder 10-800mA
10..800
C 1..6300 set exposure time, 1-6300ms
M 0..7 set AEC on/off, 0 = off, bit 0=left aec field, bit 1=center aec
field, bit 2=right aec field
T 0..2 set aec screen system 0-2
F 0..8 set aec gray level, 0=-4, 8=+4
H 0..3 set fluoroscopy mode, 0=off, 1=normal mode (1.0-5.0mA),
2=high contrast fluoroscopy (5-10mA), 3=pulsed fluoroscopy
(50-300mA)
I 35..125 set fluoroscopy kV, 35-125kV
J 1.0..5.0, 5..10, set fluoroscopy mA, 1.0-5.0mA, 5-10mA or 50-300mA (max.
50..300 2mAs per second)
L 0, 1 set fluoroscopy abc, 0=off, 1=on
table 15

1.3.5.2 Command 'R', reset


sub- parameter function
command
The control desk(device) answers with command ‚R‘ after
reception of command ‚R‘ from generator or after warm start
of control desk.
- is the generator at OFF state at this time the generator
grows up to standby state (contactors K1 and K2 switches
on).
- is the generator at standby state and the command doesn’t
come from the active control desk the generator is waiting for
a new control device or control desk, after 2 seconds the
generator is ready to work with the new control desk. If the
generator is receiving a ‚R‘ command within these 2 seconds
the generator falls back to the old control desk.
table 16

Description of the data interface 06220002 C en.doc


EDITOR HFe Seite 12 von 16
1.3.5.3 Command 'T', key on/off
sub- parameter function
command
E 1..254 key 1-254 on
A 1..254 key 1-254 off

key number
01 M, save
02 0, numeric input
03 I, info key
04 aec field left
05 aec screen system 1
06 exposure mode
07 pen (feather)
08 aec screen system 2
09 3, numeric input
10 2, numeric input
11 1, numeric input
12 aec field center
13 aec gray level +
14 small focus
15 large focus
16 aec gray level -
17 6, numeric input
18 5, numeric input
19 4, numeric input
20 aec field right
21 exposure down (not used)
22 exposure mAs(mA) down
23 xray device 3
24 xray device 4
25 9, numeric input
26 8, numeric input
27 7, numeric input
28 attention
29 exposure mA up (not used)
30 exposure mAs(mA) up
31 exposure kV up
32 xray device 1
33 cm -
34 cm +
35 cast
36 direction
37 xray device 6
38 xray device 5
39 xray device 2
40 exposure kV down
41 fluoroscopy kV up
42 fluoroscopy kV down

Description of the data interface 06220002 C en.doc


EDITOR HFe Seite 13 von 16
43 fluoroscopy mA up
44 fluoroscopy mA down
45 fluoroscopy reset clock
46 fluoroscopy ABS
47 fluoroscopy mode
48 organprogram up
49 organprogram down
50 exposure power normal
51 exposure power reduced
118 fluoroscopy kV for exposure
201 collimator open, horizontal
202 collimator close, horizontal
203 collimator open, vertical
204 collimator close, vertical
205 collimator open, iris
206 collimator close, iris
210 image intensifiers zoom, large
211 image intensifiers zoom, normal
212 image intensifiers zoom, small
220 fluoroscopy, continued
221 fluoroscopy, pulsed, fast
222 fluoroscopy, pused, normal
223 fluoroscopy, pulsed, slow
230 save image
231 reflection, horizontal
232 reflection, vertical
233 function 'S'
234 rotation, clockwise
235 rotation, counter clockwise
236 default settings
240 recursiv filter 1
241 recursiv filter 2
242 recursiv filter 4
243 recursiv filter 8
250 page forward
251 page backward
table 17

Description of the data interface 06220002 C en.doc


EDITOR HFe Seite 14 von 16
1.3.5.4 Command 'V', exposure key
sub- parameter function
command
0 prepare off, exposure off, fluoroscopy off
1 prepare on, exposure off, fluoroscopy off
2 prepare off, exposure on, fluoroscopy off
3 prepare on, exposure on, fluoroscopy off
4 prepare off, exposure off, fluoroscopy on
5 prepare on, exposure off, fluoroscopy on
6 prepare off, exposure on, fluoroscopy on
7 prepare on, exposure on, fluoroscopy on
table 18

1.3.5.5 Command '}' (07Dh), error message


sub- parameter function
command
0, 1..999 error 1-999, 0=no error
table 19

Description of the data interface 06220002 C en.doc


EDITOR HFe Seite 15 von 16
1.4 Exposure data from generator to practice system
1.4.1 General
The data transfered only one way from generator via control desk to the practice system or
printer.
There is no special protocoll, a simple ASCII string is transmitted with 'carriage return‘ and 'line
feed‘. The same way as a terminal program or printer would data receive.
Connect the control desk with the practice system by a RS232 cable.
Setup the generator with 'CONFIG.EXE': dialog 'Device' within menu 'Settings'
- choose Device 29 ('Patient system')
- enable device
- Communication channel : COM3 (same as device 32 ('Editor Desk'))
- routed to : COM1 (channel of connector 'XG‘ within control desk)
- Communcation baudrate : COM_BAUD_9600 (for example)
- Device types – special : Dig-Sys 1 (for example)
With these settings the patient data are transmitted from generator via control desk to the
practice system.

1.4.2 Data format


1.4.2.1 Version 1, Star Printer:
Formatted set of exposure data to the printer, initiated with key 'pen‘ (patient change) :
Date : dd.mm.yyyy or mm.dd.yyyy CR LF
Exposures : n (number of exposures since last patient change) CR LF
Current time product : nnn.n (mAs since last patient change) CR LF
Dose area product : nnn.n (cGycm² since last patient change) CR LF
Fluoroscopy runtime : mm:ss (fluoroscopy time in min:sec since last patient change) CR LF

1.4.2.2 Version 2, MRT System:


Formatted set of exposure data to the MRT system, initiated with key 'pen‘ (patient change) :
as Version 1 with additional data of each exposure:
date : kV, mAs CR LF

1.4.2.3 Version 3, Digital system 1 (Dig-Sys 1):


Formatted set of exposure data to the digital system, sended after each exposure :
If no error:
date:cGycm²;kV;mAs;mA;ms CR LF
If error (xx = errornumber):
date:cGycm²;kV;mAs;mA;ms CR LF
Error CR LF

1.5 Control data PC -> generator (via control desk, option)


D data see table 15

Description of the data interface 06220002 C en.doc


EDITOR HFe Seite 16 von 16

You might also like