EasyManua.ls Logo

Vector VEC-VA Series - Page 149

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
144
output
IN1
TIME
Divisor
IN2
ANY_INT
divisor
OUT
TIME
Business
program demonstration
Find the quotient of time 5s divided by the integer 2 ;
description
When the contact C000 bit
is ON , the instruction is executed,
and the value of the address V000 is
divided by the value of the
address V001 and stored in V002 .
Execution
result: V000/V001=V002
10.1.11 DIV_T_AN ( division ( time divided by an integer, a
real number ) command )
IL programming language
LD, FBD programming language
Function:
DIV_T_AN
instruction is used to divide time by integer or real operation
LD IN1
DIV_T_AN IN2
ST OUT
ST
programming language
OUT:=DIV_T_AN ( IN1 , IN2 )
Note : IL, ST language programming needs to insert variables IN1, IN2 and OUT or use
constants in the current POU variable worksheet
DIV_T_AN instruction processing data types
Input and
output
Operand type
description
IN1
TIME
Divisor
IN2
ANY_NUM
divisor
OUT
TIME
Business
program demonstration

Table of Contents

Related product manuals