EasyManua.ls Logo

Omron TJ2-MC64 - PROGRAMMING - Page 169

Omron TJ2-MC64 - PROGRAMMING
362 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
BASIC commands
PROGRAMMING MANUAL 163
Revision 1.0
3.2.230 PROC_STATUS
/i
/i
/i
3.2.231 PROCESS
/i
3.2.232 PROCNUMBER
/i
3.2.233 PROFIBUS
/i
/i
Description The PROC modifier allows a process parameter from a particular process to
be read or written. If omitted, the current task will be assumed.
Arguments task_number
The number of the task to access.
Example WAIT UNTIL PMOVE PROC(3)=0
See also N/A
Type Task parameter
Syntax PROC_STATUS
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 val-
ues listed in the table below.
Value Description
0 Process stopped
1 Process running
2 Process stepping
3 Process paused
Arguments N/A
Example WAIT UNTIL PROC_STATUS PROC(3)=0
See also PROCNUMBER, PROC.
Type Program command
Syntax PROCESS
Description The PROCESS command displays the running status of all current tasks with
their task number.
Arguments N/A
Example No example.
See also HALT, RUN, STOP.
Type Task parameter (read-only)
Syntax PROCNUMBER
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.
Arguments N/A
Example MOVE(length) AXIS(PROCNUMBER)
See also PROC_STATUS, PROC.
Type System command
Syntax PROFIBUS(unit_number, 2,1,VR_start_outputs,no_outputs,
VR_start_inputs,no_inputs)
PROFIBUS(unit_number,4,0)
Description PROFIBUS function 2 configures the TJ1-PRT for data exchange with the
PROFIBUS-DP master unit and defines areas in the VR memory where I/O
exchange takes place. PROFIBUS function 4 returns the data exchange sta-
tus of the TJ1-PRT. Refer to the table below for the description of the bits in
the data exchange status word.

Related product manuals