If_input – Yaskawa FSP Amplifier FlexWorks User Manual
Page 140

Command Reference
140
IF_INPUT
G
ROUP
Program Flow Control
S
YNTAX
IF_INPUT <input number> <input condition> <input
state> <then> <label>
O
P
. C
ODE
108
M
ODES
Program
R
ANGE
Input number – 0 to 7.
D
ESCRIPTION
The program flow is conditional on the state of a digital input.
If the condition is True, the action specified by <then> will
occur. Otherwise, the next program line is executed.
Input number
Digital input number according to the
pin on CN1. Pin 40 is related to
<input number>, 0 and 41 to 1, etc.
Serial
1 U
Input condition
Only the equal to condition is
available:
Condition Code
== 0
Serial
1 U
Input state
Can be set to either 0 OR 1.
Serial
1 U V
S
YNTAX
A
RGUMENTS
then
Specifies the action to take:
Setting Code
CALL - call subroutine
with specified <label>;
when finished, return.
0
GO_TO - continue from
the specified <label>.
1
Serial
1 U