beautypg.com

ETS-Lindgren 2090 Controller User Manual

Page 81

background image

Model 2090 Multi-Device Controller

'

ibwrt Tower%, "ST" ' Stop tower
ibwrt Table%, "ST" ' Stop turntable
ibonl Tower%, 0 ' Free tower's GPIB port
ibonl Table%, 0 ' Free turntable's GPIB port

Note the use of semicolons to combine more than one

GPIB command on the same line. Any string of commands

can be combined, but only the last query command in the

string will be returned for a read. Motion commands will

be performed in order just as they would if sent separately.

Thus sending "UP;DN" would start the device in the up

direction and immediately reverse to the down direction.

Sending “UP;*WAI;DN” would cause the Model 2090 to

go to the upper limit and then go down to the lower limit

once there, but since the *WAI command halts all GPIB

command activity until the current motion is complete, it is

not possible to monitor the current position or anything else

while the device is in motion. For this reason, the *OPC?

command (or other related commands) is recommended for

this purpose.


Refer to the programming example in the next section for

more advanced programming options, including the use of

subroutines to reduce the size of program code.


©ETS-Lindgren, April 2006

81

Revision G– P#399199