YASKAWA NX100 Especificaciones Pagina 24

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 186
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 23
25/201
Create an edit control to input the job name, and name the ID “IDC_JOBNAME.”
Create a pushbutton for sending, and name the caption “Send” and the ID “IDC_DOWNLOAD.”
Create a pushbutton for receiving, and name the caption “Receive” and the ID “IDC_UPLOAD.”
6.3.2.4 Addition of Functions and Variables
Open the TestDLg.h file to add the following function declaration.
short TestOpenComm( int mode );
short TestCloseComm( short ncid );
Create a function “CTestDlg::TestOpenComm” to open the communications port.
Create a function “CTestDlg::TestCloseComm” to close the communicatinos port.
Create a function “CTestDlg::OnDownload” for BN_CLICKED message in Class Wizard using the
[Send] pushbutton (IDC_DOWNLOAD).
Create a function “CTestDl::OnUpload” for BN_CLICKED message in Class Wizard using the
[Receive] pushbutton (IDC_UPLOAD).
Add variable “m_jobname” in Class Wizard by Cedit type for inputting characters of the job name
edit control (IDC_JOBNAME).
After adding the functions, write the code in each function.
CTestDlg::TestOpenComm function
CTestDlg::TestCloseComm function
CTestDlg::OnDownload function
CTestDlg::OnUpload function
In the transmission application creation procedure Help, select “Creation procedure in Visual C++,”
“Addition of functions and variables,” and then “CTestDlg::TestOpenComm function” to select the data
part (program list) of the above function. Use “Partial Copy” to copy this section to
CTestDlg::TestOpenComm() function. Repeat for CTestDlg::TestCloseComm, CTestDlg::OnDownload,
and CTestDlg::OnUpload.
Vista de pagina 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 ... 185 186

Comentarios a estos manuales

Sin comentarios