0% found this document useful (0 votes)
15 views2 pages

Calculo Linea

1. This document describes a CalculoLinea FB2 function block with inputs, outputs, and internals. 2. The function block contains inputs for initial and final values, an output for the result, and internals including booleans, integers, and timer instances to perform timing functions. 3. The function block contains two networks - one to convert an input to an integer for use in timing, and one to use a timer instance to track time and control an output based on the converted integer value.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views2 pages

Calculo Linea

1. This document describes a CalculoLinea FB2 function block with inputs, outputs, and internals. 2. The function block contains inputs for initial and final values, an output for the result, and internals including booleans, integers, and timer instances to perform timing functions. 3. The function block contains two networks - one to convert an input to an integer for use in timing, and one to use a timer instance to track time and control an output based on the converted integer value.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

1 2 3 4

CalculoLinea [FB2]
CalculoLinea Properties
A A
General
Name CalculoLinea Number 2 Type FB Language LAD
Numbering Automatic
Information
Title Author Comment Family
Version 0.1 User-defined
ID

Name Data type Default value Retain Accessi‐ Writ Visible in Setpoint Supervi‐ Comment
ble from able HMI en‐ sion
HMI/OPC fro gineer‐
UA m ing
B HMI B
/OP
C
UA
Input
ta Real 0.0 Non-retain True True True False
NdesInicial Real 0.0 Non-retain True True True False
NdesFinal Real 0.0 Non-retain True True True False
Output
Salida Real 0.0 Non-retain True True True False
InOut
C C
Pint Bool false Non-retain True True True False
Pout Bool false Non-retain True True True False
Static
P1 Bool false Non-retain True True True False
ta_conv DInt 0 Non-retain True True True False
ta_trans DInt 0 Non-retain True True True False
ta_trans_conv Real 0.0 Non-retain True True True False
IEC_Timer_0_Instance TON_TIME Non-retain True True True False
PT Time T#0ms Non-retain True True True False
ET Time T#0ms Non-retain True Fals True False
D e D
IN Bool false Non-retain True True True False
Q Bool false Non-retain True Fals True False
e
IEC_Timer_0_Instance_1 TON_TIME Non-retain True True True False
PT Time T#0ms Non-retain True True True False
ET Time T#0ms Non-retain True Fals True False
e
IN Bool false Non-retain True True True False
Q Bool false Non-retain True Fals True False
e
E Temp E
Constant

Network 1: Ingreso a la subred y conversion de la variable ta de un real a un Dint

CONV
#Pint Real to DInt #P1
EN ENO S
#ta IN OUT #ta_conv
#Pint
R

F F

Network 2: Temporizador con el que se lleva el tiempo actual de la salida

#IEC_Timer_0_
Instance
TON
#P1 Time #Pout
IN Q S
#ta_conv PT ET #ta_trans
#IEC_Timer_0_
G Instance G
RT

#P1
R

Owner Project name PracticaMotor Date 6/16/2022


Project path 11:34:54 PM
H D:\Escritorio\Laboratorio Motor H
Operator

Location

Designed By Description 1st

Checked By Description 2nd Language en-US


Approved By 1st View Version Sheet
1-1
1
1 2 3 4

Network 3: Conversion de Dint a Real de la variable actual del tiempo del contador

CONV
#P1 DInt to Real
A A
EN ENO
#ta_trans IN OUT #ta_trans_conv

Network 4: Calculo de la linea recta

CALCULATE
#P1 Real
EN ENO

OUT := ((IN2-IN1)/IN3)*IN4+IN1
B B
#NdesInicial IN1 OUT #Salida
#NdesFinal IN2
#ta IN3
#ta_trans_conv IN4

Network 5:

%M1.3
C "Paro_Auto" #Pout C
S

#IEC_Timer_0_
Instance
RT

#P1
R

#Pint
R

D D

E E

F F

G G

Owner Project name PracticaMotor Date 6/16/2022


Project path 11:34:54 PM
H D:\Escritorio\Laboratorio Motor H
Operator

Location

Designed By Description 1st

Checked By Description 2nd Language en-US


Approved By 1st View Version Sheet
1-2
1

You might also like