Omron SYSMAC CJ Operation Manual page 333

Sysmac cj-series programmable controller motion control unit
Hide thumbs Also See for SYSMAC CJ:
Table of Contents

Advertisement

Practical examples
5-2-1-1 SHELL programs and Trajexia Studio
5-2-2
SHELL program example
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.
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
'
=3 application running
'VR(901) - VR(status_bits) reports next status
'
Bit0
Alarm flag
'
Bit15
ML communication error with one slave
'VR(902) - "action" send messages to the upper controller
'
=0 during initialization
'
=1 Push RESET to restart
'
=2 Resetting
'
=3 System healthy
'VR(903) - VR(diag01) gives feedback of the MECHATROLINK
'initialisation
'
Bit0
Could not get the ML slave number
'
Bit1
Slave number is uncorrect
'
Bit15
Detection OK
'VR(904) - VR(diag02) gives feedback of the MECHATROLINK
'Slaves
'
Bitn
Slave n not detected
'VR(905) - VR(diag03) gives feedback forUnit detection
'
Bitn
Unit n detected
Section 5-2
321

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cj1w-mch72

Table of Contents