$CODEGEN | $CG - PLC bit mode

Language reference ›› Directives ››
Parent Previous Next

codegen-directive = ( $CODEGEN | $CG ) codegen-toggle .
codegen-toggle = code-gen-plc | code-gen-normal .
codegen-plc = ( "1" on-switch ) | PLC .
codegen-normal = ( "1" off-switch ) | NORMAL .


Toggles the special syntax optimized "PLC mode" for bit operations generation.

Bit operations and statements are limited.


Default is 1- / OFF / NORMAL.


WARNING! (V2.0): Previously the short form was $C that is now the $ASSERTIONS short form (Delphi compatibility).



See also: PLC bit expressions and statements.