Remote Mode Setup - KEPCO BOP 1000W Operator's Manual

High power bipolar power supply
Hide thumbs Also See for BOP 1000W:
Table of Contents

Advertisement

#include <formatio.h>
#include <utility.h>
#include <gpib.h>
#include <ansi_c.h>
/*Overhead for the use of a NATIONAL INSTRUMENTS gpib interface */
int unit_desc;
int GPIbus=0;
int adr=6;
char status_byte;
#define MAV 0x10 /* bit 4 of the status byte is the Message AVailable bit by 488.2 specification */
/* Function
Send_with_wait
INPUT: string to be sent to power supply
Description: adds the *OPC? query and performs serial polls to wait for the command to be completed.
*/
int Send_with_wait(char *command);
char snd[501];
char rcv [10];
int j;
sprintf(snd,"%s;:*OPC?,command);
Send(GPIbus, adr, snd, strlen(snd), 2);
for (j=0;j<500;j++)(
Delay(.05);
ibrsp(unit_desc,&status_byte);
if ((status_byte& 0x10) ==0x10) break;)
Receive (GPIbus, adr, rev, rev_buf_size,10);
}
main(
unit_desc=ibdev(GPIbus,adr,adr/256,T100ms,1,0x40a);Delay(.005);
Send (GPIbus,adr,"VOLT 10;curr .01",sizeof("VOLT 10;curr .01"),NLEND;
Send_with_wait("*SAV 10");
}
FIGURE 3-16.
PROGRAMMING EXAMPLE TO VERIFY PREVIOUS COMMAND HAS COMPLETED
3.5.3

REMOTE MODE SETUP

When either of the two interface ports are in use, PAR's 3.5.3.1 (GPIB), 3.5.3.2 and (RS 232)
describe how to configure the port to meet the user's requirements.
The BOP can be conveniently substituted for a standard BOP that is currently being used with
one of Kepco's BIT cards by using one of the Compatibility Modes provided (see PAR. 3.5.3.4
and 3.5.3.5.
The SYSTem:SET and SYSTem:LANGuage commands can be used to configure the BOP to
operate in a manner consistent with earlier models of Kepco's 100W, 200W and 400W BOP
power supplies.
BOP HIPWR 080709
// handle for the national instruments controller
// GPIB card 0
// Power Supply address
// status byte from the power supply
// data to be sent to the power supply
// data from power supply
// Add *OPC? to the command
// so there is a response from the
// power supply
// Send the data to the power supply
// loop until ready (5 seconds max)
// Wait for command to complete
// get status byte
// by looking for data in string
// so the error queue will not receive a 410 error
// test code to show operation of function.
3-43

Advertisement

Table of Contents
loading

Table of Contents