Int 4.11.7.3. int_return – Yaskawa FSP Amplifier FlexWorks User Manual
Page 94

Operating the FSP Amplifier Using FlexWorks
94
4.11.7.2. INT
Format: INT <Priority> <Variable> <Condition> <Value>
This command indicates the beginning of an interrupt service
routine, and is used when the interrupt is conditional on the value
of an internal variable. The argument <Priority> specifies the input
priority. <Priority> is specified as a value from 0 to 7, where 0 is
the highest priority and 7 is the lowest. <Variable> specifies on
which internal variable the interrupt is conditional. Any FSP
Amplifier variable can be used. <Condition> and <Value> specify
the interrupt condition. As shown in Figure 54, any of the relational
operators can be specified for <Condition>. <Value> is entered in
decimal format.
Figure 54: Programming an INT Command
4.11.7.3. INT_RETURN
Format: INT_RETURN <Label>
This command signals the end of an interrupt service routine.
<Label> specifies the program label to which the program must
proceed once the interrupt service routine has been completed.
Setting <Label> to –1 specifies that the program must simply
continue running from the point at which the interrupt occurred.
If an interrupt service routine of a lower priority interrupt is
executed after a higher priority interrupt service routine, the
program will continue from the position defined by the last
INT_RETURN command.
Figure 55: Programming an INT_RETURN Command