4. Motion Control Instructions 4.6. Logic Instruction 4.6.1. ADD ADD is used for addition operation of 16-bit integers. As EN is on, add S1 to S2 and their sum value is saved in D register. Explanation of the instruction: Explanation of input and output parameter of the instruction 4.6.2. ADD_DI Explanation of the instruction: ADD_DI is used for addition operation of 32-bit integers. As EN is on, add S1 to S2 and their sum value is saved in D register. Explanation of input and output parameter of the instruction:
DVP-MC operating manual 4-107 API Addition of 16-bit integer Controller ADD 128 10MC11T Parameter Available Explanation Data type name device EN “Add” instruction is executed as “EN” is on. BOOL M,I,Q, constant S1 Augend INT Constant, D S2 Addend INT Constant, D D Sum INT D API Addition of 32-bit integer Controller ADD DI 129 _ 10MC11T Parameter Data Available Explanation name type device EN “Add DI” instruction is executed as “EN” turns on _ BOOL M,I,Q, constant S1 Augend DINT Constant,D S2 Addend DINT Constant, D D Sum DINT D