9 Program command
-
71
-
9.5.16.
IN
Name
Confirm general-purpose input, waits for input
Valid
mode
Direct input (request only)/program
This command can be one of the following two types:
1. IN [, | ] n1 [, | ] n2 (waits until the specified general-purpose input changes to
the specified logical status)
2. IN [, | ] n3 (waits until all general-purpose input changes to the specified logical
status)
Parameter Data
range
Default
n1 Specified
general-purpose
input number1
1 to 8
n2
Logical value
0 (OFF), 1 (ON)
Syntax
n3
Logical status of all
general -purpose
inputs
00,000,000 to 11,111,111
Function
Input status is displayed when used as a request.
When used inside a sequence program, the control waits until the input changes to
the specified logical status. To wait until all general-purpose input statuses match,
state the condition in the order of IN 8, 7, 6, 5, 4, 3, 2, 1.
Input status will be displayed in this order when used as a request.
Request 0>IN
0: IN 00101100
Memo
For a sample sequence program using the IN command, see section 12.1 “Operation by
the host controller” on p.108 or section 12.2 “Speed change operation by the host
controller” on p.108.
9.5.17.
INC
Name
Incremental positioning operation
Valid
mode
Direct input/program
INC (1 | 2 | C)
Parameter Data
range
Default
Syntax
(1 | 2 | C)
Axis
1 (operate axis 1), 2 (operate axis 2),
C (perform a 2-axis linear interpolation
operation, operating both axes
simultaneously) If this parameter is
omitted, axis 1 will be operated.
Function
Performs an incremental operation until the current position matches the specified
position data.
Movement amount, starting speed, operating speed and acceleration/deceleration
rate are to be set prior to this command.
Operation can be ended by an S command, <ESC> key, or by an external S-STOP input.
In a 2-axis linear interpolation operation, the axis whose movement amount set by a
D command is greater becomes the main axis, while the other axis becomes the
sub-axis. The speed of the sub-axis is calculated from the speed and movement
amount of the main axis.
When this command is set in a sequence program, the next line will be executed
after the operation ends.
If the END input is enabled by an EEN command, the next step will be executed
when the END input turns on after the operation has ended.
Request
-
Содержание EMP400 Series
Страница 115: ......