The text of a manual · part 4 of 32
SYSMAC C200H-NC211 Position Control Unit Operation Manual: SECTION 1 Introduction, pages 17 to 24
Pages 17 to 24 of 259, from SYSMAC C200H-NC211 Position Control Unit Operation Manual
The original document is the PDF (1.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Omron C200H-NC211
Page 17
Components
1-4
Section 1-4
Components In addition to the front-panel components described below, there is a DIP switch located on the back panel. Pin settings for this switch, which are described in Section 2-2 Switch Settings, determine certain aspects of control system operation. Indicators RUN: indicates operation is in progress
X: indicates X-axis operation/buffer transfer Y: indicates Y-axis operation/buffer transfer
CW: indicates controlled system (motor) is revolving clockwise
ALARM: blinks when an abnormality has occurred
CCW: indicates controlled system ERROR: lights when an error has (motor) is revolving counterclockwise occurred Setting switches* MACHINE No.
Allocates a unit number (0 to 8) to the Position Control Unit
MODE
Selects an operating mode (0 to 3).
Connector Used to connect the Position Control Unit to a stepping motor driver or servomotor driver. Attach the enclosed connector to the proper cable.
* Before operating these switches, make sure that power to the PC is off. When setting the switches, use a screwdriver if necessary, but do not apply excessive force. Do not leave the switches halfway between two setting points or the Position Control Unit may malfunction.
9
Page 18
Components Indicators
Section 1-4 Indicator
Color
Function
RUN
Green
Lit during normal operation. Goes out for errors.
CW
Green
Lit during output of CW (clockwise) pulses.
CCW
Green
Lit during output of CCW (counterclockwise) pulses.
X
Green
Y
Green
ALARM (flashing) ERROR
Red
Lit during positioning of X-axis positioning, or when data is being transferred from buffer to memory. Lit during positioning of Y-axis, or when data is being transferred from buffer to memory. Flashing when a BCD error exists in initial data, speed data, or positioning data updated with TRANSFER DATA. Lit when an error has occurred causing operation to stop.
Red
Since the C200H-NC211, in contrast to other Special I/O Units, occupies the space of two units, do not set other units to the machine number which immediately follows the machine number of the C200H-NC211. The ALARM LED flashes when data for X and Y within the assigned range is not entered in the respective DM areas for the X and Y axes. When only one axis is used, short-circuit the CW limit and CCW limit of the unused axis to 0 V in the input power supply. The ERROR LED will light if these are not short-circuited, but the axis in use will operate normally.
10
Page 19
Control System Principles
1-5
Section 1-5
Control System Principles Control systems can be quite simple or relatively complex. The most basic case is an open-loop system, in which a particular operation is carried out according to programmed instructions, but in which feedback is not provided for automatic adjustment. The C200H-NC211 Position Control Unit can be used in an openloop system in conjunction with a stepping motor. In a closed-loop system, on the other hand, the PC controls an external process without human intervention. The servomotor provides direct feedback so that actual values (of positions, speeds, and so on) are continuously adjusted to bring them more closely in line with target values. In some systems, the digital feedback signals are transmitted to a digital-to-analog converter to complete the feedback loop, allowing automated control of the process. A semiclosed-loop system is similar to a closed-loop system, except that feedback is provided by a tachogenerator and a rotary encoder rather than directly by the servomotor. If the C200H-NC211 Position Control Unit is used with a servomotor, the servomotor driver must be able to handle digital signals, and there is no need for a D/A converter. In addition, the servomotor is connected to a tachogenerator and a rotary encoder. The Unit can thus be used in either an open-loop or a semiclosed-loop system. Both open-loop and semiclosed-loop systems are described in more detail on the following pages.
11
Page 20
Control System Principles
Section 1-5
Data Flow Position Control Unit C200H-NC211 Pulse train
C200H PC
Stepping motor driver Stepping motor
Pulse generator
PC MPU BUS 1 I/F
External input
I/O interface
MPU 2
Magnetizing distribution circuit
Power amplifier
I/O connector
Memory Pulse train
Servomotor driver
Error counter
Servomotor
Power amplifier (Positioning output) Tachogenerator
Rotary encoder
12
Page 21
Control System Principles
Section 1-5
1-5-1 Open-Loop System In an open-loop system, the Position Control Unit outputs pulse trains as specified by the PC program to control the angle of rotation of the motor. Because the Unit outputs pulse trains, it is generally used with a stepping motor. The angle of rotation of a stepping motor can be controlled through the number of pulse signals supplied to the motor driver. The number of rotations of the stepping motor is proportional to the number of pulses supplied by the Unit, and the rotational speed of the stepping motor is proportional to the frequency of the pulse train.
Angle of rotation Angle of rotation Positioning output 12 n
Positioning pulse
13
Page 22
Control System Principles Simplified Positioning System
Section 1-5 The following diagram and parameters illustrate a simplified positioning system.
V
N
Reduction gear Stepping motor
M
Object being positioned
Feed screw pitch P
M : Reduction ratio P : Feed screw pitch (mm/revolution) V : Feed velocity of object being positioned (mm/s) θs: Stepping angle per pulse (degree/pulse)
The positioning accuracy in mm/pulse is computed as follows: Positioning accuracy = P/(pulses per revolution x M) = P/((360/ θs) x M)) = (P x θs)/(360 x M) The required pulse frequency from the Unit (pulses/second) is computed as follows: Pulse frequency = V/Positioning accuracy = (360 x M x V)/(P x θs) And the required number of pulses to feed an object by a distance L in mm is computed as follows: Number of pulses = L/Positioning accuracy = (360 x M x L)/(P x θs)
14
Page 23
Control System Principles
Section 1-5
1-5-2 Semiclosed-loop System When the Position Control Unit is used in a semiclosed-loop system, the system supplies feedback to compensate for any discrepancy between target values and actual values in position or speed. This system detects motor rotation amounts, for example, computes the error between the target value and actual movement value, and zeroes the error through feedback. The diagram below illustrates the basic configuration of a semiclosed-loop system. Servomotor driver
Servomotor
Target position Error counter
Power amplifier Position output Tachogenerator Speed feedback Rotary encoder Position feedback (feedback pulses)
1, 2, 3...
1. First, the target position is transmitted to the error counter in units of encoder pulses. The servomotor driver must be able to handle digital input. 2. The motor rotates at a speed corresponding to the speed voltage. The rotary encoder connected to the motor axis rotates in sync with the motor, generates feedback pulses, and subtracts error counter contents. 3. Consequently, the encoder rotation is equivalent to the target position, and the motor stops rotating when the error counter count and the speed voltage become zero. 4. While the motor is stopped, the rotary encoder constantly maintains the stopped position through correction. In the event that the motor axis slightly moves, the error counter receives a feedback pulse from the rotary encoder, whereby a rotation voltage is emitted in the reverse direction from which the rotary encoder moved, causing the motor to rotate toward its original position. This operation is called servolock or servoclamp. 5. In order to execute positioning with acceleration and deceleration, target positions are set consecutively in the error counter for processing. 6. The target position becomes the count for the error counter and controls the motor by conversion to a speed voltage for the servomotor driver. The position thus equals the total count of target positions and the speed will depend on the target position per unit time.
15
Page 24
Programming Precautions
1-6
Section 1-6
Programming Precautions
Starting Simultaneous Single-axis Operation of the X and Y Axes
When the X and Y axes are started simultaneously as independent axes, the X axis will be started first and the Y-axis startup will be delayed by 10 to 50 ms while internal startup processing is being performed. When interpolation operation is used, both axes start simultaneously.
Timing Restrictions for the START Command
If a START command is sent while the axis is decelerating to a stop, the START command will not be executed. In particular, an Interpolation START command will not be executed (it will be ignored) if either the X axis or Y axis is decelerating to a stop.
I/O Refresh Instruction (IORF(97))
Thoroughly read and understand the functions of IORF(97) before executing this instruction. If IORF(97) is used incorrectly, the proper commands may not be sent to the Position Control Unit, resulting in incorrect operation. For example if IORF(97) is executed after a START command is sent to the Position Control Unit from an interrupt subroutine and regular cyclic refreshing is disabled, the OFF transition in the START command bit will not be recognized, preventing the Unit from starting operation.
16