You should avoid the BIT datatype, since Beckhoff PC-Based Control does not have the memory constraints that small embedded systems or older PLC-Systems have.
In the Beckhoff documentation is stated that BIT access operations take way longer than normal BOOL access operations.
CPU-Time is a more important resource to take into account, since a faster CPU is way more expensive than a RAM stick (and with a 4gb of RAM you can allocate a lot of BOOLs).
That said, if you want to evaluate a WORD because you want to extract the fault code from it, use a CASE OF statement.
Every CASE is then a type of ERROR which can also be declared as an ENUM Type.
Example for the ENUM:
TYPE E_Error :
(
eNO_ERROR := 0,
eGENERAL_ERROR,
eMOTION_ERROR,
eSAFETY_ERROR
);
END_TYPE
Example for the CASE OF statement:
CASE wError OF
eNO_ERROR:
;
eGENERAL_ERROR:
;
eMOTION_ERROR:
;
eSAFETY_ERROR:
;
END_CASE