Example
Program code
N10 DEF INT ERROR
N20 STRING[32] RESULT
N30 FILEINFO(ERROR,"/_N_MPF_DIR/_N_TESTFILE_MPF",RESULT)
N40 IF ERROR <>0
N50 MSG("ERROR"<<ERROR<<"ON FILEINFO COMMAND")
N60 M0
N70 ENDIF
...
The example could return the following result in the RESULT result variable, for example:
"77777 12345678 26.05.00 13:51:30"
1.23
Roundup (ROUNDUP)
Function
Input values, type REAL (fractions with decimal point) can be rounded up to the next higher
integer number using the ROUNDUP" function.
Syntax
ROUNDUP(<value>)
Meaning
ROUNDUP
<value>
Note
Input value, type INTEGER (an integer number) are returned unchanged.
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
:
Command to roundup an input value
:
Input value, type REAL
Flexible NC programming
1.23 Roundup (ROUNDUP)
Comment
; Definition of error variables.
; Definition of result variables.
; Filename with domain, file
identifier and path
specification.
; Error evaluation
153