Echelon FTXL User Manual

Page 222

Advertising
background image

210

Example FTXL Applications

{
/* Actuator was disabled, but is now
* enabled. Process current input values.

*/

processActuatorInputs = TRUE;
}
LON_SET_ATTRIBUTE(FbStatus[i], LON_DISABLED,

0);

}
break;


default:
/* Mark all other requests as invalid */

LON_SET_ATTRIBUTE(nvoStatus,

LON_INVALIDREQUEST, 0);
reportStatus = FALSE;
}
if (reportStatus) {

/* Report the current status of the functional

* block */
nvoStatus = FbStatus[index];
}
}

/* Propagate the value of nvoStatus */

if (LonPropagateNv(LonNvIndexNvoStatus) !=
LonApiNoError) {

/* Handle error here, if desired. */

}

/* The actuator was disabled, but has been enabled.

* Process its input values.

*/

if (processActuatorInputs) {

ProcessNviVoltUpdate();

}

break;

}

case LonNvIndexNviVolt:

{

/* nviVolt has been updated. Process it unless the

* FB is disabled.

*/

ProcessNviVoltUpdate();

break;

}

/* Add more input NVs here, if any */

default:

if (nvIndex >= LON_STATIC_NV_COUNT &&

circuitMap[nvIndex].isInput) {
/* This may be a circuit input. If so, update the
* circuit output.

*/
UpdateCircuitOutput(circuitMap[nvIndex].circuitId);
}

Advertising