IN1 : ANY_NUM / TIME First input
IN2 : ANY_NUM / TIME Second input
Q : ANY_NUM / TIME Result: IN1 - IN2
All inputs and the output must have the same type. In FFLD language, the input rung (EN) enables the operation, and the output rung keeps the same value as the input rung. In IL"Instruction list" This is a low-level language and resembles assembly language, the SUB instruction performs a subtraction between the current result and the operand. The current result and the operand must have the same type.
Q := IN1 - IN2;
(* The subtraction is executed only if EN is TRUE *)
(* ENO is equal to EN *)
Op1: FFLD IN1
SUB IN2
ST Q (* Q is equal to: IN1 - IN2 *)
Op2: FFLD IN1
SUB IN2
SUB IN3
ST Q (* Q is equal to: IN1 - IN2 - IN3 *)
See also
|
Copyright © 2015 Kollmorgen™ |
|