4. Motion Control Instruction 4.6.3. ADD_R Explanation of the instruction: ADD_R is used for addition operation of 32-bit floating numbers. 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: 4.6.4. SUB Explanation of the instruction: SUB is used for subtraction operation of 16-bit integers. As EN is on, subtract S2 from S1 and their result value is saved in D register. Explanation of input and output parameter of the instruction:
4-108 DVP-MC operating manual API Addition of floating number Controller ADD R 130 _ 10MC11T Parameter Data Available Explanation name type device EN “Add R” instruction is executed as “EN” turns on _ BOOL M,I,Q, constant S1 Augend REAL Constant, D S2 Addend REAL Constant, D D Sum REAL D API Subtraction of 16-bit integer Controller SUB 131 10MC11T Parameter Data Available Explanation name type device EN “SUB” instruction is executed as “EN” turns on BOOL M,I,Q, constant S1 Minuend INT Constant, D S2 Subtrahend INT Constant, D D Remainder INT D