EasyManuals Logo
Home>Vector>Controller>VEC-VA Series

Vector VEC-VA Series User Manual

Vector VEC-VA Series
649 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #176 background imageLoading...
Page #176 background image
VA Motion Controller Programming Manual
171
When the contact
C300
is
ON
when this
instruction is executed :
execution result
= 1.4142136E + 000
10.1.41 SUB (Subtraction Instruction )
IL programming
language
LD, FBD programming language
Function: The SUB instruction is used to find the difference between two input values.
LD IN1
SUB IN2
ST OUT
ST programming
language
OUT:=IN1-IN2
Note :
IL, ST
language programming needs to insert variables
IN1, IN2
and
OUT
or use
constants in the current
POU
variable worksheet
Data type processed by SUB instruction
Input and
output
type of data
description
IN1
ANY_NUM
First input
IN2
ANY_NUM
Second input
OUT
ANY_NUM
Output, OUT=IN1 - IN2
Funtion and Action examples
Find the value of floating point
number
8.0
minus
5.0
description
When the contact
C300
is
ON
, the
instruction is executed : the value of
the address
V545
is subtracted
from
the value
of
V546
and stored in the address of
V547
:
Execution result:
V545-V546 = V547

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Vector VEC-VA Series and is the answer not in the manual?

Vector VEC-VA Series Specifications

General IconGeneral
BrandVector
ModelVEC-VA Series
CategoryController
LanguageEnglish

Related product manuals