EasyManua.ls Logo

Vector VEC-VA Series

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
Loading...
VA Motion Controller Programming Manual
161
10.1.30 MUL_T_R ( multiplication ( time multiplied by
real number ) instruction )
IL programming language
LD, FBD programming language
Function: The MUL_T_R instruction is used to calculate the product of a time type data anDA
floating point type data.
LD IN1
MUL_T_R IN2
ST OUT
ST programming language
OUT:=MUL T-R ( IN1
,
IN2 )
Note :
IL, ST
language programming needs to insert variables
IN1, IN2
and
OUT
or use
constants in the current
POU
variable worksheet
MUL_T_R data processing instruction type
Input and output
type of data
description
IN1
(
T_IN
)
TIME
First input, time
IN2
(
R_IN
)
ANY_NUM
Second input, floating point number
OUT ( MUL_T_R )
TIME
Product, OUT=IN1*IN2
Funtion and Action examples
Find the time
T #5s
multiplied
by the value of floating point
6.0
description
When the contact
C300
is
ON
, the
instruction is executed, and the value of the
address
V5 14
is multiplied by the value
product in the address
V5 15
and stored
in
V51 6
:
Execution result:
V514 * V5 15 =V5 16
10.1.31 NE (not equal to the instruction )
IL programming
language
LD, FBD programming language
Function: The NE command is used to judge the magnitude relationship between two
values. When the first input is not equal to the second one, the output is 1 and the others are 0.
LD IN1
NE IN2
ST OUT

Table of Contents

Related product manuals