App. - 83 App. - 83
APPENDIXES
//**************************
// Read
//**************************
private: System::Void button2_Click(System::Object * sender, System::EventArgs * e)
{
int
iRet;
short
sData[5];
String* szMessage= "";
String*
lpszarrData[];
int
iNumber;
String*
szReadData;
// D0-D4 are read
iRet = axActEasyIF1->ReadDeviceBlock2( "D0", 5, sData );
if( iRet == 0 ){
lpszarrData = new String * [ 5 ];
lpszarrData[0] = "D0-D4 = ";
// Storage of data to display the results
for( iNumber = 0 ; iNumber < 5 ; + )
{
lpszarrData[ iNumber ] = sData[ iNumber ].ToString();
}
szReadData
=
String::Join(",",lpszarrData);
MessageBox::Show(String::Format("D0-D4
=
{0}",szReadData));
} else {
MessageBox::Show( String::Format( "Read Error:0x{0:x8} [HEX]", __box(iRet) ) );
}
}
//**************************
// Disconnection
//**************************
private: System::Void button3_Click(System::Object * sender, System::EventArgs * e)
{
int
iRet;
//
Disconnection
iRet = axActEasyIF1->Close();
if( iRet == 0 ){
MessageBox::Show( "The disconnection was successful" );
} else {
MessageBox::Show( String::Format( "Disconnection Error:0x{0:x8} [HEX]", __box(iRet) ) );
}
}
Содержание MELSEC LJ71C24
Страница 1: ......
Страница 2: ......
Страница 18: ...A 16 A 16 INDEX REVISIONS WARRANTY...
Страница 22: ...A 20 A 20 2 LJ71C24 R2 LJ71C24 R2 Before Using the Product...
Страница 23: ...A 21 A 21 MEMO...
Страница 38: ...4 2 4 2 4 PROCEDURES PRIOR TO OPERATION MEMO 4...
Страница 105: ...7 30 7 30 7 SETTINGS FOR THE C24 MEMO...
Страница 391: ...App 62 App 62 APPENDIXES 3 Refresh parameter setting In Refresh Parameter set the following network parameters...
Страница 425: ......
Страница 426: ......
Страница 427: ......