beautypg.com

Ext_int – Yaskawa FSP Amplifier FlexWorks User Manual

Page 119

background image

Command Reference

119

EXT_INT

G

ROUP

Interrupt

S

YNTAX

EXT_INT

O

P

. C

ODE

138

M

ODES

Program

D

ESCRIPTION

This command indicates the beginning of an interrupt
service routine, and is used for interrupts that are
conditional on the value of external inputs.
See Section 4.11.7.1, EXT_INT.

Priority

Specifies the interrupt number, from
0 to 7.

Serial

1 U

Input_Number Specifies on which user input, from 0

to 6, the interrupt is conditional.

Serial

1 U

S

YNTAX

A

RGUMENTS

Edge

Specifies how the interrupt is
triggered:

Condition Code

Rising - By the input value

changing from 0 to 1.

0

Falling - By the input value
changing from 1 to 0.

1

Both - By the input
changing from 0 to 1 or
from 1 to 0.

2

Serial

1 U

E

XAMPLE

SET_VAR Interrupt_mask 1
MOVE_D 655360 –1
SET_OUTPUT 1 OFF
END
EXT_INT 0 1 Rising
SET_OUTPUT 1 ON
INT_RETURN –1

This manual is related to the following products: