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 13 of 23

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

Pages 121 to 130 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 121

8-4

Programming the SLC Processor to Run the SLC Servo Module corrupt the M File data before it gets transferred in the SLC Servo Module to the profile storage or module configuration location. If an error is generated, the CONFIG INV LED is turned on and errors are reported in I:2.4 and the CONFIG INVALID bit I:2.1/14 (I:2/30) is set.

Command and Status Information

This primary interface to the module remains active while you are configuring the module to report errors flagged during configuration. The SLC Servo Module executes two types of commands: • Discrete bit • Discrete block The SLC Servo Module reads command bits and blocks every coarse iteration. Discrete bits have a higher priority than discrete blocks.

Module Communication Interface

During each scan of the ladder program, the SLC processor module interacts with the I/O image table of the SLC Servo Module as follows: • Writes 12 output command words to the I/O image table. • Reads 12 input status words from the I/O image table. During each coarse iteration (configured from 4.8 to 9.6 milliseconds based on the Fits Per CIT Configured value), the SLC Servo Module does the following: • Reads 12 output command words from the SLC processor. • Makes 12 input command words available for the SLC processor to read into the I/O image table.

Publication 1746-6.1.2 - July 2000

Page 122

Programming the SLC Processor to Run the SLC Servo Module

8-5

Figure 8.2 SLC Processor/Servo Module Communication SLC LADDER EXECUTION

SLC SERVO I/O Image Table

SLC LADDER

I/O SCAN

12 OUTPUT WORDS 12 INPUT WORDS

SLC Servo Module

Every Coarse Iteration 4.8 to 9.6 Milliseconds

IMPORTANT

Discrete Bit Commands from the SLC Processor

While developing the ladder logic, take into account the update rate of the SLC Servo Module.

Bit specifications, address locations, and descriptions for word 0 and word 1 discrete bit commands are listed within the following tables.

Publication 1746-6.1.2 - July 2000

Page 123

8-6

Programming the SLC Processor to Run the SLC Servo Module

Word 0 Discrete Bit Commands Bit Specifications

Location1

Description

Estop Request

O:s.0/0

The Estop request (word 0, bit 0) causes the SLC Servo Module to enter Estop and cancels all executing moves when the request occurs. If an old move needs to be executed again, the SLC Ladder resubmits the move after recovering from the Estop condition. The move complete bit is set when the SLC Servo Module enters Estop. The Restore Position functionality is not available.

Retract Position

O:s.0/1

Retract position (word 0, bit 1) cancels axis motion, if any, then immediately causes the axis to move to the Retract Position position.

Hold/Unhold Move

O:s.0/2

The Hold/Unhold move (word 0, bit 2), when set, causes the axis to decelerate to a stop. • If no error occurs during a hold move operation, the held move is resumed by clearing the bit. • If the axis enters the in-position band after a hold is initiated, the in-position bit is set. • If the axis reaches the point where the final interpolated command is output, the move complete bit is set. The Hold/Unhold Move bit has no effect on the Incremental Position command component of a move. For example, an absolute move is in progress when the Hold Move bit is set. The axis decelerates to a stop. If a new move command is received while in the held state, the old absolute move is discarded and the new move is held. When the bit is cleared, the new move begins.

Cancel Move

O:s.0/3

Cancel move (word 0, bit 3) cancels a mutually exclusive motion (i.e., absolute/incremental move, speed move, monitor move and blend profile move) in progress. The move complete bit is set when the axis has decelerated to zero velocity.

Reserved

O:s.0/4

Execute Synchronized Move O:s.0/5

Execute synchronized move (word 0, bit 5) initiates synchronized moves already commanded to the SLC Servo Module. An appropriate error is sent to the SLC if no synchronized move is commanded.

Initialize Retract Position

Initialize retract position (word 0, bit 6) causes the SLC Servo Module to define the current position as the Retract Position location. No motion occurs. The axis must have been homed. No motion can be in progress.

O:s.0/6

1

Publication 1746-6.1.2 - July 2000 s = Slot number for the SLC Servo Module.

Page 124

Programming the SLC Processor to Run the SLC Servo Module

8-7

Bit Specifications

Location1

Description

Turn On/Off Fast Output

O:s.0/7

Turn On/Off Fast Output (FOUT) (word 0, bit 7) turns the fast output on (1) and off (0).

Turn On/Off Module Requests for Service

O:s.0/8

Turn On/Off Module Requests for Service (word 0, bit 8) turns module requests for service on (1) and off (0). When set, the SLC Servo Module requests that the SLC processor perform the I/O Interrupt Subroutine (ISR) corresponding to that SLC Servo Module slot during every SLC Servo Module coarse iteration. The primary use of this ISR is to immediately input the SLC Servo Module master module’s Incremental Position command. It immediately outputs that command to all SLC Servo Module slave modules as an Incremental Position command. This functionality provides local rack low-end gearing supporting multiple masters and slaves using the same backplane. The gearing functions are potentially not accurate because the two SLC Servo Modules run off two different crystal controlled clocks that can drift with respect to each other. For applications that use the module interrupt option for the SLC Servo Module, configure the SLC Servo Module in the lowest numbered I/O slot and make sure there are no other modules in the rack that generate module interrupts. The STI (Selectable Timed Interrupts) and FAULT routines are executed at a higher priority than the module interrupt routines that are linked to the SLC Servo Module interrupt.

Reserved

O:s.0/9 through O:s.0/ 14

Mode Flag

O:s.0/15

Mode Flag (word 0, bit 15) provides the hook necessary to provide a discrete I/O-only interface. If this bit is set, all of the discrete input data is ignored because the SLC Servo Module configuration can only be accomplished using M files. If this bit is clear, the SLC Servo Module interprets the incoming data as command information. 1 s = Slot number for the SLC Servo Module.

Publication 1746-6.1.2 - July 2000

Page 125

8-8

Programming the SLC Processor to Run the SLC Servo Module

Word 1 Discrete Bit Commands Bit Specifications

Location1

Reserved

O:s.1/0

Reserved

O:s.1/1

On Home Limit

O:s.1/2

Reserved

O:s.1/3 through 1/7

Clear Fault

O:s.1/8

Clear Fault (word 1, bit 8), when set, clears the informational message or fault, currently reported in the fault code word I:s.4 by the SLC Servo Module. Toggle this bit to clear each informational message or fault reported by the SLC Servo Module. The messages and faults are cleared using the first-in, first-out (FIFO) method.

Clear All Faults

O:s.1/9

Clear All Faults (word 1, bit 9), when set, clears all informational messages and faults currently reported by the SLC Servo Module.

Reserved

O:s.1/10 through 1/15

Description

On Home Limit (word 1, bit 2) informs the SLC Servo Module that the axis has moved onto the home limit switch. If the Limit Source is configured for the backplane and Home Type is configured for Homing to Limit Switch, the SLC Ladder program is responsible for passing the state of this switch to the SLC Servo Module. If the Limit Source is configured for the termination panel, the state of this switch is reflected by FIN[3].

1

Discrete Block Commands from the SLC Processor s = Slot number for the SLC Servo Module.

The discrete block commands are sent from the SLC processor to the SLC Servo Module using discrete I/O. It contains two words of bit information and a variable number of integer and/or floating-point values. Words 0 and 1 contain the SLC processor to SLC Servo Module discrete bit commands. Words 2 and 3 contain the Incremental Position command. Words 4 through 11 contain command blocks that control motion and/or motion related activities. The SLC Servo Module responds to the new block command every time it differs from the one previously received. If command word 4 or word 5 is not zero, the SLC Servo Module reads each subsequent word to verify a change. IMPORTANT

To issue a discrete block command, set only 1 bit in words 4 and 5. If the SLC Servo Module finds more than one bit set in words 4 and 5 (except as noted earlier), an error is reported to the SLC processor.

The Plan Synchronized Move bit can be set in conjunction with a move in the simple move command set.

Publication 1746-6.1.2 - July 2000

Page 126

Programming the SLC Processor to Run the SLC Servo Module

8-9

As each block command is executed, the SLC Servo Module informs the SLC processor in a closed-loop fashion, using the SLC Servo Module to SLC processor discrete status bits. IMPORTANT

If command parameter preparation requires more than one program scan, set up the accompanying parameters before setting the command bit.

The discrete commands are classified into Incremental Position commands and simple move commands that are discussed in this section and into Position Initialization commands and On-line Configuration commands that are discussed in the next chapter.

Recovering from Estop If the Estop string is opened during a move, the move aborts. You can initiate another move once the Estop Reset is issued and the module is out of Estop. This can be done by setting/changing either the command bit, %Acceleration, Speed, Endpoint, or profile number. If these bits were set while in Estop, they must transition after the Estop resets to start a new move.

Incremental Position Command Name

Location1 Format

Incremental Position command

O:s.2-3

STDFLOAT

Possible Default Values2 0

1 s = Slot number for the SLC Servo Module. 2 Maximum value allowed is the incremental position in position units equal to ±32767 encoder edges.

These words contain the Incremental Position command (commanded on the slave axis for the next coarse iteration) if the system is out of Estop and not executing the monitor move. This command is active only if the Enable Incremental Position command bit is set in the configuration area. The SLC Servo Module converts the value passed in these words to the internal representation and adds to the command position of the servo feedback loop. This allows you to incorporate a special interpolation, camming or gearing algorithm using the PLC ladder logic.

Publication 1746-6.1.2 - July 2000

Page 127

8-10

Programming the SLC Processor to Run the SLC Servo Module

The Incremental Position command is active all the time. It can execute along with other interpolated moves from the mutually exclusive interpolated moves described in the next section except for the blend profile move. This allows you to make offset position adjustments while an interpolated move (i.e., absolute/incremental move or speed move) is executing. Since the Incremental Position command is added directly to the commanded position in the servo loop, software overtravel limits are not checked. You must stay within software overtravel limits when using an Incremental Position command.

Executing Simultaneous Moves The SLC Servo Module executes a motion block from the move command set in conjunction with the Incremental Position command except for the blend profile move. Incremental Position command cannot be active when the blend move profile is executing. When executing the Incremental Position command, the resulting command to the servo is computed as the sum total of the Incremental Position command from the PLC ladder and the interpolated move command executing every coarse iteration as shown in Figure 8.3. The move interpolator is the algorithm residing in the module that determines position increment commanded for coarse iteration. Figure 8.3 SLC Processor/Servo Module Interaction During Simultaneous Move SLC LADDER EXECUTION

SLC Servo Module Execution Environment Every Coarse Iteration 4.8 to 9.6 Milliseconds

SLC SERVO I/O Image Table

SLC LADDER IPC

ADD

I/O SCAN Move Interpolator

Publication 1746-6.1.2 - July 2000

Servo Command

Page 128

Programming the SLC Processor to Run the SLC Servo Module

8-11

Simple Move Commands All simple moves are mutually exclusive. The simple move commands are the Absolute/Incremental, Speed, Monitor, and Run Blend Move Profile commands. The currently executing move is considered complete when a new move is commanded by the SLC processor. A new move occurs when a change happens to any one of the following: • Command bit • % Acceleration parameter • Velocity Unit Per Timebase (speed) parameter • Position (endpoint) parameter • Blend Profile number For example, if an Absolute Move command is executing and the module receives a Speed Move command, the Absolute Move command is considered finished and the currently executing move command is blended into the new Speed Move command. This means that the execution and blending of moves is totally under SLC Ladder Logic Control. The units for simple moves are: • The position for each move block is in programming units (for example, inches, millimeters). • The speed for each move block is in programming units (for example, inches per minute, millimeters per second). • The acceleration or deceleration specified is in the percentage (0.0-1.0) of the maximum acceleration specified.

Using Simple Move Commands

The simple move commands discussed in this section are: • Absolute/Incremental command • Speed command • Monitor command • Run Blend Move Profile command

Using the Absolute/Incremental Move Command The absolute move command generates a move equal to the difference between the specified target position and the current Publication 1746-6.1.2 - July 2000

Page 129

8-12

Programming the SLC Processor to Run the SLC Servo Module position, causing a positive or negative move, depending on the current axis position. Absolute and incremental move parameters for word 4, bit 0/1 appear in the table below. Block Command Parameters Absolute Move OR Incremental Move More Bit Specifications % Acceleration Ramp Speed Position/Decrement 1

Location1

Format

Possible Values

Default

O:s.4

BITS

O:s.5 O:s.6-O:s.7 O:s.8-O:s.9 O:s.10-O:s.11

BITS FLOAT FLOAT FLOAT

X000 0000 0000 0001 (absolute) X000 0000 0000 0010 (incremental) 0000 0000 0000 0000 0.0 to 1.0 0.0 to +physical limit –axis travel limit to +axis travel limit

0 0 0 1.0 0.0 0.0 s = Slot number for the SLC Servo Module.

The SLC Servo Module responds differently depending on which command has not completed (if any) when the Incremental Move is initiated, as shown in the table below. If you initiate this command: Absolute Move

Incremental Move Speed Move

None (no command)

And initiate an incremental move before the first command is finished, the Servo Module: Adds the absolute and incremental moves together and stops when the moves are complete. Adds the incremental moves together and stops when the moves are complete. Blends the speed move to the incremental move and stops when the incremental move is complete. Moves the distance of the incremental move and stops when the move is complete.

If the SLC Servo Module is configured with the rollover position, the move commanded can cause multiple rollovers. The following information applies to the Absolute/Incremental move: • The speed specified for the move is the absolute maximum for the move. • If the speed specified is greater than the Maximum Axis Speed, the speed for the move is limited to the Maximum Axis Speed • The axis has to be homed to perform an absolute move • If an error occurs while executing the move, the SLC processor is notified.

Publication 1746-6.1.2 - July 2000

Page 130

8-13

Programming the SLC Processor to Run the SLC Servo Module

The Absolute/Incremental move ends if any one of the following occurs: • The move reaches its destination. • The SLC processor cancels the move. The Cancel Move bit is used to cancel the absolute or incremental component of the move. Setting the Cancel Move bit does not affect an incremental position command component (i.e., the specified incremental position command continues unless it is set to zero). • An Estop occurs. • The SLC processor sends another move from the mutually exclusive move set including a move of the same type with different % Acceleration Ramp, Speed, or Position/Increment. A new absolute move can also be initiated by simply changing the acceleration, speed or position and keeping all other discrete bits the same.

Planning an Absolute/Incremental Move Figure 8.4 shows a typical ladder program block diagram that initiates an absolute/incremental move from the SLC processor. Other moves are initiated similarly by setting appropriate values in the data tables and copying the data to the appropriate module output words. Figure 8.4 Absolute/Incremental Move Command Block Diagram

For example, an absolute move is initiated if the float data table is: Word

0 (Accel/Decel)

1 (Velocity)

2 (Position)

F43:0

1

500

20

3

4

5

And the integer data table is: Word

0

1

2

3

4

4

N31:0

1

0

0

0

0

0

Publication 1746-6.1.2 - July 2000