EasyManua.ls Logo

Omron TJ2-MC64 - PROGRAMMING User Manual

Omron TJ2-MC64 - PROGRAMMING
362 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #15 background image
Trajexia system
PROGRAMMING MANUAL 9
Revision 1.0
2.3 BASIC programming
The BASIC language consists among others of commands, functions and
parameters. These BASIC statements are the building blocks provided to
control the TJ2-MC64 operation.
Commands are words recognized by the processor that perform a certain
action but do not return a value. For example, PRINT is a recognized word
that will cause the value of the following functions or variables to be printed
on a certain output device.
Functions are words recognized by the processor that perform a certain
action and return a value related to that action. For example, ABS will take
the value of its parameter and return the absolute value of it to be used by
some other function or command. For example ABS(-1) will return the value
1, which can be used by the PRINT command, for example, to generate a
string to be output to a certain device.
Parameters are words recognized by the processor that contain a certain
value. This value can be read and, if not read only, written. Parameters are
used to determine and monitor the behavior of the system. For example,
ACCEL determines the acceleration rate of a movement for a certain axis.
2.3.1 Axis, system and task statements
The commands, functions and parameters apply either to (one of) the axes,
the tasks running or the general system.
Axis statements
The motion control commands and the axis parameters apply to one or more
axes. Axis parameters determine and monitor how an axis reacts on
commands given and how it reacts to the outside world. Every axis has a set
of parameters, so that all axes can work independently of each other. The
motion control commands are able to control one or more of the axes
simultaneously, while every axis has its own behavior. The axis parameters
are reset to their default values for each startup.
The commands and parameters work on some base axis or group of axes,
specified by the BASE command. The BASE command is used to change
this base axis group and every task has its own group which can be changed
at any time. The default base axis is 0.
Individual axis dependent commands or parameters can also be
programmed to work on a temporary base axis by including the AXIS
function as a modifier in the axis dependent command. A temporary base
axis is effective only for the command or parameter after which AXIS
appears.
Task statements
The task parameters apply to a single task. The task parameters monitor the
task for example for error handling. The PROC modifier allows the user to
access a parameter of a certain task. Without PROC the current task is
assumed. The BASE command (see above) is task specific and can be
used with the PROC modifier.
System statements
These statements govern the overall system features, which are basically all
statements which do not belong to the first two groups.
2.3.2 Memory areas
Three main memory areas can be identified in the Trajexia Motion Controller
Unit:
I/O memory.
VR memory.
TABLE memory.
I/O memory
I/O memory is used for holding the status of input and output devices
connected to the Trajexia system. It is divided into two sub-areas: one for
digital I/O memory, and one for analog I/O memory. The digital I/O memory
holds input and output statuses of digital I/O devices. Its capacity is 256 bits
(input points) for input and 256 bits (output points) for outputs. The inputs in
this memory can be accessed using the IN command. The outputs can be
accessed using the OUT command.
The analog I/O memory holds input and output values of analog I/O devices.
Its capacity is 36 input channels and 36 output channels. The analog input
channels can be accessed using the AIN command. The analog output
channels can be accessed using the AOUT command.
Question and Answer IconNeed help?

Do you have a question about the Omron TJ2-MC64 - PROGRAMMING and is the answer not in the manual?

Omron TJ2-MC64 - PROGRAMMING Specifications

General IconGeneral
ManufacturerOmron
CategoryController
Number of Axes64
Power Supply Voltage24 VDC
Humidity10 to 90% RH (non-condensing)
ModelTJ2-MC64
SeriesTJ2
Communication InterfaceUSB, RS-232

Summary

About this manual

Functions supported by unit versions

Safety warnings and precautions

Intended audience

Defines the target personnel for this manual, focusing on those with electrical systems knowledge.

Safety precautions

Highlights critical safety measures to prevent electrical shock and damage during operation.

Operating environment precautions

Details precautions for operating the unit in various environmental conditions to prevent malfunction.

Application precautions

Covers precautions related to system application, wiring, and power supply to ensure safe operation.

Trajexia system

Introduction

Introduces Trajexia as OMRON's motion platform, highlighting its flexibility, scalability, and core components.

BASIC programming

Explains the structure of the BASIC language for controlling the TJ2-MC64, including commands, functions, and parameters.

Motion execution

Describes how tasks manage motion commands and the role of the motion generator and its buffers.

BASIC commands

Categories

Lists and categorizes all available BASIC commands for quick reference.

All BASIC commands

Provides a comprehensive alphabetical listing and description of all BASIC commands.

Axis commands

Details commands related to controlling and manipulating individual axes.

Axis parameters

Describes parameters that define and monitor the behavior of each axis.

Communication protocols

Available interfaces

Lists the available communication interfaces for the Trajexia system.

Ethernet

Details the Ethernet port configuration and usage for PC connectivity.

Serial protocol

Explains the serial ports and supported protocols like Host Link and ModbusRTU.

DeviceNet

Describes the DeviceNet protocol and its communication setup.

CANopen

Covers the CANopen networking system and communication setup procedures.

Examples and tips

How-to’s

Provides practical guidance and step-by-step instructions for common operations.

Startup program

Explains how to create and set a startup program for system initialization.

Setting the UNITS axis parameter and gear ratio

Details how to set the UNITS parameter for axis conversion and gear ratio.

Origin search

Describes the origin search or homing functionality for axis positioning.

Practical examples

Presents real-world application examples and code snippets.

SHELL programs and Trajexia Studio

Guides on creating and using SHELL programs for application management.

Troubleshooting

Voltage and analysis tools

Covers checks for power supply voltage and using analysis tools for diagnosis.

TJ2-MC64

Details system errors, axis errors, unit errors, and configuration errors for the TJ2-MC64.

System errors

Explains system errors displayed on the TJ2-MC64 LED display and their causes/solutions.

Axis errors

Describes axis errors shown on the TJ2-MC64 LED display, including causes and solutions.

Unit errors

Details unit errors shown on the TJ2-MC64 LED display, including causes and solutions.

TJ1-PRT

Covers system errors and I/O data communication problems for the TJ1-PRT.

System errors

Lists system errors for the TJ1-PRT and their corresponding problems and solutions.

TJ1-DRT

Details system errors and I/O data communication problems for the TJ1-DRT.

System errors

Lists system errors for the TJ1-DRT, including their causes and solutions.

TJ1-CORT

Covers system errors and I/O data communication problems for the TJ1-CORT.

System errors

Lists system errors for the TJ1-CORT, including their causes and solutions.

TJ1-ML__

Details system errors and bus errors related to the TJ1-ML__ unit.

System errors

Lists system errors for the TJ1-ML__, including causes and solutions.

GRT1-ML2

Covers unit power supply, I/O power supply, unit, and SmartSlice I/O errors.

Unit power supply errors

Explains issues related to the GRT1-ML2 unit power supply status.

I/O power supply errors

Details issues related to the external I/O power supply for SmartSlice I/O Units.

Unit errors

Lists unit errors during GRT1-ML2 initialization, including causes and solutions.

SmartSlice I/O errors

Covers errors related to SmartSlice I/O communication and configuration.

GRT1-ML2 timing

Timing concepts

Explains I/O timing issues and concepts like refresh cycles and paging.

Refresh cycles

Details the refresh cycles between TJ2-MC64, GRT1-ML2, and SmartSlice I/O Units.

Examples

Provides examples illustrating I/O timing calculations for SmartSlice I/O Units.

Example 1

Illustrates I/O timing calculations for GRT1-ID4 and GRT1-OD4 SmartSlice units.

Example 2

Shows I/O timing calculations for a more complex setup with multiple SmartSlice units.

Revision history

Related product manuals