Emerson iPro SERIES Bedienungsanleitung Seite 57

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 141
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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;
Seitenansicht 56
1 2 ... 52 53 54 55 56 57 58 59 60 61 62 ... 140 141

Kommentare zu diesen Handbüchern

Keine Kommentare