Download SCADAPack3xx C++ Tools User Manual

Transcript
Function Specifications
{
status = FALSE;
}
else
{
// wait for scan to complete
ioNotification(MY_EVENT);
wait_event(MY_EVENT);
}
// read input data from last scan
status = ioRead4203DSInputs(dinData, ainData,
cinData);
// check status of last scan
if(status == FALSE)
{
// insert code to handle the failure here
}
else if (!ioStatus(MT_4203DSInputs, 0, &io_status))
{
// insert code to handle the failure here
}
else if (!io_status.commStatus)
{
// insert code to handle the failure here
}
else
{
fprintf(com2, "status = %u,\
Dins 0 = %X, Ain 2 = %d\r\n",
status, dinData, ainData[2]);
done = TRUE;
}
// sleep processor for 100ms
sleep_processor(100);
}
}
Document (Version 1.70) 5/23/2012
320