The text of a spec sheet · part 21 of 23
SLC Servo Control Module (Catalog No. 1746-HSRV) User Manual, pages 201 to 210
Pages 201 to 210 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 201
C-12
Programming Examples
Figure C.20 Data Table for File N31
The following is a table representation of the previous diagram showing the applicable values. Address N31:0
Command 1 (Absolute)
0
Rung 13 – INCREMENTAL Move The following rung diagram is an example of how to enter an INCREMENTAL move command. Rung 13 initiates an INCREMENTAL move. The move parameters are located in file F43. The bits to set for initiating the move are in N31. For more information on adding an INCREMENTAL Move, see the ABSOLUTE/INCREMENTAL sections in Chapter 8, Programming the SLC Processor to Run the SLC Servo Module. Figure C.21 Rung 13
Publication 1746-6.1.2 - July 2000
Page 202
Programming Examples
C-13
The following diagram shows what the data table for file F43 looks like when accessed directly from the program. Figure C.22 Data Table for File F43
Data for the incremental move in rung 13 with appropriate addresses appear in the following table. Address
Acceleration
F43:0
1
Velocity Units/ Minute 500
Position 20
The next diagram shows the Data Table for File N31 as it appears when accessed from the program. Figure C.23 Data Table for File N31
This table shows the data in a table format for the previous diagram. Address N31:0
Command 2 (Incremental)
0
Publication 1746-6.1.2 - July 2000
Page 203
C-14
Programming Examples
Rung 14 – SPEED Command Rung 14 is an example of how to enter a SPEED command in your program. This rung initiates a SPEED move. The move parameters are located in file F44 and the bits to set for initiating the move are in N31. For more information on adding an SPEED Move, see the SPEED move sections in Chapter 8, Programming the SLC Processor to Run the SLC Servo Module. Figure C.24 Rung 14
Data for the speed move in rung 14 appear in the following tables. the next diagram shows the data table for File F44 as it appears when viewed in the program. Figure C.25 Data table for File F44
The following table lists the data for the previous diagram. The table shows the values under their appropriate addresses.
Publication 1746-6.1.2 - July 2000
Address
Accel/Decel
F44:0
1
Velocity Units/ Minute 10
Page 204
Programming Examples
C-15
This diagram shows the N31 Data table as it appears when accessed from within the program. Figure C.26 Data Table for File N31
The following data is for File N31 as shown in table format. Address N31:0
Command 4 (Speed)
0
Rung 15 – MONITOR Move Rung 15 gives an example of how to enter a MONITOR move command. This rung initiates a MONITOR move. The bit specifications are in file N31. For more information on adding an MONITOR Move, see the appropriate MONITOR command sections in Chapter 8, Programming the SLC Processor to Run the SLC Servo Module. Figure C.27 Rung 15
Data for the monitor move in rung 15 appear in the table below. The following diagram is of the Data Table accessed in Rung 15.
Publication 1746-6.1.2 - July 2000
Page 205
C-16
Programming Examples
Figure C.28 Data table for File N31
This table shows the incremented value as represented in the previous diagram. Address N31:0
Command 8 (Monitor)
0
Rung 16 – BLEND Move An example of a BLEND move is shown in Rung 16. It initiates a BLEND move. The bit specifications for this move are in file N52. For more information on adding an BLEND Move, see the sections on the BLEND move in Chapter 8, Programming the SLC Processor to Run the SLC Servo Module. Figure C.29 Rung 16
Data for the blend move in rung 16 is shown as it appears when accessed directly from the program.
Publication 1746-6.1.2 - July 2000
Page 206
Programming Examples
C-17
Figure C.30 Blend Move Data Table for File N52
The following is a table representation of the previous diagram. Address N52:0
Command 16 (Blend)
0
0
Rung 17 – Clearing Move Bits This is an example of how to clear the move bits. Rung 17 clears the move bits. The bit specifications are in file N31. Figure C.31 Rung 17
This diagram shows the Data table for File N31.
Publication 1746-6.1.2 - July 2000
Page 207
C-18
Programming Examples
Figure C.32 Data Table for File N31
The table below is a table of the values shown in the previous diagram. Address N31:0
Command 0
0
Rung 18 – Copying Status Information The following example shows how to copy the status information to the data file. Rung 18 copies the position, following error, and speed from the SLC Servo module status area to the floating-point file F48. For more detailed information on how to use the copy file command to copy integer data for conversion to floating point data, see the Floating-Point Values section of Chapter 9, Programming System Variables, in this manual. Figure C.33 Rung 18
Status information from slot 1 is shown in the table below.
Publication 1746-6.1.2 - July 2000
Page 208
Programming Examples
C-19
Figure C.34 File F48 Data Table
The following table shows the data with the appropriate address headings for the previous diagram.
Address F48:0
Actual Position Following Error Velocity Units/ Minute -196.008 –0.105227 -98.4375
Rung 19 – HOME Axis This rung is an example of how to enter a home axis move. The home axis parameters are in files N32 and F27. See the Using the Home Axis Command section of Chapter 9, Programming System Variables, for more information on the Home Axis command.
Publication 1746-6.1.2 - July 2000
Page 209
C-20
Programming Examples
Figure C.35 Rung 19
Data for the home axis move in rung 19 appear in the following tables. Figure C.36 Homing Data Table
The following table shows the data under the appropriate addresses as shown in the previous diagram. Address
Acceleration
F27:0
1.0
Velocity Units/ Minute 20.0
The following diagram shows the data table for File N32 as it appears when accessed from the program.
Publication 1746-6.1.2 - July 2000
Page 210
Programming Examples
C-21
Figure C.37 Home Command Data Table
The following is a table representation of the data in the previous diagram. Address N32:0
Data 0
0
0
0
0
1
Rung 20 – Final Rung The following example shows what the final rung in a ladder program looks like. Rung 20 ends the ladder file. Figure C.38 Rung 20
Publication 1746-6.1.2 - July 2000