new tecs version M.Z.08.2001
This commit is contained in:
@@ -9,7 +9,7 @@ c M. Zolliker, March 2000
|
||||
c Updates:
|
||||
c V01A 21-Mar-2000 DM. Integrate into TASMAD
|
||||
c 05-Apr-2000 M.Z. modifed error handling/changed arguments in TeccGet3
|
||||
c 01-May-2000 M.Z. renamed source, TECS_OPEN is now in a separate, system dependend file
|
||||
c 01-May-2000 M.Z. renamed source, TECS_OPEN is now in a separate, system dependent file
|
||||
c V01C 11-May-2000 DM. Split into modules.
|
||||
c V01D 12-May-2000 M.Z. Changed error handling, no longer automatic call to TECS_OPEN
|
||||
c------------------------------------------------------------------------------
|
||||
@@ -102,11 +102,18 @@ c extract the port number from the start command
|
||||
i=index(init, '-p ')
|
||||
if (i .eq. 0) i=index(init, '-P ')
|
||||
if (i .ne. 0) then
|
||||
read(init,*,iostat=ios) port
|
||||
read(init(min(len(init),i+3):),*,iostat=ios) port
|
||||
endif
|
||||
|
||||
if (port .eq. 0) port=9753
|
||||
iret=tecs_init(init, port)
|
||||
|
||||
if (init(1:1) .eq. '#') then
|
||||
i=index(init, '-')-1
|
||||
if (i .le. 0) i=len(init)
|
||||
else
|
||||
i=len(init)
|
||||
endif
|
||||
iret=tecs_init(init(1:i), port)
|
||||
|
||||
else
|
||||
|
||||
@@ -131,7 +138,7 @@ c if INIT exists, read it to get the port number and the start command
|
||||
end
|
||||
|
||||
SUBROUTINE TECS_GET_T (IOLUN, TEMP, IRET) !!
|
||||
!! ============================================
|
||||
!! =========================================
|
||||
!!
|
||||
!! Get temperatures and wait if TECS is configuring
|
||||
!!
|
||||
@@ -152,18 +159,18 @@ c------------------------------------------------------------------------------
|
||||
return
|
||||
endif
|
||||
if (iret .gt. 0) then
|
||||
write(iolun, *) 'configuring temperature controller ...'
|
||||
iret=tecs_wait()
|
||||
if (iret .lt. 0) then
|
||||
call err_txt('tecs_wait'//char(10)//'tecs_get_t')
|
||||
return
|
||||
endif
|
||||
write(iolun, *) '... done'
|
||||
iret=tecs_get3(temp(1), temp(3), temp(2)) ! temp(2) and temp(3) are exchanged in MSHOWT
|
||||
if (iret .lt. 0) then
|
||||
call err_txt('tecs_get3(2)'//char(10)//'tecs_get_t')
|
||||
return
|
||||
endif
|
||||
! write(iolun, *) 'configuring temperature controller ...'
|
||||
! iret=tecs_wait()
|
||||
! if (iret .lt. 0) then
|
||||
! call err_txt('tecs_wait'//char(10)//'tecs_get_t')
|
||||
! return
|
||||
! endif
|
||||
! write(iolun, *) '... done'
|
||||
! iret=tecs_get3(temp(1), temp(3), temp(2)) ! temp(2) and temp(3) are exchanged in MSHOWT
|
||||
! if (iret .lt. 0) then
|
||||
! call err_txt('tecs_get3(2)'//char(10)//'tecs_get_t')
|
||||
! return
|
||||
! endif
|
||||
endif
|
||||
temp(4)=0.0 ! no auxilliary sensor
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user