ldvon

	lvalue.l4.v = LDVON(status_data.i4.r, pdb.i1a.r, error.i2.r
			    [,status_text.i1a.r])

	This routine determines device on/off status.
                            
	lvalue		returned on/off status
			(TRUE (-1) -> device is on,
			 FALSE (0) -> device is off)
	status_data	unprocessed basic status from device
	pdb		Process Data Block array for the device and status
			property from the database
	error		returned error code
			(0 -> success,
			 -1 -> on/off attribute is not defined)
	[status_text]	returned status text (4 characters)
			(use with FORTRAN CHARACTER*4 via %REF(char)).
			(The text is either "ON  " or "OFF ".)
			(default is NULL)

	This function requires the following include files:

	cnsparam_h, clib_h

	Related functions:

	LDVRDY, LDVREM, LDVPOS, ldvramp

	C/C++ usage:

	char	status_text[4];
	char	*pdb;
	short	error;
	int	lvalue;
	int	status_data;

	lvalue = LDVON(&status_data,pdb,&error,status_text);