Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a spec sheet · part 10 of 23

SLC Servo Control Module (Catalog No. 1746-HSRV) User Manual, pages 91 to 100

Pages 91 to 100 of 224

The original document is the PDF (1.8 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.

Filed in the catalog under the Allen-Bradley 1746-HS

Page 91

7-12

Setting Up Your SLC Servo Module resume until the SLC processor has transferred the information to the M0 file of the SLC Servo Module. IMPORTANT

Repeatedly executing the copy file instruction when you download the configuration increases the ladder scan time as shown in Figure 7.1.

Figure 7.1 Relationship Between Ladder Scan Time and Repeated Execution

SLC LADDER EXECUTION

M0 File Copy File to M0 SLC Servo Module I/O SCAN

Configuration Data Transferred Immediately

Data Type Conversions The SLC Servo Module uses floating-point values to configure and operate. However, I/O files do not allow floating-point numbers. To use floating-point values in I/O files, you must execute a COP (or copy) instruction. When you use a COP command you have to determine the number of words in the destination file. I/O file words are 16 bits in length. Floating-point values are 32 bits, or two words, in length. If you copy a floating-point value to an I/O file, it occupies two words. If you copy two I/O words to a floating-point value, they occupy one floating-point value. Floating-point values are 32 bits.

Before Programming the SLC Servo Module

Publication 1746-6.1.2 - July 2000

Before programming your SLC Servo Module: 1. Power-up the SLC Servo Module to initialize the default configuration.

Page 92

Setting Up Your SLC Servo Module

7-13

2. Verify that the SLC Servo Module is in an Estop state. 3. Copy the M0 file with the output word 0 mode bit (15) set to 1. 4. Verify that the SLC Servo Module is in the configuration mode. 5. Using the programming device for the SLC processor (RSLogix, AI500, or APS Software) enter the program example, found in Appendix C of this manual, with the appropriate changes for the SLC Servo Module locations for the system. 6. Using the data monitor, change the values in the configuration files to match the default specifications for the SLC Servo Module, except for the Encoder Lines and Counts Per Position Unit parameters. IMPORTANT

Communicating Between the SLC Processor and the SLC Servo Module

For this program example, the discrete configurations are in file N7 and the multiword floating-point parameters are in file F8.

Communication between the SLC processor and the SLC Servo Module occurs asynchronously through 12 input and 12 output words. The SLC Servo Module requires that an input is present from one to two coarse iterations before it is guaranteed to be recognized. SLC Servo Module ladder logic rungs contain timers that can provide the proper timing. The preferred method is to build handshake logic into the SLC Servo Module ladder program. A handshake occurs when the SLC processor requests a change and tests for an appropriate change in the SLC Servo Module status word before continuing. The SLC Servo Module can deny requests from the SLC processor because the SLC Servo Module is not in the correct state to grant the request. Some SLC Servo Module inputs are only recognized on the input transition. If the SLC Servo Module is not in the correct state to grant a request when the input transition occurs, the input request is denied. Unless you toggle the input again, the SLC Servo Module ignores the request.

Entering Encoder Lines and Computing Counts

Encoder lines are entered to compute counts per unit and maximum speed.

Publication 1746-6.1.2 - July 2000

Page 93

7-14

Setting Up Your SLC Servo Module

To enter encoder lines: 1. Refer to the encoder manufacturer’s specification for the encoder lines. 2. Enter the value of the Encoder Lines parameter in configuration file F8 (words 4-5). 3. Enter the value of the Counts Per Position Unit parameter in configuration file F8 (words 6 and 7).

Computing Counts Per Position Unit Use the following equation to calculate the value of the Counts Per Position Unit parameter as it is used in step 3 above. Counts per position unit is equal to:

Multiplied by the:

Multiplied by the:

4

Number of encoder lines Revs/position unit1

1 Where the revs/position unit contains gearing and the pitch of the ball-screw.

In the example below, an axis uses a 1000 line encoder in a motor coupled with a 3:1 reducing gear to a 5 pitch lead screw (5 turns per inch). With a position unit of inch, the value of the Counts Per Position Unit parameter is computed as: Lines per revolution:

Multiplied by counts per line:

Multiplied by input revolutions/ output revolutions:

Revolutions per inch:

Equals counts per inch:

1000

4

3

5

60000

Computing Maximum Speed Scaler Speed scaler refers to the varying of incoming voltage to produce a varying speed. To compute a variable output speed, the SLC Servo Module uses the number of pulses from the encoder, the maximum motor rpms, and speed that you want. For reliable axis operation, the axis speed you want must be less than the digital analog convertor (DAC) saturation speed. The DAC saturation speed must be less than the motor operation speed at low Publication 1746-6.1.2 - July 2000

Page 94

Setting Up Your SLC Servo Module

7-15

AC line conditions. If you don’t meet these conditions, you experience excessive error faults during high speed operation. You must select the proper motor, drive, and gearing to satisfy the above requirement for the application. AC power to the motor drive can go as low as 85% of the nominal input voltage. To allow for axis operation at low line conditions, use a power line factor between 0.85 and 1.0. Select a power line factor based on motor and drive vendor specification. The maximum low line operating speed (from the motor data sheet plus gearing) can be calculated by performing the following: Maximum operating speed for the axis is equal to:

Multiplied by:

Multiplied by:

Multiplied by:

Power line factor

Maximum motor rpm

Output revolutions/ input revolutions

1/pitch

Operating at maximum speed that you want, select a DAC output saturation speed greater than the operation speed that you want. A reasonable percentage of maximum is approximately 105%. The DAC output saturation speed is the maximum speed for the axis, and we calculate it as follows: Maximum operating speed is equal to:

Multiplied by:

1.05

Maximum speed that you want

In the example below, select a 3000 rpm motor for use with the previous example in this section. Compute the maximum operating speed using the following equation:

(Power Factor)

*

(RPM (Encoder lines 4) Counts per Position Units

*

*

=

Maximum Operating Speed

Power factor:

Multiplied by: revolutions per minute (RPM)

Multiplied by: Encoder lines * 4

Divided by: Counts per position units

Equals maximum operating speed:

0.85

3000

4000

60000

170 (ipm)

Publication 1746-6.1.2 - July 2000

Page 95

7-16

Setting Up Your SLC Servo Module

In the example below, if you want a maximum operating speed of 170 ipm, the motor and drive combination you chose must meet your speed requirements. DAC output saturation speed:

Is equal to:

Multiplied by maximum operating speed:

179 (ipm)

1.05

170 (ipm)

Enter the DAC output saturation speed in configuration file F8 (word 28 and word 29).

Initializing DAC Output Voltage for Drive Symmetry

DAC output voltage ranges from –10V to +10V. When you command 100% of speed, you want the DAC signal to be ±9.5V for maximum use. If you calibrate the drive input correctly, the SLC Servo Module outputs 9.5V when the axis is moving at maximum speed. To set the DAC output voltage: 1. Set the output voltage in file F8 (words 24 and 25) to + Max Speed = +9.5V. 2. Set the output voltage in file F8 (words 26 and 27) to - Max Speed = -9.5V. 3. If possible, rough calibrate the drive input for maximum speed with an input of 9.5V. Drive input scaling to the SLC Servo Module output occurs while you make coarse calibrations.

Setting Initial Loop Type

After you set the initial loop type, download the initial configuration to the SLC Servo Module. To set the loop parameters: 1. Set the loop type parameter to OPEN LOOP in the configuration file N7 by setting word 0, bits 4 and 5 to 0 LOOP TYPE (00). 2. Set the SLC Servo Module control in Estop. 3. Toggle the bit (word 0, bit 15) to download this configuration.

Publication 1746-6.1.2 - July 2000

Page 96

Setting Up Your SLC Servo Module

Defining Positive Axis Movement for the SLC Servo Module

7-17

To define positive axis movement for the SLC Servo Module, you must invert the DAC and reverse feedback. Axis status area information is copied into F48 at every ladder scan. To define the positive axis movement: 1. Record the present feedback position PO contained in file F48. 2. Reset Estop. 3. Initiate an incremental move in the positive direction at 5% of SLC Servo Module’s maximum speed for approximately one position unit. Refer to Figure 9.4 for an example of an incremental move. 4. If the axis moved in the: Positive direction Negative direction

Then:

Do this:

Invert DAC setting is correct. Invert DAC setting is incorrect.

Go to step 5. Change invert DAC (Configuration word 0, bit 1) from 0 to 1.

5. Observe the feedback position P1 (file F42) after the move. 6. If P1 - P0 is: Greater than zero Less than zero

Then: Reverse feedback is correct. Reverse feedback is incorrect.

Do this: Go to step 7. Change reverse feedback (Configuration word 0, bit 2) from 0 to 1.

7. Download the updated configuration. 8. If you: Then: Made changes to the invert DAC 1. Set the SLC Servo Module in Estop. or reverse feedback parameters 2. Toggle the bit (word 0, bit 15) to download this configuration. 3. Reset Estop. Did not make changes to Go to Coarse Calibrating. parameters

Publication 1746-6.1.2 - July 2000

Page 97

7-18

Setting Up Your SLC Servo Module

Coarse Calibrating

Perform the following steps to coarse calibrate the drive input scaling to SLC Servo Module DAC output voltage: 1. Initiate a positive direction speed move at a safe operating speed (e.g., < 50%) of the SLC Servo Module’s maximum speed. 2. Record the commanded speed and the actual speed contained in the file F48. 3. Cancel the speed move. 4. If the axis speed: Then: Does not match the 1. Adjust the drive input scaling until the observed speed in file F48 matches the command speed within 3% command speed. 2. Repeat the positive speed move at a speed that is as high a speed as safety permits to verify drive input calibration. 3. Repeat steps 1 and 2 in this table until the speeds are within 3%. Does match the command Go to Fine Calibration of the DAC Output Voltage speed within 3% Scaling.

Fine Calibrating

Perform the following steps to fine calibrate the DAC output voltage scaling: 1. Initiate a speed move in a positive direction at the highest (but safe) speed. 2. Record the axis speed. 3. Cancel the speed move. 4. Repeat steps 1, 2, and 3 for the same magnitude speed command in a negative direction. IMPORTANT

Publication 1746-6.1.2 - July 2000

Reverse the speed by reversing the speed specifications for the speed move that is executing.

Page 98

Setting Up Your SLC Servo Module

7-19

5. If: Both the positive and negative speed match the commanded speed within 3% The speed error is greater than 3%

Then: Go to Computing Excess Following Error Limit.

1. Compute a new output voltage at maximum speeds using the positive speed calibration and negative speed calibration equations shown below. 2. Set the SLC Servo Module in Estop. 3. Toggle the bit (word 0, bit 15) to download this configuration. 4. Reset Estop. 5. Go to the main step 1.

6. Calculate:

To equal:

Multiplied by:

Output voltage at the positive maximum speed (new value)

Output voltage at the positive maximum speed (current value)

(programmed speed) (actual speed in the positive direction)

7. Enter output voltage at the positive maximum speed in configuration file F8 (words 24-25). 8. Calculate:

To equal:

Multiplied by:

Output voltage at the negative maximum speed (new value)

Output voltage at the positive maximum (programmed speed) speed (current value) (actual speed in the negative direction)

9. Enter output voltage at the negative maximum speed in configuration file F8 (words 26-27).

Computing Excess Following Error Limit

The axis following error that exceeds the excess following error limit places the control in an Estop condition. This is a safety limit and indicates loss of axis control by the SLC Servo Module. You can compute the normal operating following error from the maximum axis speed that you want and the axis gain. A typical operating difference between the maximum following error and the following error limit is 120%. Default gain for the SLC Servo Module is 1.0 position units per minute per one thousandth of position unit.

Publication 1746-6.1.2 - July 2000

Page 99

7-20

Setting Up Your SLC Servo Module

To calculate the initial following error limit: 1. Calculate:

To equal:

Follow error limit

1.2 multiplied by the maximum speed that you want (axis gain x 1000) 180 ipm / (1.0 ipm/mil x 1000) 0.216 inch

2. Enter the following error limit calculated in configuration file F8 (words 38-39).

Selecting Loop Type

To select a loop type for normal operation and to adjust position loop gain, do the following: 1. Set the time to maximum axis speed to one coarse iteration (0.0048 seconds [default]) in file F8 (words 30 and 31). 2. For a normal loop type of the following error FE, set configuration file N7 word 0, bit 4 to 1 and bit 5 to 0. 3. For a normal loop type of the zero following error ZFE (VFF), set configuration file N7 word 0, bits 4 to 0 and bit 5 to 1. 4. Set the % velocity feedforward (VFF) by changing the configuration file F8 (words 32 and 33) to 0. 5. Set the SLC Servo Module in Estop. 6. Toggle the bit (word 0, bit 15) to download this configuration. 7. Reset Estop. Since you calibrated the speed previously, the position loop gain is in position units per minute per one thousandth of position unit. For the above examples, the gain is in ipm/mil where a mil is 0.001 inch. IMPORTANT

Publication 1746-6.1.2 - July 2000

A gain of 1.0 in SLC Servo Module units is equivalent to a gain of 16.6667 inverse seconds.

Page 100

Setting Up Your SLC Servo Module

7-21

To monitor and adjust the position loop gain, you must do the following to create a program that loops: 1. Create six individual moves where each move is separated by a one-second delay and where three are in one direction and three are in the opposite direction. 2. Create each move at approximately two motor revolutions and at a programmed speed of 20% of maximum speed. 3. Set up a Set Axis Gain Function within the program. 4. Execute the program. 5. Increase the gain until the axis following error changes sign when the axis stops. 6. Reduce the gain until a sign change is not observed when stopping. IMPORTANT

It is normal for the following error to change its sign while holding position.

7. Enter the gain value determined above in configuration file F8 (words 42 and 43). 8. Repeat the calculation shown in Excess Following Error Limit using the new axis gain. 9. Enter the following error limit calculated in configuration file F8 (words 38 and 39). 10. Set the SLC Servo Module in Estop. 11. Toggle the bit (word 0, bit 15) to download this configuration. 12. Reset Estop.

Selecting Axis Acceleration Rate

We specify the axis acceleration rate in terms of time for the SLC Servo Module to reach its maximum acceleration rate. Time to speed is an inverse function; a smaller time means a higher acceleration rate. To set the acceleration rate: 1. Set the time to accelerate to maximum speed to 0.2 seconds in configuration file F8 (words 30 and 31).

Publication 1746-6.1.2 - July 2000