Ai (after input), Trippoint – Yaskawa SMC–4000 User Manual

Page 66

Advertising
background image

56

SMC–4000 User Manual

AI (After Input)

[Trippoint]

DESCRIPTION:

The AI command is used in motion programs to wait until after the specified input condition has occurred.
If n is positive, it waits for the input to go high. If n is negative, it waits for input to go low. To wait for a
transition from high to low or low to high, put two AI commands together. AI is only available for local
inputs. The AI command causes the corresponding program thread to go dormant until the specified logic
state is true. If the program thread must check other logic, use the

JP (Jump to Program Location)

or

IF

JS

(Jump to Subroutine)

commands instead.

ARGUMENTS: AI +/-n

where

n is a signed integer

USAGE:

RELATED COMMANDS:

@IN (Input)

: Function to read digital input 1 through 8

II (Input Interrupt)

#ININT:

Special label for input interrupt

EXAMPLES:

While Moving

Yes

Minimum Value

1

In a Program

Yes

Maximum Value

8

Command Line

Yes

Default Value

---

Can be Interrogated

No

Default Format

---

Used as an Operand

No

#A

Begin Program

AI 7

Wait until input 7 is high

SP 10000

Speed is 10000 counts/sec

AC 20000

Acceleration is 20000 counts/sec2

PR 400

Specify position

BG Begin

motion

AI+ 7; AI- 7

Wait for falling edge on input 7

EN

End Program

Advertising