Emerson iPro SERIES Manual de usuario Pagina 57

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 141
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 56
________________________________________________________________________________________________________
1592025400 – Vers. 1.0 - 57 -
STRING
ASSIGNMENT
:= direct copy
CONCATENATION
+ concatenates two strings
COMPARISON
=, <>, >=, <=, >, < alphabetical order
CONVERSION FUNCTION
ANY_TO_BOOL conversion to boolean
ANY_TO_DINT conversion to double INT
ANY_TO_REAL conversion to real
ANY_TO_TIME conversion to timer
ANY_TO_STRING conversion to string
Example:
If we have two variables: SEC (type DINT) and SEC1 (type TIME) the assignation:
SEC1 := SEC; this is wrong
SEC1 := ANY_TO_TIME (SEC*1000); this is correct
FUNCTION BLOCK CALLING
Declare instance into dictionary (each instance have a unique name)
TON_Instance1 is an instance of TON
Call instance of the FB (activation of instance by-passing the input parameters)
TON_Instance1 ( TRUE, t#3s)
Get the returning parameters
End_Time := TON_instance1.Q;
Current_Time := TON_instance1.ET;
Vista de pagina 56
1 2 ... 52 53 54 55 56 57 58 59 60 61 62 ... 140 141

Comentarios a estos manuales

Sin comentarios