EasyManua.ls Logo

Fagor CNC 8055i FL EN - Conditional Instructions

Fagor CNC 8055i FL EN
732 pages
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...
·602·
Installation manual
CNC 8055
CNC 8055i
15.
CUSTOMIZABLE SCREENS
SOFT: V02.2X
Conditional instructions.
15.5 Conditional instructions.
Conditional instructions are only available in version 2 of the configuration language. These
instructions may be used to have (IF...ELSE…) type structures that depending on particular
conditions (PLC resources, etc.) it will be possible to do the following:
Overlay one screen or another one or change screens.
Assign several variables to the same "Widget" item.
Cancel part of a screen temporarily.
Flow control instructions
This instruction analyzes the given condition that must be a relational expression. If the condition
is true (result = 1), action 1 will be executed. Otherwise (result = 0), action 2 will be executed.
;(IF (condition))
;(<action1>)
;(ELSE)
;(<action2>)
;(ENDIF)
IF conditions cannot be nested; i.e. an IF instruction cannot be programmed inside another one.
On the other hand, the ELSE part can be missing in the instruction; i.e., it is possible to program
IF condition <action1>.
Example 1:
In this example, if P8 is other than 12.8, it executes the instruction WGDWIN 201. Otherwise, if P8
is equal to 12.8, it executes the instruction WGDWIN 202.
;(IF (GUP1000 NE 12.8))
;(WGDWIN 201)
;(ELSE)
;(WGDWIN 202)
;(ENDIF)
Example 2:
Example of an IF conditional instruction without the ELSE part.
;(IF (GUP100 EQ 12.8))
;(WGDWIN 201)
;(ENDIF)
Example 3:
The following program could be used to set a parameter to ·0· where the user has entered a value
that is out of the permitted range. This may be particularly interesting in the MCO/TCO mode where
the configuration file is only refreshed (updated) on start-up or after pressing the [ENTER] key.
;(IF (GUP100 GT 1000))
;(GUP100=0)
;(ENDIF)
;(W1=GUP100)
In this case, when entering the parameter value and pressing [ENTER], the configuration file is
refreshed and if the parameter value is higher than ·1000·, the parameter takes the value of ·0·.

Table of Contents

Related product manuals