I N T E R F A C E D E S C R I P T I O N jins85e1-d (1101) Catalog-No. 540-001 540-002 from Software Version 1.
1 General 3 1.1 1.2 Serial RS232 and Field Bus Interfaces RS232 Interface Connecting Cable 3 4 2 RS232 ASCII Interface Protocol 5 2.1 2.2 2.3 2.3.1 2.4 2.4.1 2.4.2 Communication Parameters Command Format List of ASCII Commands Error Messages Examples of programming Accumulation Mode Carrier Gas Mode 3 Using Hyperterm for the ASCII Protocol 3.1 3.2 Communication Parameters Settings for Hyperterm 4 RS232 Binary Interface Protocol 4.1 4.2 4.2.1 4.
Interface Description 1 General 1.1 Serial RS232 and Field Bus Interfaces This Interface Description explains how to configure, operate and control T-Guard™ Leak Detection Sensor via serial RS232 or field bus (e.g. Profibus). For using the field bus module nothing has to be changed in the T-Guard menu. Field Bus is only available with units already having a field bus interface module. It is not possible to add field bus to a non-field-bus T-Guard unit.
1.2 RS232 Interface Connecting Cable Pin 2 3 5 Name RxD TxD GND Signal Receive data (T-Guard™ → PC) Transmit data (PC → T-Guard™) Reference Ground Interface Description The RS232 interface is wired as data communication equipment (DCE). T-Guard™ Leak Detection Sensor provides a 9-way sub-D socket for the connector. The signals are assigned as follows: The other pins are not being used.
2 RS232 ASCII Interface Protocol Interface Description The RS232 ASCII protocol is similar to the SCPI, a standard protocol widely used for measurement equipment. 2.1 Communication Parameters Data Format baudrate data bits parity stop bits flow control 2.2 19,200 or 9,600 8 none 1 none Command Format In ASCII mode any command starts with “ * “ (ASCII code 42 dec) and is finished with CR+LF. There is no differentiation between upper and lower case.
2.3 List of ASCII Commands RS232 ASCII Interface Protocol Command word1 Command Command word2 word3 Parameter *CAL Statement Read Set :START :UNIT Response – only external calibration possible :LEAKrate Example S *CAL:START leak rate of test leak R S *CAL:LEAK? *CAL:LEAK 2.4E-5 1.
jins85e1 2.
read or write parameter – accumulation volume in chosen unit ( 0.01.. 10000 liters and equivalent) S R *CONF:AV 1.2 *CONF:AV? OK 1.2 permit calibration ( on / off ) S R *CONF:CALA ON *CONF:CALA? OK ON :CALFac calibration factor ( 0.1 .. 10 ) S R *CONF:CALF 1.1 *CONF:CALF? OK 1.1 :CarFlow carrier gas flow in chosen unit ( *CONF:UNIT:FU? ) S R *CONF:CF 1000 *CONF:CF? OK 1000 *CONFig :AccVol RS232 ASCII Interface Protocol :CALAccess :CONTRAST 0 ..
jins85e1 2.fm Command word1 *CONFig (1101) Command word2 Command word3 :HEPERcent Interface Description Parameter Statement Read/ Set Example Helium percentage 10 ..
Command word1 *CONFig Command word2 Command word3 Parameter :PLCOUTLINK Statement PLC output link for one pin RS232 ASCII Interface Protocol :
jins85e1 2.fm Command word1 *CONFig (1101) Command word2 Command word3 Interface Description Parameter :RECorder :LINK1_2 :LINK3_4 :SCALE1_2 :SCALE3_4 :upperEXP1_2 Statement Read/ Set read/write proof leak – analog output 1: – para = OFF, P1, MANT, EXP, LR_LIN, LR_LOG, CUR_LIN, CUR_LOG S R analog output 2: – para = OFF, P1, MANT, EXP, LR_LIN, LR_LOG, CUR_LIN, CUR_LOG S R ascent for logarithmic analog output 1..2: – para = 0.5V/DEC, 1V/DEC, 2V/DEC, 2.
Command word1 *CONFig Command word2 :TIME Command word3 :AUTo Parameter RS232 ASCII Interface Protocol :AUToPurge :MEASure :PURGE :WaitPurge jins85e1 2.fm (1101) Statement Read/ Set automatic setting of times – b: enable = 1; disable = 0 S R automatic purge in accumulation mode – b: enable = 1; disable = 0 S R total measurement time – value = 0 .. 300 sec S R purge time in accumulation mode – value = 1..
jins85e1 2.fm Command word1 *CONFig (1101) Command word2 Command word3 Interface Description Parameter :TLRate Statement Read/ Set S R *CONF:TLR 3.7E-4 *CONF:TLR? OK 3.70E-4 *CONF:TLR:MBAR*L/S 3.5E-4 *CONF:TLR:MBAR*L/S? OK 3.50E-4 *CONF:TRIG1:MBAR*L/S 5.5E-5 *CONF:TRIG1:MBAR*L/S? OK 5.
Command word1 *CONFig Command word2 :UNIT Command word3 Parameter :FlowUnit RS232 ASCII Interface Protocol :LR :Pressure :TLUnit :VolUnit Statement Read/ Set unit of the carrier gas flow – unit = sccm or l/s S R leak rate unit – unit = SCCM; MBAR*L/S; PA*M3/S; ATM*CC/S; TORR*L/S S R pressure unit – unit = MBAR; PA; ATM; TORR S R unit of the external test leak – – unit = LITER; CUBICIN; CUBICFT; CCM S R *END interrupt or stop measurement and switch t
jins85e1 2.fm Command word1 (1101) Command word2 Command word3 Interface Description Parameter *IDN Statement Read Set Response identification of the unit – :DEVice name of the unit R *IDN:DEV? T-Guard :VERsion Software version R *IDN:VER? 1.30.00 :SERial serial number of the unit R *IDN:SER? <11 digits> serial number of the WISE Technology Sensor R *IDN:WS? <11 digits> Purge the measurement line with valves in GROSS configuration, may stop with Warning 45.
Command word1 Command word2 Command word3 Parameter *STATus Statement RS232 ASCII Interface Protocol read status of the unit deprecated! Use STAT:MEAS instead! Read / Set Example Response R INIT, START, MEAS, CAL, ERROR, ADJUST, STANDBY, OVERRANGE :BackGND report helium background quality Possible values = OK, Moderate, Bad R :CALHist calibration history – no = 1 ..
2.3.1 Error Messages Interface Description The following error messages may be received from T-Guard: 2.
Accumulation Mode 2.4.1.1 Performing a calibration Every command must be terminated by the two bytes Carriage Return (CR, ASCII 13, \r) and Line Feed (LF, ASCII 10, \n), in this order. The response you receive from T-Guard will also be terminated like this. Command sent to T-Guard Response received from HLD5000 Interface Description 2.4.
2.4.1.
Carrier Gas Mode 2.4.2.1 Performing a calibration Every command must be terminated by the two bytes Carriage Return (CR, ASCII 13, \r) and Line Feed (LF, ASCII 10, \n), in this order. The response you receive from T-Guard will also be terminated like this.
2.4.2.2 Measurement Cycle Command sent to T-Guard Response received from HLD5000 Content *STAT? *STAT:MEAS? *CONF:MODE CARGAS *CONF:TRIG2ON OFF *CONF:TIME:AUT ON *CONF:UNIT:FU SCCM *CONF:CF 30000 *CONF:TRIG1:MBAR*L/S 1E-3 *CONF:TIME:MEAS? MEAS READY OK OK OK OK OK OK status of the unit last measurement finished switch to carrier gas mode turn off trigger 2 turn on automatic times set flow unit to sccm set carrier gas flow to 30000 set trigger 1 to 1E-3 mbar*l/s 5.
Using Hyperterm for the ASCII Protocol 3.1 Communication Parameters Data Format Bits per second Data bits Parity Stop bits Flow control 3.2 19200 or 9600 8 None 1 None Interface Description 3 Settings for Hyperterm This section describes which settings one should choose to talk to T-Guard™ Leak Detection Sensor via Hyperterm. You can start Hyperterm in Windows by clicking: Start → Run … And typing: hypertrm (1101) and hitting the Enter key. jins85e1 3.fm Fig.
Interface Description Fig. 3-4 Choose these settings for the connection. jins85e1 3.fm (1101) Fig. 3-3 Choose the serial port to which T-Guard™ Leak Detection Sensor is connected via the RS232 cable.
Interface Description (1101) Fig. 3-5 You do not have change anything in this window. Click on “ASCII Setup”. Fig. 3-6 This is a convenient ASCII setup. Now you can type: *stat? After hitting the Enter-Key you will get an answer. jins85e1 3.fm Also see section 2.4: Examples.
Interface Description 4 RS232 Binary Interface Protocol The binary protocol is machine readable, secure and fast. INFICON also uses this for analysis in its quality control and trouble shooting during manufacturing and service. 4.1 Communication Parameters Data Format baudrate float unsigned long int [ul int]: unsigned short int [usint]: signed short int unsigned char [uchar]: unsigned char [uchar]: stop bit 4.
4.2.1 Command List Binary Mode Description Fore vacuum pressure 5 8 Get Device ID Get Version Device type Software version 10 Get Valves Valves status 16 38 Get Contrast Get Min Since Start Display contrast Uptime 44 Get Status Gets status 52 53 54 START STOP Get Cal State Starts measurement Stops measurement Gets calibration state Parameter Byte 0: unit 0=mbar 1=Pa 2=atm 3=Torr Data Pressure [float] 40=T-Guard Byte 0=main version Byte 1=sub version Unsigned int.
Interface Description Name Start Cal 56 Get Trigger 57 Set Trigger 58 Get Mode Description Parameter Performs calibration, no need to confirm afterwards. Please check new calibration factor separately. Trigger value Byte 0: 1=Trigger 1 2=Trigger 2 Byte 1: 1=sccm 3=mbar l/s 4=Pa m³/s 5=atm cc/s 6=Torr l/s Trigger value Byte 0: 1=Trigger 1 2=Trigger 2 Byte 1: 1=sccm 3=mbar l/s 4=Pa m³/s 5=atm cc/s 6=Torr l/s Bytes 2..
68 Get Run Hours Basic Uptime Basic 70 Get Serial Number Serial number of device 72 Get Mode Operation mode 74 Get Press Limit Low/ Get pressure limits High 75 Set Press Limit Low/ Set pressure limits High 78 79 90 Get Cal Fac Get calibration factor Set Cal Fac Set calibration factor Factor [float] Get Program Version Software version 97 Get Filtered Ion Current Get Unfiltered Ion Current Get Leak Rate 99 28 Parameter Byte 0: 0=test leak 1=proof leak Byte 1: 3=mbar l/s 4=Pa m³/s 6=Torr l/s
Interface Description (1101) jins85e1 4.fm No.
Description Parameter Background Info from Display Unit 144 GetCalEnable 145 SetCalEnable 152 Get Stat Gets status 154 Get Trigger2 ON 155 Set Trigger2 ON Read if Trigger 2 is enabled Enable Trigger 2 156 CopyParaSet 160 Get Acc Vol 161 Set Acc Vol 162 Get Car Flow 163 Set Car Flow 174 Get Gross 175 Set Gross Byte0: 0 = disable 1 = enable 1=Trigger Status Data 0=OK 1=moderate 2=bad 0 = disabled 1 = enabled Bit0 (1)=Trigger1 has been exceeded Bit1 (2)=Trigger2 has been exceeded B
Name Get Standby Delay Description Read Standby delay time Parameter 177 Set Standby Delay Set Standby delay time Byte 0: 0=10 s 1=30 s 2=1 min 3=2 min 4=5 min 5=10 min 6=30 min 7=60 min 8=off 187 Get IO Ports Out IO Port (output) 188 Get IO Ports In IO Port (input) 189 Start Standby or Purge 190 Get Times Auto 191 Set Times Auto 194 Get Value 195 Set Value Data 0=10 s 1=30 s 2=1 min 3=2 min 4=5 min 5=10 min 6=30 min 7=60 min 8=off Byte0, Bit0 Pin 8 Byte0, Bit1 Pin 9 Byte0, Bit2 Pin
No. 231 232 Name RS232disabled RS232Invalid 234 235 240 243 244 252 253 254 RS232PW2disable RS232CmdFailed RS232Cmd RS232Len RS232Para RS232Start RS232Checksum RS232Timeout 255 RS232Buffer Explanation Control location is not RS232 Command currently not allowed (i.e.
Profibus-DP Protocol 5.1 Preface Interface Description 5 In order to use Profibus-DP with T-Guard, you must have ordered a T-Guard in the Profibus version (Cat. No. 540-002). It is not possible to add the Profibus option to Cat. No. 540-001. When setting up the Profibus communication you need to use the GSD file provided by INFICON. 5.2 Process Data Mapping for Cyclic Data Transfer 5.2.
5.2.2 Write Process Data (Leak Detector -> PLC) Byte Bit 0 1 Name Error Warning Meaning 1=Yes, 0=No 1=Yes, 0=No CAL Status 0=NO CAL RUNNING 1=T<20 MIN, CONFIRM 2=CAL RUNNING, WAIT 3=CAL FINISHED 4=CAL FINISHED, CONFIRM 5=PROOF RUNNING, WAIT 6=PROOF FINISHED 7=PROOF FINISHED, CONFIRM Purge 0=inactive 1=active Background 0 = good 1 = medium 2 = bad 2 3 0 Similar to PLC Output ERROR WARNING Similar to RS232 ASCII cmd.
5.3 Acyclic Data Transfer Important Note: Interface Description If you want to use acyclic data transfer with Profibus, you must use a Profibus master which supports DPV1 data transfers. A Profibus master which supports DPV0 only, can only use cyclic data transfer. 5.3.1 Addressing Rules for Acyclic Access Fieldbus jins85e1 4.
5.3.2 Application Data Instances 36 Name Pressure Device ID Hardware Version LCD contrast Cal. Factors Min. since start Offset current State Cal. state Trigger [mbar*l/s] Error Code Test leak leak rate [mbar*l/s] Proof leak leak rate [mbar*l/s] Operation hours [0.1h] Serial No. State Pressure limit Low/High [mbar] Serial no.
Hardware Configuration Interface Description 5.4 Important Note: Sequence of the data words (slots) must be: Output at first, inputs at second. • One or two words are accessible at once. • Output and inputs must have the same memory start address. jins85e1 4.
Assignment of the Profibus Address Interface Description 5.4.1 The Profibus address has to be assigned with the hardware configuration tool. After downloading the configuration to the PLC system, the address of the T-Guard™ Profibus Client can be chosen like shown above. Diagnosis with the T-Guard™ Info Menu The current state of the T-Guard™ Profibus client is to be seen in the menu: (1101) 5.4.
Profibus-DP Protocol 39 jins85e1 4.
INFICON GmbH, Bonner Strasse 498, D-50968 Cologne, Germany UNITED STATES TAIWAN JAPAN KOREA SINGAPORE GERMANY FRANCE UNITED KINGDOM HONG KONG Vi sit o ur we bsi t e fo r con t act i nfo rm ati on an d o t her sal es o ffice s wo rl dw id e. w w w . i n f i c o n .