Execution And Status Of Motion Control Instructions; Basic Rules For Execution Of Instructions - Omron NJ501-1400 User Manual

Machine automation controller nj series cpu unit motion control
Hide thumbs Also See for NJ501-1400:
Table of Contents

Advertisement

6 Motion Control Programming
6-4
Execution and Status of Motion
Control Instructions
Variables that represent the execution status of instructions and variables that are used to execute
motion control instructions are defined in the MC Function Module. There are two input variables that
you use to execute motion control instruction functions: Execute and Enable. The following output vari-
ables indicate the execution status of an instruction: Busy, Done, CommandAborted, and Error.
6-4-1

Basic Rules for Execution of Instructions

The basic rules for the MC Function Module are listed in the following table. You can find execution
examples in 6-4-2 Execution Timing Charts. Refer to these examples as well.
Item
Exclusiveness of out-
puts
Output status
Input parameters
Omitting input param-
eters
Position (Target Posi-
tion) and Distance
(Travel Distance)
Sign rules
6-8
The following output variables are exclusively controlled and only one of them can be
TRUE at the same time: Busy, Done, Error, and CommandAborted.
Similarly, only one of the following output variables can be TRUE at the same time:
Active, Done, Error, and CommandAborted.
Busy and Active may be TRUE at the same time in some cases.
The output variables Done, InGear (Gear Ratio Achieved), InSync, InVelocity (Target
Velocity Reached), and CommandAborted change to FALSE when the input variable
Execute changes to FALSE. The actual execution of a motion control instruction is not
stopped when Execute changes to FALSE. Even if Execute changes to FALSE before the
instruction finishes execution, the corresponding output variable will be TRUE for at least
one period if the status of the instruction instance changes.
The output variable Error will not reset to FALSE and the output variable ErrorID (Error
Code) will not reset to 0 until you execute one of the following instructions: MC_Reset,
MC_GroupReset, or ResetMCError.
If the Execute variable of the same instruction instance changes to TRUE again (i.e., if
the instruction is restarted) during the execution of a motion control instruction, the Com-
mandAborted variable will not change to TRUE.
For motion control instructions that are started with the input variable Execute, the values
of the input parameters when Execute changes to TRUE are used. For motion control
instructions that start for the input variable Enable, the current values of the input param-
eters during each period when Enable is TRUE are used.
The default value applies if you omit an input parameter for an instruction instance.
The input variable Position is defined as a value in the coordinate system. The input vari-
able Distance is the relative length, i.e., it is the difference between two positions.
The input variables Acceleration, Deceleration, and Jerk are non-negative values. Posi-
tion (Target Position), Distance (Travel Distance), and Velocity (Target Velocity) can be
positive, negative, or 0.
Rule
*1
NJ-series CPU Unit Motion Control User's Manual (W507)
*2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1500

Table of Contents