Download INTRODUCTION TO USER MANUAL

Transcript
PComm 32 Pro Software Reference Manual
sprintf(buf,"%11.4lf",my_double);
m_textCommandedC.SetWindowText(buf);
my_double=PmacDPRCommanded(dwDevice,m_SelectedCS,'U');
sprintf(buf,"%11.4lf",my_double);
m_textCommandedU.SetWindowText(buf);
my_double=PmacDPRCommanded(dwDevice,m_SelectedCS,'V');
sprintf(buf,"%11.4lf",my_double);
m_textCommandedV.SetWindowText(buf);
my_double=PmacDPRCommanded(dwDevice,m_SelectedCS,'W');
sprintf(buf,"%11.4lf",my_double);
m_textCommandedW.SetWindowText(buf);
my_double=PmacDPRCommanded(dwDevice,m_SelectedCS,'X');
sprintf(buf,"%11.4lf",my_double);
m_textCommandedX.SetWindowText(buf);
my_double=PmacDPRCommanded(dwDevice,m_SelectedCS,'Y');
sprintf(buf,"%11.4lf",my_double);
m_textCommandedY.SetWindowText(buf);
my_double=PmacDPRCommanded(dwDevice,m_SelectedCS,'Z');
sprintf(buf,"%11.4lf",my_double);
m_textCommandedZ.SetWindowText(buf);
wsprintf(buf,"%d\r\n", PmacDPRProgRemaining (dwDevice,
m_SelectedCS));
m_textProgRemaining.SetWindowText(buf);
wsprintf(buf,"0x%04lx\r\n", PmacDPRPe(dwDevice, m_SelectedCS));
m_textOffsetAddress.SetWindowText(buf);
wsprintf(buf,"%7ld\r\n", PmacDPRTimeRemInMove(dwDevice,
m_SelectedCS));
m_textTIM.SetWindowText(buf);
wsprintf(buf,"%7ld\r\n", PmacDPRTimeRemInTATS(dwDevice,
m_SelectedCS));
m_textTATS.SetWindowText(buf);
my_double= PmacDPRGetFeedRateMode (dwDevice,m_SelectedCS,&myBool);
sprintf(buf,"%11.4lf", my_double);
m_FeedRate.SetWindowText(buf);
}
CDialog::OnTimer(nIDEvent);
}
Using the DPR Variable Background Read/Write Data Buffer
Variable Read Data Buffer
The variable background data buffer can be used to have PMAC copy any of its own internal registers
into the DPR area. The registers copied are specified by using the startup functions discussed below. Up
to 128 registers can be copied.
These routines may work in a multitasking environment, such as Windows. That is, multiple applications
may use the Variable Background Data Buffer (VBGDB) simultaneously (for Prom versions 1.15G and
above only, earlier proms are single user only), although the combined number of registers copied still
remains at 128.
22
DPR Features