State table configuration example – Micromod MOD: 30ML Functions Data Base Reference User Manual
Page 125

MOD 30ML Functions
CONFIGURATION EXAMPLES
State Table Configuration Example
The following is a listing of the state table definitions as included in the default state table
block and found in the external file STATE.TXT. This file is sufficient for the basic PID
compound.
/* Sample State Tables */
/* Output Mode Status (PID.OPMS) */
opmsD, 3, "???"
{
0, "MAN";
1, "AUT";
3, "TRK";
5, "FLT";
}
/* Output Mode Restart Value (PID.OPMRV)*/
opmrvT, 8, "????????"
{
0, "MAN";
1, "AUT";
4, "PREVIOUS";
}
/* Setpoint Mode Status (PID.SPMS) */
spmsD, 3, "???"
{
0, "LOC";
1, "REM";
3, "TRK";
5, "FLT";
}
/* Setpoint Mode Restart Value (PID.SPMRV)
*/
spmrvT, 8, "????????"
{
0, "LOC";
1, "REM";
4, "PREVIOUS";
}
/* Suppress Calculation Error
(PAD.SUPPRESS) */
EnaSuppT, 8, "????????"
{
0, " ENABLE";
1, "SUPPRESS";
}
/* Tune Request Type */
TuneReqT, 8, "????????"
{
0, "TUNE ???";
1, " CONTROL";
2, " ALARM";
}
/* Control Algorithm Type (PID.CATYPE)
*/
PidTypT, 4, "????"
{
2, "EOOO";
4, "OSOO";
5, "PSOO";
6, "ESOO";
8, "OMOO";
9, "PMOO";
10, "EMOO";
18, "EOPO";
21, "PSPO";
22, "ESPO";
25, "PMPO";
26, "EMPO";
34, "EOEO";
38, "ESEO";
42, "EMEO";
66, "EOOE";
82, "EOPE";
98, "EOEE";
}
/* Control Action (PID.ACTION) */
PidActT, 8, "????????"
{
0, " REVERSE";
1, " DIRECT";
}
/* Input Filter Type (PID.FILTYPE) */
PidFlTyT, 8, "????????"
{
0, "NONE";
1, "PRE AUTO";
2, "PRE USER";
3, "PRO USER";
}
/* Feedforward Calculation Type
(PID.FFCTYPE) */
PidFfTyT, 8, "????????"
{
0, " NONE";
1, " ADD";
2, " MULT";
}
/* Data Quality */
QualityT, 3, "???"
{
0, " OK";
1, "BAD";
}
3-31