Вы находитесь на странице: 1из 15

Storia delle revisioni

2008-03-04: Revisione 3: tempo variabile in HCF e CINE attivato/disattivato da NXD


2008-08-28: Revisione 4: messaggio BCB (CANBus Bridge)

HARDWARE INTERFACE
Type
EIA RS-232

Link Parameters
19200,8,N,2

SOFTWARE INTERFACE
Packet syntax
<DATA FIELD><ETX><CHKSUM>
<DATA FIELD> contains commands, data, spaces (0x20)
ETX = 0x03
CHKSUM is the BYTE sum of complete <DATA FIELD>+<ETX> package

Packet length
Max 100 bytes

Command Packet
Command is always SINGLE COMMAND:
<CMDID><DATA><ETX>CHKSUM>

Reply Packet
Reply can be Single or a stream of Single reply ended with an ETX:
Single
<RPLYID><DATA><ETX>CHKSUM>
<RPLYID><DATA><SPACE><RPLYID><DATA>…<RPLYID><DATA><ETX>CHKSUM>

Corrupted packet
The generator asserts a NAK (0x15) if <CHKSUM> is incorrect

Unknown packet
The generator asserts an “ER???” reply if the command is not recognized

Wrong Data packet


The generator asserts an “ER213” reply if the data filed is not recognized
MESSAGES
OPERATING STATUS

Working Station
Syntax
WS<a>
Allowed Values for “a”
WS? - Current WS request
WS1 - WS 1 selection
WS2 - WS 2 selection
WS3 - WS 3 selection
WS4 - WS 4 selection
WS5 - WS 5 selection
WS6 - WS 6 selection
Generator reply:
WS<a> [command accepted]
RADIO-WARNING
"ER213" (invalid communication parameter) (ex. WS6 do not exist on R306.3x or R306.4x)

Radio technique
Syntax
ET<a>
Allowed Values
ET? - Current radio technique request
ET0 - kV, mA,time technique request
ET1 - kV, mAs technique request
ET2 - AEC technique request (WS = 32 : COMPUTER -> “Remote HIRIS RAD”)
Generator reply:
ET<a> [command accepted]
RADIO-WARNING

Fluoro mode
Syntax
FLF<a>
Allowed Values
FLF?
FLF0 - Fluoroscopy disabled
FLF1 - Continuous Fluoroscopy enabled
FLF2 - High Contrast Fluoroscopy (Pulse) enabled
FLF3 - High Contrast Fluoroscopy (Pulse) enabled
Generator reply:
FLF<a>

GENERATOR status request


Syntax
ST
Generator reply:
STnnn: - ST002 = STANDBY
- ST007 = LATCHING ALARM

RADIO values request


Syntax
RR
Generator reply:
KV<aaa>MA<aaaaa>MS<aaaaa>MX<aaaaa>

SYSTEM data request


Syntax
RS
Generator reply:
TU<a>WS<a>FO<a>ET<a>FI<abc>FS<abc>FN<ab>HE<aaa>

FLUORO data request


Syntax
RF
Generator reply:
FLK<aaa>FLM<aaa>FLI<aaa>FLT<aaa>FLF<a>FLA<a>FLS<aaa>FLZ<a>FLD<a>

LAST PRINT data request


Label containing last emission data w/o dose
Syntax
AX?
Generator reply:
"AX0"when NO DATA are available
LAST PRINT CARD in printable format when data are available

LATCHING ALARM (RESET request)


Syntax
EL<aaa>
Allowed Values
ELnnn - wher nnn between EL128 .. EL176 error code
Generator reply:
ELnnn: is transmitted automatically from generator to external device every 3 seconds
when the generator is in Alarm state, the alarm acceptance from external device
must have the same alarm code the generator is transmitting TXed
spontaneamente ogni 3s se GEN in ALLARME (aaa = 128..176)
STnnn when the ELnnn is accepted from generator
INTERMITTENT MODE

RADIO focus
Syntax
FO<a>
Allowed Values
FO? - Current focus request
FO0 - small focus request
FO1 - large focus request
Generator reply:
FO<a>
RADIO-WARNING

RADIO kV value
Syntax
KV<aaa>
Allowed Values
KV? - Current radio voltage request
KV+ - 1 kV up command
KV- - 1 kV down command
KVnnn - absolute kV set where
nnn minimum is KV040
nnn maximum is KV150 or maximum allowed
NOTE: leading 0 required on values less than 100
Generator reply:
KV<aaa>
RADIO-WARNING

RADIO mA value
Syntax
MA<aaaaa>
Allowed Values
MA? - Current radio high voltage current request
MA+ - 1 mA step up command
MA- - 1 mA step down command
MAnnnnn - absolute mA set, where allowed nnnnn are:
MA00100 for 10mA
MA00125 for 12mA
MA00160 for 16mA
MA00200 for 20mA
MA00250 for 25mA
MA00320 for 32mA
MA00400 for 40mA
MA00500 for 50mA
MA00630 for 63mA
MA00800 for 80mA
MA01000 for 100mA
MA01250 for 125mA
MA01600 for 160mA
MA02000 for 200mA
MA03200 for 320mA
MA04000 for 400mA
MA05000 for 500mA
MA06300 for 630mA - max val for 50kW
MA08000 for 800mA - max val for 65kW
MA10000 for 1000mA - max val for 80kW
MA12500 for 1250mA - max val for 100kW
NOTE: leading 0s are required
Generator reply:
MA<aaaaa>
RADIO-WARNING

RADIO exposure Time value


Syntax
MS<aaaaa>
Allowed Values
MS? - Current radio time request
MS+ - 1 time step up command
MS- - 1 time step down command
MSnnnnn - absolute mA set, where allowed nnnnn are:
MS00010 for 1ms
MS00020 for 2ms
MS00032 for 3ms
MS00040 for 4ms
MS00050 for 5ms
MS00063 for 6ms
MS00080 for 8ms
MS00100 for 10ms
MS00125 for 12ms
MS00160 for 16ms
MS00200 for 20ms
MS00250 for 25ms
MS00320 for 32ms
MS00400 for 40ms
MS00500 for 50ms
MS00630 for 63ms
MS00800 for 80ms
MS01000 for 100ms
MS01250 for 125ms
MS01600 for 160ms
MS02000 for 200ms
MS02500 for 250ms
MS03200 for 320ms
MS04000 for 400ms
MS05000 for 500ms
MS06300 for 630ms
MS08000 for 800ms
MS10000 for 1000ms
MS12500 for 1250ms
MS16000 for 1600ms
MS20000 for 2000ms
MS25000 for 2500ms
MS32000 for 3200ms
MS40000 for 4000ms
MS50000 for 5000ms
MS63000 for 6000ms
NOTE: leading 0s are required
6s = European limit
Generator reply:
MS<aaaaa>
RADIO-WARNING

RADIO mAs value


Syntax
MX<aaaaa>
Allowed Values
MX? - Current radio high voltage current request
MX+ - 1 mAs step up command
MX- - 1 mAs step down command
MXnnnnn - absolute mA set, where allowed nnnnn are:
MX00010 for 1mAs
MX00013 for 1.25mAs
MX00016 for 1.6mAs
MX00020 for 2mAs
MX00025 for 2.5mAs
MX00032 for 3.2mAs
MX00040 for 4mAs
MX00050 for 5mAs
MX00063 for 6.3mAs
MX00080 for 8mAs
MX00100 for 10mAs
MX00125 for 12.5mAs
MX00160 for 16mAs
MX00200 for 20mAs
MX00250 for 25mAs
MX00320 for 32mAs
MX00400 for 40mAs
MX00500 for 50mAs
MX00630 for 63mAs
MX00800 for 80mAs
MX01000 for 100mAs
MX01250 for 125mAs
MX01600 for 160mAs
MX02000 for 200mAs
MX02500 for 250mAs
MX03200 for 320mAs
MX04000 for 400mAs
MX05000 for 500mAs
MX06300 for 600mAs
...
NOTE: leading 0s are required
1mAs = lower limit for 2 points tech
600mAs = European limit
Generator reply:
MX<aaaaa>
RADIO-WARNING

RADIO WARNING MESSAGE (RADIO-WARNING)


al_kvg_high: "ER208" = Tube kV limit
al_mas_high: "ER206" = Generator mAs limit
al_mas_low: "ER206" = Generator mAs limit
al_kwx10_high: "ER202" = Generator kW limit
al_pot_high: "ER207" = Tube kW limit
al_khut_high: "ER214" = Housing Heat Warning

AUTOMATIC EXPOSURE CONTROL

AEC field
Syntax
FI<lcr>
Allowed Values
FI? - Current AEC field status request
FIlcr - Enable/Disable dominant regions
l=0 Left Dominant Excluded
l=1 Left Dominant Active
c=0 Central Dominant Excluded
c=1 Central Dominant Active
r=0 Right Dominant Excluded
r=1 Right Dominant Active
Generator reply:
FI<lcr>
RADIO-WARNING

AEC screen/film combinations


Syntax
FS<abc>
Allowed Values
FS? - Current AEC film/screen status request
FSnnn - absolute film screen combination set command, where allowed nnn are:
FS000 for first combination (fast)
FS001 for second combination (normal)
FS010 for third combination (slow)
NOTE: leading 0s are required
3..7 combination for special appl. only
Generator reply:
FS<abc>
RADIO-WARNING

AEC density
Syntax
FN<ab>
Allowed Values
FN? - Current density status request
FNsn - absolute density set command, where allowed sn are:
FN-3 50% of Nominal Density
FN-2 63% of Nominal Density
FN-1 80% of Nominal Density
FN 0 Nominal Density (100%)
FN+1 125% of Nominal Density
FN+2 160% of Nominal Density
FN+3 200% of Nominal Density
NOTE: leading “space” where 0 set is required

Generator reply:
FN<ab>
RADIO-WARNING

HIRIS RAD – Remote Command


ET2 – on working station with “Computer” icon forces on control console the “REMOTE MODE” i.e.
technique in 3 points, back-up time 500ms
CONTINUOUS MODE

FLUORO ABS control


Syntax
FLA<a>
Allowed Values
FLA? - Current ABS mode request
FLA0 - manual control set command
FLA1 - hardware control set command
FLA2 - software control (DFL command) set command
Generator reply:
FLA<a>

FLUORO kV
Syntax
FLK<aaa>
Allowed Values
FLK? - Current fluoro voltage request
FLK + - 1 kV up command
FLK - - 1 kV down command
FLK nnn - absolute kV set where
nnn minimum is FLK040
nnn maximum is FLK120 or maximum allowed
NOTE: leading 0 required on values less than 100
Generator reply:
FLK<aaa>

FLUORO mA
Syntax
FLM<a> : available only in FLUOROSTEP mA control and HCF (pulsed)
Allowed Values
FLM?
FLM+
FLM-
Generator reply:
FLMnnnn - where nnnn from 0005 (0,5mA) to 1000 (100mA in HCF)

DIGITAL DEVICE CONTROLLED PARAMETERS

FLUORO ABS Value Software force


Uses the digital device image darkness to force over 12bits the current sampled IEC level.
Accepted only during an AUTOMATIC CONTINUOUS FLUOROSCOPY (FLF1) in SOFTWARE
CONTROL MODE (FLA2).
Every time a FLL is received, a regulation step is performed.
Syntax
FLLnnnn
Allowed Values
FLLnnnn – where nnnn are FLL0000 to FLL4095
Generator reply:
FLLnnnn - if accepted
"ER213" - (invalid communication parameter) if not acceptable

FLUORO BALANCE value set


Changes runtime the balance value for ABS
Syntax
BVF<aaaa>
Allowed Values
BVFnnnn – where nnnn are BVF0000 to BVF4095
Generator reply:
BVFnnnn - if accepted
"ER213" - (invalid communication parameter) if not acceptable

HCF BALANCE value set


Changes runtime the hcf balance value for ABS
Syntax
BVH<aaaa>
Allowed Values
BVHnnnn – where nnnn are BVH0000 to BVH4095
Generator reply:
BVHnnnn - if accepted
"ER213" - (invalid communication parameter) if not acceptable

CINE BALANCE value set


Changes runtime the CINE balance value for ABS
Syntax
BVC<aaaa>
Allowed Values
BVCnnnn – where nnnn are BVC0000 to BVC4095
Generator reply:
BVCnnnn - if accepted
"ER213" - (invalid communication parameter) if not acceptable

PRINT LABEL FORMAT

Starting Sequence:
<BLANK><ESC><m><CR><LF><CR><BLANK> (=20h 1Bh 6Dh 0Dh 0Ah 0Dh 20h)

Ending Sequence:
<LF><BLANK><LF><BLANK><CR> (=0Ah 20h 0Ah 20h 0Dh)
RADIO LABEL
' <ESC><m><CR><LF><CR>'
' RADIO Tx GG/MM/AA hh:mm:ss<LF><CR>'
' kV xxx mA xxxx<LF><CR>'
' EXPms xxxx mGy*cm2 xxxxx<LF><CR>'
' RUNs xxxx EXPnr xxxx'
'<LF><BLANK><LF><BLANK><CR>'

CINE LABEL
' <ESC><m><CR><LF><CR>'
' CINE Tx GG/MM/AA hh:mm:ss<LF><CR>'
' kV xxx mA xxxx<LF><CR>'
' EXPms xxxx mGy*cm2 xxxxx<LF><CR>'
' RUNs xxxx EXPnr xxxx'
'<LF><BLANK><LF><BLANK><CR>'

FLUORO LABEL
' <ESC><m><CR><LF><CR>'
' FLUORO Tx GG/MM/AA hh:mm:ss<LF><CR>'
' kV xxx mA xxxx<LF><CR>'
' EXPs xxxx mGy*cm2 xxxxx<LF><CR>'
' RUNs EXPnr '
'<LF><BLANK><LF><BLANK><CR>'

HCF LABEL
' <ESC><m><CR><LF><CR>'
' PULSED Tx GG/MM/AA hh:mm:ss<LF><CR>'
' kV xxx mA xxxx<LF><CR>'
' EXPms xxxx mGy*cm2 xxxxx<LF><CR>'
' RUNs xxxx EXPnr xxxx'
'<LF><BLANK><LF><BLANK><CR>'

TOTAL EMISSION LABEL


' <ESC><m><CR><LF><CR>'
' TOTAL DOSE<LF><CR>'
' mGy*cm2 xxxxx<LF><CR>'
' EXPnr xxxx<LF><CR>'
' FLUOROs xxxx'
'<LF><BLANK><LF><BLANK><CR>'

LABEL EJECTION
' <ESC><m><CR><LF><CR>'
' Cut<LF><CR>'
' kV mA <LF><CR>'
' EXPms mGy*cm2 <LF><CR>'
' RUNs EXPnr '
'<LF><BLANK><LF><BLANK><CR>'
Revision 14/06/06

HCF Extension
FLK: available in HCF
FLM: available in HCF
FLF : 0, 1, 2
FLA: 0, 1
BVH: available

CINE Extension
ON/OFF in standby through Optocoupler
CINE Radiological parameters set using RADIO parameters in 3 point tech (KV, MA, MS)

CINE Status Request


Syntax
CS Digital Device to Generator
Allowed Values

Generator reply: CSn


CS0 - CINE Not available on current working station
CS1 - CINE Available on current working station but NOT Active
CS2 - CINE Available and ACTIVE – MANUAL CONTROL
CS3 - CINE Available and ACTIVE – AUTOMATIC CONTROL
"ER213" - (invalid communication parameter) if not acceptable

CINE Mode Set


Syntax
CMn Digital Device to Generator
Allowed Values
n=0: CINE in MANUAL CONTROL
n=1: CINE in AUTOMATIC CONTROL
Generator reply:
CSn See CS command
"ER213" - (invalid communication parameter) if not acceptable

CINE Rate Set


Syntax
CRnn Digital Device to Generator
Allowed Values
nn from 1 to 999 for 1Hz to 99 (100)Hz
Generator reply:
CRnnn The generator replies the same value received
"ER213" - (invalid communication parameter) if not acceptable
OXRLINK TRANSLATION: ABSOLUTE COMMAND
COMANDO SPECIALE NXD... PER OTTENERE PULSATA A 10mA o 20mA

NXDP_MIN_KVG equ 40 ;min kV GRAFIA


NXDP_MAX_KVG equ 150 ;max kV GRAFIA

NXDP_MIN_KVF equ 40 ;min kV FLUORO


NXDP_MAX_KVF equ 120 ;max kV FLUORO
NXDP_MIN_MAF equ 50 ;min mA FLUORO
NXDP_MAX_MAF equ 800 ;max mA FLUORO

NXDP_MIN_KVP equ 40 ;min kV PULSATA


NXDP_MAX_KVP equ 120 ;max kV PULSATA
NXDP_MIN_MAP equ 10 ;min mA PULSATA
NXDP_MAX_MAP equ 300 ;max mA PULSATA
NXDP_MIN_MSP equ 2 ;min ms PULSATA
NXDP_MAX_MSP equ 20 ;max ms PULSATA

;Set NEXT EXP data NXD (Dialetto ODEL)


Next Radio/Fluoro/Pulsed data packet
;D1 =
; b0..b3 = Mode ( 0=RADIO 3PT,
1=CINE,
2=FLUORO,
3=PULSED,
4=RADIO 3PT,
5=RADIO 2PT,
6=RADIO AEC 2PT o 1PT)
; b4 = available
; b5..b6 = Focus
; b7 = available
;D2 = kV
;D3..D4 = (mA*10) (D3=LSByte, D4=MSbyte)
;D5..D6 = msec per RADIO 3PT, oppure (mAs*10) per RADIO 2PT e
RADIO AEC (D5=LSByte, D6=MSbyte)
GEN-replay
RADIO data
(KV<aaa>MA<aaaaa>MS<aaaaa>MX<aaaaa>), se Mode = 0, 1, 4, 5, 6
FLUORO data
(FLK<aaa>FLM<aaa>FLI<aaa>FLT<aaa>FLF<a>FLA<a>FLS<aaa>FLZ<a>FLD<a>), se Mode = 2, 3

TX sequence:
D1.LSnibble | 0x40
D1.MSnibble | 0x40
.........
D6.LSnibble | 0x40
D6.MSnibble | 0x40

ES: Scopia Pulsata Fuoco Fine, 40kV, 20mA, 8ms NXDC@HBHL@@H@@@


ES: Scopia Pulsata Fuoco Fine, 40kV, 10mA, 8ms NXDC@HBDF@@H@@@

NXD per HCF


1) HCF DEVE ESSERE PERMESSA (ma non necessariamente attivata) SUL
POSTO DI LAVORO

2) ATTIVAZIONE TECNICA A TEMPO VARIABILE:


D5..D6 = msec per HCF, se D5:D6 == 0, Tempo = VARIABILE, ovvero
funzione dei kV correnti
ES: Scopia Pulsata Fuoco Fine, 40kV, 10mA, Var ms NXDC@HBDF@@@@@@

3) DISATTIVAZIONE TECNICA A TEMPO VARIABILE:


Impostando un tempo diverso da zero, il tempo si fissa sul
tempo impostato, se consentito; valori non corretti vengono
rifiutati e non si cambia tecnica

NXD per CINE


1) CINE DEVE ESSERE PERMESSA E NECESSARIAMENTE ATTIVATA SUL POSTO
DI LAVORO

2) ATTIVAZIONE TECNICA A TEMPO VARIABILE:


D5..D6 = msec per CINE, se D5:D6 == 0, Tempo = VARIABILE,
ovvero funzione dei kV correnti
ES: Cine Fuoco Grande, 40kV, 200mA, Var ms NXDABHB@MG@@@@@

3) DISATTIVAZIONE TECNICA A TEMPO VARIABILE:


Impostando un tempo diverso da zero, il tempo si fissa sul
tempo impostato, se consentito; valori non corretti vengono
rifiutati e non si cambia tecnica
ES: Cine Fuoco Grande, 40kV, 200mA, 6 ms NXDABHB@MG@F@@@

OXRLINK BRIDGE COMMAND


E’ possibile inviare messaggi su CANBus attraverso la porta seriale
utilizzando il seguente messaggio:

BCBaaaaaaaaaaa..<ETX>
La risposta è
BCB0 (zero) se pacchetto correttamente interpretato
BCB1 se il pacchetto CAB non è correttamente interpretato

BCB è seguito dal pacchetto CAN costituito come per SAJ1000


codificato a nibble via
BYTE.LSnibble | 0x40, BYTE.MSnibble | 0x40

Il pacchetto CAN di SAJ1000 è così costituito:


1) PACKET_ID0: 8bit più significativi di Message Identifier
a 11 bit
2) PACKET_ID1:
bit 3..0 0 DLC (Lunghezza campo DATA)
bit 4 RTR (sempre a zero)
bit 7..5 LSBit di Message Identifier
3) DATA0
4) DATA1
3) DATA2
4) DATA3
3) DATA4
4) DATA5
3) DATA6
4) DATA7

es: COMANDO SPECIALE PER IMPOSTARE HCF A mA VARIABILI:


ID = 0x060
RTR = 0
DLC = 8
DATA[0] = 0x03 (HRISDFPS)
DATA[1] = WS: 0x07 (Current)
FOCUS: 0x01 << 3 (Large Focus)
MODE: 0x02 << 4 (Digital Fluorography)
DATA[2] = 120 (Max kV)
DATA[3] = 80 (mA @ 40kV)
DATA[4] = 200 (mA @ MaxkV)
DATA[5] = 8 (pulse width [msec])
DATA[6] = 15 (pulse freq. [Hz])
DATA[7] = 0 (Spare)

1) PACKET_ID0: ID>>3
2) PACKET_ID1: ((ID & 0x07)<<5)|(RTR << 4)| DLC
3) DATA0 0x03
4) DATA1 0x4F
3) DATA2 0x78
4) DATA3 0x50
3) DATA4 0xC8
4) DATA5 0x08
3) DATA6 0x0E
4) DATA7 0x00

Hiris to Generator Digital Fluoro parameter Set (DIGFLUS)


------------------------------------------------------------------
HRISDFPS 03h HIRIS to GENERATOR DIGITAL FLUORO
MSG.ID = IDF.MPUHIRIS (060h)
MSG.D0 = HRISDFPS (03h)
MSG.D1 = b2..b0 = Working Station (0..4), (7 = CURRENT)
b4..b3 = focus (0 = SMALL, 1 = LARGE)
b7..b5 = mode (0..7)

mode == 0 (CONTINUOUS FLUOROSCOPY)


D2..D7 = don't care (tbd)
Equivalent to FLF1 on IPCbus
or FHDLR on O-XRLink:
Exit FluoroGraphy on specific WS, if WS is
current, activate CONTINUOUS Fluoroscopy

mode == 1 (PULSED FLUOROSCOPY)


D2..D7 = don't care (tbd)
Equivalent to FLF2 on IPCbus
or FHDLR on O-XRLink:
Exit FluoroGraphy on specific WS, if WS is
current, activate PULSED Fluoroscopy

mode == 2 (FLUOROGRAPHY)
D2 = MAX kV
D3 = mA @ 40 kV
D4 = mA @ MAX kV
D5 = pulse width [msec]
D6 = pulse freq. [Hz]
D7 = ToBeDefined

mode == 7" (ENQUIRY)


Enquiry parameters of actual fluoro on WS (0..4)
or (7) current WS
D2..D7 = don't care (tbd)

Вам также может понравиться