EasyManua.ls Logo

dixell iPRO - Page 57

dixell iPRO
141 pages
Print Icon
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...
________________________________________________________________________________________________________
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;

Table of Contents

Related product manuals