Practical Examples - Omron TJ2-MC64 - PROGRAMMING Programming Manual

Hide thumbs Also See for TJ2-MC64 - PROGRAMMING:
Table of Contents

Advertisement

Examples and tips
5.2

Practical examples

5.2.1
SHELL programs and Trajexia Studio
Trajexia Studio helps the user to create a proper SHELL program.
When a new project is created, a SHELL program with the basic structure is
created automatically (see 5.1.1).
When you define the hardware and set the parameters for the application,
you can select to add your changes to the SHELL program so, the user do
not have to type it manually.
Use the example SHELL program as a template to start, stop and reset your
machine and adjust the rest of the SHELL program according to the
requirements.
The SHELL program is automatically selected to start at POWER-ON in low-
priority task 1.
Example
The example program below is a typical SHELL program created by Trajexia
Studio.
'========================================================
'This SHELL program is an example that OMRON provide as
'recommended. This program should be modified for the
'particular user application.
'========================================================
'Reserved symbol area for SHELL program handling.
'Do not use these areas in your application programs:
'VR(900) - "status_word" reports about the status of the
'system
'
=0 during initialization
'
=1 application stopped with no error
'
=2 errors in the system
PROGRAMMING MANUAL
loop
No
Yes
No
Yes
Start?
Stop?
Start
Stop
Application
Application
programs
programs
and
movements
fig. 47
GLOBAL &
CONSTANTdefinition
System initialization
Stop Application
programs and
movements
Yes
Alarm?
No
Yes
No
Yes
Stopped?
Reset?
Stop
Reset
Application
sequence
programs
and
movements
Update of status
Other monitoring
No
306

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tj1-prtTj1-drtTj1-cortTj1-mlGrt1-ml2Tj1-fl02

Table of Contents