{"id":"iec-not","model_id":"NOT","name":"CODESYS NOT","summary":"NOT is an IEC bitwise operator that inverts each bit of its operand. An input bit of 0 produces an output bit of 1, and an input bit of 1 produces 0. It is written in Structured Text as, for example, Var1 := NOT 2#1001_0011; and can also be represented in FBD.","study_notes":["Permitted data types: BOOL, BYTE, WORD, DWORD, LWORD.","The operator performs a bitwise NOT on a bit operand.","Example: Var1 := NOT 2#1001_0011; gives the result in Var1: 2#0110_1100.","The operator is shown in both ST and FBD representations."],"safety_notes":[],"sources":[{"url":"https://infosys.beckhoff.com/content/1033/tc3_plc_intro/2528902283.html","title":"Beckhoff Information System","accessed":"2026-10-26"},{"url":"https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_operator_not.html","title":"CODESYS Group","accessed":"2026-10-26"}],"verification":{"status":"source_checked","checked_at":"2026-10-26","values":2,"method":"llm_source_check"},"updated_at":"2026-10-26","type":"instruction","spec":{"language":"iec_61131_3","code":"NOT","group":"bitwise","parameters":[],"dialect":"CODESYS","related":[],"standards":[]},"url":"https://machineschema.com/instruction/iec-not","license":"https://creativecommons.org/licenses/by/4.0/"}