![background image](http://html1.mh-extra.com/html/omron/r88a-mcw151-drt-e/r88a-mcw151-drt-e_operation-manual_742243187.webp)
172
Command, function and parameter description
Section 6-3
6-3-145 PROC_STATUS
Type:
Task Parameter
Description:
The PROC_STATUS parameter returns the status of the process or task
specified. The parameter is used with the PROC modifier and can return the
following values.
See also:
PROC_LINE, PROCNUMBER, PROC
Example:
WAIT UNTIL PROC_STATUS PROC(3)=0
6-3-146 PROCESS
Type:
Program Command
Syntax:
PROCESS
Description:
The PROCESS command returns the status list of all running tasks with their
task number.
See also:
HALT, RUN, STOP
6-3-147 PROCNUMBER
Type:
Task Parameter
Description:
The PROCNUMBER parameter contains the number of the task in which the
currently selected program is running. PROCNUMBER is often required when
multiple copies of a program are running on different tasks.
Note This parameter is read-only.
See also:
PROC_LINE, PROC_STATUS, PROC
Example:
MOVE(length) AXIS(PROCNUMBER)
6-3-148 PSWITCH
Type:
I/O Command
Syntax:
PSWITCH(
switch
,
enable
[ ,
axis
,
output_number
,
output_state
,
set_position
,
reset_position
]
)
Description:
The PSWITCH command turns ON an output when a predefined position is
reached, and turns OFF the output when a second position is reached. The
positions are specified as the measured absolute positions.
There are 16 position switches each of which can be assigned to any axis.
Each switch is assigned its own ON and OFF positions and output number.
The command can be used with 2 or all 7 arguments. With only 2 arguments a
given switch can be disabled.
PSWITCHs are calculated on each servo cycle and the output result applied
to the hardware. The response time is therefore 1 servo cycle period approxi-
mately.
Precautions:
An output may remain ON if it was ON when the PSWITCH was turned OFF.
The OP command can be used to turn OFF an output as follows:
PSWITCH(2,OFF)
OP(14,OFF)
’Turn OFF pswitch controlling OP 14
0
Process stopped
1
Process running
2
Process stepping
3
Process paused