31.21.4.4 System Variables Indicating Execution Results - DECO/DECOP

Program Example

DECO

Converts a constant and stores the converted value in the result data.

  1. When the positive transition instruction turns ON, the DECO instruction will be executed. When the DECO instruction is executed, 0000 1000 (8 in hexadecimal) is converted and the binary value 1 0000 0000 is stored in D1.
    When using a normally open instruction, the DECO instruction is always executed as long as the normally open instruction variable remains ON.

DECOP

  1. The DECOP and DECO instructions have different ways of detecting when to execute. In the DECOP instruction, only the upward transition is detected and the DECO instruction is executed even when using a normally open instruction. Even if the normally open instruction variable remains ON, the DECOP instruction is executed only for one scan.
    For example, when 3 is input in S1, the output D1 becomes 8.