Beta 1742A User`s manual

Add to my manuals
520 Pages

advertisement

Beta 1742A User`s manual | Manualzz
GFK-1742
New In Stock!
GE Fanuc Manuals
http://www.pdfsupply.com/automation/ge-fanuc-manuals/motionsolutions/GFK-1742
motion-solutions
1-919-535-3180
Motion Mate DSM314 for Series 90-30 PLCs
www.pdfsupply.com
Email:
[email protected]
GFK-1742
New In Stock!
GE Fanuc Manuals
http://www.pdfsupply.com/automation/ge-fanuc-manuals/motionsolutions/GFK-1742
motion-solutions
1-919-535-3180
Motion Mate DSM314 for Series 90-30 PLCs
www.pdfsupply.com
Email:
[email protected]
GE Fanuc Automation
Programmable Control Products
Motion Mate™ DSM314
for Series 90™-30 PLCs
User's Manual
GFK-1742A
January 2001
GFL-002
Warnings, Cautions, and Notes
as Used in this Publication
Warning
Warning notices are used in this publication to emphasize that hazardous voltages,
currents, temperatures, or other conditions that could cause personal injury exist in this
equipment or may be associated with its use.
In situations where inattention could cause either personal injury or damage to
equipment, a Warning notice is used.
Caution
Caution notices are used where equipment might be damaged if care is not taken.
Note
Notes merely call attention to information that is especially significant to understanding and
operating the equipment.
This document is based on information available at the time of its publication. While efforts
have been made to be accurate, the information contained herein does not purport to cover all
details or variations in hardware or software, nor to provide for every possible contingency in
connection with installation, operation, or maintenance. Features may be described herein
which are not present in all hardware and software systems. GE Fanuc Automation assumes no
obligation of notice to holders of this document with respect to changes subsequently made.
GE Fanuc Automation makes no representation or warranty, expressed, implied, or statutory
with respect to, and assumes no responsibility for the accuracy, completeness, sufficiency, or
usefulness of the information contained herein. No warranties of merchantability or fitness for
purpose shall apply.
The following are trademarks of GE Fanuc Automation North America, Inc.
The following are trademarks of GE Fanuc Automation North America, Inc.
Alarm Master
CIMPLICITY
CIMPLICITY 90–ADS
CIMSTAR
FrameworX
Field Control
GEnet
Genius
Helpmate
Logicmaster
Modelmaster
Motion Mate
ProLoop
PROMACRO
PowerMotion
PowerTRAC
Series 90
Series Five
Series One
Series Six
Series Three
VersaMax
VersaPro
VuMaster
Workmaster
©Copyright 1999 - 2001 GE Fanuc Automation North America, Inc.
All Rights Reserved
Preface
Content of This Manual
This manual describes the Motion Mate DSM314 - a complete, integrated motion control system in
the form of an intelligent, programmable option module for the Series 90-30 Programmable Logic
Controller (PLC).
Chapter 1. Product Overview: This chapter provides an overview of the hardware and software
used to set up and operate a Motion Mate DSM314 motion control system.
Chapter 2. Getting Started: This chapter provides an introduction to the Motion Mate DSM314
motion control system through a start-up guide that outlines the steps required to operate or jog
your motion controller and servo. The startup guide is intended for the new user, but will help all
users to get their system up and running in a short time.
Chapter 3. Installing and Wiring the DSM314: Provides the installation and wiring information
required for your Motion Mate DSM314 motion control system.
Chapter 4. Configuring the DSM314: Explains how to configure the Motion Mate DSM314
using the VersaPro 1.1 (or later version) programming software configuration function.
Chapter 5. Motion Mate DSM314 to PLC Interface: Describes the %I, %AI, %Q, and %AQ
data that is transferred between the Motion Mate DSM314 and the Series 90-30 PLC CPU.
Chapter 6. Non-Programmed Motion: Describes the six different ways that non-programmed
motion can be generated.
Chapter 7. Programmed Motion: This chapter describes how the DSM314 executes program
motion commands sequentially in a block-by-block fashion in a selected program.
Chapter 8. Follower Motion: Describes how follower motion is executed by the DSM314.
Chapter 9. Combined Follower and Commanded Motion: Describes combined motion, which
consists of follower motion commanded from a master axis combined with specific internally
commanded motions.
Chapter 10. Introduction to Local Logic Programming: Provides introduction to Local Logic
concepts as well as use of the VersaPro software Local Logic editor.
Chapter 11. Local Logic Tutorial: Provides several programming examples.
Chapter 12. Local Logic Syntax: Discusses syntax, rules, and language elements.
Chapter 13: Local Logic Variables: Discusses Local Logic variable types.
Chapter 14: Local Logic Configuration: Configuring CTL bits and using them in Local Logic
programs.
GFK-1742A
iii
Preface
Chapter 15. Using VersaPro with the DSM314: Describes basic operations in VersaPro
pertaining to the DSM314, such as accessing the Motion and Local Logic editors, saving programs,
printing hardcopies, and storing configuration and programs to a PLC.
Chapter 16: Using the Electronic CAM Feature: Describes electronic CAM concepts,
commands, and programming methods.
Appendix A. Error Reporting: Describes the errors reported by the module status code and axis
error code words in %AI memory.
Appendix B. Parameter Download Using a COMM_REQ: Describes how to use the
COMM_REQ instruction for (1) loading Parameter data from the PLC to the DSM314, and (2) for
transferring data between the DSM314’s User Data Table and PLC memory.
Appendix C. Position Feedback Devices: Provides information needed to use Fanuc serial
encoders and incremental quadrature encoders with the DSM314.
Appendix D. Startup and Tuning a GE Fanuc Digital Servo System: Provides a procedure for
starting up and tuning a GE Fanuc digital servo system.
Appendix E. Local Logic Execution Time: Contains information required to determine a Local
Logic program’s execution time.
Appendix F. Updating Firmware in the DSM314: Describes the procedure for updating
firmware in Flash memory in the DSM314.
Appendix G. Strobe Accuracy Calculations. Discusses strobe position accuracy considerations
and calculations.
Related Publications
For related information, refer to the following publications:
Series 90™-30 Programmable Controller Installation Manual: GFK-0356
Installation Requirements for Conformance to Standards: GFK-1179
α Series Servo Amplifier (SVU) Descriptions Manual: GFZ-65192EN
Control Motor Amplifier α Series (SVM): GFZ-65162E
α Series Servo Motor Manuals: GFZ-65165E, GFZ-65150E, GFZ-65142E
β Series Servo Product Specification Guide: GFH-001
SL Series Servo User’s Manual; GFK-1581
iv
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Contents
Chapter 1
Product Overview............................................................................................ 1-1
Servo Types Supported........................................................................................... 1-1
Features of the Motion Mate DSM314 .......................................................................... 1-1
High Performance................................................................................................... 1-1
Easy to Use ............................................................................................................ 1-1
Versatile I/O........................................................................................................... 1-2
Section 1: Motion System Overview ............................................................. 1-3
The Series 90-30 PLC and the DSM314........................................................................ 1-4
PLC Data Latency and DSM314 Latencies ............................................................ 1-4
PLC to DSM Data Transfers........................................................................... 1-4
Motion Program/CTL Faceplate Inputs........................................................... 1-5
Local Logic.................................................................................................... 1-5
DSM314 Servo Loop Update Times ...................................................................... 1-5
DSM314 Position Strobes ..................................................................................... 1-6
DSM314 Scan Time Contribution ......................................................................... 1-6
Software................................................................................................................. 1-7
VersaPro............................................................................................................... 1-7
Operator Interfaces ................................................................................................. 1-7
Servo Drive and Machine Interfaces ....................................................................... 1-8
Section 2: Overview of Product Operations ................................................. 1-9
Standard Mode (Follower Control Loop Axis Configuration = Disabled) ........ 1-9
Follower Mode (Follower Control Loop Axis Configuration = Enabled) ......... 1-9
Standard Mode Operation..................................................................................... 1-10
Follower Mode Operation..................................................................................... 1-11
Section 3: α Series Servos (Digital Mode) ...................................................1-12
α Series Integrated Digital Amplifier (SVU)......................................................... 1-12
α Series Servo Motors .......................................................................................... 1-13
Section 4: β Series Servos (Digital Mode)....................................................1-14
β Series Digital Amplifiers ................................................................................... 1-14
β Series Servo Motors .......................................................................................... 1-15
Section 5: SL Series Servos (Analog Mode) ................................................1-16
Chapter 2
Getting Started ................................................................................................ 2-1
Section 1: Unpacking the System.................................................................. 2-3
Unpacking the DSM314 ......................................................................................... 2-3
Unpacking the Digital Servo Amplifier................................................................... 2-3
Unpacking the FANUC Motor................................................................................ 2-3
Section 2: Assembling the Motion Mate DSM314 System ........................... 2-4
Motion Mate DSM314 Connections........................................................................ 2-4
Connecting the α Series SVU Digital Servo Amplifier............................................ 2-5
SVU Amplifier Channel Switches........................................................................... 2-6
Connecting the β Series SVU Digital Servo Amplifier .......................................... 2-13
GFK-1742A
v
Contents
Installing and Wiring the DSM314 for Analog Mode............................................ 2-21
Grounding the Motion Mate DSM314 Motion System .......................................... 2-22
Section 3: Turning on the Motion Mate DSM314.......................................2-24
Section 4: Configuring the Motion Mate DSM314......................................2-25
VersaPro Program Folders.................................................................................... 2-25
Module Configuration Data (Getting Started Tutorial only) .................................. 2-31
Motor Type (Digital Mode) .................................................................................. 2-34
Store the Configuration to the PLC ....................................................................... 2-36
Section 5: Testing Your System ...................................................................2-37
Generating Motion ............................................................................................... 2-37
Enabling Run Mode on the PLC.......................................................................... 2-37
Jogging With the Motion Mate DSM314 .............................................................. 2-38
Section 6: Troubleshooting Your Motion System .......................................2-38
Alarms ................................................................................................................. 2-38
Configuration Settings .......................................................................................... 2-38
Telephone Numbers.............................................................................................. 2-39
GE Fanuc web site................................................................................................ 2-39
Fax Link System................................................................................................... 2-39
Section 7: Next Steps to Take.......................................................................2-40
Chapter 3
Installing and Wiring the DSM314................................................................. 3-1
Section 1: Hardware Description.................................................................. 3-1
LED Indicators....................................................................................................... 3-2
The DSM COMM (Serial Communications) Connector .......................................... 3-3
I/O Connectors ....................................................................................................... 3-3
Shield Ground Connection...................................................................................... 3-4
Section 2: Installing the DSM314 Module .................................................... 3-5
Standard Series 90-30 Power Supplies ............................................................ 3-6
High Capacity Series 90-30 Power Supplies ................................................... 3-6
Section 3: I/O Wiring and Connections........................................................ 3-8
I/O Circuit Types .......................................................................................................... 3-8
Terminal Boards ........................................................................................................... 3-8
Digital Servo Axis Terminal Board - IC693ACC335................................................... 3-10
Description........................................................................................................... 3-10
Mounting Dimensions .......................................................................................... 3-12
Converting From DIN-Rail Mounting to Panel Mounting...................................... 3-13
Auxiliary Terminal Board - IC693ACC336................................................................. 3-15
Description and Mounting Dimensions ................................................................. 3-15
Converting From DIN-Rail Mounting to Panel Mounting...................................... 3-16
Cables ........................................................................................................................ 3-18
I/O Cable Grounding ............................................................................................ 3-21
vi
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Contents
I/O Circuit Identifiers and Signal Names............................................................... 3-24
I/O Circuit Function and Pin Assignments ............................................................ 3-24
Digital Servo Axis 1, 2 Circuit and Pin Assignments ........................................... 3-25
Analog Servo Axis 1-4 Circuit and Pin Assignments ........................................... 3-26
Aux Axis 2-4 Circuit and Pin Assignments.......................................................... 3-27
I/O Connection Diagrams ..................................................................................... 3-28
I/O Specifications ................................................................................................. 3-36
Differential / Single Ended 5v Inputs................................................................... 3-37
Single Ended 5v Sink Input ................................................................................. 3-38
Optically Isolated 24v Source / Sink Inputs ......................................................... 3-39
Single Ended 5v Inputs/Outputs .......................................................................... 3-40
5v Differential Outputs ....................................................................................... 3-41
24v DC Optically Isolated Output ....................................................................... 3-42
Optically Isolated Enable Relay Output ............................................................... 3-43
Differential +/- 10v Analog Inputs....................................................................... 3-44
Single Ended +/- 10v Analog Output ................................................................... 3-45
+5v Power .......................................................................................................... 3-46
Chapter 4
Configuration .................................................................................................. 4-1
Rack/Slot Configuration ............................................................................................... 4-1
Module Configuration................................................................................................... 4-2
Setting the Configuration Parameters...................................................................... 4-2
Settings................................................................................................................. 4-3
Serial Communications Port Configuration Data.................................................... 4-6
Control (CTL) Bits................................................................................................ 4-8
Output Bits ........................................................................................................... 4-9
Axis Configuration Data ..................................................................................... 4-10
Tuning Data........................................................................................................ 4-24
Computing Data Limit Variables ......................................................................... 4-30
Advanced Tab Data............................................................................................. 4-31
Tuning Parameters Supported in Release 1.0 ................................................ 4-31
Entering Tuning Parameter Numbers and Data in the Advanced Tab Cells .... 4-32
Power Consumption Data.................................................................................... 4-32
Chapter 5
Motion Mate DSM314 to PLC Interface ........................................................ 5-1
Section 1:
Section 2:
Section 3:
Section 4:
%I Status Bits............................................................................... 5-2
%AI Status Words ....................................................................... 5-7
%Q Discrete Commands.............................................................5-10
%AQ Immediate Commands......................................................5-15
Digital Mode................................................................................................ 5-20
Force Analog Output (Digital Mode) Example.............................................. 5-20
Analog Mode ............................................................................................... 5-21
Chapter 6
Non-Programmed Motion............................................................................... 6-1
DSM314 Home Cycle................................................................................................... 6-1
Home Switch Mode................................................................................................ 6-1
Find Home Routine for Home Switch ............................................................. 6-2
GFK-1742A
Contents
vii
Contents
Home Switch Example................................................................................... 6-2
Move+ and Move– Modes ...................................................................................... 6-3
Move – (Minus) Home Cycle Example........................................................... 6-4
Find Home Routine for Move + or Move – ..................................................... 6-4
Jogging with the DSM314 ............................................................................................ 6-5
Move at Velocity Command ......................................................................................... 6-5
Force Digital Servo Velocity Command (DIGITAL Servos) ......................................... 6-6
Force Analog Output Command (ANALOG Servos)..................................................... 6-6
Position Increment Commands...................................................................................... 6-7
Other Considerations .................................................................................................... 6-7
Chapter 7
Programmed Motion....................................................................................... 7-1
Motion Program Command Types .................................................................. 7-2
Prerequisites for Programmed Motion........................................................................... 7-4
Conditions That Stop a Motion Program ....................................................................... 7-4
Motion Program Basics................................................................................... 7-5
Number of Programs, Subroutines, and Statements ......................................... 7-5
Format ........................................................................................................... 7-5
Single-axis and multi-axis programs and subroutines ...................................... 7-5
Program and subroutine definition statements ................................................. 7-5
Block numbers and sync blocks ...................................................................... 7-5
Motion Language Syntax and Commands ............................................................... 7-6
White space .......................................................................................................... 7-6
Numeric Constants................................................................................................ 7-6
Comments ............................................................................................................ 7-6
Motion Program Key Words ................................................................................. 7-6
Variables .............................................................................................................. 7-7
Separators............................................................................................................. 7-7
Motion Program Commands ......................................................................................... 7-8
ACCEL .................................................................................................................. 7-8
Block Number ........................................................................................................ 7-9
CALL..................................................................................................................... 7-9
CMOVE............................................................................................................... 7-10
DWELL ............................................................................................................... 7-10
ENDPROG .......................................................................................................... 7-11
ENDSUB ............................................................................................................. 7-11
JUMP................................................................................................................... 7-11
LOAD .................................................................................................................. 7-12
PMOVE ............................................................................................................... 7-12
PROGRAM.......................................................................................................... 7-13
SUBROUTINE .................................................................................................... 7-14
Sync Block........................................................................................................... 7-15
VELOC................................................................................................................ 7-15
WAIT................................................................................................................... 7-16
Program and Subroutine Structure............................................................................... 7-17
viii
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Contents
Single-axis Program Structure ...................................................................... 7-17
Single-Axis Program Example...................................................................... 7-17
Multi-Axis Program Structure ...................................................................... 7-18
Multi-Axis Program Example....................................................................... 7-18
Single-axis Subroutine Structure................................................................... 7-19
Single-Axis Subroutine Example .................................................................. 7-19
Multi-Axis Subroutine Structure................................................................... 7-19
Multi-Axis Subroutine Example ................................................................... 7-20
Command Usage Examples ........................................................................................ 7-21
Absolute or Incremental Positioning ..................................................................... 7-21
Absolute Positioning........................................................................................... 7-21
Incremental Positioning....................................................................................... 7-21
Types of Acceleration........................................................................................... 7-22
Linear Acceleration............................................................................................. 7-22
S-Curve Acceleration .......................................................................................... 7-22
Types of Programmed Move Commands .................................................................... 7-23
Positioning Move (PMOVE) ................................................................................ 7-23
Continuous Move (CMOVE)................................................................................ 7-23
Programmed Moves.............................................................................................. 7-25
Example 1:
Example 2:
Example 3:
Example 4:
Combining PMOVEs and CMOVEs ................................................ 7-25
Changing the Acceleration Mode During a Profile............................ 7-26
Not Enough Distance to Reach Programmed Velocity ...................... 7-26
Hanging the Move When the Distance Runs Out .............................. 7-26
DWELL Command .............................................................................................. 7-27
Example 5: DWELL .......................................................................................... 7-27
Wait Command .................................................................................................... 7-28
Subroutines .......................................................................................................... 7-28
Block Numbers and Jumps ................................................................................... 7-28
Unconditional Jumps ............................................................................................ 7-29
Example 6: Unconditional Jump......................................................................... 7-29
Conditional Jumps................................................................................................ 7-29
Conditional Jump Example 1: ............................................................................. 7-30
Conditional Jump Example 2: ............................................................................. 7-30
Conditional Jump Example 3: ............................................................................. 7-30
Jump Testing........................................................................................................ 7-31
Example 7: Jump Testing ................................................................................... 7-31
Normal Stop Before JUMP................................................................................... 7-32
Example 8: Normal Stop Before JUMP .............................................................. 7-32
Jumping Without Stopping ................................................................................... 7-33
Example 9: JUMP Without Stopping.................................................................. 7-33
Jump Stop ............................................................................................................ 7-34
Example 10: Jump Stop...................................................................................... 7-34
Example 11: Jump Followed by PMOVE ........................................................... 7-35
S-CURVE Jumps.................................................................................................. 7-35
S-CURVE Jumps after the Midpoint of Acceleration or Deceleration................... 7-35
Example 12: S-CURVE - Jumping After the Midpoint of Acceleration or
Deceleration ....................................................................................................... 7-35
S-CURVE Jumps before the Midpoint of Acceleration or Deceleration ................ 7-36
GFK-1742A
Contents
ix
Contents
Example 13: S-CURVE - Jumping Before the Midpoint of Acceleration or
Deceleration ....................................................................................................... 7-36
S-CURVE Jumps to a higher Acceleration while Accelerating or a lower Deceleration
while Decelerating .............................................................................................. 7-37
Example 14: S-CURVE - Jumping to a Higher Velocity While Accelerating or
Jumping to a Lower Velocity While Decelerating................................................ 7-37
Other Programmed Motion Considerations ................................................................. 7-38
Maximum Acceleration Time ............................................................................... 7-38
Example 15: Maximum Acceleration Time......................................................... 7-38
Feedhold with the DSM314 ........................................................................................ 7-40
Example 16: Feedhold........................................................................................ 7-40
Feedrate Override ....................................................................................................... 7-41
Example 17: Feedrate Override .......................................................................... 7-41
Multi-axis Programming ............................................................................................. 7-42
Example 18: Multi-axis Programming ................................................................ 7-42
Parameters (P0-P255) in the DSM314......................................................................... 7-44
Calculating Acceleration, Velocity and Position Values .............................................. 7-46
Kinematic Equations......................................................................................7-46
Motion Editor Error and Warning Messages................................................................ 7-49
Syntax Errors ....................................................................................................... 7-49
Semantic Errors.................................................................................................... 7-49
Warnings.............................................................................................................. 7-52
Using Error Messages to Troubleshoot Motion Programs...................................... 7-53
Chapter 8
Follower Motion .............................................................................................. 8-1
External Master Inputs............................................................................................ 8-2
Example 1: Following Axis 3 Actual Position Master Input .................................. 8-2
Internal Master Axis Command generators ............................................................. 8-3
Example 2: Following an Internal Master command ............................................. 8-3
A:B Ratio ..................................................................................................................... 8-3
Example 3: Sample A:B Ratios ............................................................................ 8-4
Example 4: Changing the A:B Ratio..................................................................... 8-5
Velocity Clamping........................................................................................................ 8-5
Example 5: Velocity Clamping............................................................................. 8-5
Unidirectional Operation............................................................................................... 8-6
Example 9: Unidirectional Operation.................................................................... 8-6
Enabling the Follower with External Input .................................................................... 8-6
Disabling the Follower with External Input ................................................................... 8-7
Follower Disable Action Configured for Incremental Position....................................... 8-7
Follower Axis Acceleration Ramp Control.................................................................... 8-7
Follower Mode Command Source and Connection Options ................................. 8-11
Chapter 9
Combined Follower and Commanded Motion............................................... 9-1
Example 1: Follower Motion Combined with Jog......................................................... 9-1
Follower Motion Combined with Motion Programs ...................................................... 9-2
Example 2: Follower Motion Combined with Motion Program...................................... 9-5
x
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Contents
Control Sequence:................................................................................................. 9-5
Chapter 10
Introduction to Local Logic Programming ...................................................10-1
Introduction to Local Logic Programming................................................................... 10-1
When to Use Local Logic Versus PLC Logic .............................................................. 10-4
Getting Started with Local Logic and Motion Programming........................................ 10-5
Requirements.............................................................................................................. 10-5
Getting Started with VersaPro..................................................................................... 10-5
Using the Local Logic Editor ...................................................................................... 10-7
Local Logic Variable Table......................................................................................... 10-9
Main Window Menus ............................................................................................... 10-10
File..................................................................................................................... 10-10
Edit .................................................................................................................... 10-12
View .................................................................................................................. 10-13
Folder................................................................................................................. 10-14
PLC ................................................................................................................... 10-15
Tools.................................................................................................................. 10-16
Window ............................................................................................................. 10-17
Help ................................................................................................................... 10-18
Toolbars............................................................................................................. 10-18
VersaPro/Local Logic Editor Window Layout........................................................... 10-20
Changing a VersaPro Screen Layout.................................................................. 10-20
Connecting the Local Logic Editor to the DSM................................................... 10-21
Building Your First Local Logic Program........................................................... 10-22
Downloading Your First Local Logic Program ................................................... 10-39
Executing Your First Local Logic Program......................................................... 10-42
Using the Motion Program Editor ............................................................................. 10-43
Executing Your First Motion Program................................................................ 10-54
Chapter 11
Local Logic Tutorial.......................................................................................11-1
Introduction................................................................................................................ 11-1
Statements .................................................................................................................. 11-1
Comments .................................................................................................................. 11-2
Variables .................................................................................................................... 11-2
Operators.................................................................................................................... 11-3
Arithmetic Operators ............................................................................................ 11-3
Relational Operators............................................................................................. 11-4
Bitwise Logical Operators .................................................................................... 11-4
Local Logic / PLC / Motion Program Communication ................................................ 11-5
Local Logic Programming Examples .......................................................................... 11-5
Torque Limiting Program Example............................................................................. 11-6
Gain Scheduler Program Example............................................................................... 11-8
Programmable Limit Switch Program Example........................................................... 11-9
GFK-1742A
Contents
xi
Contents
Trigger Output Based Upon Position Program Example............................................ 11-10
Windowing Strobes Program Example...................................................................... 11-12
Windowing Strobes Local Logic Program .................................................. 11-12
Chapter 12
Local Logic Language Syntax........................................................................12-1
Introduction................................................................................................................ 12-1
Syntactic Elements ..................................................................................................... 12-1
Numeric Constants ............................................................................................... 12-1
Local Logic Variables .......................................................................................... 12-2
Local Logic Statements ........................................................................................ 12-2
Local Logic Assignment Statements.................................................................... 12-2
Local Logic Conditional Statements .................................................................... 12-3
Whitespace........................................................................................................... 12-4
Comments ............................................................................................................ 12-4
PRAGMA Directive ............................................................................................. 12-5
Local Logic Keywords and Operators................................................................... 12-5
Enabling and Disabling Local Logic ........................................................................... 12-6
Local Logic Outputs/Commands................................................................................. 12-6
Local Logic Arithmetic Operators............................................................................... 12-8
Operator +............................................................................................................ 12-8
Operator -............................................................................................................. 12-9
Operator * ............................................................................................................ 12-9
Operator /........................................................................................................... 12-10
Operator MOD ................................................................................................... 12-11
Function ABS..................................................................................................... 12-12
Local Logic Bitwise Logical Operators ..................................................................... 12-13
Operator BWAND.............................................................................................. 12-13
Operator BWOR................................................................................................. 12-14
Operator BWXOR.............................................................................................. 12-14
Operator BWNOT .............................................................................................. 12-15
Comparison Operators .............................................................................................. 12-16
Local Logic Runtime Errors...................................................................................... 12-17
Overflow Status ................................................................................................ 12-17
Divide By Zero ................................................................................................. 12-17
Watchdog Timeout Warning / Error .................................................................. 12-18
Local Logic Error Messages ..................................................................................... 12-19
Local Logic Build Error Messages...................................................................... 12-19
Local Logic Syntax Errors.................................................................................. 12-19
Example: ................................................................................................... 12-19
Local Logic Parse Errors .................................................................................... 12-20
Examples: .................................................................................................. 12-20
Local Logic Parse Warnings ............................................................................... 12-22
Local Logic Download Error Messages .............................................................. 12-23
Local Logic Runtime Errors ............................................................................... 12-24
xii
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Contents
Chapter 13
Local Logic Variables.....................................................................................13-1
Local Logic Variable Types ........................................................................................ 13-1
Local Logic System Variables..................................................................................... 13-2
First_Local_Logic_Sweep variable............................................................... 13-2
Overflow variable ........................................................................................ 13-2
System_Halt variable ................................................................................... 13-3
Double Precision 64 Bit Registers............................................................................... 13-3
Local Logic User Data Table ...................................................................................... 13-4
Digital Outputs / CTL Variables ................................................................................. 13-4
Chapter 14
Local Logic Configuration .............................................................................14-1
CTL Bit Configuration................................................................................................ 14-1
New CTL bits CTL01-CTL32..................................................................................... 14-2
CTL01-CTL24 Bit Configuration Selections............................................................... 14-4
FBSA Function and CTL Bit Assignments.................................................................. 14-5
Faceplate Output Bit Configuration............................................................................. 14-6
Chapter 15
Using VersaPro with the DSM314.................................................................15-1
Getting Started ...............................................................................................15-1
Starting VersaPro ................................................................................................. 15-1
Changing a VersaPro Screen Layout.................................................................... 15-3
Starting the Configuration Process ...............................................................15-4
Configuring the DSM314 ...............................................................................15-6
Saving Your Configuration Settings to Disk ................................................. 15-8
Connecting to and Storing Your Configuration to the PLC.........................15-9
Useful Tool Bar Icons .................................................................................. 15-9
Connecting to the PLC ................................................................................. 15-9
Stopping the PLC....................................................................................... 15-10
Store Operation .......................................................................................... 15-10
Using the Motion Editor ..............................................................................15-11
Accessing the Motion Editor Screen .................................................................. 15-11
Saving your Motion Program ............................................................................ 15-13
Storing your Motion Programs and Subroutines to the PLC ............................... 15-13
Printing a Hardcopy of your Motion Programs and Subroutines ......................... 15-13
Print:.......................................................................................................... 15-13
Print Report: .............................................................................................. 15-13
Accessing the Local Logic Editor Screen ....................................................15-15
Saving your Local Logic Program ..................................................................... 15-16
Storing your Local Logic Program to the PLC ................................................... 15-16
Printing a Hardcopy of your Local Logic Program............................................. 15-16
Print:.......................................................................................................... 15-17
Print Report: .............................................................................................. 15-17
Viewing the Local Logic Variable Table ........................................................... 15-18
Chapter 16
GFK-1742A
Using the Electronic CAM Feature ...............................................................16-1
Contents
xiii
Contents
Section 1:
Introduction.............................................................................16-1
Electronic CAM Overview.......................................................................................... 16-1
Basic CAM Shapes/Definition .................................................................................... 16-4
Section 2:
Cam Syntax .............................................................................16-5
CAM Types................................................................................................................ 16-5
Non-Cyclic CAM ................................................................................................. 16-5
Linear Cyclic CAM .............................................................................................. 16-5
Circular Cyclic CAM............................................................................................ 16-6
Interpolation and Smoothing....................................................................................... 16-8
Blending Sectors .................................................................................................. 16-9
1st order to 1st order ............................................................................................. 16-9
1st order to 2nd order ............................................................................................ 16-9
2nd order to 1st order ............................................................................................ 16-9
2nd order to 2nd order ........................................................................................... 16-9
2nd order to 3rd order............................................................................................ 16-9
3rd order to 2nd order............................................................................................ 16-9
3rd order to 3rd order ............................................................................................ 16-9
Boundary Conditions.......................................................................................... 16-10
Interaction of Motion Programs with CAM ............................................................... 16-11
CAM Command ....................................................................................................... 16-11
CAM-LOAD Command ........................................................................................... 16-13
CAM-PHASE Command.......................................................................................... 16-14
CAM and MOVE Instructions................................................................................... 16-14
Time-Based CAM Motion ........................................................................................ 16-14
CAM Scaling Editor and Hardware Configuration .................................................... 16-14
Synchronization of CAM Motion with External Events............................................. 16-19
CAM-Specific DSM Error Codes.............................................................................. 16-20
Section 3:
Electronic Cam Programming Basics...................................16-22
Requirements............................................................................................................ 16-22
Introduction to Electronic CAM Programming.......................................................... 16-22
Creating a CAM Application Example................................................................ 16-22
Basic Steps ....................................................................................................... 16-22
Step 1: Create a New Folder ...................................................................... 16-23
Step 2: Create a CAM Block Using the CAM Editor.................................. 16-24
Step 3: Create a CAM Profile .................................................................... 16-27
Step 4: Link the CAM Profile to the CAM Block ....................................... 16-29
Step 5: Configure CAM Profile Data Points............................................... 16-30
Step 6: Specify the CAM Type .................................................................. 16-32
Step 7: Specify the Correction Property ..................................................... 16-33
Step 8: Save the CAM Profile.................................................................... 16-34
Step 9: Generate Motion and Local Logic Programs................................... 16-34
Step 10: Set up Hardware Configuration in VersaPro ................................. 16-38
Step 11: Execute (Test) Your CAM-Based Motion Program ...................... 16-49
Appendix A
Error Reporting ..............................................................................................A-1
DSM314 Error Codes .................................................................................................. A-1
xiv
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Contents
Module Status Code Word............................................................................. A-1
Axis Error Code Words ................................................................................. A-1
Error Code Format ................................................................................................ A-2
Response Methods................................................................................................. A-2
DSM Digital Servo Alarms (B0–BE) ......................................................................... A-14
LED Indicators .......................................................................................................... A-17
Appendix B
DSM314 Communications Request Instructions ...........................................B-1
Section 1: Communications Request Overview.............................................B-2
Structure of the Communications Request.............................................................. B-2
Corrective Action.......................................................................................... B-4
Monitoring the Status Word ................................................................................. B-5
Error Detection and Handling........................................................................ B-5
Verifying that the DSM Received Correct Data ............................................. B-5
Section 2: The COMM REQ Ladder Instruction ..........................................B-7
DSM COMM REQ Programming Requirements and Recommendations ........ B-8
Section 3: The User Data Table (UDT) COMM REQ ..................................B-9
User Data Table COMM REQ Features and Usage Information ............................ B-9
The UDT COMM REQ Command Block ............................................................B-10
User Data Table COMM REQ Example ..............................................................B-12
User Data Table COMM REQ Example .............................................................. B-13
Section 4: The Parameter Load COMM REQ.............................................B-14
The Command Block ..........................................................................................B-14
DSM Parameter Load COMM REQ Example......................................................B-17
Section 5: COMM REQ Ladder Logic Example .........................................B-19
Setting up the COMM REQ Command Block Values ...................................B-19
Locic for Parameter Data (not Shown)..........................................................B-20
Handling Double Integer Parameter Values and Input Value Scaling.............B-20
The Communications Request Instruction.....................................................B-21
Appendix C
Position Feedback Devices ..............................................................................C-1
Digital Serial Encoder Modes ................................................................................ C-1
Incremental Encoder Mode Considerations .................................................................. C-1
Absolute Encoder Mode Considerations....................................................................... C-2
Absolute Encoder - First Time Use or Use After Loss of Encoder Battery Power ... C-2
Absolute Encoder Mode - Position Initialization .................................................... C-2
Find Home Cycle - Absolute Encoder Mode......................................................... C-2
Set Position Command - Absolute Encoder Mode................................................. C-3
Absolute Encoder Mode - DSM314 Power-Up ...................................................... C-3
Incremental Quadrature Encoder............................................................................ C-3
Appendix D
Start-Up and Tuning GE Fanuc Digital and Analog Servo Systems.............D-1
Validating Home Switch, Over Travel Inputs and Motor direction ............................... D-1
Digital Servo System Startup Troubleshooting Hints.............................................. D-3
Tuning a GE Fanuc Digital Servo Drive....................................................................... D-4
GFK-1742A
Contents
xv
Contents
Tuning Requirements ............................................................................................ D-4
Tuning the Velocity Loop..................................................................................... D-5
Method #1: .......................................................................................................... D-5
Method #2: .......................................................................................................... D-5
Equation 1 ........................................................................................................... D-5
Sample Velocity Loop Tuning Session ................................................................. D-6
Tuning the Position Loop ................................................................................... D-12
Terminology ............................................................................................... D-12
High Bandwidth.......................................................................................... D-12
Analog Mode System Startup Procedures................................................................... D-14
Startup Procedures .......................................................................................D-14
System Troubleshooting Hints (Analog Mode) ............................................D-16
Appendix E
Local Logic Execution Time ...........................................................................E-1
Local Logic Execution Timing Data .............................................................................E-1
Example 1 ....................................................................................................................E-1
Example 2 ....................................................................................................................E-3
Appendix F
Updating Firmware in the DSM314 ............................................................... F-1
To Install the New Firmware, Perform the Following Steps:..........................................F-1
DOS Update...................................................................................................F-1
Windows Update (For Windows 95/NT/98, NOT Windows 3.1).....................F-2
Restarting an Interrupted Firmware Upgrade.................................................................F-2
Appendix G
Strobe Accuracy Calculations........................................................................ G-1
Analog Mode:.............................................................................................................. G-1
Digital Mode: .............................................................................................................. G-1
xvi
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Chapter
Product Overview
1
The Motion Mate DSM314 is a high performance, easy-to-use, multi-axis motion control module
that is highly integrated with the Series 90-30 PLC logic solving and communications functions.
The DSM314 supports two primary control loop configurations:
„
„
Standard Mode (Follower Control Loop Disabled)
Follower Mode (Follower Control Loop Enabled)
Servo Types Supported
„
„
Digital – GE Fanuc α Series and β Series digital servo amplifiers and motors. These
products are documented in publication GFK-001.
Analog – GE Fanuc SL Series analog servos and third-party analog servos are supported.
The GE Fanuc SL-Series servos are documented in the SL Series Servo User’s Manual, GFK1581.
Features of the Motion Mate DSM314
STAT
COMM
OK
CFG
EN3
EN4
High Performance
„
Digital Signal Processor (DSP) control of GE Fanuc servos
„
Block Processing time under 5 milliseconds
„
Velocity Feed forward and Position Error Integrator to
enhance tracking accuracy
„
High resolution of programming units
- Position: -536,870,912...+536,870,911 User Units
- Velocity: 1 ... 8,388,607 User Units/sec
- Acceleration: 1 … 1,073,741,823 User Units/sec/sec
C
EN1
EN2
A
D
B
Easy to Use
„
Simple and powerful motion program instruction set
„
Simple 1 to 4-axis motion programs. Multi-axis programs using
Axes 1 and 2 may utilize a synchronized block start.
Motion Mate DSM314
GFK-1742A
1-1
1
„
Non-volatile storage for 10 programs and 40 subroutines created with VersaPro
software (Version 1.1 or later).
„
Compatible with Series 90-30 CPUs equipped with firmware release 10.0 or later
(will not work with CPUs 311 – 341 and 351). Please consult the Series 90-30 PLC
Installation and Hardware Manual, GFK-0356P or later, for CPU details.
„
Single point of connect for all programming and configuration tasks, including
motion program creation (Motion Programs 1 – 10) and Local Logic programming.
All programming and configuration is loaded through the PLC’s programming
communications port. In turn, the CPU loads all configuration, motion programs,
and Local Logic programs to the DSM314 across the PLC backplane.
„
User scaling of programming units (User Units) in both Standard and Follower
modes.
„
DSM314 firmware, stored in Flash memory, is updated via its front panel COMM
port. Firmware update kits provide firmware and Loader software on floppy disk.
Firmware will also be available for download on the GE Fanuc web site
(http://www.gefanuc.com/support).
„
“Recipe” programming using command parameters as operands for Acceleration,
Velocity, Move, and Dwell Commands
„
Automatic Data Transfer between PLC tables and DSM314 without user
programming
„
Ease of I/O connection with factory cables and terminal blocks
„
Electronic CAM capability, starting with Firmware Release (Version) 2.0
„
Control of GE Fanuc α Series and β Series Digital servos, SL-Series servos, or third
party servos with analog command interface.
„
Home and overtravel switch inputs for each Servo Axis
„
Two Position Capture Strobe Inputs for each axis can capture axis and/or master
position with an accuracy of +/-2 counts plus 10 microseconds of variance.
„
5v , 24v and analog I/O for use by PLC
„
Incremental Quadrature Encoder input on each axis for Encoder/Analog mode
„
Quadrature Encoder input for Follower Master axis
„
13 bit Analog Output can be controlled by PLC or used as Digital Servo Tuning
monitor
„
High speed digital output (four each 24V and four each 5V) via on-board Local
Logic control
Versatile I/O
1-2
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Product Overview
1
Section 1: Motion System Overview
The DSM314 is an intelligent, fully programmable, motion control option module for the Series
90-30 Programmable Logic Controller (PLC). The DSM314 allows a PLC user to combine high
performance motion control and Local Logic capabilities with PLC logic solving functions in one
integrated system. The figure below illustrates the hardware and software used to set up and
operate a servo system. This section will briefly discuss each system element to provide an
overall understanding of system operation.
Operator
Interfaces
Machine 1
PS
C
P
U
D
S
M
Amp. 1
Encoder 1
Machine 2
Amp. 2
VersaPro Software:
Configuration
Motion Programming
Local Logic Programming
Encoder 2
Encoder 3
(Follower Master)
Figure 1-1. Hardware and Software Used to Configure, Program, and Operate a DSM314 Servo
System
GFK-1742A
Chapter 1 Product Overview
1-3
1
The Series 90-30 PLC and the DSM314
The DSM314 and Series 90-30 PLC operate together as one integrated motion control package.
The DSM314 communicates with the PLC through the backplane interface. Every PLC sweep,
data such as Commanded Velocity and Actual Position within the DSM314 is transferred to the
PLC in %I and %AI data. Also every PLC sweep, %Q and %AQ data is transferred from the PLC
to the DSM314. The %Q and %AQ data is used to control the DSM314. %Q bits perform
functions such as initiating motion, aborting motion, and clearing strobe flags. %AQ commands
perform functions such as initializing position and loading parameter registers.
Besides the use of %I, %AI, %Q, and %AQ addresses, an additional way to send parameters from
the PLC to the DSM314 is with the COMM_REQ ladder program instruction. Details about
using the COMM_REQ instruction with the DSM can be found in Appendix B, DSM314
COMM_REQ Instructions.
PLC Data Latency and DSM314 Latencies
The DSM314 is an intelligent module operating asynchronously to the Series 90-30 CPU module.
Data is exchanged between the CPU and the DSM314 automatically. For information about the
operation of the Series 90-30 sweep refer to the Series 90-30 PLC CPU Instruction Set Reference
Manual GFK-0467. The following information specifies timing considerations as applied to the
DSM314 module.
PLC to DSM Data Transfers
1-4
•
PLC based functions may retrieve DSM status (%I and %AI) information from the DSM data
memory asynchronously. The DSM will internally refresh all status data except Actual
Velocity at the position loop rate (once every 0.5 to 2 ms). Actual Velocity is updated in the
DSM data memory every 128 milliseconds. The DSM performs averaging to generate an
accurate Actual Velocity reading; therefore, the Actual Velocity reading is not intended for
high-speed control purposes.
•
The PLC requires approximately 2-4 milliseconds back-plane overhead when reading data
(%I and %AI) from and writing data (%Q and %AQ) to DSM internal memory if the DSM is
located in the CPU rack. The PLC will normally read input data from and write output data to
the DSM once per PLC sweep. A worst case scenario is if the DSM internal data update
(which takes 0.5 to 2 ms to occur) occurs just after the PLC scan’s input update. The PLC
will not read DSM data again until its next scan. The result is that any changes in DSM data
will be available in the PLC either 4-6 ms later or approximately one PLC sweep later,
whichever is larger.
•
The VersaPro configuration software automatically selects the lengths of %AI and %AQ data
based upon the number of axes configured. A PLC CPU requires time to read and write the
data across the backplane with the DSM314. The Series 90-30 PLC Instruction Set
Reference Manual, GFK-0467 version M or later, documents the PLC sweep impact by CPU
model group when the different axis configurations are selected. Also refer to the Important
Product Information sheet that comes packaged with the DSM module.
•
PLC commands to the DSM (%Q, %AQ) are output to the DSM at the end of the PLC logic
solving sweep. The DSM will process the commands within 4 milliseconds after receipt..
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
1
Product Overview
Motion Program/CTL Faceplate Inputs
•
Delays associated with motion program control or branching via faceplate CTL inputs are
equal to a position loop update time interval (0.5 to 2 ms) plus the input filter delay (5 ms
typical for 24 volt CTL inputs or 10 µs for 5 volt CTL inputs). See tables 1-1, 1-2, and 1-3
for position loop update times.
Local Logic
•
Delays associated with Local Logic data updates are based upon the position loop update time
interval (see next section, “DSM314 Servo Loop Update Times”) and are not related to the
PLC scan. Therefore, Local Logic programs can utilize rapidly changing DSM internal data
that cannot be utilized by the PLC CPU due to the PLC to DSM data transfer time and the
PLC’s longer scan time.
DSM314 Servo Loop Update Times
When controlling a GE Fanuc digital AC servo, the DSM314 uses the loop update times shown in
Table 1-1.
Table 1-1. GE Fanuc Digital Servo Loop Update Times
Motor Current / Torque Loop:
250 microseconds
Motor Velocity Loop:
1 millisecond
Motor Position Loop:
2 milliseconds
When controlling an Analog servo, the DSM314 without Local Logic uses the loop update times
shown in Table 1-2.
Table 1-2. Analog Servo Loop Update Times without Local Logic
1-Axis Position Loop without Local Logic:
0.5 milliseconds
2-Axes Position Loop without Local Logic:
1 millisecond
3-4 Axes Position Loop without Local Logic:
2 milliseconds
When controlling an Analog servo, the DSM314 with Local Logic uses the following loop update
times shown in Table 1-3. The loop update rates with Local Logic are longer since Axis #4 time
slot is used to calculate the Local Logic function.
Table 1-3. Analog Servo Loop Update Times with Local Logic
GFK-1742A
1 Axis Position Loop with Local Logic:
1 millisecond
2 –3 Axes Position Loop with Local Logic:
2 milliseconds
Chapter 1 Product Overview
1-5
1
DSM314 Position Strobes
Each axis connector on the DSM314 faceplate has two Position Strobe inputs. A rising edge pulse
on a Strobe input causes the axis Actual Position to be captured. The position capture resolution
is +/- 2 counts with an additional 10 microseconds of variance for the strobe input filter delay.
The actual error seen is dependent upon servo acceleration and strobe input filtering/sampling.
Consult Appendix G for the exact formulas used to calculate strobe accuracy.
The strobe data is updated within one position loop update interval (0.5 - 2 ms) in the associated
Strobe Position %AI data register. The Strobe Position data is also stored in a DSM Parameter
Register that can be used as an operand for Motion Program PMOVE and CMOVE commands
and in Local Logic. The Strobe Position data update to the PLC is dependent on the PLC sweep
time and may take longer than 2 ms.
In Digital mode, these strobes are 5V single-ended/differential inputs (IN1-IN2).
In Analog mode, these strobes are only 5V single-ended (IO5-IO6). In Analog mode only, these
strobe inputs are pulled high (as seen in the PLC %I Strobe status bits) if not physically connected
to a device.
DSM314 Scan Time Contribution
The table below lists how many milliseconds the DSM314 adds to PLC scan time. The amount of
scan time contribution is related to (1) the number of DSM314 axes configured, and (2) the type
of rack (main, expansion, or remote) the DSM314 is mounted in.
No. of Axes
Configured
1
2
3
4
DSM314 Scan Time Contribution (in Milliseconds)
Main Rack
Expansion Rack
Remote Rack
1.6
2.6
6.9
2.2
3.8
9.9
2.8
4.3
13.0
3.3
5.2
15.9
Notes
1-6
1.
Be aware that the DSM314’s internal Local Logic engine has a maximum
scan time of 2 ms that is independent of the PLC scan; therefore, timecritical, motion-related I/O should be handled in the Local Logic program
rather than in the PLC ladder program. See the applicable chapters in this
manual for details on Local Logic programming.
2.
For applications where the above additions to scan rates will affect machine
operation, you may need to use the “suspend I/O,” “DOIO,” and “SNAP”
features to transfer necessary data to and from the DSM314 selectively.
These features let you avoid transferring all of the %I, %Q, %AI, %AQ data
every scan if you do not require it that frequently, which would reduce the
scan time contribution amount.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Product Overview
1
Software
VersaPro
The VersaPro (version 1.1 or later) software package is used for the following tasks:
•
Configuration. Allows user to select module settings and default operational parameters.
•
Motion program creation. Up to 10 motion programs and 40 subroutines are allowed.
•
Local Logic program creation. A Local Logic program runs synchronously with the motion
program, but is independent of the PLC’s CPU scan. This allows the DSM314 to interact
quickly with motion I/O signals on its faceplate connectors. This internal response time to
motion I/O signals is much faster than would be possible if the logic for these signals was
handled in the main ladder program running in the PLC. This would be due to (1) the delay
in communicating the signals across the backplane and (2) the longer PLC sweep time.
All of the above information is sent to the DSM314 over the PLC backplane each time the PLC is
powered up.
Note
VersaPro version 1.5 or later, with the CAM Editor add-in software, is required
for programming the electronic CAM feature.
Operator Interfaces
Operator interfaces provide a way for the operator to control and monitor the servo system
through a control panel or CRT display. These interfaces communicate with the PLC through
discrete I/O modules or an intelligent serial communications or network communications module.
Operator data is automatically transferred between the PLC and the DSM314 through %I, %AI,
%Q, and %AQ references which are specified when the module is configured. This automatic
transfer of data provides a flexible and simple interface to a variety of operator interfaces that can
interface to the Series 90-30 PLC.
GFK-1742A
Chapter 1 Product Overview
1-7
1
Servo Drive and Machine Interfaces
The servo drive and machine interface is made through a 36-pin connector for each axis. This
interface carries the signals that control axis position such as the Pulse Width Modulated (PWM)
signals to the amplifier, Digital Serial Encoder Feedback signals or Analog Servo Command and
Quadrature Encoder Feedback. Also provided are Home Switch and Axis Overtravel inputs as
well as general purpose PLC inputs and outputs.
Standard cables which connect directly to custom DIN rail or Panel mounted terminal blocks
simplify user wiring, and are available from GE Fanuc. The terminal blocks provide screw
terminal connection points for field wiring to the DSM314 module. Refer to chapter 3, "Installing
and Wiring the Motion Mate DSM314" for more information concerning the cables and terminal
blocks used with the DSM314 module.
1-8
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Product Overview
1
Section 2: Overview of Product Operations
Each DSM314 axis may be operated with the Follower Control Loop enabled or disabled:
Standard Mode (Follower Control Loop Axis Configuration = Disabled)
„
„
„
In Digital Standard mode, the module provides closed loop position, velocity, and torque
control for up to two GE Fanuc α or β Series servomotors on Axis 1 and Axis 2. Axis 3
can be used as an Analog servo axis or an Aux master axis.
In Analog Standard mode, the module provides closed loop position control for up to four
servomotors. When the DSM is used with analog servos, velocity and torque control
loops are closed in the servo amplifier, not in the DSM module.
For both digital and analog applications, user programming units can be adjusted by
configuring the ratio of User Units and Counts configuration parameters. Jog, Move at
Velocity and Execute Motion Program commands allow Standard mode to be used in a
wide variety of positioning applications.
Follower Mode (Follower Control Loop Axis Configuration = Enabled)
„
„
„
„
In Digital Follower mode, the module provides closed loop position, velocity, and torque
control for up to two GE Fanuc α or β Series servomotors on Axis 1 and Axis 2. Axis 3
can be used as an Analog servo axis or an Aux master axis.
In Analog Follower mode, the module provides closed loop position control for up to four
servomotors (one or two of the four available axes may instead be used as an Aux master
axis). When the DSM is used with analog servos, velocity and torque control loops are
closed in the servo amplifier, not in the DSM module.
In both digital and analog applications, the module provides the same features as
Standard mode including configurable User Units to Counts ratio.
In addition, a Master Axis position input can be configured. Each Follower axis tracks
the Master Axis input at a programmable (A: B) ratio. Motion caused by Jog, Move at
Velocity and Execute Motion Program commands can be combined with follower motion
generated by the master axis.
„
Follower options include:
•
Master Axis source configurable as Actual or Commanded Position from any other
axis
•
Master Source Select %Q bit switches between two pre-configured Master Axis
sources
•
Acceleration Ramp to smoothly accelerate a slave axis until its position and velocity
synchronize to the master
•
Separate enable and disable follower trigger sources
Note that Winder mode is not supported in the DSM314. It is supported in the DSM302.
GFK-1742A
Chapter 1 Product Overview
1-9
1
Standard Mode Operation
Figure 1-2 is a simplified diagram of the Standard mode Position Loop. An internal motion
Command Generator provides Commanded Position and Commanded Velocity to the Position
Loop. The Position Loop subtracts Actual Position (Position Feedback) from Commanded
Position to produce a Position Error. The Position Error value is multiplied by a Position Loop
Gain constant to produce the Servo Velocity Command. To reduce Position Error while the servo
is moving, Commanded Velocity from the Command Generator is summed as a Velocity
Feedforward term into the Servo Velocity Command output.
The following items discussed above are included in the data reported by the DSM314 to the PLC:
Commanded Velocity- the instantaneous velocity generated by the DSM314’s internal
path generator.
Commanded Position- the instantaneous position generated by the DSM314’s internal
path generator.
Actual Velocity- the velocity of the axis indicated by the feedback.
Actual Position- the position of the axis indicated by the feedback.
Position Error- the difference between the Commanded Position and the Actual
Position.
The DSM314 allows a Position Loop Time Constant (in units of 0.1millisecond) and a Velocity
Feedforward (in units of 0.01 percent) to be programmed. The Position Loop Time Constant
sets the Position Loop Gain and determines the response speed of the closed Position Loop. The
Velocity Feedforward percentage determines the amount of Commanded Velocity that is summed
into the Servo Velocity Command.
MOTION
PROGRAMS
MOVE
AT VEL
JOG
COMMAND
GENERATOR
CMD VELOCITY (VELOCITY FEEDFORWARD)
CMD
POSITION +
POS
ERROR
+
POS LOOP
GAIN
+
SERVO
VEL
CMD
SERVO
AMPLIFIER
MOTOR
POSITION
FEEDBACK
ENCODER
Figure 1-2. Simplified Standard Mode Position Loop with Velocity Feedforward
1-10
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Product Overview
1
Follower Mode Operation
Figure 1-3 is a simplified diagram of the Follower mode Position Loop. It is similar to the
Standard mode Position Loop (see previous page) with the addition of a Master Axis input. The
Master Axis input is an additional command source producing a Master Axis Position and Master
Axis Velocity. Master Axis Position is summed with Commanded Position from the axis
Command Generator. Master Axis Velocity is summed with the Commanded Velocity (Velocity
Feedforward) output of the axis Command Generator. Therefore, the servomotor’s position and
velocity is determined by the sum of the Command Generator output and Master Axis input.
The Command Generator and Master Axis input can operate simultaneously or independently to
create Servo Axis motion.
The DSM314 allows several sources for the Master Axis input:
•
Axis 1 Commanded Position
•
Axis 1 Actual Position (Axis 1 Encoder)
•
Axis 2 Commanded Position
•
Axis 2 Actual Position (Axis 2 Encoder)
•
Axis 3 Commanded Position
•
Axis 3 Actual Position (Axis 3 Encoder)
•
Axis 4 Commanded Position
•
Axis 4 Actual Position (Axis 4 Encoder)
The ratio at which a Servo Axis follows the Master Axis is programmable as the ratio of two
integer numbers. For example, a Servo Axis can be programmed to move 125 Position Feedback
units for every 25 Master Axis Position units. Each time the Master Axis Position changed by 1
position unit, the Servo Axis would move (125 / 25) = 5 Position Feedback units.
MOTION
PROGRAM
MOVE
AT VEL
JOG
COMMAND
GENERATOR
MASTER
AXIS
ENCODER
MASTER
AXIS
POSITION
POSITION
TO
VELOCITY
MASTER
AXIS
VELOCITY
CMD VELOCITY (Feed Forward)
CMD
POSITION
+
+
POS
ERROR
+
POS LOOP
GAIN
+
+
SERVO
VEL
CMD
SERVO
AMPLIFIER
MOTOR
POSITION
FEEDBACK
ENCODER
Figure 1-3. Simplified Follower Mode Position Loop with Master Axis Input
GFK-1742A
Chapter 1 Product Overview
1-11
1
Section 3: α Series Servos (Digital Mode)
The GE Fanuc Digital α (pronounced “Alpha”) Series Servo features include:
„
World-leading reliability
„
Low maintenance, no component drift, no commutator brushes
„
All parameters digitally set, no re-tuning required
„
Absolute encoder eliminates re-homing (requires optional battery kit)
„
An optional motor brake is available
„
Optional IP67 environmental rating is also available for most motors
„
High resolution 64K count per revolution encoder feedback (incremental or absolute)
The GE Fanuc Servo motors, proven on over three million axes installed worldwide, offer the
highest reliability and performance. The latest technologies such as high speed serial encoders and
high efficiency Integrated Power Modules (IPM’s), further enhance customer benefits.
The GE Fanuc servo system is unique in that all the control loops - current, velocity and position are closed in the motion controller. This approach reduces setup time and delivers significant
throughput advantages even in the most challenging applications.
The servo drives are less costly to integrate and maintain. Control circuits are unaffected by
temperature changes. There are no personality modules. The servos have a broad application
range, that is, a wide load inertia range, flexible acc/dec and position feedback configurations, etc.
Extensive customization features are available to optimize performance and overcome machine
limitations. IPM based servo amplifiers require 60% less panel space than conventionally
switched amplifiers and produce 30% less heat.
α Series Integrated Digital Amplifier (SVU)
The α Series Integrated Servo Amplifiers (SVU) packages the amplifier with an integral power
supply in a stand-alone unit. This unit is the same physical size and footprint as the previous “C”
Series of GE Fanuc Servo Amplifiers.
The Integrated α Series SVU Amplifiers use the same connections as the “C” Series Amps except
that the Emergency Stop circuit uses the internal 24v supply, thus there is no longer a requirement
for a 100v power supply.
The heat sinks on the SVU design will mount through the panel to keep heat outside the
enclosure.
Since the α SVU Amplifiers do not provide regeneration to line capability, discharge resistors
may be required. These are available in several sizes.
SVU style α Series Servo Amplifiers are available in 5 sizes, with peak current limit ratings from
12 to 130 amps. (Note: Only the 80A and 130A models are currently offered by the GE Fanuc
NA motion group.)
1-12
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
1
Product Overview
Cables to connect the SVU Amps to the DSM314 and to the motors are available in various
lengths.
Refer to publication GFH-001, Servo Product Specification Guide for more information about the
α Series servo products.
α Series Servo Motors
The α Series of servomotors incorporate design improvements to provide the best performance
possible. Ratings up to 56 Nm are offered. These motors are up to 15% shorter and lighter than
the previous S Series of servomotors. New insulation on the windings and an overall sealant
coating help protect the motor from the environment.
The standard encoder supplied with the motor is a 64K absolute unit. Holding brakes (90 Vdc)
and IP67 sealants are options. The α Series servomotors are approved to conform to international
standards for CE (EMC and Low Voltage), IEC and UL/CUL. The following table indicates a
sample of the α Series motors available (some αL, αC, αHV, and αM also available).
For more information refer to Chapter 4 of this manual, “Configuring the DSM314,” under the
section labeled “Motor Type.” See also, the following publications:
•
GFH-001, Servo Products Specification Guide
•
GFZ-65142E, α Series AC Motor Descriptions Manual
Table 1-1. Selected α Series Servo Motor Models
GFK-1742A
α Model
Number
Torque
Nm
Output
KW
Max. Speed
(RPM)
α1
1
0.3
3000
α2
2
0.4
2000
α2
2
0.5
3000
α3
3
0.9
3000
α6
6
1.0
2000
α6
6
1.4
3000
α12
12
2.1
2000
α12
12
2.8
3000
α22
22
3.8
2000
α22
22
4.4
3000
α30
30
3.3
1200
α30
30
4.5
2000
α30
30
4.8
3000
α40
38
5.9
2000
α40/Fan
56
7.3
2000
Chapter 1 Product Overview
1-13
1
Section 4: β Series Servos (Digital Mode)
The GE Fanuc Digital β (pronounced “Beta”) Series Servo features include:
„
World leading reliability
„
Low maintenance, no component drift, no commutator brushes
„
All parameters digitally set, no re-tuning required
„
Absolute encoder eliminates re-homing (optional battery kit required)
„
Optional motor brake
„
High resolution 32K count per revolution encoder
The GE Fanuc β Series Servos offer the highest reliability and performance. The latest
technologies, such as high-speed serial encoders and high efficiency Integrated Power Modules,
further enhance the performance of the servo system. Designed with the motion control market in
mind, the β Series Servo Drives is ideally suited for the packaging, material handling, converting,
and metal fabrication industries.
The GE Fanuc servo system is unique in that all the control loops - current, velocity, and position
- are closed in the motion controller. This approach reduces setup time and delivers significant
throughput advantages even in the most challenging applications.
The servo drives are less costly to integrate and maintain. Control circuits are unaffected by
temperature changes. There are no personality modules. The servos have a broad application
range including a wide load inertia range, flexible acceleration/deceleration and position feedback
configurations. Extensive software customization features are available to optimize performance
and overcome machine limitations.
β Series Digital Amplifiers
The β Series servo amplifier integrates a power supply with the switching circuitry. Therefore,
GE Fanuc is able to provide a compact amplifier that is 60% smaller than conventional models.
In fact, the β Series amplifier has the same height and depth as a GE Fanuc Series 90-30 PLC
module. This allows efficient panel layout when using the DSM314 motion controller.
The amplifier is designed to conform to international standards.
GE Fanuc offers three communication interfaces for the β Series amplifiers: pulse width
modulated (PWM), Fanuc Servo Serial Bus (FSSB), and I/O Link Interface. Only the pulse width
modulated (PWM) interface may be used with the DSM314 module. The PWM interface utilizes
the standard GE Fanuc servo communication protocol. Position feedback is communicated
serially between the DSM controller and the motor mounted serial encoder.
1-14
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
1
Product Overview
β Series Servo Motors
The β Series Servomotors are built on the superior technology of the α Series servos. They
incorporate several design innovations that provide the best possible combination of high
performance, low cost, and compact size. Ratings of 0.5 to 12 Nm are offered.
These motors are up to 15% shorter and lighter than comparable servos. New insulation on the
windings and an overall sealant coating help protect the motor from the environment.
The β Series motors conform to international standards (IEC). The motor protection level is IP65
(IP67 may be made available through special order).
A 32K absolute encoder is standard with each β Series servo. An optional 90 Vdc holding brake
is also available with each model.
For more information refer to Chapter 4 of this manual, “Configuring the DSM314,” under the
section labeled “Motor Type.” See also, the following publications:
•
GFH-001, Servo Products Specification Guide
•
GFZ-65232E, β Series AC Motor Descriptions Manual
Table 1-2. Selected β Series Servo Motor Models
β Model
Number
Torque1
Nm
Output
KW
Max. Speed
RPM
β0.5
0.5
0.2
3000
β1
1
0.3
3000
β2
2
0.5
3000
β3
3
0.5
3000
β6
6
0.9
2000
αC12
12
1.4
2000
1
Indicates Continuous, 100% Duty Cycle
Note: The αC12 motor is listed with the β motors due to similar attributes and amplifier series
GFK-1742A
Chapter 1 Product Overview
1-15
1
Section 5: SL Series Servos (Analog Mode)
The DSM314 supports all models of the GE Fanuc SL Series Servos. For details on the SL Series
Servo amplifiers, motors, and accessories, please see the SL Series Servo User’s Manual, GFK1581.
1-16
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Chapter
Getting Started
2
Objectives of this chapter:
„
„
„
To help you become familiar with the components and cables used in a DSM servo system as
well as show you how they connect together.
To show you how to verify your motion system connections and functionality.
To identify supporting documentation providing detailed information on this subject.
This chapter serves as an introduction for those not familiar with the Motion Mate DSM314 motion
system. Following through the steps outlined here, you should be able to operate or Jog your
motion controller and servo in a short time. A minimum level of familiarity with the VersaPro 1.1
(or later) programming software is required. For information, please see GFK-1670, VersaPro
Programming Software User’s Guide.
Warning
Do not couple the motor shaft to mechanical devices for this exercise.
Additionally, it is important that the servomotor be fastened securely to a
stationary surface.
A typical DSM314 motion system includes the DSM314 motion controller, a Series 90-30
Programmable Logic Controller (PLC), motor(s), servo amplifier(s), I/O, and the Human Machine
Interface (HMI).
The DSM314 control system consists of two parts: the servo control and the machine control.
The servo control translates motion commands into signals that are sent to the servo amplifier. It
also runs the Local Logic and Motion programs. The servo amplifier receives the control signals
from the servo control and amplifies them to the required power level of the motor. The DSM314
provides the servo control.
The machine control (Series 90-30 PLC) houses the DSM314 module and I/O modules. The
machine control executes user defined control logic (but not Local Logic). The machine control
(PLC) and the servo control (DSM314) interface and exchange data over the Series 90-30
backplane.
GFK-1742A
2-1
2
SNP (RS-232)
RS-232 to
RS-485
Converter
a45636A
SNP
(RS-232)
Series 90-30 PLC
D
S
M
PWM, Serial Encoder, &
Diagnostic Signals
Power
Digital
Servo
Amplifier
to Motor
Motor
Encoder
Feedback
Encoder Battery
Pack (Optional)
Encoder
PWM, Serial
Encoder, &
Diagnostic Signals
Programmer
Power
to Motor
Motor
Digital
Servo
Amplifier
Encoder
Feedback Encoder
Encoder Battery
Pack (Optional)
Axis 1
Axis 2
Figure 2-1. Typical 2-Axis Motion Mate DSM314 Digital Motion Control System
2-2
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Getting Started
2
Section 1: Unpacking the System
The DSM314, Digital Servo Amplifiers, and Motors are packed separately. This section describes
how to unpack the hardware and perform a preliminary check on the components.
Unpacking the DSM314
Carefully unpack the DSM314 and PLC system components. Verify that you have received all the
items listed on the bill of material. Keep all documentation and shipping papers that accompanied
the DSM314 motion system.
Unpacking the Digital Servo Amplifier
There are two digital amplifier and servo subsystem packages shipped for use with the DSM314,
the α Series or the β Series.
The digital servo amplifier is shipped in a double-layered box. Remove the top layer of packing
material to uncover the amplifier. Next, carefully remove the inner box from the outer layer. Then
lift the amplifier out of the inner box. Retain any loose parts or gasket materials packed with the
amplifier. Visually inspect the amplifier for damage during shipment.
Note
Do not attempt to change any pre-configured jumpers or switches on the
amplifier at this time.
Unpacking the FANUC Motor
FANUC motors are packed two different ways, depending on their size. The largest motors are
shipped on wooden pallets and are covered with cardboard. Most motors, however, are packed in
cardboard boxes.
1.
Unpacking Instructions:
•
2.
3.
For those FANUC motors packed in boxes, open the box from the top. The motors are
packed in two pieces of form-fitted material. Carefully lift the top piece from the box.
This should allow sufficient clearance for removing the motor.
• If the motor is attached to a pallet, remove the cardboard covering. This will allow access
to the bolts holding the motor to the pallet. Remove the bolts to free the motor from the
pallet.
Inspect the motor for damage.
Confirm that the motor shaft turns by hand. NOTE: If the motor was ordered with the
optional holding brake, the shaft will not turn until the brake is energized.
Let’s start . . . . . . .Assembling the Motion Mate DSM314 System!
GFK-1742A
Chapter 2 Getting Started
2-3
2
Section 2: Assembling the Motion Mate DSM314 System
Before discussing specific assembly details, let’s first review these general guidelines:
„
„
Always make sure that the connectors lock into the sockets. The connectors are designed to fit
only one way. Do not force them.
Do not overlook the importance of properly grounding the DSM314 system components,
including the DSM314 faceplate shield ground wire. Grounding information is included in
this section.
All user connections, except for the grounding tab, are located on the front of the DSM314 module.
The grounding tab is located on the bottom of the module. Refer to the figure below and take a few
minutes now to familiarize yourself with these connections.
For instructions about installation of the DSM314 when IEC and other standards must be observed,
see Installation Requirements for Conformance to Standards, GFK-1179.
Motion Mate DSM314 Connections
Figure 2-2 provides an overview of the faceplate and labels on the DSM314 module. For
additional information and a complete connection diagram, please refer to chapter 3, Installing and
Wiring the Motion Mate DSM314.
Status LED’s
STAT
OK
CFG
EN1 - EN4
STAT
COMM
OK
CFG
EN3
EN4
C
EN1
EN2
A
Connector C
Servo Axis 3
COMM
6-pin RJ-11 connector.
Provides RS-232
connection for firmware
upgrades
Connector A
Servo Axis 1
D
Connector D
Servo Axis 4
B
Connector B
Servo Axis 2
Motion Mate DSM314
Grounding Tab
Figure 2-2. Face Plate Connections on the Motion Mate DSM314 Motion Control System
2-4
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
2
Getting Started
Connecting the α Series SVU Digital Servo Amplifier
Skip to the next section if you are connecting a β Series amplifier.
The α Series Digital Servo Amplifier does not require tuning adjustment during initial startup or
when a component is replaced. It also does not need adjustment when environmental conditions
change.
To connect the α Series Digital Servo Amplifier, follow the steps outlined below.
1. Connect the α Series Servo Amplifier to the DSM314.
A. Before connecting the servo command cable, make sure the DSM314 faceplate shield ground
wire is connected. This wire is shipped with the DSM314 module and must be connected from
the ¼ inch blade terminal on the bottom of the module to a suitable panel earth ground.
B. The servo command cable contains the pulse width modulated (PWM) output signal from the
DSM, the serial data from the motor encoder, and diagnostic signals from the amplifier. The
signals carried in this cable are at data communications voltage levels and should be routed
away from other conductors, especially high current conductors.
C. Locate the servo command cable IC800CBL001 (1 meter) or IC800CBL002 (3 meter). Insert
the mating end of this cable into the connector JS1B, located on the Servo Amplifier bottom
(see Figure 2-4).
D. If you are not using the IC693ACC335 axis terminal board to break out user I/O such as
overtravel or home limit inputs, insert the other end of the cable into the connector labeled A,
for axis 1, or B for axis 2, on the front of the DSM314. If you are using the terminal board,
insert the other end of the cable into the terminal block connector marked SERVO. Next
locate the terminal board connection cable IC693CBL324 (1 meter) or IC693CBL325 (3
meter). Insert one end of this cable into the terminal board connector marked DSM. Insert the
other end of the cable into the connector labeled A, for servo axis 1, or B for servo axis 2, on
the front of the DSM314 module.
Note
Refer to “I/O Connections” in chapter 3 for information concerning the user I/O
available IC693ACC335 terminal block connections.
GFK-1742A
Chapter 2 Getting Started
2-5
2
SVU Amplifier Channel Switches
ON
OFF
Confirm that the Channel Switches (DIP
switches), located behind the SVU amplifier
door, are set as shown in the following
tables. Note that the OFF position is to the
left, and the ON position is to the right.
Note also, that the switches are numbered
from bottom to top (Switch 1 is the bottom
switch). For example, in Figure 2-3,
Switches 1, 3, and 4 are shown ON, and
switch 2 is shown OFF
4
3
2
1
ON
Figure 2-3. SVU Amplifier Channel Switches
Table 2-1. SVU Amplifier Channel Switch Settings
Amplifier SVU1-80
Regenerative Discharge Unit
SW1
SW2
SW3
SW4
Built-in (100 W)
ON
OFF
ON
ON
Separate A06B-6089-H500 (200 W)
ON
OFF
ON
OFF
Separate A06B-6089-H713 (800 W)
ON
OFF
OFF
OFF
Amplifier SVU1-130
Regenerative Discharge Unit
SW1
SW2
SW3
SW4
Built-in (400 W)
ON
OFF
ON
ON
Separate A06B-6089-H711 (800 W)
ON
OFF
ON
OFF
(To connect additional amplifiers, repeat steps B, C and D above for each additional amplifier.)
2-6
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Getting Started
STAT
IC693ACC335
Axis Terminal Board
COMM
OK
CFG
EN3
EN4
C
2
FANUC
EN1
EN2
A
IC800CBL001/002
Servo Command
Cable (K1)
IC693CBL324/325
Terminal Board
Connection Cable
α SERIES
Hinged Cover
STATUS
Motor Power Cable
Connects to Terminals
Behind Hinged Cover
- : NOT READY
O : READY
# : ALARM
Servo Amplifier
Front View
B
D
IC800CBL061/062
Motor Power
Cable (K4)
JV1B
CX3
CX4
Motor
IC800CBL021
Motor Encoder
Cable (K2)
JA4
Motion Mate DSM314
Servo Amplifier
Bottom View
With Terminal Board
STAT
COMM
OK
CFG
EN3
EN4
C
FANUC
EN1
EN2
A
α SERIES
Hinged Cover
IC800CBL001/002
Servo Command
Cable (K1)
Motor Power Cable
Connects to Terminals
Behind Hinged Cover
STATUS
- : NOT READY
O : READY
# : ALARM
D
Servo Amplifier
Front View
B
IC800CBL061/062
Motor Power
Cable (K4)
Motor
JA4
CX3
CX4
JV1B
IC800CBL021
Motor Encoder
Cable (K2)
Motion Mate DSM314
Servo Amplifier
Bottom View
Without Terminal Board
Figure 2-4. Connecting the α Series Digital Servo Amplifier to the Motion Mate DSM314
GFK-1742A
Chapter 2 Getting Started
2-7
2
2. Connect the Motor Power Cable to the α Series Digital Servo
Amplifier.
A. The motor size ordered for your system determines the K4 motor power cable you will use
if you ordered prefabricated cables with your system. The motors in the following table
are grouped to use one of the prefabricated cables available through GE Fanuc. This is not
a complete listing of all α Series servomotor power cables, however the ones most
commonly specified are included. A complete listing can be found in the Servo
specifications Guide, GFH-001.
Table 2-2. Prefabricated α Servo Motor Power Cable (K4) Part Number Examples
Motor
Type
α3/3000
α6/3000
Severe Duty Cable
Catalog Number
Cable Description
Cable
Length
IC800CBL061
Elbow MS Connector
14 Meters
IC800CBL062
Elbow MS Connector
14 Meters
IC800CBL063
Elbow MS Connector
14 Meters
α12/3000
α22/2000
α30/1200
α30/3000
α40/2000
B. One end of this cable has four wires labeled U, V, W, and GND, which connect to screw
terminals 9-12 on the servo amplifier. Connect these four wires to the terminal strip as
shown in Figure 2-5.
C. Attach the other end of the cable to the motor after first removing the plastic caps
protecting the motor’s connector. Note that this cable is keyed and can only be properly
attached to one of the motor’s connection points.
(Repeat this procedure as needed for any other axes in the system.)
For the most current information on the motor power cables or wiring custom motor power
cables please refer to the latest version of the α Series Servo Motor Description Manual, GFZ65142E.
2-8
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Getting Started
2
a48015
13
14
15
16
17
18
19
FANUC
AC Servo
Amplifier
α
Series
Status
JS1B
JF1
1
2
3
4
5
6
7
8
9
10
11
12
Terminal Of
Servo Amp
A = Phase U
B = Phase V
C = Phase W
D = Ground
Encoder
Motor
Power
Figure 2-5. Connecting the Motor to the α Series Servo Amplifier Terminal Strip
GFK-1742A
Chapter 2 Getting Started
2-9
2
3. Connect the Motor Encoder to the α Series Digital Servo Amplifier.
A. Remove the protective plastic cap from the encoder connector on the motor, and locate the
K2 feedback cable IC800CBL021. The cable is configured so that it can only be attached
to one connection on the motor.
B. Plug the opposite end into the connection labeled JF1 on the bottom of the α Series servo
amplifier (see Figure 2-6).
(Repeat this procedure for all axes in the system.)
Servo Amplifier
JA4 JF1 JS1B
FANUC
Front Face
AC SERVO UNIT
α SERIES
CX3
CX4
JV1B
STATUS
Bottom
View
- : NOT READY
O : READY
# : ALARM
IC800CBL021
Motor Encoder
Cable (K2)
Motor
Figure 2-6. Connecting the α Series Motor Encoder
Table 2-3. Prefabricated α Servo Motor Encoder Cable (K2) for α3 to α40 Models
Motor Models Severe Duty Cable
α3 to α40
IC800 CBL021
Cable Length
14 meters
Note: Details on α cables can be found in the α Series AC Servo Motor Descriptions Manual,
GFZ-65142E, and in the α and β Series Product Specifications Guide, GFH-001.
2-10
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Getting Started
2
4. Connect 220-Volt AC 3 Phase Power to the α Series Digital Amplifier
An AC line filter will reduce the effect of harmonic noise to the power supply; its use is
recommended. Two or more amplifiers may be connected to one AC line filter if its power
capacity has not been exceeded. Figure 2-6 shows how to connect the amplifier to the line filter.
13
14
15
16
17
18
19
1
2
3
4
5
6
7
8
9
10
11
12
a48024
Ground Lug
R
S
T
1
2
3 4
5 6
R
S
To
Power
Source
T
Line Filter
α Series Amplifier
Connection Strip
NOTE: 220-Volt AC three phase power is required.
Figure 2-7. Connecting the Servo Amplifier to the Line Filter and Power Source
Note
You must supply the cable for both the connections between the line filter and
the servo amplifier, and the connection between the line filter and the power
source. Use 4-conductor, 600V, 60°C (140°F), UL or CSA approved cable
between the line filter and the servo amplifier.
The gauge of wire used for connecting the line filter to the power source must be
sized, based on the circuit breaker between the power source and the line filter
and the number of servos connected to the line filter.
If a separate isolation transformer is used to supply AC power to the amplifiers, a line filter is not
required.
5. Connect the Machine Emergency Stop to the α Series Digital Servo
Amplifier
C. Pin 3 of connector CX4, located on the bottom of the α Series (SVU) amplifier,
supplies +24 volts DC for the E-STOP circuit. Route this through the machine E-STOP
circuit so that there is +24 volts DC to pin 2 when not in E-STOP. If no E-STOP switch
is used this connection must be made with a wire jumper.
Note
You must supply the cable for this connection. Keyed connector plugs,
marked as connector X and terminal connector pins are included with the
amplifier package. You must install this connection as a switch or jumper for
the amplifier to operate.
GFK-1742A
Chapter 2 Getting Started
2-11
2
Caution
Do not apply any external voltage to this connector.
Front Face
a48026
JV1B
JS1B
3
2
JF1
JA4
CX3 CX4
ESP
Normally Closed
Machine E-STOP Device(s)
+24V
(Bottom View)
ESP
3
2
3
2
CX4
Of First
α Series
(SVU)
Amplifier
CX4
Of Second
α Series
(SVU)
Amplifier
Up to 6
α Series SVU AMPs
can be connected
in series
Figure 2-8. Connecting Emergency Stop to the α Series Servo Amplifier
For more information, refer to the α Series Servo Amplifier (SVU) Descriptions Manual, GFZ65192EN.
2-12
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
2
Getting Started
Connecting the β Series SVU Digital Servo Amplifier
The β Series Digital Servo Amplifier does not contain any user adjustments. To connect the β
Series Servo Amplifier, follow the steps outlined below. Refer to the previous section for α Series
Amplifiers.
1. Connect the β Series Digital Servo Amplifier to the DSM314
A. Before connecting the servo command cable, make sure the DSM314 faceplate shield ground
wire is connected. This wire is shipped with the DSM314 module and must be connected from
the ¼ inch blade terminal on the bottom of the module to a suitable panel earth ground.
B. The servo command cable contains the pulse width modulated (PWM) output signal of the
motion controller, the serial data from the motor encoder, and diagnostic signals from the
amplifier. The signals carried in this cable are at data communications voltage levels and
should be routed away from other high current conductors.
C. Locate the servo command cable IC800CBL001 (1 meter) or IC800CBL002 (3 meter). Insert
the mating end of this cable into the connector JS1B, located on the front of the Servo
Amplifier (see Figure 2-9).
D. This step depends on whether or not you are using a terminal board:
•
If you are not using the IC693ACC335 axis terminal board to break out user I/O, such as
overtravel or home limit inputs, insert the other end of the cable into the connector labeled A,
for servo axis 1, or B for servo axis 2, on the front of the DSM314.
•
If you are using the IC693ACC335 axis terminal board, insert the other end of the cable
into the terminal board connector marked SERVO. Next locate the servo command cable
IC693CBL324 (1 meter) or IC693CBL325 (3 meter). Insert one end of this cable into the
terminal block connector marked DSM. Insert the other end of the cable into the connector
labeled A, for servo axis 1, or B for servo axis 2, on the front of the DSM314.
(To connect additional amplifiers, repeat steps B - D above for each additional amplifier.)
GFK-1742A
Chapter 2 Getting Started
2-13
2
COMM
STAT
IC693ACC335
Axis Terminal Board
OK
CFG
EN3
EN4
C
EN1
+
+
EN2
A
DSM
SERVO
With Terminal Board
IC693CBL324/325
Terminal Board
Connection Cable
Servo Amplifier
CX11-3
V
U
W
B
D
IC800CBL001/002
Servo Command
Cable (K1)
CX11
3
JS1B
JF1
Motor
β Series Amplifier
(Front Face View)
+
Encoder
Motor
Power
+
Motion Mate DSM314
COMM
STAT
OK
CFG
EN3
EN4
C
EN1
+
+
EN2
A
Without Terminal Board
Servo Amplifier
CX11-3
V
B
D
IC800CBL001/002
Servo Command
Cable (K1)
U
W
CX11
3
JS1B
JF1
Motor
β Series Amplifier
(Front Face View)
+
Encoder
+
Motor
Power
Motion Mate DSM314
Figure 2-9. β Series Servo Amplifier Connections
For more information, refer to the connection section of the Servo Product Specification Guide,
GFH-001.
2-14
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
2
Getting Started
2. Connect the Motor Power Cable (K4) to the β Series Digital Servo
Amplifier
Note: Make connections to the CX-11 connector carefully. This connector is
not keyed. Double-check your connections before applying power.
Incorrect connections could result in equipment malfunction or damage.
A. The size of the motor ordered for your system determines the motor power cable (K4) you
must use. You can choose to purchase prefabricated cables or to build custom cables.
Refer to the β Series Control Motor Descriptions Manual, GFZ-65232EN, for information
about custom cables or installation for conformance to CE mark. The amplifier end of the
prefabricated motor power cable is constructed to connect to terminal block CX11-3 on
the amplifier.
Table 2-4. K4 Cable –β Series Motor Cable Examples
K-4 Motor Cable
Part Number
Servo Motor Type
β 0.5/3000
IC800CBL067
14 Meter Severe Duty
β 1/3000, β 2/3000, β3/3000, and β 6/2000
IC800CBL068
14 Meter Severe Duty
α C12/2000
IC800CBL069
14 Meter Severe Duty
a45681
Transformer
200/240VAC
1 or 3 Phase
*See Notes below
K15
CX11-1
L2
CX11-2
L3
Breaker
CX11-3
Supply
Power
GE Fanuc
Motion Controller
CX11
1
1
2
3
3
3
K3
L1
PE
Cable Description
JX5
4
5
6
Spark
Arrester
Machine
E-STOP PB
and NC Contacts
K1
JX5
JS1B
JS1B
JF1
~
24VDC Power Supply
(24VDC +10% -10%)
JF1
CX11-4
K12
CX5X
CX11-5
K13
Ground Lug
To
CX11-4
on next amplifier
K7
PE
CX11-6
Series
Amplifier
CX5Y
Encoder
Battery
Pack
Customer's
Earth
Ground
Motor
K9
Encoder
K8
Discharge Resistor
with
Built-in Thermostat
90VDC Power Supply
(only for motors with
brake option)
K4
K2
K14
Series Motor
K10
*NOTES
1. Line filter and lightning surge absorber can be used in place of a transformer when 200-240 volts AC is
available to the cabinet.
2. For single–phase operation, AC line phase L3 is not connected. Refer to the Servo System Specifications in
the Servo Product Specification Guide, GFH-001 for output current de-rating.
Figure 2-10. Connecting the β Series Digital Servo Amplifier Terminal Strip
GFK-1742A
Chapter 2 Getting Started
2-15
2
B. Attach the other end of the motor power cable to the motor, after first removing the plastic cap
protecting the motor’s connector. Note that this cable is keyed and can only be properly
attached to one of the motor’s connection points.
C. Motor power cables purchased from GE Fanuc will include a 1-meter, single conductor wire
with a CX11-3 connector on one end and a ring terminal on the other. This cable provides
grounding connections for the frame of the motor and should always be connected. Custom
cable builders should always include this cable. See the previous connection diagram for
proper connection to the amplifier.
(Repeat this procedure as needed for the other axis in the system.)
For more information, please refer to the Servo Product Specification Guide, GFH-001.
3. Connect the Motor Encoder Cable (K2) to the β Series Digital Servo
Amplifier
The motor size ordered for your system determines the K4 motor power cable you will use if you
ordered prefabricated cables with your system. Please refer to the table below to determine the
correct encoder cable catalog number.
A. Remove the protective plastic cap from the connector on the motor, and locate the encoder
cable K2, (see table 2-5). This cable has two distinct connectors.
B. Plug the end of the cable with the D-shell style connector into the connection labeled JF1 on
the servo amplifier (see Figure 2-9).
C. The other end of the cable is configured so that it can only be attached to one connection on
the motor encoder (red end cap).
(Repeat this procedure for all axes in the system.)
Table 2-5. K2 Cable –β Series Encoder Cable Examples
Motor Type
K2 Encoder Cable
Part Number
Cable Description
β 0.5/3000
IC800CBL022
14 Meter Severe Duty
β1/3000, β 2/3000, β3/3000, and β6/2000
IC800CBL023
14 Meter Severe Duty
α C12/2000
IC800CBL021
14 Meter Severe Duty
4. Connect the 220 V AC Power Cable (K3) to the β Series Digital
Amplifier
The AC power cable is a user-supplied cable, which connects to CX11–1 on the face of the β
Series amplifier. The connector for the amplifier end of this cable is part of kit A06B-6093-K305
supplied with each amplifier package. See the Servo Product Specification Guide, GFH-001, for
more detailed information.
An AC line filter will reduce the harmonic noise effect to the power supply; its use is
recommended. A line filter is not needed if an isolation transformer or separate power transformer
is used. Two or more amplifiers may be connected to one AC line filter or transformer as long as
its power capacity is not exceeded. Figure 2-11 shows how to connect the amplifier to the line
filter.
2-16
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Getting Started
2
a48025
CX11-1
R
L1
S
L2
T
L3
1
R
2
3
4
5
6
To
Power
Source
S
T
Line Filter
β Series Amplifier
Connection Strip
Ground Lug
Figure 2-11. Connecting the β Series Servo Amplifier to the Line Filter and Power Source
Note
You must supply the cable for the connection between the line filter and the
power source. Use 4-conductor, 600V, 60°C (140°F), UL or CSA approved
cable between the line filter and the servo amplifier. The gauge of wire used
for connecting the line filter to the power source must be sized, based on the
size of the circuit breaker between the power source and the line filter and the
number of servos connected to the line filter. The power connectors and
terminals are supplied as part of the amplifier package.
5. Connect the Machine Emergency Stop to the β Series Digital Servo
Amplifier
CX11
JX5
E-STOP
Series Amplifier
(Front Face View)
+24
20
Normally Closed
Machine E-STOP Device(s)
17
20
17
Up to 6 Amplifiers
can be connected
in series
JX5
Of First
Series
Amplifier
JX5
Of Second
Series
Amplifier
JX5 Connector
Part of Kit - A02B-0120-K301
Figure 2-12. Connecting the E-STOP to the β Series Servo Amplifier
GFK-1742A
Chapter 2 Getting Started
2-17
2
Note
You must supply the cable for this connection package. The JX5 connector
and connector cover is included with the amplifier as part number A02B0120-K301. If no E-STOP circuit is required, this connection must be made
with a wire jumper or the amplifier will not enable.
Connector JX5 Pin 20 supplies +24V DC for the E-STOP circuit. Wire Pin 20 through a normally
closed contact or switch so there is +24V DC to JX5 Pin 17 when not in E-STOP. GE Fanuc uses
two brands of connectors for the JX5 connector. See figure 2-13 for proper connection to
each type.
CAUTION
Do not apply any external voltage to this connection.
HIROSE 20 Pin PCR Type Connector Pin Configuration
1
3
5
2
4
12
14
8
10
17
15
Pins as viewed from
connection side
9
6
13
11
7
NC Contact
for E-Stop
circuit
19
18
16
20
HONDA 20 Pin PCR Type Connector Pin Configuration
2
1
4
3
12
11
6
5
14
13
8
7
16
15
10
Pins as viewed from
connector side
9
18
17
20
19
NC Contact
for E-Stop
circuit
Figure 2-13. 20-Pin PCR Connector Pin-Out
6. Connect 24V DC Cable (K12) to the β Series Digital Servo Amplifier
A connector for the external 24 VDC supply is included with the amplifier package as a part of
kit A06B-6093-K305 and should be connected to CX11-4. The other end of the cable must be
connected to a 24VDC source capable of supplying at least 450 milliamps of current for each β
Series amplifier. The GE Fanuc IC690PWR024 power supply is recommended. Do not apply
power at this time.
2-18
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Getting Started
2
7. Connect Cable K8 – Jumper or External Regeneration Resistor to the
β Series Digital Servo Amplifier
Without External Regeneration Resistor (Using a Jumper)
If you do not have an external regeneration resistor, you must leave the connections on
CX11-2 (DCP and DCC) open. However, you must jumper the CX11-6 (TH1 and TH2)
terminals, shown in the figure below. (This jumper completes the circuit that would
otherwise be completed by the normally closed thermal over-temperature switch in the
external regeneration resistor unit.) If you do not have this jumper installed, the amplifier
will not function. The jumper and its connector are included as a part of the connector kit,
A06B-6093-K305, that is shipped with each amplifier package.
E Amplifier
CX11-2 (DCP)
No Connection
CX11-2 (DCC)
No Connection
CX11-6 (TH1)
CX11-6 (TH2)
Jumper
Figure 2-14. Installing a Jumper when an External Regeneration Resistor is not Used
With External Regeneration Resistor
If you have an external regeneration resistor, observe that it has 4 wires. The two smaller
wires (K8) connect to the resistor’s internal, normally closed, over-temperature switch.
This switch will open and shut down the amplifier if the resistor get too hot. The two
larger wires (K7) connect to the resistor. All connectors needed to connect this resistor
unit to the amplifier are provided in the amplifier package.
Connect the two over-temperature switch wires (K8) to CX11-6 terminals TH1 and TH2.
(These connections are not polarity-sensitive.)
Connect the two resistor wires (K7) to CX11-2, terminals DCP and DCC. (These
connections are not polarity-sensitive.)
E Amplifier
External Regeneration
Resistor
CX11-2 (DCP)
CX11-2 (DCC)
CX11-6 (TH1)
CX11-6 (TH2)
GFK-1742A
Chapter 2 Getting Started
K7
K8
30 ohm
100 watt
NC OverTemperature
Switch
2-19
2
CX11-2 (DCC)
CX11-6 (TH1)
CX11-6 (TH2)
CX11-2 (DCP)
K7
External Regeneration
Resistor
K8
K7
Figure 2-15. Connecting the External Regeneration Resistor
65 (2.56)
57 (2.24)
150
(5.91)
To
CX11-2
DCP
DCC
To
CX11-6
A06B-6093-H401
(20 Watt unit)
52 60
(2.05)(2.36)
2- ∅ 4.5 (0.177)
TH1
TH2
100
(3.94)
7 10 Max
(.276) (.394)
A06B-6093-H401 20-Watt Regenerative Resistor
2-20
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Getting Started
2
Installing and Wiring the DSM314 for Analog Mode
Important Analog Servo Considerations:
GFK-1742A
1.
The Analog Servo Velocity Command output is a single-ended signal on pin 6 of the Auxiliary
Terminal Board. This signal is referenced to 0v of the DSM module and PLC. This signal
should be connected to the velocity command input of the servo amplifier.
2.
The DSM314 provides a low current (30 ma) solid state relay output on pin 15 of the Auxiliary
Terminal Board for connection to a servo amplifier enable input.
3.
In analog mode, the DSM314 requires a Drive Ready input (IN_4 signal) on pin 5 of the
Auxiliary Terminal Board. This signal must be switched to 0v when the amplifier is ready
to control the servo. The DSM starts checking the Drive Ready input one second after the
Drive Enable relay turns on in response to the Enable Drive %Q bit. If the servo
amplifier does not provide a suitable output, the IN_4 input to the DSM314 can be
connected to 0v or the function can be disabled in the module configuration. Reference
chapter 4 for details.
4.
Quadrature encoder feedback is used in analog mode. Encoder wiring connections are detailed
in figures 3-19 thru 3-23.
5.
Figures 3-19 thru 3-23 are generic analog wiring diagrams for the DSM.
6.
For details about interfacing the DSM314 to the GE Fanuc SL Servo products, refer to the
manual, SL Series Servo User’s Manual, GFK-1581.
Chapter 2 Getting Started
2-21
2
Grounding the Motion Mate DSM314 Motion System
The DSM314 System must be properly grounded. Many problems occur simply because this
practice is not followed. To properly ground your Motion Mate DSM314 system, you should
follow these guidelines:
„
„
„
„
„
The grounding resistance of the system ground should be 100 ohms or less (class 3 grounding).
The DSM314 faceplate shield ground wire (shipped with the module) must be connected from
the ¼ inch blade terminal at the bottom of the module to a panel frame ground.
If an axis terminal board is used, two shield (“S”) connections are provided and one of these
must be connected to a panel frame ground.
The system ground cable must have sufficient cross-sectional area to safely carry the
accidental current flow into the system ground when an accident such as a short circuit occurs.
Typically, it must have at minimum the cross-sectional area of the AC power cable. Figure 215 illustrates the grounding systems.
The amplifier ground connections, power earth (PE) connections, and motor frame ground
connections should always be wired to conform to local electrical wiring regulations. When
installing in conformance to CE Mark directives, a grounding bar and clamp(s) (ordered
separately) is required for the terminal block to amplifier cable. Refer to Chapter 3, Installing
and Wiring the DSM314, I/O Cable Grounding section, for more details.
Motor
Power
Magnetics
Unit
Servo
Amplifiers
Series 90*30
PLC
Rack
Machine
Operator's
Panel
Power
Magnetics
Cabinet
Distribution Board
FrameGround
SystemGround
Figure 2-16. Motion Mate DSM314 System Grounding Connections
2-22
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Getting Started
2
Table 2-6. Grounding Systems
Grounding System
Description
Frame Ground System
The frame ground system is used for safety and to suppress external and internal noises. In a
frame ground system, the frames, cases of the units, panels, and shields for the interface cables
between the units are connected.
System Ground System
The system ground system is used to connect the frame ground systems connected between
devices or units with the ground.
This completes the steps required to assemble the Motion Mate DSM314 system.
You will have more work to do when interfacing to your machine, but for now, you can move on to
the next step . . .
☞. . . . . . . . . . . .Turning on the Motion Mate DSM314 System!
GFK-1742A
Chapter 2 Getting Started
2-23
2
Section 3: Turning on the Motion Mate DSM314
Before turning on the power, you should:
„
„
„
„
„
Confirm that the supplied cables are properly attached to the appropriate connectors.
Confirm that all wiring to the power sources is correct.
Make sure that the motors are properly secured.
Check that all components are properly grounded, including the DSM314 faceplate shield.
If you are using more than one motor, confirm that the servo amplifier connections and the
feedback cables are not crossed between motors.
There is a specific sequence for turning on power to the DSM314 Control System. In the order
listed, perform these steps:
1.
Turn on the 220V AC power to the Digital servos. Verify that the charged LED indicator on
the amplifier is on.
2.
For β Series Digital amplifiers turn on the 24V DC source. Verify that the amplifier Power
indicator is on.
3.
Switch on the power to the Series 90-30 PLC, and check that the PWR LED on the Series 9030 Power Supply is illuminated. Place the PLC in the STOP/Disabled mode. This can be
done by using the VersaPro software or with the Series 90-30 Hand Held Programmer (Mode
Run –) keys.
4.
If using an optional motor mounted holding brake, apply applicable power (90 VDC for α and
β Series motors, and 24 VDC for SL Series motors) to brake leads to disengage the holding
brake.
Having accomplished these steps, it’s time to . . .
☞. . . . . . . . . . . .Configure the Motion Mate DSM314!
2-24
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
2
Getting Started
Section 4: Configuring the Motion Mate DSM314
The DSM314 Controller is configured using the VersaPro configuration software version 1.1 or
later.
The DSM314 has an extensive set of features that enable it to adapt to many different applications.
You can easily make adjustments to your motion system. Parameter registers in the DSM314
memory allow you to use variables in DSM314 motion programs.
The DSM314 contains several configuration parameters; however, only a few need to be set for
most applications. The remaining configuration parameters are normally set to their default values.
This section briefly describes the DSM314 configuration fields, and how to view and set the
configuration parameters required to jog an axis using VersaPro software.
VersaPro Program Folders
A VersaPro program folder is a sub-directory on your hard drive or floppy disk. The PLC
configuration and logic program and the DSM314 configuration will all be stored in the VersaPro
folder.
Connect your personal computer to the PLC using the correct communication cable. For more
information, please refer to GFK-0356, Series 90-30 PLC Installation and Hardware Manual. The
VersaPro programming environment has several communications options. One communications
option is to connect directly to the PLC SNP port. All DSM314 programming is done through the
VersaPro interface yielding single point of programming for the module. The DSM314 also has a
serial port on the module faceplate. This serial port is used for updating the DSM314 firmware
only. For one method to connect the VersaPro programmer to the CPU reference Figure 2-17 for a
connection diagram. Consult the VersaPro documentation for additional communications methods.
Configuration, Motion Programming,
and Local Logic Programming
SNP
(RS-485)
Series 90-30 PLC
D
S
M
Personal Computer
Running VersaPro Software
Figure 2-17. DSM Programmer Connection Diagram
GFK-1742A
Chapter 2 Getting Started
2-25
2
The VersaPro user environment is a self-contained environment that allows the user to perform all
the actions necessary to configure, create, edit, and download programs to the PLC and DSM. To
begin, evoke the VersaPro environment. Once in VersaPro, create a new VersaPro Folder. To
create a VersaPro folder select the File menu followed by New Folder. This will cause the New
Folder Wizard to execute. The user is prompted to enter a Folder Name, a location, and a Folder
Description. For the Example, enter the text as shown in the dialog box. (Figure 2-18)
Figure 2-18. New Folder Wizard Page 1
Click the Next button to proceed with the wizard. The next dialog box allows the user to either
start with a blank folder or import from another source. In the example, we are going to start with a
blank folder. (Figure 2-19)
2-26
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Getting Started
2
Figure 2-19. New Folder Wizard Page 2
Click the Finish button to create the new folder. The resulting VersaPro display will be as shown
in Figure 2-20.
Figure 2-20. New Folder VersaPro Main Screen
The next step is to start the hardware configuration tool. There are several ways to do this.
(Consult VersaPro documentation for additional details.) Two methods are:
GFK-1742A
•
Access the View selection from the main menu and then select Hardware Configuration
•
Click the Hardware Configuration toolbar icon.
Chapter 2 Getting Started
2-27
2
Either method will start the Hardware configuration tool. The default hardware configuration
screens are for the VersaMax product. As such, the first operation we need to perform is to select
the Series 90-30. To perform this action select File from the main menu (menu bar), Convert To
from the File menu, and Series 90-30 from the Convert To menu. This will change the VersaMax
default to a Series 90-30. The menu selections are as shown in Figure 2-21.
Figure 2-21. Hardware Configuration Rack Selection
A dialog box will appear that warns the user that information will be deleted. The folder that we
created for the example is new, as such no information will be lost. If you have not created a new
folder, be aware that configuration information will be lost by performing this operation. It
is recommended that you use a new “scratch” folder for this example. Answer Yes to the dialog
box. (Figure 2-22)
Figure 2-22. Hardware Configuration Rack Convert Dialog Box
Once this operation is complete, we have a blank 90-30 rack that requires configuration. The
resulting Hardware Configuration screens should be as shown in Figure 2-23.
2-28
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Getting Started
2
Figure 2-23. Hardware Configuration 90-30 rack with CPU
The user then needs to select the power supply and CPU that is appropriate for their installation.
Note that the DSM314 requires that the CPU firmware be release 10 or higher. The default CPU,
“CPU351,” does not support release 10.0 firmware. Therefore, we are going to change the CPU to
the “CPU364” model, which does support CPU release 10 firmware. The user should consult the
VersaPro documentation concerning how to change CPU’s within VersaPro. Additionally, the
CPU documentation will contain the list of CPU hardware that supports release 10.0 functionality.
The resulting display will appear as shown in Figure 2-24.
GFK-1742A
Chapter 2 Getting Started
2-29
2
Figure 2-24. Hardware Configuration 90-30 rack with CPU364
At this point, we need to add the DSM314 into the rack. To perform this step, select the rack slot
where the DSM314 is to be installed. In our example, we are going to install the DSM314 in slot
number 2. As such, we want to add the DSM314 module to this slot location. There are several
ways to add modules to a rack slot. Consult the VersaPro documentation for additional details and
procedure. Two methods to add the module are as follows. The user can either double click the
desired slot (in this case slot number 2) or select Edit from the main menu then select Module
Operations from the Edit submenu, and then select Add Module from the Module Operations
menu. At this point a dialog box will be generated that allows the user to select the type module
they wish to add. In our case, we want to add a module of type “Motion”. Therefore, we need to
select the “Motion” tab from the dialog box. At this point, select the DSM314 module from the
list. The resulting display will be as shown in Figure 2-25.
Figure 2-25. Hardware Configuration 90-30 rack DSM314 Selection
This operation will add the DSM314 to the rack and bring up the DSM314 configuration screens.
This will allow the user to customize the DSM314 to their particular application. The reader
should reference chapter 4 for details concerning the DSM314 configuration settings.
2-30
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
2
Getting Started
Module Configuration Data (Getting Started Tutorial only)
If you followed the process above, the DSM314 configuration screens will be open. If you are
starting at this point double click the DSM314 module you wish to edit. This operation will also
bring up the configuration screens. For now, select or enter the values from the following tables
for the type of servo system, digital or analog, that you will be using. Chapter 4 of this manual
provides additional detail for each configuration parameter, which will allow you to customize
settings for your specific application requirements.
Table 2-7. Settings Tab (Getting Started Tutorial only)
Configuration
Parameter
For Digital
Mode
For Analog
Mode
VersaPro
Default Settings
Number of Axes
%I Reference
Number of Controlled Axis
2
4
4
Start address for %I ref type
(80 bits)
%I00001
%I00001
Next highest
available %I
reference
%I Length
%I reference addresses length
Start address for %Q ref type
(80 bits)
80
%Q00001
80
%Q Reference
48
%Q00001
%Q Length
%Q reference addresses length
%AI reference
Start address for %AI ref type
(84 bits)
48
%AI00001
80
%AI00001
%AI Length
%AI reference addresses length
%AQ reference
Start address for %AQ ref type
(12 bits)
44
%AQ00001
84
%AQ00001
%AQ Length
%AQ reference addresses
length
Axis 1 Control Mode
Axis 2 Control Mode
Axis 3 Control Mode
Axis 4 Control Mode
The Local Logic Engine mode
The encoder power
requirements
The motion program name to
execute on the module
The local logic program name
to execute on the module
The cam block name to execute
on the module
6
12
12
Digital Servo
Digital Servo
Auxiliary Axis
Disabled
Disabled
0
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Disabled
**
Analog Servo
Analog Servo
Auxiliary Axis
Disabled
Disabled
0
<blank>
<blank>
<blank>
<blank>
<blank>
<blank>
<blank>
<blank>
<blank>
Axis 1 Mode
Axis 2 Mode
Axis 3 Mode
Axis 4 Mode
Local Logic Mode
Total Encoder Power
Motion Program Block
Name
Local Logic Block
Name
Cam Block Name
GFK-1742A
Description
Chapter 2 Getting Started
Next highest
available %Q
reference
80
Next highest
available %AI
reference
84
Next highest
available %AQ
reference
2-31
2
Table 2-8. Axis Tabs (Getting Started Tutorial only)
Configuration Description
For Digital
Parameter
Mode
User Units
Counts
OT Limit Sw
Drive Ready Input
High Position Limit
Low Position Limit
High Software EOT
Limit
Low Software EOT
Limit
Software End of
Travel
Velocity Limit
Command Direction
Axis Direction
Feedback Source
Feedback Mode
(Digital Mode only)
Reversal
Compensation
Drive Disable Delay
Jog Velocity
Jog Acceleration
Jog Acceleration
Mode
Home Position
Home Offset
Final Home Velocity
Find Home Velocity
Home Mode
Return Data 1 Mode
2-32
For Analog
Mode
Default Settings
1
1
Disabled
1
1
Disabled
1
1
Enabled
Enabled
Enabled
+8388607
-8388608
+8388607
Servo Amplifier
Dependent
+8388607
-8388608
+8388607
+8388607
-8388608
+8388607
-8388608
-8388608
-8388608
Disabled
Disabled
Disabled
1,000,000
Bi-directional
1,000,000
Bi-directional
1,000,000
Bi-directional
Normal
Default
Incremental
Normal
Default
N/A
Normal
Default
Incremental
Reversal Compensation
0
0
0
Drive Disable Delay
Jog Velocity
Jog Acceleration
Jog Acceleration Mode
100
+1000
+10,000
Linear
100
+1000
+10,000
Linear
100
+1000
+10,000
Linear
User Units Value
Feedback Counts
Over travel Limit Switch
Enable / Disable
The Drive Ready Input
Control
High Position Limit
Low Position Limit
High Software End of
Travel Limit
Low Software End of Travel
Limit
Software End of Travel
Control
Axis Velocity Limit
Allowable Commanded
Direction
Axis Direction
Feedback type
Feedback Mode
Home Position
Home Offset Value
Final Home Velocity
Find Home Velocity
Find Home Mode
Return Data 1 Mode
Return Data 1 Offset
Return Data 2 Mode
Return Data 2 Offset
Cam Master Source
Return Data 1 Offset
Return Data 2 Mode
Return Data 2 Offset
Cam Master Source
Follower Control
Loop
Ratio A Value
Follower Control Loop
Enable
Follower A/B Ratio A
Ratio B Value
Follower Master
Source 1
Follower Master
Source 2
Follower A/B Ratio B
Follower Master Source 1
Follower Master Source 2
0
0
0
0
+500
+500
+2000
+2000
Move +
Move +
0
0
0
0
0
0
0
0
Actual Position 3 Actual Position 3
VersaPro
0
0
+500
+2000
Home Switch
0
0
0
0
Actual Position 3
Disabled
Disabled
Disabled
1
1
1
1
1
1
None
None
None
None
None
None
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
2
Getting Started
Table 2-8, Continued
Follower Enable
Trigger
Follower Enable Input
Trigger
None
None
None
Follower Disable
Trigger
Follower Disable
Action
Ramp Makeup
Acceleration
Ramp Makeup Mode
Follower Enable Input
Trigger
Follower Disable Action
None
None
None
Stop
Stop
Stop
Follower Ramp Makeup
Acceleration
Follower Ramp Makeup
Mode
Follower Ramp
Acceleration Makeup Time
10,000
10,000
10,000
Makeup Time
Makeup Time
Makeup Time
0
0
0
+1000
+1000
+1000
For Digital
Mode
For Analog
Mode
VersaPro
Defaults Settings
Ramp Makeup Time
Ramp Makeup
Velocity
Follower Ramp Makeup
Velocity
Table 2-9. Tuning Tabs (Getting Started Tutorial only)
Configuration
Parameter
Motor Type
Analog Servo
Command
Position Error Limit
In Position Zone
Pos Loop Time
Constant (0.1 ms)
Velocity at MaxCmd
Velocity Feed
Forward Percentage
Acceleration Feed
Forward Percentage
Integrator Mode
Integrator Time
Constant
Velocity Loop Gain
Description
Motor Type
Analog Servo Command
Type
Position Error Limit
In Position Zone
Position Loop Time
Constant
Velocity at Maximum
Command
Velocity Feed Forward
Percentage
Acceleration Feed Forward
Percentage
Position Loop Integrator
Mode
Position Loop Integrator
Time Constant
Velocity Loop Gain
From Table 2-10 0
Velocity
Velocity
0
Velocity
60,000
10
600*
60,000
10
1000*
60,000
10
1000
N/A
100,000*
100,000
0
0
0
0
0
0
Off
Off
Off
0
0
0
16
16
16
*Proper settings determined during system startup/tuning. See page D-14 in Appendix D.
** Proper settings determined by 5-volt power requirements
Note
Repeat the above settings for axis 2,3 and 4 configuration if needed.
GFK-1742A
Chapter 2 Getting Started
2-33
2
Motor Type (Digital Mode)
Selects the type of FANUC AC servomotor to be used with the DSM314. The DSM314 internally
stores default setup motor parameter tables for each of the GE Fanuc servos supported. A particular
motor for the indicated axis is selected via the configuration fields Motor1 Type (for axis 1) or
Motor2 Type (for axis 2). Supported motor types are listed in the table below.
FANUC Motor Model: Motor model information is in the form series, continuous torque in
Newton meters / maximum rpm. Example: β2/3000 indicates a Beta (β) series motor of 2 Newton
meters continuous torque capability and 3000 RPM maximum continuous speed.
FANUC Motor Specification: The configuration data for the motor type field is determined by the
motor nameplate data. Motor part numbers are in the form A06B-xxxx-yyyy, where xxxx
represents the Motor Specification field. For example: Reading the significant digits 0032 from a
motor nameplate of A06B-0032-B078 indicates motor model β2/3000. The table below shows that
36 is the correct Motor Type Code for a Motor Specification number of 0032.
Table 2-10. FANUC Motor Type Code Selection
Motor Type Code
Motor Model
Motor Specification
61
α 1/3000
0371
46
α 2/2000
0372
62
α 2/3000
0373
15
α 3/3000
0123
16
α 6/2000
0127
17
α 6/3000
0128
18
α 12/2000
0142
19
α 12/3000
0143
27
α 22/1500
0146
20
α 22/2000
0147
21
α 22/3000
0148
28
α 30/1200
0151
22
α 30/2000
0152
23
α 30/3000
0153
30
α 40/2000
0157
29
α 40/FAN
0158
56
αL 3/3000
0561
57
αL 6/3000
0562
58
αL 9/3000
0564
59
αL 25/3000
0571
60
αL 50/2000
0572
Continued on next page
2-34
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Getting Started
2
Table 2-10, Continued
Motor Type Code
GFK-1742A
Motor Model Motor Specification
7
αC 3/2000
0121
8
αC 6/2000
0126
9
αC 12/2000
0141
10
αC 22/1500
0145
3
α 12HV/3000
0176
4
α 22HV/3000
0177
5
α 30HV/3000
0178
24
αM 3/3000
0161
25
αM 6/3000
0162
26
αM 9/3000
0163
13
β 0.5/3000
0113
35
β 1/3000
0031
36
β 2/3000
0032
33
β 3/3000
0033
34
β 6/2000
0034
Chapter 2 Getting Started
2-35
2
Store the Configuration to the PLC
You should complete the configuration of your Series 90-30 system to include the Power Supply,
Rack, CPU and additional modules to match the target system. Consult the VersaPro Programming
Software User’s Guide, GFK-1670, and VersaPro on-line help as needed.
IMPORTANT
The completed configuration must be stored to the PLC. See “Connecting to and Storing Your
Configuration to the PLC” in Chapter 15 for instructions on how to do this. For additional details,
consult the VersaPro Programming Software User’s Guide, GFK-1670, and the VersaPro on-line
help as needed.
If all seems in order (that is, there are no PLC or IO status errors after Store, etc.),
then it must be . . .Motion
Time!
NOTE
A PLC status error of “System Configuration Mismatch” with the same rack/slot
location as a DSM314 indicates that there is a parameter configured and sent to
the DSM314 that has been rejected by the DSM314. Carefully check each
parameter of your DSM314 configuration with the configuration settings in this
manual for the discrepancy. Correct the discrepancy, clear the PLC Fault, and reStore the configuration. Check that the error has been corrected. See the next
section, Enabling Run Mode on the PLC, for instructions on viewing and clearing
PLC faults.
The DSM314 can detect many typical configuration errors. These are returned as
error codes of the form Dxxx (hex) in the Module Status Code %AI word or Axis
Error Code %AI words. These errors do not cause a PLC status of “System
Configuration Mismatch”. Refer to Appendix A for a description of these errors.
Correct any configuration errors and re-store the configuration with the PLC in
Stop mode.
2-36
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
2
Getting Started
Section 5: Testing Your System
Generating Motion
CAUTION
For correct machine operation, the recommended start-up procedure must be
performed. This includes validating operation of the Overtravel Limits and
Home Switch, checking for correct motor rotation direction, and tuning the
velocity and position loops. This must be done by experienced personnel. For
detailed start-up instructions, refer to Appendix D, Start-Up and Tuning a GE
Fanuc Digital or Analog Servo System.
Enabling Run Mode on the PLC
The next step in the DSM314 system operation is to place the PLC in the RUN mode.
1.
From the VersaPro main menu, choose the PLC menu selection. From the PLC submenu,
choose Connect. The Connect menu will appear. From this menu select the communications
method/port that you wish to use to communicate with the PLC. If you have not yet
configured the communications port, consult the VersaPro documentation GFK-1670 or the
VersaPro 1.1 on-line help for further information.
2.
From the VersaPro main menu, select the Tools menu selection. From the Tools submenu
select Fault Table entry. This will bring up the PLC fault table display. Review the fault
tables for any problems and then use the function key F9 – Clear to delete any PLC faults
present. Select the I/O fault table tab and perform the same operation on these faults as well.
Close the fault table and return to the VersaPro main screen
3.
From the VersaPro main menu, select the PLC menu selection. From the PLC submenu select
the Run entry. This will place the PLC in run mode.
Warning
Make sure that your motor is properly fastened down. If not, the motor
could be damaged and/or cause injury to personnel.
GFK-1742A
4.
Visually check that the PLC LED’s labeled PWR, OK, and RUN are all on. Visually check
that the DSM314 module LEDs STAT, OK and CFG are on. For α Series Digital amplifiers,
visually check that the amplifier status readout is showing a minus sign (–) (which indicates
Standby Mode). For β Series Digital amplifiers check that the Power LED is on and the ALM
LED’s are off. For SL Series amplifiers, check the front panel display on each amplifier for
any errors (as indicated by all digits on the display flashing on and off).
5.
If an amplifier indicates a fault, it may be necessary to completely remove power from the
amplifiers and the PLC and repeat the power on sequence described in Section 3.
6.
Assuming no errors are present, you should be able to jog the attached axes. For the startup
configuration previously described, to clear any error indicated by the DSM314’s STAT LED
Chapter 2 Getting Started
2-37
2
blinking, toggle (on then off) the Clear Error %Q bit (%Q1 for this configuration) in the PLC
data table. Conditions that continue to cause an error must be corrected in order to clear the
status indicator. Refer to Appendix A, “Error Codes”, for DSM Error Status information.
Jogging With the Motion Mate DSM314
The Jog Velocity, Jog Acceleration, and Jog Acceleration Mode are configurable in the DSM314 module.
These values are used whenever a Jog Plus or Jog Minus %Q bit is turned ON. Note that if both Jog bits are
ON, no motion is generated. Default values for jog velocity were set during configuration.
A Jog can be performed when no other motion is commanded. The Enable Drive %Q bit does not
need to be ON to Jog. Turning on a Jog %Q bit will automatically turn on or enable the servo. You
should hear the amplifier enable and the motor will have torque on the shaft. Conversely, the drive
will automatically disable when the jog bit is released.
To jog the axis in the positive direction, toggle ON %Q0021 for axis 1 or %Q0037 for axis 2. Note
that the references used here are for %Q references starting at %Q0001. The starting %Q reference
is configurable.
If the motor will not jog, skip over this section and go to Section 6, "Troubleshooting Your Motion
System."
Section 6: Troubleshooting Your Motion System
Alarms
The first step in correcting a problem is to determine if any alarms have occurred. PLC alarms or
errors may be viewed in the PLC fault table. Servo and motion subsystem alarms may be viewed
in the DSM314 Module Status Code %AI word or one of the Axis Error Code %AI words,.
Consult Chapter 5 for additional information on error reporting through the %AI data.
For more information on Motion Mate DSM314 alarms, please refer Appendix A, “Error Codes”
which contains a list of alarm codes and descriptions. Check to see if this information can help
you.
For more information on Troubleshooting, see Appendix D, Start-Up and Tuning a GE Fanuc
Digital or Analog Servo System.
Configuration Settings
If your system powers up with alarms, it may be due to an incorrect configuration setting.
The Series 90-30 PLC configuration must be stored to the PLC CPU and the PLC must be in
Run/Output Enabled mode.
If you cannot move an axis or execute a jog, check to see that all conditions necessary to perform
these operations are met. Refer to the appropriate areas in this manual.
2-38
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
2
Getting Started
Getting Help
If you still cannot solve the problem, you may contact the GE Fanuc number for your area, listed in
the table below:
Telephone Numbers
GE Fanuc Telephone Numbers
Location
Number
North America, Canada, Mexico (Technical
Support Hotline)
Toll Free:
1-800 GE Fanuc
Latin America (for Mexico, see above)
Direct Dial: (804) 978-6036
France, Germany, Luxembourg, Switzerland,
and United Kingdom
Toll Free:
00800 433 268 23
Italy
Toll Free:
16 77 80 596
Direct Dial: (804) 978-6036
Other European countries
352 (72) 79 79 309
Asia/Pacific – Singapore
65-566 4918
India
91-80-552 0107
GE Fanuc web site
http://www.gefanuc.com/support/plc/
Fax Link System
Help is also available in the form of Fax documents that you can order from the GE Fanuc Fax
Link System. To access, please call (804) 978-5824. Follow the instructions for obtaining, by Fax,
a master list of the available subjects. You may also download a master list (called Document 1) or
print a set of Fax Link instructions from the following web address:
http://www.gefanuc.com/support/plc/fax.htm
When you receive the master list, select a document, then call and specify the document number
and it will be faxed to you.
Once you have successfully moved an axis, it’s . . .
Mission Accomplished!
GFK-1742A
Chapter 2 Getting Started
2-39
2
Section 7: Next Steps to Take
After successfully moving an axis, what’s next?
This startup chapter does not cover all aspects of the DSM314 motion system. For this reason, you
should review the information provided in all the manuals (see Related Publications in the Preface
of this manual). Additionally, GE Fanuc offers applicable training courses. If your application
requires a custom machine interface, you should also attend a GE Fanuc programming course. For
information about training, call 1-800-GE FANUC or contact your GE Fanuc Sales representative.
The installation and wiring chapter of this manual will be your guide to completing the DSM
hardware installation.
The configuration chapter will provide details needed to configure the DSM module for your
application. You should begin by reviewing the Configuration Parameters section in chapter 4.
….. Two final recommendations:
„
Save the paperwork that came with your system.
The Important Product Information sheet will contain the latest information on this product,
some of which may not be included in this manual.
„
Back up your ladder logic folder.
Important! . . . . Do this frequently while developing your application.
2-40
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Chapter
Installing and Wiring the DSM314
3
Section 1: Hardware Description
This section identifies the module’s major hardware features. The module’s faceplate provides
seven status LEDs, one communications port RJ-11 connector and four user I/O connectors (36
pin). A grounding tab on the bottom of the module provides a convenient way to connect the
module’s faceplate shield to a panel ground.
Status LED’s
Stat
OK
CFG
EN1 - EN4
COMM
6-pin RJ-11 connector.
Provides RS-232
connection for firmware
update
COMM
STAT
OK
CFG
C
EN3
EN1
EN4
EN2
A
Connector C
Servo Axis 3
Connector A
Servo Axis 1
D
B
Connector D
Servo Axis 4
Connector B
Servo Axis 2
Motion Mate DSM314
Grounding Tab on
Bottom of Module
Figure 3-1. DSM314 Module
GFK-1742A
3-1
3
LED Indicators
There are seven LED status indicators on the DSM314 module, described below:
STAT
Normally ON. FLASHES to provide an indication of operational errors. Flashes slow
(four times/second) for Status-Only errors. Flashes fast (eight times/second) for errors
which cause the servo to stop.
ON:
When the LED is steady ON, the DSM314 is functioning properly. Normally,
this LED should always be ON.
OFF:
When the LED is OFF, the DSM314 is not functioning. This is the result of a
hardware or software malfunction which will not allow the module to power up.
Flashing: When the LED is FLASHING, an error condition is being signaled.
Constant Rate, CFG LED ON:
The LED flashes slow (four times/second) for Status Only errors and fast (eight
times/second) for errors which cause the servo to stop. The Module Error
Present %I status bit will be ON. An error code (hex format) will be placed in
the Module Status Code %AI word or one of the Axis Error Code %AI words.
Constant Rate, CFG LED Flashing:
If the STAT and CFG LEDs both flash together at a constant rate, the DSM314
module is in boot mode waiting for a new firmware download. If the STAT and
CFG LEDs both flash alternately at a constant rate, the DSM314 firmware has
detected a software watchdog timeout due to a hardware or software
malfunction.
Irregular Rate, CFG LED OFF:
If this occurs immediately at power-up, then a hardware or software malfunction
has been detected. The module will blink the STAT LED to display two error
numbers separated by a brief delay. The numbers are determined by counting
the blinks in both sequences. Record the numbers and contact GE Fanuc for
information on correcting the problem.
The OK LED indicates the current status of the DSM314 module.
OK
3-2
ON:
When the LED is steady ON, the DSM314 is functioning properly. Normally,
this LED should always be ON.
OFF:
When the LED is OFF, the DSM314 is not functioning. This is the result of a
hardware or software malfunction which will not allow the module to power up.
CFG
This LED is ON when a module configuration has been received from
the PLC.
EN1
EN2
EN3
EN4
When this LED is ON, the Axis 1 Drive Enable relay output is active.
When this LED is ON, the Axis 2 Drive Enable relay output is active.
When this LED is ON, the Axis 3 Drive Enable relay output is active.
When this LED is ON, the Axis 4 Drive Enable relay output is active.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Installation and Wiring
3
The DSM COMM (Serial Communications) Connector
The module’s front panel contains a single RJ-11 connector for serial communications, labeled
“COMM”. It is used to download firmware updates to the DSM module from a personal computer
running the GE Fanuc PC Loader or Win Loader utility software. (See Appendix F for details.)
This serial COMM port connects to the personal computer’s serial port and uses the GE Fanuc
SNP protocol and the RS-232 serial communications standard. The baud rate is configurable
from 300 to 19,200 baud. The COMM port is configured using the VersaPro 1.1 (or later)
Configuration Software.
A 1-meter cable, IC693CBL316, is available from GE Fanuc to connect the COMM port to a
personal computer. This cable uses a 9-pin female D-shell connector for the computer side and an
RJ-11 connector for the DSM314. If a longer cable is used, the maximum recommended
length is 50 feet.
Table 3-1. DSM314 COMM Port Pin Assignments
RJ-11 Pin
Number
1
2
3
4
5
6
9-Pin
(female)
Number
7
2
5
5
3
8
Signal
Name
Description
CTS
TXD
0V
0V
RXD
RTS
Clear to Send
Transmit Data
Signal Ground
Signal Ground
Receive Data
Request to Send
(Pin 1 is at the bottom of the connector when viewed from the front of the module.)
I/O Connectors
The DSM314 is a two-axis digital servo/one axis analog or four axis analog servo controller with
four 36-pin I/O connectors labeled A, B, C, and D. The connectors are assigned as follows:
Table 3-2. Axis I/O Connector Assignments
GFK-1742A
Connector
Axis
Number
A
B
Axis Type
I/O Usage
1
2
Servo Axis
Servo Axis
Aux Axis
C
3
Servo Axis
Aux Axis
D
4
Servo Axis
Aux Axis
Closed Loop Digital or Analog Servo Control
Closed Loop Digital or Analog Servo Control
Or
Position Feedback and auxiliary analog / digital I/O
Closed Loop Analog Servo Control
Or
Position Feedback and auxiliary analog / digital I/O
Closed Loop Analog Servo Control
Or
Position Feedback and auxiliary analog / digital I/O
Chapter 3 Installing and Wiring the DSM314
3-3
3
All 4 connectors provide similar analog and digital I/O circuits. Only Axis 1 and Axis 2 can be
configured to control digital servos. If digital servos are used, both Axis 1 and Axis 2 must be
configured for Digital Servo mode. When Axis 1 and Axis 2 are configured for digital servos,
Axis 3 can be used for Analog Servo or Aux Axis control. Axis 4 is not available for Analog
Servo or Aux Axis control when Axis 1 and 2 are configured for digital servos.
When Axis 1 is configured for Analog Servo control, Axis 2 - Axis 4 are also available for Analog
Servo or Aux Axis control. Aux Axis functions include position input for Follower Master axes
and internal (virtual master) command generation.
Any of these four connectors used in a system typically is cabled to an appropriate Terminal Board
with cable IC693CBL324 (1 meter) or IC693CBL325 (3 meters). Three different terminal boards
provide screw terminals for connecting to external devices. The terminal boards are described
later in the “Terminal Board” section of this chapter.
Shield Ground Connection
The DSM314 faceplate shield must be connected to frame ground. This connection from the
DSM314 to frame ground can be made using the green ground wire (part number 44A735970001R01) provided with the module. This wire has a stab-on connector on one end for connection
to a ¼ inch terminal on the bottom of the DSM314 module and a terminal on the other end for
connection to a grounded enclosure.
BOTTOM VIEW
STAB-ON
CONNECTOR
OF DSM MODULE
USE 1 #6
SELF TAPPING SCREW
(N666P14006B6)
44A735970-001R01
MOUNT ON
GROUNDED
ENCLOSURE
Figure 3-2. Connecting the Shield Ground
3-4
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
3
Installation and Wiring
Section 2: Installing the DSM314 Module
The Motion Mate DSM314 can operate in any Series 90-30 CPU, expansion, or remote baseplate
(Series 90-30 release 6.50 or later). The configuration files created by VersaPro Configuration
software must match the physical configuration of the modules. Note: For general Series 90-30
installation and environment considerations, refer to the Series 90-30 PLC Installation and
Hardware Manual, GFK-0356.
To install the DSM314 on the baseplate, follow these steps:
1.
Use the VersaPro Configuration software or the Hand-Held Programmer to stop the PLC.
This will prevent the local application program, if any, from initiating any command that
may affect the module operation on subsequent power-up.
2.
Power down the Series 90-30 PLC system.
3.
Align the module with the desired base slot and connector. Tilt the module upward so that
the top rear hook of the module engages the slot on the baseplate top edge.
4.
Swing the module down until the connectors mate and the lock-lever on the bottom of the
module snaps into place engaging the baseplate notch.
5.
Connect the faceplate shield wire from the ¼ inch blade terminal on the bottom of the module
to a suitable panel earth ground.
6.
Refer to Figures 3-10 through 3-23 and Tables 3-7 through 3-14 for I/O wiring requirements.
7.
Power up the PLC rack. The Status LED of the Motion Mate DSM314 will turn ON when
the controller has passed its power-up diagnostics.
8.
Repeat this procedure for each DSM314 module in your PLC system.
9.
Configure the DSM314 module(s) as described in Chapter 4.
The following table lists the DSM314 module current draw and defines the number of modules
that can be installed in a particular PLC system.
The number of modules in a system may be restricted by:
„
„
„
„
PLC rack power supply capacity
PLC I/O Table space. The DSM module requires the use of %I, %Q, %AI, and %AQ
memory in the PLC’s I/O Table, with the %I and %Q type usually being the most restrictive
of the four. %AI is also restrictive on CPUs that do not support configurable %AQ memory
(such as the 350 CPU). The amount of available memory varies with the model of PLC CPU
to be used.
PLC Configuration data storage capacity
Available PLC memory
The absolute limits for each PLC type must not be exceeded because in some cases they are based
on PLC I/O Table and Configuration data capacity.
The practical number of axes must consider I/O use and sweep time of the entire system.
GFK-1742A
Chapter 3 Installing and Wiring the DSM314
3-5
3
Table 3-3. Maximum Number of DSM Modules per System by Baseplate and Power Supply Types
Power Supply Voltage:
Power Supply Current Draw by DSM:
5 VDC from PLC backplane
800 mA plus encoder supply current (see next item).
Available +5V Current/Module to supply
external encoder, if used:
500 mA (if used, must be added to module +5v current draw)
Model 350, 352, 360, 363, 364 PLCs:
(5 and 10-slot CPU baseplates,
5 and 10-slot expansion or remote
baseplates - 8 total baseplates per
system)
2 DSM314 modules in CPU baseplate with PWR321/322/328
5 DSM314 modules in CPU baseplate with PW330/331
3 DSM314 modules in expansion/remote baseplate with
PWR321/322/328
6 DSM314 modules in remote baseplate with PWR330/331
7 DSM314 modules in expansion baseplate with PWR330/331
20 total DSM314 modules per PLC system with PWR321/322/328*
20 total DSM314 modules per PLC system with PWR330/331*
*Note: The Series 90-30 will normally support 20 DSM314 modules in a system. This number
may be reduced by other modules in the system, such as APM and GBC modules. It may also be
further reduced by having datagrams set up which will read the reference or fault tables. If the
configuration and user program is stored at the same time, the presence of either C blocks within
the LD program, or a C logic program may also affect the number of DSM314 modules which
may be included in a system. If the store fails, it may be possible to store the configuration to the
system by first storing the logic program, and then storing the configuration on a separate store
request.
The numbers listed in the above table are the theoretical maximums. However, an important
factor in determining the module mix in any baseplate is that the total power consumption of all
modules must not exceed the total load capacity of the power supply. It is possible that a
particular module mix would not allow the maximum number of DSM314s to be installed in a
baseplate due to power supply limitations. The VersaPro software’s configuration screen has an
automatic power supply usage calculator that can be used to check this. This calculation can also
be done manually, as explained in the Series 90-30 PLC Installation Manual (GFK-0356, version
P or later), which also lists load requirement specifications for Series 90-30 modules. The
available power supplies are:
Standard Series 90-30 Power Supplies
„
„
„
IC693PWR321 - Standard AC/DC Power Supply - allows 15 watts (3000 ma) for +5
VDC
IC693PWR322 - 24/48 VDC input Power Supply - allows 15 watts (3000 ma) for +5
VDC
IC693PWR328 - 48 VDC input Power Supply - allows 15 watts (3000 ma) for +5 VDC
High Capacity Series 90-30 Power Supplies
„
„
3-6
IC693PWR330 - High Capacity AC/DC Power Supply - allows 30 watts (6000 ma) for +5 VDC
IC693PWR331 - High Capacity 24 VDC input Power Supply - allows 30 watts (6000 ma) for +5
VDC
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Installation and Wiring
3
Notes
Refer to GFK-0867B, (GE Fanuc Product Agency Approvals, Standards,
General Specifications), or later version for product standards and general
specifications.
Installation instructions in this manual are provided for installations that do not
require special procedures for noisy or hazardous environments. For
installations that must conform to more stringent requirements (such as CE
Mark), see GFK-1179, Installation Requirements for Conformance to
Standards.
GFK-1742A
Chapter 3 Installing and Wiring the DSM314
3-7
3
Section 3: I/O Wiring and Connections
I/O Circuit Types
Each of the module’s four connectors (Connector A, B, C, and D) provide the following types of
I/O circuits:
•
Three differential / single ended 5v inputs (IN1-IN3)
•
5 VDC Encoder Power (P5V)
•
One single ended 5v input (IN4)
•
Four single ended 5v input / output circuits (IO5-IO8)
•
Three 24v inputs (IN9-IN11)
•
One 24v, 125 ma solid state relay output (OUT1)
•
Two differential 5v line driver outputs (OUT2-OUT3)
•
One 24v, 30 ma solid state relay output (OUT4)
•
Two differential +/- 10v Analog Inputs (AIN1-AIN2)
•
One single ended +/- 10v Analog Output (AOUT1)
Not all of these I/O circuits are available for user connections. Some of the circuits are used to
control the GE Fanuc digital servo amplifier. Refer to Tables 3-11 through 3-14 for additional
information.
Terminal Boards
•
Axis Terminal Board, Catalog No. IC693ACC335 – Used in digital mode only. It connects
DSM connector A or B to a GE Fanuc α or β Digital Servo amplifier. It also provides screw
terminal connections for I/O devices. This terminal board contains two 36 pin connectors.
One connects to the DSM via cable IC693CBL324/325, and the other connects to the GE
Fanuc Digital Servo amplifier via the servo command cables IC800CBL001 / 002. See
Figures 3-10, 3-16, 3-17, and 3-18.
Note: For Digital Servo applications that do not require use of the DSM’s A or B
connector I/O signals, the DSM connector can be cabled directly to the GE Fanuc digital
servo amplifier. Refer to Section 3, “I/O Wiring and Connections,” later in this Chapter
for additional information.
•
3-8
Auxiliary Terminal Board, Catalog No. IC693ACC336 – This terminal board contains a
single 36 pin connector which connects to the DSM314 module. This board has two basic
applications (see Figures 3-10 and 3-11):
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
3
Installation and Wiring
1.
For Analog servos, it connects to DSM Connector A, B, C or D to provide screw
terminals for wiring to a third party Analog servo amplifier and I/O devices. See
Figures 3-19 through 3-23.
2.
For Auxiliary axes, it connects to DSM Connector B, C, or D to provide screw
terminals for wiring to external devices such as Strobe sensors, Home switches, and
Overtravel Limit switches. Note: See Figure 3-23.
•
SL-Series Servo to APM/DSM Terminal Board, Catalog IC800SLT001 – Used to
connect DSM connector A, B, C or D to a GE Fanuc SL-Series analog servo
amplifier, as well as provide screw terminals for wiring to I/O devices. It contains
two connectors. One connects to the DSM module, and the other to the SL-Series
Servo amplifier. For additional information, please see the SL-Series Servo User’s
Manual, GFK-1581.
DSM Terminal Board Quick Selection Table
DSM
Connector
DSM Axis
Mode
Terminal
Board
Required
Connect to α-Series or β-Series digital
servo and I/O.
A or B
Digital
IC693ACC335
Connect directly to α-Series or β-Series
digital servo. No I/O connections needed.
A or B
Digital
None
Connect to third party analog servo and I/O.
A, B,C or D
Analog
IC693ACC336
Connect to SL-Series analog servo and I/O.
A,B,C or D
Analog
IC800SLT001
B,C or D
Analog or Aux
IC693ACC336
DSM Application
Connect to Auxiliary Axis I/O on DSM
connector B, C or D
18
36
17
35
34
16
15
32
14
33
31
13
30
12
11
29
28
10
9
16
27
8
8
7
26
15
7
6
25
14
6
5
24
13
5
4
23
12
4
3
22
11
3
2
21
10
2
1
20
9
1
S
19
S
S
S
IC693ACC335
Servo AxisTerminal Board
IC693ACC336
Auxiliary Terminal Board
Figure 3-3. Axis and Auxiliary Terminal Board Assemblies
Note
Each Terminal Board is shipped with DIN Rail mounting feet. Instructions for
converting a terminal board to panel-mount are included in this chapter.
GFK-1742A
Chapter 3 Installing and Wiring the DSM314
3-9
3
Digital Servo Axis Terminal Board - IC693ACC335
Description
The IC693ACC335 Digital Servo Axis Terminal Board is used to connect the DSM314 to GE
Fanuc Digital Servo Amplifiers. The board contains two 36 pin connectors, labeled DSM and
SERVO. A cable IC693CBL324 (1 meter) or IC693CBL325 (3 meters) connects from DSM
connector (PL2) to the DSM314 faceplate connector A or B. A Servo Command Cable
IC800CBL001 (1 meter) or IC800CBL002 (3 meters) connects from the SERVO connector (PL3)
to the JS1B connector on a GE Fanuc α Series or β Series Digital Servo Amplifier.
3-10
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
3
Installation and Wiring
Eighteen screw terminals are provided on the Digital Servo Axis Terminal Board for connections
to user devices. These terminals have the following assignments:
Table 3-4. IC693ACC335 Digital Axis Terminal Board Pin Assignments
Axis
Terminal
DSM314
Board
Faceplate
I/O
Pin
Screw
Terminal
1
9
2
10
3
11
6
14
1
19
2
20
4
22
16
34
P5V
0V
IN9
IN10
7
17
IN11
IN1
IN2
Circuit Type
Single ended /
differential
5v inputs
5v Power
0v
24v optically
isolated inputs
INCOM
24v Input
Common
OUT1
24 v, 125 ma
DC SSR
output
Servo Axis 1, 2
Circuit Function
Signal
Maximum
Name (Axis
Voltage
*
1 listed)
Strobe Input 1 (+)
Strobe Input 1 (-)
Strobe Input 2 (+)
Strobe Input 2 (-)
5v Power
0v
Overtravel (+)
Overtravel (-)
IN1P_A
IN1M_A
IN2P_A
IN2M_A
P5V_A
0V_A
IN9_A
IN10_A
5 VDC
5 VDC
30 VDC
30 VDC
Home Switch
24v Input
Common
IN11_A
30 VDC
INCOM_A
30 VDC
5 VDC
5 VDC
15
35
8
18
16
36
5
13
14
32
OUT3
4
6
AOUT
12
24
ACOM
Analog Out
Com
Analog Out Com
ACOM_A
5 VDC
SHIELD
Cable Shield
Cable Shield
SHIELD_A
5 VDC
S (2 pins)
*
Circuit
Identifier
PLC 24v Output
(+)
PLC 24v Output
(-)
OUT1P_A
OUT1M_A
Differential
PLC 5v Output (+) OUT3P_A
5v output
PLC 5v Output (-) OUT3M_A
+/- 10v Analog
PLC Analog Out
AOUT_A
Out
30 VDC
5 VDC
5 VDC
For signal names pertaining to servo axis 2, change all “_A” to “_B”.
Six 130V MOVs are installed between selected I/O points and the shield (frame ground) for
noise suppression. The I/O terminal points so connected are 6, 7, 8, 14, 15, and 16.
The I/O terminals support a wire gauge of 14-28 AWG. Maximum screw torque which may
be applied is 5 inch-pounds.
Note
Two of the screw terminals are labeled S for Shield. A short earth ground wire
should be connected from one of the S terminals directly to a panel earth
ground. The cable shields for any shielded cables from user devices should
connect to either of the S terminals.
GFK-1742A
Chapter 3 Installing and Wiring the DSM314
3-11
3
Mounting Dimensions
3.03" (77mm)
8
16
7
15
6
14
5
2.68"
(68mm)
13
4
12
3
Height
Above Panel
2.05" (52mm)
11
2
10
1
9
S
S
DIN-Rail Mount
3.03" (77mm)
0.76"
(19.4mm)
8
16
7
15
6
14
5
2.68"
(68mm)
3.18"
(80.7mm)
13
4
12
3
Height
Above Panel
1.54" (39mm)
11
2
10
1
9
3.62"
(92mm)
S
S
0.368" (9.3mm) Counterbore Dia.
0.176" (4.5 mm) Thru. Dia.
Panel Mount
Figure 3-4. IC693ACC335 Digital Axis Terminal Board Mounting Dimensions
3-12
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
3
Installation and Wiring
Converting From DIN-Rail Mounting to Panel Mounting
The following parts are used in either the DIN-rail or Panel mount assembly options. The axis
terminal board is shipped configured for DIN-rail mounting. The instructions in this section
guide you in converting the board to its panel mounting optional configuration.
The following table and drawings describe the various plastic parts which make up the axis
terminal board assembly and shows a side view of the board configured for DIN-rail mounting
Table 3-5. Axis Terminal Board Assembly Components
Plastic Component
Mounting Styles
Part Number
Description
Quantity
Used With
UMK-BE 45
Base Element
1
DIN, Panel
UMK-SE 11.25-1
Side Element
2
DIN, Panel
UMK-FE
Foot Element
2
DIN
UMK-BF*
Mounting Ear
2
Panel
* Parts shipped with axis terminal board for optional panel mounting. .
Figure 3-5. Digital Servo Axis Terminal Board Assembly Drawings
GFK-1742A
Chapter 3 Installing and Wiring the DSM314
3-13
3
Figure 3-6. Digital Servo Axis Terminal Board Assembly Side View
The following procedure should be used to convert the Digital Servo axis terminal board to its
panel mounting form. Remember to save all removed parts for possible later conversion back to
DIN-rail mounting.
3-14
1.
Carefully remove one UMK-SE 11.25-1 side element from the UMK-BE 45 base element. If
a screwdriver or other device is used, exercise extreme caution to avoid damaging either the
plastic parts or the circuit board.
2.
Slide the UMK-FE foot element off the base element. Save this part for possible future use in
converting the terminal board back to its DIN-rail mounting configuration.
3.
Snap the side element, removed in step 1 above, back into the base element.
4.
Insert one UMK-BF mounting ear into the appropriate two holes in the side element. Note
that the mounting ear has a recessed hole for later inserting a (user supplied) mounting screw.
The recessed hole should face upwards to accommodate the mounting screw.
5.
Repeat steps 1-4 above for the other side of the terminal board.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
3
Installation and Wiring
Auxiliary Terminal Board - IC693ACC336
Description and Mounting Dimensions
The IC693ACC336 Auxiliary Terminal Board is used to connect the DSM314 to Analog Servo
Axes and auxiliary devices such as Incremental Quadrature Encoders, Strobe detectors and
external switches. The board contains one 36 pin connector, labeled DSM. A cable IC693CBL324
(1 meter) or IC693CBL325 (3 meters) connects from the DSM connector (PL2) to the DSM314
faceplate.
Thirty-eight screw terminals are provided on the Auxiliary Terminal Board for connections to
user devices. These screw terminals have the same pin labels as the 36 pin DSM314 faceplate
connector. Refer to Chapter 3 for detailed connection information.
The maximum voltage that should be applied to I/O terminals 16-18 and 34-36 is 30 VDC.
The maximum voltage for any other input terminal is 5 VDC.
Six 130V MOVs are installed between selected I/O points and the shield (frame ground) for
noise suppression. The I/O terminal points so connected are 16, 17, 18, 34, 35, and 36.
The I/O terminals support a wire gauge of 14-28 AWG. Maximum screw torque which may
be applied is 5 inch-pounds.
Note
Two of the screw terminals are labeled S for Shield. A short earth ground wire
should be connected from one of the S terminals directly to a panel earth
ground. The cable shields for any shielded cables from user devices should
connect to either of the S terminals.
0.9"
(22.5mm)
1.8" (45mm)
18
18
11
11
10
10
28
28
9
9
27
27
26
7
7
25
25
6
6
24
24
5
5
23
23
5.6"
(141mm)
4
4
3
3
21
21
Panel Mount
22
22
DIN-Rail Mount
5.42"
(125mm)
8
8
26
Height
Above Panel
1.65"
(42mm)
29
29
4.95"
(125mm)
30
30
12
12
31
31
13
13
32
32
14
14
33
33
15
15
34
34
16
16
35
35
17
17
36
36
Height
Above Panel
1.95"
(48mm)
2
2
20
20
1
1
19
19
S
S
S
S
0.368" (9.3mm)
Counterbore Dia.
0.176" (4.5 mm) Thru. Dia.
Figure 3-7. IC693ACC336 Terminal Board Mounting Dimensions
GFK-1742A
Chapter 3 Installing and Wiring the DSM314
3-15
3
Converting From DIN-Rail Mounting to Panel Mounting
The following parts are used in either the DIN-rail or Panel mount assembly options. The
auxiliary terminal board is shipped configured for DIN-rail mounting. The instructions in this
section guide you in converting the board to its panel mounting optional configuration.
The following table and drawings describe the various plastic parts which make up the auxiliary
terminal board assembly and shows a side view of the board configured for DIN-rail mounting.
Table 3-6. Auxiliary Terminal Board Components
Phoenix Contact Part Number
Description
Quantity
UM45 Profil 105.25
PCB Carrier
1
UM 45-SEFE with 2 screws
Side element with Foot
2
UMK 45-SES with 2 screws*
Side Element
2
UMK-BF*
Mounting Ear
2
* Parts shipped with auxiliary terminal board for optional panel mounting.
105.25 +0.25
UM 45-SEFE
10
UM 45-SES
11
45
6
45
21
21
Figure 3-8. Auxiliary Terminal Board Assembly Drawings
3-16
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Installation and Wiring
3
Figure 3-9. Auxiliary Terminal Board Assembly Side View
The following procedure should be used if you wish to mount the auxiliary terminal board directly
to a panel instead of on a DIN-rail. Remember to save all removed parts for possible later
conversion back to DIN-rail mounting.
GFK-1742A
1.
Using a small bladed Phillips screwdriver, carefully remove the two screws holding one UM45 SEFE side element with foot to the UM 45 Profil PCB carrier. Save this part for possible
future use in converting the terminal board back to its DIN-rail mounting configuration.
2.
Attach one UMK 45-SES side element to the PCB carrier in place of the side removed in step
1 above, again using the two screws. Be careful to not over tighten the screws.
3.
Insert one UMK-BF mounting ear into the appropriate two holes in the side element. Note
that the mounting ear has a recessed hole for later inserting a (user supplied) mounting screw.
The recessed hole should face upwards to accommodate the mounting screw.
4.
Repeat steps 1-3 above for the other side of the terminal board.
Chapter 3 Installing and Wiring the DSM314
3-17
3
Cables
Five cables are available for the DSM314:
Table 3-7. Cables for the DSM314
Cable
IC693CBL316
Description
Station Manager Cable
Length
1 meter
Application
DSM314 Comm for firmware upgrade
IC693CBL324
Terminal Board Connection Cable
1 meter
IC693CBL325
Terminal Board Connection Cable
3 meters
DSM314 to Servo Axis Terminal Board or
Aux Terminal Board
DSM314 to Servo Axis Terminal Board or
Aux Terminal Board
IC800CBL001
Digital Servo Command Cable
1 meter
IC800CBL002
Digital Servo Command Cable
3 meters
Digital Servo Axis Terminal Board or DSM
to Digital Servo Amp
Digital Servo Axis Terminal Board or DSM
to Digital Servo Amp
Custom Terminal Board and Servo cables are available in longer lengths by
contacting your GE Fanuc distributor. The maximum recommended cable length for
the DSM connector to the α and β Series servo amplifier is 50 meters.
The cables use special shielding and construction to ensure reliable servo
operation. GE Fanuc recommends that users do not attempt any field
modifications of the cables or connectors.
Note
If a Digital Servo Axis does not use any of the devices which normally
connect to the IC693ACC335 Digital Servo Terminal Board screw
terminals, the Terminal Board and Terminal Board Cable
IC693CBL324/325 are not needed. Instead, the Digital Servo Command
Cable IC800CBL001/002 can be connected directly from the Digital Servo
Amplifier to the DSM314 faceplate A or B connector. When this is done,
the OT Limit Sw configuration parameter must be set to Disabled in the
configuration software or the DSM will not operate.
3-18
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Installation and Wiring
3
The figure below illustrates the Digital Servo Axis terminal board and cables associated with the
DSM314.
IC 69 3A C C 33 6
A ux ilia ry T e rm in al B oa rd *
IC 69 3A C C 33 5
S erv o A xisT erm ina l B o ard
18
36
17
16
16
T O FANU C
S E RVO
15
6
14
13
12
12
11
10
1
28
10
2
29
11
3
30
C o m m C able
IC 69 3C B L3 16
4
31
13
5
32
14
33
15
7
34
9
9
STAT
7
S
8
26
OK
CFG
S
27
A na lo g S ervo ,
E nc o der a nd
U s e r I/O
8
35
U s e r I/O
T o P C -ba se d
F irw a re U p da te
U tility
25
6
EN 1
EN 4
EN 2
D igital
S erv o
A xis 1
5
24 23
EN 3
4
22
3
21
2
20
1
19
A na lo g
S erv o
A xis 3
C
A
S
S
IC 69 3A C C 33 6
A ux ilia ry T e rm in al B oa rd *
or Aux
A xis 3
18
D
36
17
35
16
34
User
I/O
D igital
S erv o
A xis 2
15
32
14
33
13
31
12
30
8
11
7
15
28
10
16
29
6
9
14
27
U s e r I/O
B
T erm ina l B oa rd to
S erv o C a bles :
IC 80 0C B L0 01 (1 M )
IC 80 0C B L0 02 (3 M )
D S M to T erm in al
B oa rd C a bles :
IC 69 3C B L3 24 (1M )
IC 69 3C B L3 25 (3M )
5
8
13
26
4
7
12
25
3
6
11
24
2
5
10
23
U s e r I/O
1
4
T O FANU C
S E RVO
9
22
S
3
S
21
2
20
1
19
S
S
IC 69 3A C C 33 5
S erv o A xis T erm in al B o ard
*In this co nfigu ration , on e o f the tw o A u xiliary T erm ina l B oa rds c an be us ed to c onn ec t a n ana lo g a xis a nd
the oth er u se d for a dd ition al I/O , o r bo th ca n b e u s ed fo r I/O if req uire d.
Figure 3-10. DSM314 Digital Servo Terminal Boards and Connectors
GFK-1742A
Chapter 3 Installing and Wiring the DSM314
3-19
3
The figure below illustrates the Analog Servo terminal boards and cables associated with the
DSM314.
IC 693A C C 336
A uxilia ry T erm inal B oard
14
22
33
3
15
21
34
2
16
20
35
1
17
19
36
S
18
S
IC 693A C C 336
A uxilia ry T erm inal B oard
11
24
25
6
12
30
27
28
8
10
26
29
7
31
5
13
23
4
32
7
9
28
8
EN 2
32
33
14
34
15
35
36
18
S
S
32
13
31
12
30
S
19
21
A nalog S ervo,
E nc oder and
U ser I/O
29
10
30
11
31
12
32
13
33
34
2
20
1
35
3
21
19
S
36
4
22
14
5
23
15
6
24
16
7
25
17
26
D S M to T erm in al
B oard C ables:
IC 693C B L3 24 (1 M )
IC 693C B L3 25 (3 M )
S
18
8
28
27
9
9
27
28
8
10
26
29
7
11
25
14
22
3
15
33
or
A ux
A xis 2
23
16
34
A nalog S ervo,
E nc oder and
U ser I/O
or
A ux
A xis 4
24
17
35
A nalog
S ervo
A xis 2
20
B
S
D
2
18
36
A nalog
S ervo
A xis 4
IC 693A C C 336
A uxilia ry T erm inal B oard
C ables
supp lie d by
U ser
1
1
19
or
A ux
A xis 3
4
2
20
C ables
supp lie d by
IC 693A C C 336
U ser
A uxilia ry T erm inal B oard
5
21
A nalog
S ervo
A xis 1
6
3
A
16
4
22
C
17
23
A nalog
S ervo
A xis 3
13
5
EN 1
EN 4
31
24
EN 3
12
6
30
25
11
29
26
OK
CF G
A nalog S ervo,
E nc oder and
U ser I/O
10
9
ST A T
27
A nalog S ervo,
E nc oder and
U ser I/O
C om m C able
IC 693C B L3 16
Figure 3-11. DSM314 Terminal Boards and Connectors for Third Party Analog Servos (see GFK-1581
for SL Servos)
3-20
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
3
Installation and Wiring
I/O Cable Grounding
Properly routing signal cables, amplifier power cables and motor power cables along with
installation of proper Class 3 grounding will insure reliable operation. Typically Class 3
grounding specifies a ground conductor of a minimum wire diameter larger than the power input
wire diameter, connected via a maximum 100 ohm resistance to an earth ground. Consult local
electrical codes and install in conformance to local regulations.
The specifications for completing the α and β Series Digital Servo amplifier installation and
wiring, including amplifier grounding are completely described in the manual GFH-001 Servo
Product Specification Guide.
When routing signal lines, amplifier input power line and motor power line, the signal lines must
be separated from the power lines. The following table indicates how to separate the cables.
Table 3-8. Separation of signal lines
Group
Signal
Amplifier input power
Motor Power
A
Master Control Contactor
(MCC) drive coil. The MCC
switches amplifier input
power.
DSM to Axis Terminal cable
Axis terminal cable to
amplifier
B
DSM to Aux Terminal cable
Encoder feedback cable
Action
Separate a minimum 10cm
from group “B” signals by
bundling separately or use
electromagnetic shielding
(grounded steel plate). Use
noise protector for MCC.
Separate a minimum 10cm
from group “A” signals by
bundling separately or use
electromagnetic shielding
(grounded steel plate). Use all
required individual cable
shield grounds and grounding
bar connections.
DSM to α or β Series Digital Servo Amplifier – Signal Cable Grounding
The signal cables used with the DSM314 contain shields that must be properly grounded to ensure
reliable operation. The illustration below shows cable grounding recommendations for typical
installations. The following points should be considered:
1.
The DSM314 faceplate ground wire must be connected to a reliable panel ground.
2.
The Digital Servo Axis Terminal Block and Auxiliary Terminal Block each provide two
screw terminals labeled S. A short ground wire must be connected from one of the S
terminals to a reliable panel ground.
The α and β Series Digital Servo amplifier encoder feedback cable always requires an A99L0035-0001 Cable Shield Grounding Clamp and one of the 11 available slots on a 44B295864-001
Grounding Bar at the amplifier end of the cable. This clamp arrangement serves as a mechanical
GFK-1742A
Chapter 3 Installing and Wiring the DSM314
3-21
3
strain relief and as cable shield ground. The outer insulation of the Digital servo amplifier cable
must be removed to expose the cable shield in the contact area of the clamp.
able
Grounding
Bar
40 (1.57)
to
80 (3.15)
Cable
Grounding
Clamp
Figure 3-12. Detail of Cable Grounding Clamp A99L-0035-0001
Figure 3-13. . 44B295864-001 Grounding Bar, Side View Dimensions
3-22
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
3
Installation and Wiring
9.84
8.51
1.38
1.11
0.58
Figure 3-14. 44B295864-001 Grounding Bar Dimensions, Rear View Showing Mounting Holes
3.
For installations which must meet IEC electrical noise immunity standards, a Cable Shield
Grounding Clamp A99L-0035-0001 and one of the 11 available slots on the Grounding Bar
44B295864-001 must also be used at the Digital Servo Axis Terminal Block end of the servo
amplifier cable IC800CBL001/002. If the Digital servo amplifier cable is connected directly
to the DSM314 faceplate (no Digital Servo Axis Terminal Block used) the Grounding Clamp
and Bar are not required at the faceplate end of the cable.
For additional information, refer to Installation Requirements for Conformance to Standards,
GFK-1179.
D S M 314
9 0-3 0
C PU 3 60 M D L A I
M DL AO
H IG H
C AP ACITY
POWER
S UP P LY
A
M
P
Grounding Bar 44B295864-001 and
Grounding Clam p A99L-0035-0001
(Required for CE M ark Installation)
Faceplate Shield Ground W ire
(Always Required)
M
DSM 314 to Axis Terminal
Block Shielded Cable
Strobe and Limit
Switch Signals
Axis
Term inal
Block
Ground W ire to "S" Terminal
(Alw ays Required)
Term inal Block to Servo Amp
Shielded Cable
Grounding Bar
44B295864-001
Grounding Clam p
A99L-0035-0001
(Alw ays Required)
Figure 3-15. DSM314 I/O Cable Grounding
GFK-1742A
Chapter 3 Installing and Wiring the DSM314
3-23
3
I/O Circuit Identifiers and Signal Names
I/O circuit identifiers provide a consistent method of naming the I/O circuits. For example, IN1
refers to the first of three differential / single ended 5v inputs for each axis.
Signal names are assigned to the circuit identifiers for each axis. The signal name consists of the
circuit identifier followed by a suffix A-D to identify the axis connector. Differential circuits also
have suffixes P (positive) and M (minus) to identify the (+) and (-) signal for each differential
pair.
Example: OUT2 is the circuit identifier for the first differential 5v output on each connector. The
signal names associated with circuit OUT2 are:
Table 3-9. Signal Names Associated with OUT2
Axis:
Connector:
(+) Output Signal:
(-) Output Signal:
Axis 1
A
OUT2P_A
OUT2M_A
Axis 2
B
OUT2P_B
OUT2M_B
Axis 3
C
OUT2P_C
OUT2M_C
Axis 4
D
OUT2P_D
OUT2M_D
I/O Circuit Function and Pin Assignments
The next three tables list the I/O circuit functional assignments as well as the connector and terminal board
pin assignments for each axis connector. Although each connector has the same I/O circuits, the functional
assignment of the I/O circuits is axis dependent:
Table 3-10. Connector Axis Assignment and Function
3-24
Connector
Axis
Number
Axis Type
A
1
Servo Axis
B
2
Servo Axis
C
3
Servo Axis
D
4
Servo Axis
I/O Usage
Closed Loop Digital / Analog Servo Control and
user I/O
Closed Loop Digital / Analog Servo Control or
Auxiliary analog and digital I/O
Closed Loop Analog Servo Control or Auxiliary
analog and digital I/O
Closed Loop Analog Servo Control or Auxiliary
analog and digital I/O
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Installation and Wiring
3
Digital Servo Axis 1, 2 Circuit and Pin Assignments
This table identifies all circuits and pin assignments for Digital Servo Axis 1 and Digital Servo Axis 2. The
shaded areas indicate signals which are cabled to the servo amplifier and are not available for user connections.
Table 3-11. Circuit and Pin Assignments for Digital Servo Axis 1 and Digital Servo Axis 2
Circuit
Identifier
Circuit Type
IN1
IN2
Single ended /
differential
5v inputs
IN3
Digital Servo Axis
1, 2 Circuit
Function
Axis 1
Signal
Name
Axis 2
Signal
Name
Faceplate Axis Term
Pin
Board
Terminal
Strobe Input 1 (+)
Strobe Input 1 (-)
IN1P_A
IN1M_A
IN1P_B
IN1M_B
1
19
1
9
Strobe Input 2 (+)
Strobe Input 2 (-)
IN2P_A
IN2M_A
IN2P_B
IN2M_B
2
20
2
10
Ser Encoder Data (+) IN3P_A
Ser Encoder Data (-) IN3M_A
5v Power
P5V_A
IN3P_B
IN3M_B
P5V_B
3
21
4
3
P5V
5v Power
0V
IN4
IO5
0v
Single ended 5v in
0v
Servo Ready Input
Servo PWM / Alarm
0V_A
IN4_A
IO5_A
0V_B
IN4_B
IO5_B
22,23
5
9
IO6
IO7
IO8
0V
IN9
IN10
IN11
INCOM
Single ended
5v inputs / outputs
Servo PWM / Alarm
Servo PWM / Alarm
Servo ENBL / Alarm
0v
Overtravel (+)
Overtravel (-)
IO6_A
IO7_A
IO8_A
0V_A
IN9_A
IN10_A
IO6_B
IO7_B
IO8_B
0V_B
IN9_B
IN10_B
10
11
12
27-30
16
34
6
14
Home Switch
24v Input Common 24v Input Common
IN11_A
INCOM_A
IN11_B
INCOM_B
17
35
7
15
24 v, 125 ma
DC SSR output
PLC 24v Output (+)
PLC 24v Output (-)
OUT1P_A
OUT1M_A
OUT1P_B
OUT1M_B
18
36
8
16
Ser Encoder Req (+)
Ser Encoder Req (-)
OUT2P_A
OUT2M_A
OUT2P_B
OUT2M_B
13
31
PLC 5v Output (+)
OUT3P_A
OUT3P_B
14
5
PLC 5v Output (-)
Servo MCON (+)
Servo MCON 0v
OUT3M_A
ENBL1_A
ENBL2_A
OUT3M_B
ENBL1_B
ENBL2_B
32
15
33
13
IR Phase Current (+)
IR Phase Current (-)
IS Phase Current (+)
IS Phase Current (-)
AIN1P_A
AIN1M_A
AIN2P_A
AIN2M_A
AIN1P_B
AIN1M_B
AIN2P_B
AIN2M_B
7
25
8
26
AOUT_A
ACOM_A
SHIELD_A
AOUT_B
ACOM_B
SHIELD_B
6
24
OUT1
OUT2
0v
24v optically
isolated inputs
Differential
5v outputs
11
OUT3
ENBL
AIN1
GFK-1742A
24v, 30 ma
SSR output
AIN2
Differential
+/- 10v
Analog Inputs
AOUT1
ACOM
SHIELD
+/- 10v Analog Out PLC Analog Out
Analog Out com
Analog Out Com
Cable Shield
Cable Shield
Chapter 3 Installing and Wiring the DSM314
4
12
S
3-25
3
Analog Servo Axis 1-4 Circuit and Pin Assignments
This table identifies all circuits and pin assignments for Analog Servo Axis 1 - Analog Servo Axis 4. The shaded
areas indicate signals which are unused and not available for user connections.
Table 3-12. Circuit and Pin Assignments for Analog Servo Axis 1 - Analog Servo Axis 4
Circuit Circuit Type
Identifier
Analog Servo Axis 1- Axis 1
Axis 2
Axis 3
Axis 4
Faceplate Aux Term
4 Circuit Function
Signal Name Signal Name Signal Name Signal Name Pin
Board
Terminal
Encoder Chan A (+)
Encoder Chan A (-)
IN1P_A
IN1M_A
IN1P_B
IN1M_B
IN1P_C
IN1M_C
IN1P_D
IN1M_D
1
19
1
19
Encoder Chan B (+)
Encoder Chan B (-)
IN2P_A
IN2M_A
IN2P_B
IN2M_B
IN2P_C
IN2M_C
IN2P_D
IN2M_D
2
20
2
20
Encoder Marker (+)
Encoder Marker (-)
5v Encoder Power
0v
Servo Ready Input
Strobe 1 Input
Strobe 2 Input
Not Used
Not Used
IN3P_A
IN3M_A
P5V_A
0V_A
IN4_A
IO5_A
IO6_A
IO7_A
IO8_A
IN3P_B
IN3M_B
P5V_B
0V_B
IN4_B
IO5_B
IO6_B
IO7_B
IO8_B
IN3P_C
IN3M_C
P5V_C
0V_C
IN4_C
IO5_C
IO6_C
IO7_C
IO8_C
IN3P_D
IN3M_D
P5V_D
0V_D
IN4_D
IO5_D
IO6_D
IO7_D
IO8_D
3
21
4
22,23
5
9
10
11
12
3
21
4
22,23
5
9
10
11
12
0v
Overtravel (+)
Overtravel (-)
0V_A
IN9_A
IN10_A
0V_B
IN9_B
IN10_B
0V_C
IN9_C
IN10_C
0V_D
IN9_D
IN10_D
27-30
16
34
27-30
16
34
IN11_A
INCOM_A
OUT1P_A
OUT1M_A
OUT2P_A
OUT2M_A
OUT3P_A
IN11_B
INCOM_B
OUT1P_B
OUT1M_B
OUT2P_B
OUT2M_B
OUT3P_B
IN11_C
INCOM_C
OUT1P_C
OUT1M_C
OUT2P_C
OUT2M_C
OUT3P_C
IN11_D
INCOM_D
OUT1P_D
OUT1M_D
OUT2P_D
OUT2M_D
OUT3P_D
17
35
18
36
13
31
14
17
35
18
36
13
31
14
OUT3M_A
ENBL1_A
ENBL2_A
AIN1P_A
AIN1M_A
OUT3M_B
ENBL1_B
ENBL2_B
AIN1P_B
AIN1M_B
OUT3M_C
ENBL1_C
ENBL2_C
AIN1P_C
AIN1M_C
OUT3M_D
ENBL1_D
ENBL2_D
AIN1P_D
AIN1M_D
32
15
33
7
25
32
15
33
7
25
AOUT1
PLC Analog In (+)
PLC Analog In (-)
+/- 10v Analog Out Servo Vel Cmd (+)
AIN2P_A
AIN2M_A
AOUT_A
AIN2P_B
AIN2M_B
AOUT_B
AIN2P_C
AIN2M_C
AOUT_C
AIN2P_D
AIN2M_D
AOUT_D
8
26
6
8
26
6
ACOM
SHIELD
Analog Out com
Cable Shield
ACOM_A
SHIELD_A
ACOM_B
SHIELD_B
ACOM_C
SHIELD_C
ACOM_D
SHIELD_D
24
24
S
IN1
IN2
Single ended
/ differential
5v inputs
IN3
P5V
0V
IN4
IO5
IO6
IO7
IO8
5v Power
0v
Single ended 5v in
0V
IN9
IN10
IN11
INCOM
0v
OUT1
OUT2
OUT3
ENBL
AIN1
AIN2
3-26
Single ended
5v inputs / outputs
24v optically
isolated inputs
Home Switch
24v Input Common 24v Input Common
PLC 24v Output (+)
24 v, 125 ma
DC SSR output
PLC 24v Output (-)
Not Used
Not Used
Differential
5v outputs
PLC 5v Output (+)
PLC 5v Output (-)
Servo Enable (+)
Servo Enable (-)
PLC Analog In (+)
PLC Analog In (-)
24v, 30 ma
SSR output
Differential
+/- 10v
Analog Inputs
Servo Vel Cmd Com
Cable Shield
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Installation and Wiring
3
Aux Axis 2-4 Circuit and Pin Assignments
This table identifies all circuits and pin assignments for Aux Axis 2 - Aux Axis 4. The shaded areas indicate
signals, that are unused and not available for user connections.
Table 3-13. Circuit and Pin Assignments for Aux Axis 3 (Connector C)
Aux Axis 2-4
Circuit Function
Axis 2
Signal
Name
Axis 3
Signal
Name
Axis 4
Signal
Name
Faceplate Aux Term
Pin
Board
Terminal
Encoder Chan A (+)
Encoder Chan A (-)
IN1P_B
IN1M_B
IN1P_C
IN1M_C
IN1P_D
IN1M_D
1
19
1
19
Encoder Chan B (+)
Encoder Chan B (-)
IN2P_B
IN2M_B
IN2P_C
IN2M_C
IN2P_D
IN2M_D
2
20
2
20
Encoder Marker (+)
Encoder Marker (-)
IN3P_B
IN3M_B
IN3P_C
IN3M_C
IN3P_D
IN3M_D
3
21
3
21
5v Encoder Power
0v
PLC 5v Input
Strobe 1 Input
Strobe 2 Input
Not Used
Not Used
0v
PLC 24v Input
PLC 24v Input
P5V_B
0V_B
IN4_B
IO5_B
IO6_B
IO7_B
IO8_B
0V_B
IN9_B
IN10_B
P5V_C
0V_C
IN4_C
IO5_C
IO6_C
IO7_C
IO8_C
0V_C
IN9_C
IN10_C
P5V_D
0V_D
IN4_D
IO5_D
IO6_D
IO7_D
IO8_D
0V_D
IN9_D
IN10_D
4
22,23
5
9
10
11
12
27-30
16
34
4
22,23
5
9
10
11
12
27-30
16
34
IN11_B
INCOM_B
OUT1P_B
OUT1M_B
OUT2P_B
OUT2M_B
IN11_C
INCOM_C
OUT1P_C
OUT1M_C
OUT2P_C
OUT2M_C
IN11_D
INCOM_D
OUT1P_D
OUT1M_D
OUT2P_D
OUT2M_D
17
35
18
36
13
31
17
35
18
36
13
31
OUT3P_B
OUT3M_B
ENBL1_B
ENBL2_B
OUT3P_C
OUT3M_C
ENBL1_C
ENBL2_C
OUT3P_D
OUT3M_D
ENBL1_D
ENBL2_D
14
32
15
33
14
32
15
33
PLC Analog In (+)
PLC Analog In (-)
AIN1P_B
AIN1M_B
AIN1P_C
AIN1M_C
AIN1P_D
AIN1M_D
7
25
7
25
AOUT1
PLC Analog In (+)
PLC Analog In (-)
+/- 10v Analog Out PLC Analog Out
AIN2P_B
AIN2M_B
AOUT_B
AIN2P_C
AIN2M_C
AOUT_C
AIN2P_D
AIN2M_D
AOUT_D
8
26
6
8
26
6
ACOM
SHIELD
Analog Out com
Cable Shield
ACOM_B
SHIELD_B
ACOM_C
SHIELD_C
ACOM_D
SHIELD_D
24
24
S
Circuit
Identifier
Circuit Type
IN1
IN2
Single ended /
differential 5v
inputs
IN3
P5V
0V
IN4
IO5
IO6
IO7
IO8
0V
IN9
IN10
IN11
INCOM
OUT1
OUT2
OUT3
ENBL
AIN1
AIN2
GFK-1742A
5v from PLC
0v
Single ended 5v in
Single ended
5v inputs / outputs
0v
24v optically
isolated inputs
Home Switch
24v Input Common 24v Input Common
PLC 24v Output (+)
24 v, 125 ma
DC SSR output
PLC 24v Output (-)
Not Used
Not Used
Differential
PLC 5v Output (+)
5v outputs
24v, 30 ma
SSR output
Differential
+/- 10v
Analog Inputs
PLC 5v Output (-)
ON when Force
Analog Output %AQ
Cmd is active
Analog Out Com
Cable Shield
Chapter 3 Installing and Wiring the DSM314
3-27
3
I/O Connection Diagrams
The following diagrams illustrate typical user connections to the DSM314.
DS M
P in #
Ax is TB
Term in al
1
1
19
9
2
2
20
10
4
3
22
11
S
T e rm in als on IC 6 93 A C C 33 5 A x is T e rm ina l B o ard
IN 1 P _A (S T R O B E 1+ )
5V
D IF F E R E N T IA L
D R IV E R
IN 1 M _ A (S T R O B E 1 -)
IN 2 P _A (S T R O B E 2+ )
5V
S IN G LE E N D E D
D R IV E R
IN 2 M _ A (S T R O B E 2 -)
0V
P 5 V _A (5 V )
0 V _A (0 V )
% I B IT
(DE F AUL T C FG )
C T L0 1
C T L0 2
C T L0 3
C T L0 4
INP U T
+O T :
-O T :
HO ME:
S T R O B E 1:
S H IE L D _ A
N E G A T IV E
OVER TRAV EL
LIM IT
S W IT C H
HO ME
S W IT C H *
P O S IT IV E
OVER TRAV EL
LIM IT S W IT C H
IN 1 0_ A (-O T )
34
14
17
7
16
6
35
15
IN 1 1_ A (H O M E )
IN 9 _A (+ O T )
IN C O M _ A
24 VDC
O U T 1 P _A ( S S R O U T + )
18
+
8
1 25 M A
LOAD
OU T1M_A ( SS R OUT - )
36
16
14
5
O U T 3 P _A
+
OU T3M_A
32
-
13
-
5 -2 4
VDC
5V
D IF F E R E N T IA L
OU TPU T
S H IE L D _ A
S
AOU T_A
6
OUT
4
ACOM_A
24
12
A N A LO G
OU TPU T
CO M
(R E F E R E N C E D T O 0 V )
* N ote: S ee C h ap te r 6 for ho m e sw itch inform atio n
Figure 3-16. Digital Servo Axis-1 Connections
3-28
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Installation and Wiring
DS M
P in #
Ax is TB
Term in al
1
1
T e rm in als on IC 6 93 A C C 33 5 A x is T e rm ina l B o ard
IN 1 P _B (S T R O B E 1+ )
5V
D IF F E R E N T IA L
D R IV E R
IN 1 M _ B (S T R O B E 1 -)
19
9
2
2
IN 2 P _B (S T R O B E 2+ )
5V
S IN G LE E N D E D
D R IV E R
IN 2 M _ B (S T R O B E 2 -)
20
10
4
3
22
11
S
3
0V
P 5 V _B (5 V )
0 V _B (0 V )
% I B IT
(DE F AUL T C FG )
C T L0 5
C T L0 6
C T L0 7
C T L0 8
INP U T
+O T :
-O T :
HO ME:
S T R O B E 1:
S H IE L D _ B
N E G A T IV E
OVER TRAV EL
LIM IT
S W IT C H
HO ME
S W IT C H *
P O S IT IV E
OVER TRAV EL
LIM IT S W IT C H
IN 1 0_ B (-O T )
34
14
17
7
16
6
35
15
IN 1 1_ B (H O M E )
IN 9 _B (+ O T )
IN C O M _ B
24 VDC
O U T 1 P _B ( S S R O U T + )
18
+
8
1 25 M A
LOAD
OU T1M_B ( SS R OUT - )
36
16
14
5
O U T 3 P _B
+
OU T3M_B
32
-
13
-
5 -2 4
VDC
5V
D IF F E R E N T IA L
OU TPU T
S H IE L D _ B
S
AOU T_B
6
OUT
4
ACOM_B
24
12
A N A LO G
OU TPU T
CO M
(R E F E R E N C E D T O 0 V )
*N o te : S e e C h a pter 6 fo r h om e s w itc h in fo rm a tion
Figure 3-17. Digital Servo Axis-2 Connections
GFK-1742A
Chapter 3 Installing and Wiring the DSM314
3-29
3
DSM
Pin #
Axis TB
Conn PL3
3
3
21
21
5
5
23
23
9
9
27
27
10
10
28
28
11
11
29
29
12
12
30
30
13
13
31
31
15
15
33
33
7
7
25
25
8
8
26
26
Shield
Shield
Servo
Amp Conn
Pins on IC693ACC335 Axis
Terminal Board PL3 Connector
IN3P_A
ENCD+
IN3M_A
ENCD-
IN4_A
*SRDY
0V_A
0V
IO5_A
0V_A
IO6_A
0V_A
IO7_A
0V_A
IO8_A
0V_A
*PWMA
0V
*PWMC
0V
*PWME
0V
*ENBL
0V
OUT2P_A
ENCR+
OUT2M_A
ENCR-
ENBL1_A
*MCON
ENBL2_A
0V
AIN1P_A
IR+
AIN1M_A
IR-
AIN2P_A
IS+
AIN2M_A
IS-
15
16
9
19
3
4
5
6
7
8
13
14
17
18
10
20
1
2
11
12
SHIELD_A
* Denotes a negated signal
Figure 3-18. α and βSeries Digital Servo Command Cable (IC800CBL001/002) Connections
3-30
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Installation and Wiring
DSM
Pin #
Aux TB
Termin al
IC 6 9 3A C C 33 6 A u x . T e rm . B oa rd
DRIVE
AOUT _A
6
6
24
24
C M D (+ )
ACOM _A
E N A B LE
15
E N B L 2_ A
33
33
5
5
23
23
0V
IN 4 _ A
RDY*
0 V _ A (0 V )
S
1
19
1
19
2
2
20
20
3
3
21
21
4
4
22
22
A X IS 1 M O T O R
C M D (-)
E N B L 1_ A
15
3
E NC O D ER FR E QU E N CY :
250 K HZ / C H A NN E L (1 MH Z C O U NT R AT E)
W IT H DIFFE R EN TIA L IN P UT
150 K HZ / C H A NN E L (600 KH Z C O U NT R AT E)
W IT H SIN GLE E ND E D IN P UT
0V
S H IE L D _ A
IN 1 P _ A (Q U A D A + )
A+
IN 1 M _A (Q U A D A -)
A-
IN 2 P _ A (Q U A D B + )
B+
IN 2 M _A (Q U A D B -)
B-
IN 3 P _ A (M A R K E R + )
M KR +
IN 3 M _A (M A R K E R -)
M KR -
Q U AD R AT U RE TO LE R AN C E:
90 D EG R E ES +/- 45 DE G R EE S
P 5 V _A (+5 V )
IN C R E M E N T A L
QUADRATURE
ENCODER
NOTE
F O R S IN G L E E N D E D
ENCODER, DO NOT
C O N N E C T A -, B -, M K R -
+ 5V
0 V _ A (0 V )
0V
N E G A T IV E O V E R T R A V E L
L IM IT S W IT C H
HOME
S W IT C H **
P O S IT IV E O V E R T R A V E L
L IM IT S W IT C H
IN 1 0 _ A (-O T )
34
34
IN 1 1 _ A (H O M E )
17
17
16
16
35
35
IN 9 _ A (+ O T )
IN C O M _ A
24 VDC
INPUT
O U T 1 P _A ( S S R O U T + )
18
+
18
125 MA
LOAD
OU T 1M_A ( S SR OU T - )
36
36
14
14
O U T 3 P _A
32
9
9
27
27
10
10
28
-
32
28
S
7
7
25
25
8
8
26
26
+OT:
-O T :
HOME:
S TR O B E1:
5V
D IF F E R E N T IA L
OUTPUT
+
OUT 3M_A
-
5 -2 4
VDC
%I BIT
(DEFAUL T CFG )
CTL01
CTL02
CTL03
CTL04
IO 5_ A (S T R O B E 1 + )
5V
S IN G LE E N D E D
D R IV E R
0 V _ A (0 V )
IO 6_ A (S T R O B E 2 + )
5V
S IN G LE E N D E D
D R IV E R
0 V _ A (0 V )
S H IE L D _ A
A IN 1 P _ A (A IN 1 +)
A IN 1 M _ A (A IN 1 -)
A IN 2 P _ A (A IN 2 +)
A IN 2 M _ A (A IN 2 -)
+
ANALOG
- IN P U T
+
ANALOG
- IN P U T
N O T E S : * D e n o te s a n e g a te d s ig n a l
** S e e C h a p te r 6 fo r h om e s w itc h in fo rm a tio n
Figure 3-19. Analog Servo Axis-1 Connections
GFK-1742A
Chapter 3 Installing and Wiring the DSM314
3-31
3
Faceplate
Pin #
Aux TB
Termin al
IC 6 9 3 A C C 33 6 A u x. T e rm . B o a rd
DRIVE
AOUT _B
6
6
24
24
C M D (+ )
ACOM _B
15
E N A B LE
15
E N B L 2_ B
33
0V
33
IN 4 _ B
5
5
23
23
RDY*
0 V _ B (0 V )
S
1
1
19
19
2
2
20
20
3
3
21
21
4
4
22
22
A X IS 2 M O T O R
C M D (-)
E N B L 1_ B
E NC O D ER FR E QU E N CY :
250 K HZ / C H A NN E L (1 MH Z C O U NT R AT E)
W IT H DIFFE R EN TIA L IN P UT
0V
S H IE L D _ B
150 K HZ / C H A NN E L (600 KH Z C O U NT R AT E)
W IT H SIN GLE E ND E D IN P UT
IN 1 P _ B (Q U A D A + )
A+
IN 1 M _B (Q U A D A -)
A-
IN 2 P _ B (Q U A D B + )
B+
IN 2 M _B (Q U A D B -)
B-
IN 3 P _ B (M A R K E R + )
M KR +
IN 3 M _B (M A R K E R -)
M KR -
P 5 V _B (+5 V )
Q U AD R AT U RE TO LE R AN C E:
90 D EG R E ES +/- 45 DE G R EE S
IN C R E M E N T A L
QUADRATURE
ENCODER
NOTE
F O R S IN G L E E N D E D
ENCODER, DO NOT
C O N N E C T A -, B -, M K R -
+ 5V
0 V _ B (0 V )
0V
N E G A T IV E O V E R T R A V E L
L IM IT S W IT C H
HOME
S W IT C H **
P O S IT IV E O V E R T R A V E L
L IM IT S W IT C H
IN 1 0 _ B (-O T )
34
34
IN 1 1 _ B (H O M E )
17
17
16
16
35
35
IN 9 _ B (+ O T )
IN C O M _ B
24 VDC
INPUT
O U T 1 P _B ( S S R O U T + )
18
+
18
125 MA
LOAD
OU T 1M_B ( S SR OU T - )
36
36
14
14
O U T 3 P _B
OUT 3M_B
32
32
9
9
27
27
10
10
-
IO 5_ B (S T R O B E 1 + )
5V
S IN G LE E N D E D
D R IV E R
0 V _ B (0 V )
IO 6_ B (S T R O B E 2 + )
5V
S IN G LE E N D E D
D R IV E R
28
S
7
7
25
25
8
8
26
26
+OT:
-O T :
HOME:
S TR O B E1:
5V
D IF F E R E N T IA L
OUTPUT
+
0 V _ B (0 V )
28
-
5 -2 4
VDC
%I BIT
(DEFAUL T CFG )
CTL05
CTL06
CTL07
CTL08
S H IE L D _ B
A IN 1 P _ B (A IN 1 +)
+
A IN 1 M _ B (A IN 1 -)
A IN 2 P _ B (A IN 2 +)
+
A IN 2 M _ B (A IN 2 -)
ANALOG
IN P U T
ANALOG
- IN P U T
N O T E S : * D e n otes a n e g a te d s ig n a l.
** S e e C h a p te r 6 fo r h om e s w itc h in fo rm a tio n
Figure 3-20. Analog Servo Axis-2 Connections
3-32
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
3
Installation and Wiring
Faceplate
Pin #
Aux TB
Termin al
IC 6 9 3 A C C 33 6 A u x. T e rm . B o a rd
DRIVE
AOUT _C
6
6
24
24
C M D (+ )
ACOM _C
15
E N A B LE
15
E N B L 2_ C
33
0V
33
IN 4 _ C
5
5
23
23
RDY*
0 V _ C (0 V )
S
1
1
19
19
2
2
20
20
3
3
21
21
4
4
22
22
A X IS 3 M O T O R
C M D (-)
E N B L 1_ C
E NC O D ER FR E QU E N CY :
250 K HZ / C H A NN E L (1 MH Z C O U NT R AT E)
W IT H DIFFE R EN TIA L IN P UT
0V
S H IE L D _ C
150 K HZ / C H A NN E L (600 KH Z C O U NT R AT E)
W IT H SIN GLE E ND E D IN P UT
IN 1 P _ C (Q U A D A +)
A+
IN 1 M _C (Q U A D A -)
A-
IN 2 P _ C (Q U A D B +)
B+
IN 2 M _C (Q U A D B -)
B-
IN 3 P _ C (M A R K E R + )
M KR +
IN 3 M _C (M A R K E R -)
M KR -
P 5 V _C (+ 5V )
Q U AD R AT U RE TO LE R AN C E:
90 D EG R E ES +/- 45 DE G R EE S
IN C R E M E N T A L
QUADRATURE
ENCODER
NOTE
F O R S IN G L E E N D E D
ENCODER, DO NOT
C O N N E C T A -, B -, M K R -
+ 5V
0 V _ C (0 V )
0V
N E G A T IV E O V E R T R A V E L
L IM IT S W IT C H
HOME
S W IT C H **
P O S IT IV E O V E R T R A V E L
L IM IT S W IT C H
IN 1 0 _ C (-O T )
34
34
IN 1 1 _ C (H O M E )
17
17
16
16
35
35
IN 9 _ C (+ O T )
IN C O M _ C
24 VDC
INPUT
O U T 1 P _C ( S S R O U T + )
18
+
18
125 MA
LOAD
OUT 1M_C ( SSR OUT - )
36
36
14
14
O U T 3 P _C
OUT 3M_C
32
32
9
9
27
27
10
10
-
IO 5_ C (S T R O B E 1 + )
5V
S IN G LE E N D E D
D R IV E R
0 V _ C (0 V )
IO 6_ C (S T R O B E 2 + )
5V
S IN G LE E N D E D
D R IV E R
28
S
7
7
25
25
8
8
26
26
+OT:
-O T :
HOME:
S TR O B E1:
5V
D IF F E R E N T IA L
OUTPUT
+
0 V _ C (0 V )
28
-
5 -2 4
VDC
%I BIT
(DEFAUL T CFG )
CTL013
CTL014
CTL015
CTL016
S H IE L D _ C
A IN 1 P _ C (A IN 1 + )
+
A IN 1 M _ C (A IN 1 -)
A IN 2 P _ C (A IN 2 + )
+
A IN 2 M _ C (A IN 2 -)
ANALOG
IN P U T
ANALOG
- IN P U T
N O T E S : * D e n otes a n e g a te d s ig n a l.
** S e e C h a p te r 6 fo r h om e s w itc h in fo rm a tio n
Figure 3-21. Analog Servo Axis-3 Connections
GFK-1742A
Chapter 3 Installing and Wiring the DSM314
3-33
3
Faceplate
Pin #
Aux TB
Terminal
IC693ACC336 Aux. Term. Board
DRIVE
AOUT_D
6
6
24
24
CMD (+)
ACOM_D
15
ENABLE
15
ENBL2_D
33
0V
33
IN4_D
5
5
23
23
RDY*
0V_D (0V)
S
1
1
19
19
2
2
20
20
3
21
4
22
3
21
4
22
AXIS 4 MOTOR
CMD (-)
ENBL1_D
ENCODER FREQUENCY:
250 KHZ / CHANNEL (1 MHZ COUNT RATE)
0V
SHIELD_D
IN1P_D (QUAD A+)
A+
IN1M_D (QUAD A-)
A-
IN2P_D (QUAD B+)
B+
IN2M_D (QUAD B-)
B-
WITH DIFFERENTIAL INPUT
150 KHZ / CHANNEL (600 KHZ COUNT RATE)
WITH SINGLE ENDED INPUT
QUADRATURE TOLERANCE:
90 DEGREES +/- 45 DEGREES
IN3P_D (MARKER+)
MKR+
IN3M_D (MARKER-)
MKR-
P5V_D (+5V)
INCREMENTAL
QUADRATURE
ENCODER
NOTE
FOR SINGLE ENDED
ENCODER, DO NOT
CONNECT A-, B-, MKR-
+5V
0V_D (0V)
0V
NEGATIVE OVERTRAVEL
LIMIT SWITCH
HOME
SWITCH**
POSITIVE OVERTRAVEL
LIMIT SWITCH
IN10_D (-OT)
34
34
IN11_D (HOME)
17
17
16
16
35
35
IN9_D (+OT)
INCOM_D
24 VDC
OUT1P_D ( SSR OUT + )
18
+
18
125 MA
LOAD
OUT1M_D ( SSR OUT - )
36
36
14
14
OUT3P_D
OUT3M_D
32
9
32
9
27
27
10
10
28
28
S
7
7
25
25
8
8
26
26
-
5-24
VDC
5V
DIFFERENTIAL
OUTPUT
+
-
IO5_D (STROBE1+)
5V
SINGLE ENDED
DRIVER
0V_D (0V)
IO6_D (STROBE2+)
5V
SINGLE ENDED
DRIVER
0V_D (0V)
SHIELD_D
AIN1P_D (AIN1+)
AIN1M_D (AIN1-)
AIN2P_D (AIN2+)
AIN2M_D (AIN2-)
+
+
ANALOG
INPUT
ANALOG
- INPUT
N O T E S : * Denotes a negated signal.
** See Chapter 6 for home switch information
Figure 3-22. Analog Servo Axis-4 Connections
3-34
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Installation and Wiring
DSM
Pin #
Aux TB
Terminal
9
9
27
27
10
10
28
28
5
5
23
23
S
3
Terminals on IC693ACC336 Aux. Terminal
IO5_C (STROBE1+)
5V
SINGLE ENDED
DRIVER
0V_C (0V)
IO6_C (STROBE2+)
5V
SINGLE ENDED
DRIVER
0V_C (0V)
IN4_C
5V
SINGLE ENDED
DRIVER
0V_C (0V)
SHIELD_C
IN9_C
16
16
34
34
24V INPUT
17
17
35
35
18
8
OUT1P_C ( SSR OUT + )
36
36
OUT1M_C ( SSR OUT - )
14
14
%I BIT
(DEFAULT CFG)
IN9_C:
CTL13
IN10_C:
CTL14
HOME:
CTL15
STROBE1:
CTL16
INPUT
IN10_C
24V INPUT
IN11_C (HOME)
ENCODER 3
HOME SWITCH**
INCOM_C
24 VDC
32
32
S
7
7
25
25
8
8
26
26
S
6
6
24
24
15
15
+
125 MA
OUT3P_C
+
OUT3M_C
SHIELD_C
AIN1P_C (AIN1+)
33
1
1
19
19
2
2
20
20
3
3
21
21
4
4
22
+ ANALOG
INPUT
AIN1M_C (AIN1-)
-
AIN2P_C (AIN2+)
+ ANALOG
- INPUT
AIN2M_C (AIN2SHIELD_C
AOUT_C
OUT ANALOG OUTPUT
COM (Referenced to 0v)
ACOM_C
ENBL1_C
ENABLE RELAY
(AC/DC Solid State
Relay)
IN1P_C (QUAD A+)
A+
IN1M_C (QUAD A-)
A-
IN2P_C (QUAD B+)
B+
IN2M_C (QUAD B-)
B-
IN3P_C (MARKER+)
MKR+
IN3M_C (MARKER-)
MKR-
P5V_C (+5V)
+5V
0V_C (0V)
0V
22
S
5-24
VDC
5V
DIFFERENTIAL
OUTPUT
-
ENBL2_C
33
-
LOAD
SHIELD_C
INCREMENTAL
QUADRATURE
ENCODER
NOTE
FOR SINGLE ENDED
ENCODER, DO NOT
CONNECT A-, B-, MKR-
ENCODER FREQUENCY:
250 KHZ / CHANNEL (1 MHZ COUNT RATE) WITH DIFFERENTIAL INPUT
150 KHZ / CHANNEL (600 KHZ COUNT RATE) WITH SINGLE ENDED INPUT
QUADRATURE TOLERANCE:
90 DEGREES +/- 45 DEGREES
** Note: See Chapter 6 for home switch information
Figure 3-23. Aux Axis Connections (Axis 3 Shown)
GFK-1742A
Chapter 3 Installing and Wiring the DSM314
3-35
3
I/O Specifications
The specifications and simplified schematics for the module’s I/O circuits are provided on the
following pages. The I/O circuits described are as follows:
„
„
„
„
„
„
„
„
„
„
3-36
Differential/Single Ended 5v Inputs (IN1, IN2, IN3)
Single Ended 5v Sink Input (IN4)
Optically Isolated 24v Source/Sink Inputs (IN9, IN10, IN11, INCOM)
Single Ended 5v Inputs/Outputs (IO5, IO6, IO7, IO8)
5v Differential Outputs (OUT2, OUT3)
24v DC Optically Isolated Output (OUT1)
Optically Isolated Enable Relay Output (OUT4)
Differential +/- 10v Analog Inputs (AIN1, AIN2)
Single Ended +/- 10v Analog Outputs (AOUT1, ACOM)
+5v Power (P5V, 0V)
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
3
Installation and Wiring
Differential / Single Ended 5v Inputs
Circuit
Identifier
Digital Servo
Axis 1, 2
Circuit Function
Analog Servo Axis 1-4 Signal Name
and Aux Axis 2-4
(X = A, B, C, or
Circuit Function
D Connector)
Faceplate
Pin
Auxiliary
Terminal
Board
Servo
Terminal
Board
IN1
Strobe Input 1 (+)
Strobe Input 1 (-)
Encoder Chan. A (+)
Encoder Chan. A (-)
IN1P_X
IN1M_X
1
19
1
19
1
9
IN2
Strobe Input 2 (+)
Strobe Input 2 (-)
Encoder Chan. B (+)
Encoder Chan. B (-)
IN2P_X
IN2M_X
2
20
2
20
2
10
IN3
Ser Encoder Data (+) Encoder Marker (+)
Ser Encoder Data (-) Encoder Marker (-)
IN3P_X
IN3M_X
3
21
3
21
N/C
N/C
I/O Type:
Differential / Single Ended 5v Inputs
Circuit Type:
Source Input (9.4K ohm pull-down to 0v)
Input Impedance:
(+) or (-) Input
9.4K ohms common mode to 0v
18.8K ohms differential
Maximum Input Voltage:
+/- 15 v common mode
+/- 20 v differential
Logic 0 Threshold:
+0.8 v max single ended
+0.4 v max differential
Logic 1 Threshold :
+2.0 v min single ended
+1.5 v min differential
Input Filtering:
0.5 microsecond typical
Quadrature Encoder Frequency:
250 khz/channel (1 mhz count rate) max with differential inputs
150 khz/channel (600 khz count rate) max with single ended inputs
Quadrature Tolerance: 90 degrees +/- 45 degrees
Strobe Response:
Minimum Pulse Width: 3 microseconds
Position Capture Accuracy: +/- 2 counts with an additional 10
microseconds of variance
Notes:
Use (+) Input for single ended mode and leave (-) input floating.
Use faceplate 0v pins for common mode reference or single ended
signal return. Inputs can be driven by 5v TTL or CMOS logic.
4700
IN +
LINE
RCVR
4700
IN -
4700
0V
GFK-1742A
Chapter 3 Installing and Wiring the DSM314
4700
+0.75V
3-37
3
Single Ended 5v Sink Input
Circuit Servo Axis 1-4 Circuit
Identifier
Function
IN4
Servo Ready Input
Aux Axis 2-4
Circuit Function
Signal Name
Faceplate
Pin
(X = A, B, C, or D
Connector)
Faceplate 5v Input
IN4_X
5
Auxiliary
Terminal
Board
Servo
Terminal
Board
5
N/C
I/O Type:
Single Ended 5v Sink Input
Circuit Type:
Sink Input (4.7K ohm pull-up to internal +5v)
Input Impedance:
4.7K ohms to +5v
Maximum Input Voltage:
+/- 10.0 v
Logic 0 Threshold:
+0.8 v max
Logic 1 Threshold :
+2.0 v min
Input Filtering:
1.0 microseconds (typical) hardware filter + position loop sampling
rate (0.5, 1.0 or 2.0 milliseconds).
Notes:
This input must be pulled to 0v to turn on.
+5v
4700
15000
IN
LINE
RCVR
+1.0V
3-38
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Installation and Wiring
3
Optically Isolated 24v Source / Sink Inputs
Circuit Servo Axis 1-4 Circuit
Identifier
Function
Aux Axis 2-4
Circuit Function
Signal Name
Faceplate Auxiliary
Pin
Terminal
(X = A, B, C, or
Board
D Connector)
Servo
Terminal
Board
IN9
Overtravel (+)
Faceplate 24v Input
IN9_X
16
16
6
IN10
Overtravel (-)
Faceplate 24v Input
IN10_X
34
34
14
IN11
INCOM
Home Switch
24v Input Common
Home Switch
24v Input Common
IN11_X
INCOM_X
17
35
17
35
7
15
I/O Type:
Optically Isolated 24v Source / Sink Inputs
Circuit Type:
Source / Sink (5K resistance to INCOM)
Input Impedance:
5.4K ohms to INCOM (@ 24 VDC)
Maximum Input Voltage:
+/- 30.0v (referenced to INCOM)
Logic 0 Threshold:
+/- 6.0 v max (referenced to INCOM)
Logic 1 Threshold :
+/- 18.0 v min (referenced to INCOM)
Input Filtering:
5 milliseconds typical
Notes:
These inputs use bi-directional optocouplers and can be turned on
with either a positive or negative input with respect to INCOM.
OPTOCOUPLER
5100
IN
1000
0.1
INCOM
GFK-1742A
Chapter 3 Installing and Wiring the DSM314
3-39
3
Single Ended 5v Inputs/Outputs
Circuit
Identifier
Digital Servo
Axis 1, 2
Circuit Function
Analog Servo Axis 1-4 Signal Name
and Aux Axis 2-4
(X = A, B, C, or
Circuit Function
D Connector)
Faceplate
Pin
Auxiliary
Terminal
Board
Servo
Terminal
Board
IO5
0V
Servo PWM / Alarm
0v
Strobe 1 Input
0v
IO5_X / IN5_X
0V_X
9
27
9
27
N/C
N/C
IO6
0V
IO7
0V
Servo PWM / Alarm
0v
Servo PWM / Alarm
0v
Strobe 2 Input
0v
Not Used
0v
IO6_X / IN6_X
0V_X
IO7_X / IN7_X
0V_X
10
28
11
29
10
28
11
29
N/C
N/C
N/C
N/C
IO8
0V
Servo ENBL / Alarm
0v
Not Used
0v
IO8_X / IN8_X
0V_X
12
30
12
30
N/C
N/C
I/O Type:
Single Ended 5v Inputs / Outputs
Circuit Type:
Sink (4.7K ohm pull-up to internal +5v)
Input Impedance:
4.7K ohms to internal +5v
Maximum Input Voltage:
-1.0 v , +7.0v
Logic 0 Input Threshold:
+0.8 v max
Logic 1 Input Threshold :
+2.4 v min
Input Filtering:
10 microseconds typical
Output Sink Current
10 ma max
On State Output Voltage
+0.5v at 10 ma
Strobe Response:
Minimum Pulse Width: 10 microseconds.
Position Capture Accuracy: +/- 2 counts with an additional 10
microseconds of variance
Notes:
For digital servos, these points act as the PWM / ENBL outputs and
Alarm inputs. For Analog Servos and Aux axes, these points are input
only. The listed 0v pins should be normally used for the signal return.
+5 V
+5 V
4700
IN /
OUT
4700
10 K
+2.0 V
COMPARATOR
82 K
OPEN COLLECTOR DRIVER
3-40
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
3
Installation and Wiring
5v Differential Outputs
Circuit
Identifier
OUT2
OUT3
Digital Servo
Axis 1, 2
Circuit Function
Serial Encoder Req (+)
Serial Encoder Req (-)
Faceplate 5v Output (+)
Faceplate 5v Output (-)
Analog Servo Axis 1-4
and Aux Axis 2-4
Circuit Function
Signal Name
(X = A, B, C, or
D Connector)
Faceplate
Pin
Auxiliary
Terminal
Board
Servo
Terminal
Board
Not Used
Not Used
Faceplate 5v Output (+)
Faceplate 5v Output (-)
OUT2P_X
OUT2M_X
OUT3P_X
OUT3M_X
13
31
14
32
13
31
14
32
N/C
N/C
5
13
I/O Type:
5v Differential Outputs
Circuit Type:
Differential Totem Pole (Source / Sink)
Output Source/Sink Current:
20 ma max
Output Voltage:
+/- 1.5 v min across 120 ohm differential load
Notes:
Axis 1 and Axis 3 use CMOS Drivers with 47 ohm series resistors,
Axis 2 and Axis 4 use RS-422 Line Drivers.
CMOS Driver
47
+5 V
O U TxP
RS 422 Line Driver
O U TxM
CMOS Driver
CMOS Driver
47
A xis 1 and A ux Axis 3
GFK-1742A
Chapter 3 Installing and Wiring the DSM314
O U TxP
O U TxM
A xis 2 and A ux Axis 4
3-41
3
24v DC Optically Isolated Output
Circuit
Identifier
OUT1
Servo Axis 1-4 Circuit
Function
Aux 2-4 Axis
Circuit Function
Faceplate 24v Output (+) Faceplate 24v Output (+)
Faceplate 24v Output (-) Faceplate 24v Output (-)
Signal Name
(X = A, B, C, or
D Connector)
Faceplate
Pin
Auxiliary
Terminal
Board
Servo
Terminal
Board
OUT1P_X
OUT1M_X
18
36
18
36
8
16
I/O Type:
24v DC Optically Isolated Output
Circuit Type:
Isolated Solid State Relay (SSR)
Output Current:
125 ma continuous, 500 ma for 10 ms (resistive or inductive)
Output Voltage Drop:
1.0 v max at 0.125 amps
Notes:
Output is protected by a 30v transzorb and a 0.2 amp Polyswitch. If
a short circuit occurs, the output will automatically switch to a high
impedance state until the load is removed. The load should not be
re-applied for 60 seconds. This is a dc output and it will appear to
be always ON if connections to it are reversed.
SOLID STATE
RELAY
OUT +
30V
OUT -
3-42
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
3
Installation and Wiring
Optically Isolated Enable Relay Output
Circuit
Identifier
ENBL
Digital Servo Axis 1, Analog Servo Axis
Aux Axis 2-4
2 Circuit Function
1-4 Circuit
Circuit Function
Function
Servo MCON (+)
Servo MCON 0v
Drive Enable (+)
Drive Enable (-)
Drive Enable (+)
Drive Enable (-)
Signal Name
(X = A, B, C, or
D Connector)
Faceplate
Pin
Auxiliary
Terminal
Board
Servo
Terminal
Board
ENBL1_X
ENBL2_X
15
33
15
33
N/C
N/C
I/O Type:
Optically Isolated Enable Relay Output
Circuit Type:
Isolated AC Solid State Relay (SSR)
Output Current:
30 ma continuous, 50 ma for 10 ms
Output Voltage Drop:
1.0 v max at 10 ma
Notes:
This is a low current SSR output. The output is ON when the
associated faceplate Axis Enabled LED is illuminated. This occurs
when:
• The servo is enabled
• A Force Digital Servo Velocity %AQ Cmd is used (Axis 1, 2)
• A Force Analog Output %AQ Cmd is used
SOLID STATE
RELAY
EN +
EN -
GFK-1742A
Chapter 3 Installing and Wiring the DSM314
3-43
3
Differential +/- 10v Analog Inputs
Circuit
Identifier
Digital Servo
Axis 1, 2
Circuit Function
Analog Servo Axis 1-4
and Aux Axis 2-4
Circuit Function
Signal Name Faceplate Auxiliary Servo
Pin
Terminal Terminal
(X = A, B, C, or
Board
Board
D Connector)
AIN1
IR Phase Current (+) Faceplate Analog In (+)
IR Phase Current (-) Faceplate Analog In (-)
AIN1P_X
AIN1M_X
7
25
7
25
N/C
N/C
AIN2
IS Phase Current (+) Faceplate Analog In (+)
IS Phase Current (-) Faceplate Analog In (-)
AIN2P_X
AIN2M_X
8
26
8
26
N/C
N/C
I/O Type:
Differential +/- 10v Analog Inputs
Circuit Type:
Differential Input
Input Impedance:
102K ohms common mode with respect to faceplate connector 0v
204K ohms differential
Maximum Input Voltage:
+/- 15 v common mode with respect to faceplate connector 0v
+/- 20 v differential
Resolution:
15 bits
Linearity:
13 bits
Input Offset:
+/- 1.0 millivolt
Gain Factor:
+/- 10.0v = +/- 32,000 counts
Gain Accuracy:
+/- 0.5 %
Update Rate:
2 milliseconds + PLC sweep time when data is reported to PLC
%AI table.
Notes:
Use faceplate 0v pins for common mode reference.
49.9 K
102 K
IN +
OP-AMP
102 K
IN -
TO A/D
MULTIPLEXER
49.9 K
0V
3-44
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Installation and Wiring
3
Single Ended +/- 10v Analog Output
Circuit Analog Servo Axis 1-4 Digital Servo Axis 1,2
Signal Name
Faceplate
Identifier
Pin
Circuit Function
and Aux Axis 2-4
(X = A, B, C, or D
Circuit Function
Connector)
Auxiliary
Terminal
Board
Servo
Terminal
Board
AOUT1 Analog Servo Velocity Faceplate Analog Out
Command
AOUT_X
6
6
4
ACOM
ACOM_X
24
24
12
Analog Out Com
Analog Out Com
I/O Type:
Single Ended Analog Output
Circuit Type:
Op Amp Voltage Follower Output
Load Impedance:
2K ohms minimum
Output Current:
5 ma max
Resolution:
13 bits
Linearity:
13 bits
Output Offset Voltage:
+/- 500 microvolts max
Force D/A Gain Factor:
+/- 10.0v = +/- 32000 counts
Gain Accuracy:
+/- 1.0 %
Force Analog Output Update
Rate:
1.
2.
Notes:
PLC sweep rate when used by Force Analog Output %AQ
command.
250 microseconds when used as Digital Servo tuning output.
Since this is a single ended output, it should normally drive a user
device with a differential input to prevent common mode noise
problems. The positive differential input should be connected to
AOUT and the negative differential input to ACOM.
The Select Analog Output Mode %AQ command can be used to
select the source for the analog output. Refer to Chapter 5 for more
information.
AOUT
O P -A M P
ACOM
0V
GFK-1742A
Chapter 3 Installing and Wiring the DSM314
P T C D E V IC E
3-45
3
+5v Power
Signal Name
Faceplate
Pin
(X = A, B, C, or D
Connector)
Auxiliary
Terminal
Board
Servo
Terminal
Board
Circuit
Identifier
Servo Axis Circuit
Function
Aux Axis
Circuit Function
P5V
5v Power
5v Power
P5V_X
4
4
3
0V
0v
0v
0V_X
22
22
11
I/O Type:
+5V Encoder Power
Circuit Type:
+5V Power with Electronic Short Circuit Protection
Output Voltage:
4.70 v to 5.20 v at 0.5 amp
Output Current:
0.5 amp max (total for all connectors)
Notes:
This output is intended to power external devices such as
Incremental Quadrature Encoders requiring less than 0.5 amps total
from all 4 axis connectors. The output current is provided by the
PLC backplane +5v supply and is protected by an electronic short
circuit protector in the DSM314 module.
The total external device current drawn from this +5V circuit must
be added to the power supply consumption value in the DSM314
configuration screen in VersaPro, and must be added in if
performing a manual power supply loading calculation.
The listed 0v pin should normally be used as the power return
signal.
3-46
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Chapter
Configuration
4
This chapter describes all configuration details necessary to set up the DSM314 for a specific
application. Refer to Chapter 2 for start-up instructions on how to configure the system to send a
Jog command to the DSM in order to test that the system components are operable. Refer to
Chapter 16 for Electronic CAM configuration information.
The DSM314 module is configured using the VersaPro software. Configuration is a two-part
procedure consisting of:
„
„
Rack Slot Configuration
Module Configuration
Note
In order to configure the DSM314 module you must have VersaPro software
version 1.1 or later. You must also have CPU firmware release 10.00 or later.
Consult the PLC CPU documentation concerning which CPU hardware platforms
support this firmware revision.
Rack/Slot Configuration
VersaPro hardware configuration is used to define the type and location of all modules present in
the PLC racks. This is done by first completing setup screens that represent the modules in a
baseplate, then saving the information to a configuration file, which is then downloaded to the PLC
CPU.
Refer to Chapter 2, Section 4 for the details of selecting a DSM314 baseplate and slot location in
the PLC rack. After the Rack Slot Configuration is defined, proceed to the second part of the
configuration process, Module Configuration, where you will configure the DSM314 for your
specific application requirements.
GFK-1742A
4-1
4
Module Configuration
Setting the Configuration Parameters
As with I/O Rack Configuration, module configuration is done by completing screens in the
VersaPro hardware configuration software. The hardware configuration data is presented to the
user in a tabular format. The tabs correspond to the groupings shown below. The tab and/or tabs
that correspond to the groups are shown in parenthesis after the group name. The user should note
that tabs will appear and disappear based upon the configuration selections made on the Settings
tab. For example if Axis 4 is disabled, the Axis #4 tab will not be shown.
„
„
„
„
„
„
Module Configuration Data (Settings, CTL Bits, Output Bits)
Serial Communication (SNP Port)
Axis Configuration Data
Axis Tuning
Advanced Settings
Power Consumption
The basic content on each tab is as shown below:
Tab Name
Function or Description
Settings
Contains PLC Reference assignments and lengths, DSM Axis Setup and
other global data
SNP
DSM front panel SNP port setup
CTL Bits
Configuring the DSM’s 24 control bits
Output Bits
Configuring the DSM’s 8 faceplate digital outputs
Axis #1 - Axis #4
Configuring axis parameters such as Position Limits, Find Home
Velocity and Jog Acceleration
Tuning #1 – Tuning #4
Configuring servo loop tuning items such as Motor Type, Position Loop
Time Constant and Velocity Feedforward.
Advanced
Allows user entry of custom tuning parameters for any axis
Power Consumption
Lists DSM power required from backplane supply (4.0 watts + encoder
power)
For additional details concerning the operation of VersaPro 1.1 software, please consult GFK-1670
or VersaPro on-line help.
4-2
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Configuration
4
Settings
The Settings tab contains configuration information that allows the user to define basic module
operation. These settings are for the number of controlled axes, axis operating modes etc. The
selections on these tabs will cause other tabs within the configuration to appear or disappear. For
example if the user disables axis #4, then the Axis and Tuning tabs relating to axis #4 will not be
displayed. (Note that the Settings tab is where the user used to define the Motion program and
Local Logic program names.) These names determine which programs stored in the CPU will be
transferred to each DSM on system power-up. Refer to Chapter 10 and Chapter 7 for additional
information concerning these topics. During each CPU sweep, data is automatically transferred
between the DSM314 and the CPU. The Settings tab also contains the CPU interface data
references and the starting locations for the automatic transfers. The configuration parameters in
the Settings tab are described in Table 4-1. All Reference Section designations shown in the tables
pertain to this chapter.
Table 4-1. Settings Tab
Configuration
Parameter
Values
Number of Axes
Number of Controlled Axis
%I Reference
Start address for %I ref type (80 CPU Dependent
bits)
%I reference address length
32 = 1 Axis
48 = 2 Axis
64 = 3 Axis
80 = 4 Axis
Start address for %Q ref type (80 CPU Dependent
bits)
%Q reference address length
32 = 1 Axis
48 = 2 Axis
64 = 3 Axis
80 = 4 Axis
Start address for %AI ref type
CPU Dependent
(84 bits)
%AI reference address length
24= 1 Axis
44 = 2 Axis
64 = 3 Axis
84 = 4 Axis
Start address for %AQ ref type
CPU Dependent
(12 bits)
%AQ reference address length
3= 1 Axis
6 = 2 Axis
9 = 3 Axis
12 = 4 Axis
Axis 1 Control Mode
Analog Servo
Digital Servo
Axis 2 Control Mode
Analog Servo
Digital Servo
Auxiliary Axis
%I Length
%Q Reference
%Q Length
%AI reference
%AI Length
%AQ reference
%AQ Length
Axis 1 Mode
Axis 2 Mode
GFK-1742A
Description
Chapter 4 Configuration
1
2
3
4
VersaPro Defaults
Units Reference
Section
4
N/A
1.01
%I00001 or next higher reference
N/A
1.02
N/A
Length automatically determined by
Number of Axes setting
N/A
1.02
%Q00001 or next higher reference
N/A
1.02
N/A
Length automatically determined by
Number of Axes setting
N/A
1.02
%AI00001 or next higher reference
N/A
1.02
N/A
Length automatically determined by
Number of Axes setting
N/A
1.02
%AQ00001 or next higher reference
N/A
1.02
N/A
Length automatically determined by
Number of Axes setting
N/A
1.02
Analog Servo
N/A
1.03
Analog Servo
N/A
1.03
4-3
4
Table 4-1. Settings Tab, Continued
Configuration
Description
Parameter
Axis 3 Mode
Axis 3 Control Mode
Axis 4 Mode
Axis 4 Control Mode
Local Logic Mode
The Local Logic Engine mode
Total Encoder
Power
Motion Program
Block Name
Local Logic Block
Name
CAM Block Name
Encoder power requirements
1.01
Values
Analog Servo
Auxiliary Axis
Disabled
Analog Servo
Auxiliary Axis
Disabled
Enabled
Numeric field
Specifies the motion program
ASCII-20
name to execute on the module
Specifies the local logic program ASCII-20
name to execute on the module
Specifies the CAM block name
ASCII-20
to execute on the module
VersaPro Defaults
Units Reference
Section
Auxiliary Axis
N/A
1.03
Disabled
N/A
1.03
Disabled
N/A
1.04
0
Watts
1.05
<blank>
N/A
1.06
<blank>
N/A
1.07
<blank>
N/A
1.08
Number of Axes. This parameter selects the number of axes the DSM314 is going to control
and the size of automatic data transfers between the PLC and DSM. (VersaPro Default = 4.) The
following two tables document the possible axis combinations for Analog and Digital modes. Axes
identified as Limited Aux Axis provide position feedback but no internal motion command
generation.
Table 4-2. Number of Axes
#
Item Axes
Axis 1
1.
4 Analog Servo
2.
4 Analog Servo
3.
4 Analog Servo
4.
4 Analog Servo
5.
4 Analog Servo
6.
4 Analog Servo
7.
4 Analog Servo
8.
4 Analog Servo
9.
4 Analog Servo
10.
4 Analog Servo
11.
4 Analog Servo
12.
4 Analog Servo
13.
4 Analog Servo
14.
4 Analog Servo
15.
4 Analog Servo
16.
4 Analog Servo
17.
4 Analog Servo
18.
4 Analog Servo
19.
4 Analog Servo
20.
4 Analog Servo
21.
3 Analog Servo
22.
3 Analog Servo
23.
3 Analog Servo
4-4
Axis 2
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Auxiliary Axis
Auxiliary Axis
Auxiliary Axis
Auxiliary Axis
Auxiliary Axis
Auxiliary Axis
Auxiliary Axis
Auxiliary Axis
Auxiliary Axis
Auxiliary Axis
Analog Servo
Analog Servo
Analog Servo
Axis 3
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Auxiliary Axis
Auxiliary Axis
Auxiliary Axis
Auxiliary Axis
Auxiliary Axis
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Auxiliary Axis
Auxiliary Axis
Auxiliary Axis
Auxiliary Axis
Auxiliary Axis
Analog Servo
Analog Servo
Auxiliary Axis
Axis 4
Analog Servo
Auxiliary Axis
Disabled
Disabled
Limited Aux Axis
Analog Servo
Auxiliary Axis
Disabled
Disabled
Limited Aux Axis
Analog Servo
Auxiliary Axis
Disabled
Disabled
Limited Aux Axis
Analog Servo
Auxiliary Axis
Disabled
Disabled
Limited Aux Axis
NA
NA
NA
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
Local
Logic
Disabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
Disabled
Enabled
Enabled
Disabled
Enabled
Disabled
Sample
Rate (ms)
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
GFK-1742A
4
Configuration
24.
25.
26.
27.
28.
30.
31.
32.
33.
34.
35.
3
3
3
3
3
2
2
2
2
1
1
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Analog Servo
Auxiliary Axis
Auxiliary Axis
Auxiliary Axis
Auxiliary Axis
Analog Servo
Analog Servo
Auxiliary Axis
Limited Aux Axis
NA
NA
Auxiliary Axis
Analog Servo
Analog Servo
Auxiliary Axis
Auxiliary Axis
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
NA
Enabled
Disabled
Enabled
Disabled
Enabled
Disabled
Enabled
Disabled
Enabled
Disabled
Enabled
2.0
2.0
2.0
2.0
2.0
1.0
2.0
1.0
1.0
0.5
1.0
Axis 3
Analog Servo
Analog Servo
Auxiliary Axis
Auxiliary Axis
Analog Servo
Analog Servo
Auxiliary Axis
Auxiliary Axis
NA
NA
NA
NA
Axis 4
Disabled
Disabled
Disabled
Disabled
NA
NA
NA
NA
NA
NA
NA
NA
Local
Logic
Disabled
Enabled
Disabled
Enabled
Disabled
Enabled
Disabled
Enabled
Disabled
Enabled
Disabled
Enabled
Sample
Rate (ms)
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
2.0
Table 4-3. Digital Axis Configurations
#
Item Axes
Axis 1
Axis 2
1.
4
Digital Servo Digital Servo
2.
4
Digital Servo Digital Servo
3.
4
Digital Servo Digital Servo
4.
4
Digital Servo Digital Servo
5.
3
Digital Servo Digital Servo
6.
3
Digital Servo Digital Servo
7.
3
Digital Servo Digital Servo
8.
3
Digital Servo Digital Servo
9.
2
Digital Servo Digital Servo
10.
2
Digital Servo Digital Servo
11.
1
Digital Servo NA
12.
1
Digital Servo NA
GFK-1742A
1.02
I/Q/AI/AQ Len. Displays the beginning addresses and number of %I, %Q, %AI, and %AQ
references assigned to the DSM314. The reference sizes are set when the user configures the
number of axes.
1.03
Axis n Mode. These parameters define the command output types provided to the servo subsystems. Digital Servo selects a special digital output for GE Fanuc Digital servo drives. If Digital
Servo is selected, Axes 1 and 2 must be digital. Analog Servo selects a +/-10 volt velocity
command for standard analog servo drives. Auxiliary Axis disables the position loop so that the
internal command generator and encoder position input can be used for follower or cam functions.
If any axis connector is used as a master source input for follower mode, it should be configured as
Auxiliary Axis. An Auxiliary Axis will output an analog voltage proportional to Commanded
Velocity if Velocity Feedforward is set to a non-zero value. When an axis is configured as
Auxiliary Axis and identified as Limited Aux Axis in Table 4-2, position feedback is available but
internal motion command generation is not available. An axis configured as Disabled (applies to
Axis 4 only) provides analog and digital i/o but no position feedback or internal motion command
generation. (VersaPro Default = Analog Servo (Axis 1-2), Aux Axis (Axis 3), Disabled (Axis 4) ).
1.04
Local Logic Mode. This parameter defines the Local Logic engine status. To enable Local
Logic this parameter must be set to Enabled. If Local Logic is enabled, the maximum number of
Servo axes available is 3. A Local Logic Block Name must also be entered when Local Logic
Mode = Enabled. (VersaPro Default = Disabled)
Chapter 4 Configuration
4-5
4
1.05
Total Encoder Power. This parameter defines the total power consumption for all encoders
attached to the DSM module. (VersaPro Default = 0). This parameter should account for all analog
axis and master encoders and is used to update the Power Consumption chart in VersaPro.
1.06
Motion Program Block Name. This parameter defines the optional Motion Program block
name to execute on the DSM module. If no name is entered, the DSM will assume that Motion
Program blocks are not used. If a name is entered, a Motion Program block of the same name must
exist within the active folder. Entering an invalid name will cause an error to be generated when
storing the hardware configuration to the PLC. The name may consist of up to 31 characters, but
cannot have any blank spaces, although you are allowed to use the underline character. Both upper
and lower case characters are permitted. (VersaPro Default = <blank>).
1.07
Local Logic Block Name. This parameter defines the optional Local Logic block name to
execute on the DSM module. If no name is entered, the DSM will assume that Local Logic blocks
are not used. If a name is entered, a Local Logic block of the same name must exist within the
active folder. Entering an invalid name will cause an error to be generated when storing the
hardware configuration to the PLC. The name may consist of up to 31 characters, but cannot have
any blank spaces, although you are allowed to use the underline character. Both upper and lower
case characters are permitted. For Local Logic to operate, the Local Logic Mode must also be set
to Enabled. (VersaPro Default = <blank>).
1.08
CAM Block Name. Defines the optional CAM block name to execute on the DSM module. If
no name is entered, the DSM will assume that CAM blocks are not used. If a name is entered, a
CAM block of the same name must exist within the active folder. Entering an invalid name will
cause an error to be generated when storing the hardware configuration to the PLC. The rules for
CAM Block names are:
•
Only the characters A-Z, a-z, 0-9, and _ (underscore symbol) are allowed. Consecutive
underscores and blank spaces are not allowed.
•
•
•
The CAM block name must begin with a letter or underscore symbol.
A block cannot have the same name as another block that exists in an open folder.
A CAM block name may contain up to a maximum of seven characters.
This feature was first supported in DSM314 firmware release 2.00, and requires use of VersaPro
1.5 or later and the CAM Editor 1.0 or later; also CPU firmware 10.00 or later is required. See
Chapter 16 for CAM feature details. (VersaPro Default = <blank>).
Serial Communications Port Configuration Data
The DSM314’s Serial Communications Port uses an RJ-11 connector labeled COMM on the
module’s faceplate, and supports the RS-232 protocol. It is used for firmware upgrades to flash
memory and must be configured properly to communicate with the upgrade software running on
your programmer. Make sure the programmer’s configuration parameters and the DSM314’s
Serial Communications Port configuration parameters match. These configuration parameters are
described in Table 4-4.
4-6
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
4
Configuration
Table 4-4. SNP Port Tab
Configuration
Parameter
Baud Rate
Stop Bits
Parity
Idle Time
Modem
Turnaround Time
SNP ID
2.01
Description
Baud rate of SNP
Port
Number of stop bits
Parity
Maximum link idle
time
Modem turnaround
time
SNP ID
Values
Defaults
Units
Ref.
300, 600, 1200, 2400, 4800, 9600,
19200
1 or 2
ODD, EVEN, NONE
1...255
19200
N/A
2.01
1
ODD
10
N/A
N/A
sec
2.02
2.03
2.04
0…255
0
.01
sec/count
N/A
2.05
7 characters consisting of A-F and 0- A000001
9. First character must be A-F
2.06
Baud Rate. The baud rate parameter specifies the transmission rate, in bits per second, of data
through the serial port.
2.02
Stop Bits. All serial communications devices use at least one (1) stop bit. For slower devices,
set this parameter to two (2) stop bits.
2.03
Parity. Specifies whether or not a parity bit is to be used (NONE if not), and if so, whether it
should be ODD or EVEN.
2.04
Idle Time. Specifies the time, in seconds, that the DSM314 will wait for a new message to be
received from the master device before assuming that communications have been lost or
terminated. In such a case, the DSM314 will reinitialize to wait for the start of a new SNP
connection sequence.
2.05
Modem Turnaround Time. When utilizing a modem, a Modem Turnaround Time must be
specified. This is the time required for the modem to start data transmission after receiving the
transmit request. If no modem is used, 0 should be specified. If a modem is used, a value greater
than 0 must be specified.
2.06
SNP ID. An identifier consisting of from 0 to 7 characters consisting of A-F and 0-9. The first
character specified must be in the set A-F. The identifier must be utilized for a multi-drop network.
The DSM314 will support multi-drop connections only if the RS232 connection is converted to
RS422/485.
Note
Since this Serial Communications Port is used only for upgrading the DSM314’s
firmware, it is recommended you leave this port’s communications settings at
their default values. Use cable IC693CBL316 to connect this port to the serial
port of a personal computer running the firmware upgrade software.
GFK-1742A
Chapter 4 Configuration
4-7
4
Control (CTL) Bits
The CTL Bits configuration tab allows the user to configure the input source for Control Bits
(CTL01-CTL24). The configuration screen allows the user to select a CTL bit configuration that
corresponds with Motion Program and Local Logic program requirements. CTL Bits configuration
parameters are described in Table 4-5. . For additional information concerning CTL bit
configuration, consult chapter 14.
Table 4-5. CTL Bits Tab
Configuration
Parameter
CTL01 Config
4-8
Description
VersaPro
Default
Ref
CTL01 Bit Configuration IN9_A (Axis 1 +OT)
CTL02 Bit Configuration IN10_A (Axis 1 -OT)
Chapter 14
CTL02 Config
CTL03 Config
CTL03 Bit Configuration IN11_A (Axis 1 Home Sw)
Chapter 14
CTL04 Config
CTL04 Bit Configuration Strobe1 Level (Axis 1)
Chapter 14
CTL05 Config
CTL05 Bit Configuration IN9_B (Axis 2 +OT)
Chapter 14
CTL06 Config
CTL06 Bit Configuration IN10_B (Axis 2 -OT)
Chapter 14
CTL07 Config
CTL07 Bit Configuration IN11_B (Axis 2 Home Sw)
Chapter 14
CTL08 Config
CTL08 Bit Configuration Strobe1 Level (Axis 2)
Chapter 14
CTL09 Config
CTL09 Bit Configuration %Q bit Offset 12
Chapter 14
CTL10 Config
CTL10 Bit Configuration %Q bit Offset 13
Chapter 14
CTL11 Config
CTL11 Bit Configuration %Q bit Offset 14
Chapter 14
CTL12 Config
CTL12 Bit Configuration %Q bit Offset 15
Chapter 14
CTL13 Config
CTL13 Bit Configuration IN9_C (Axis 3 +OT)
Chapter 14
CTL14 Config
CTL14 Bit Configuration IN10_C (Axis 3 -OT)
Chapter 14
CTL15 Config
CTL15Bit Configuration IN11_C (Axis 3 Home Sw) Chapter 14
CTL16 Config
CTL16 Bit Configuration Strobe1 Level (Axis 3)
Chapter 14
CTL17 Config
CTL17 Bit Configuration %Q bit Offset 24
Chapter 14
CTL18 Config
CTL18 Bit Configuration %Q bit Offset 25
Chapter 14
CTL19 Config
CTL19 Bit Configuration %Q bit Offset 40
Chapter 14
CTL20 Config
CTL20 Bit Configuration %Q bit Offset 41
Chapter 14
CTL21 Config
CTL21 Bit Configuration %Q bit Offset 56
Chapter 14
CTL22 Config
CTL22 Bit Configuration %Q bit Offset 57
Chapter 14
CTL23 Config
CTL23 Bit Configuration %Q bit Offset 72
Chapter 14
CTL24 Config
CTL24 Bit Configuration %Q bit Offset 73
Chapter 14
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
Chapter 14
GFK-1742A
Configuration
4
Each CTL bit shown in the previous table can be configured to one of the values in the following
table
Table 4-6. Allowed Values for CTL Bits Tab
Local Logic Controlled
IN9_D (Axis 4 +OT)
Strobe2 Level (Axis4)
%Q bit Offset 57
IN9_A (Axis 1 +OT)
IN10_D (Axis 4 -OT)
%Q bit Offset 12
%Q bit Offset 72
IN10_A (Axis 1 -OT)
IN11_D (Axis 4 Home Sw)
%Q bit Offset 73
IN11_A (Axis 1 Home Sw)
Strobe1 Level (Axis1)
%Q bit Offset 13
%Q bit Offset 14
FBSA* Write Bit 1
IN9_B (Axis 2 +OT)
Strobe2 Level (Axis1)
%Q bit Offset 15
FBSA* Write Bit 2
IN10_B (Axis 2 -OT)
Strobe1 Level (Axis2)
%Q bit Offset 24
FBSA* Write Bit 3
IN11_B (Axis 2 Home Sw)
Strobe2 Level (Axis2)
%Q bit Offset 25
FBSA* Write Bit 4
IN9_C (Axis 3 +OT)
Strobe1 Level (Axis3)
%Q bit Offset 40
Local Logic Active
Flag
IN10_C (Axis 3 -OT)
Strobe2 Level (Axis3)
%Q bit Offset 41
IN11_C (Axis 3 Home Sw)
Strobe1 Level (Axis4)
%Q bit Offset 56
* FBSA is an acronym for “Fast Backplane Status Access” (Service Request #46). See GFK0467L or later for details.
Output Bits
The Output bits configuration tab allows the user to configure the DSM314 faceplate digital
outputs for either Local Logic program control or PLC program control. Output Bit parameters are
described in Table 4-7. Reference Chapter 14 for additional information concerning Output bit
configuration.
Table 4-7. Output Bits Tab
Configuration
Parameter
Values
Description
Out1_A Config
Out1_A Control Source
Out3_A Config
Out3_A Control Source
Out1_B Config
Out1_B Control Source
Out3_B Config
Out3_B Control Source
Out1_C Config
Out1_C Control Source
VersaPro
Ref
Defaults
PLC Control
Chapter14
PLC Control (%Q bit Offset 25)
DSM Control (Digital Output3_1)
PLC Control
Chapter14
PLC Control (%Q bit Offset 40)
PLC Control
Chapter14
PLC Control
Chapter14
PLC Control
Chapter14
PLC Control
Chapter14
PLC Control
Chapter14
PLC Control
Chapter14
PLC Control (%Q bit Offset 24)
DSM Control (Digital Output1_1)
DSM Control (Digital Output1_2)
PLC Control (%Q bit Offset 41)
DSM Control (Digital Output3_2)
PLC Control (%Q bit Offset 56)
DSM Control (Digital Output1_3)
Out3_C Config
Out3_C Control Source
PLC Control (%Q bit Offset 57)
DSM Control (Digital Output3_3)
Out1_D Config
Out1_D Control Source
PLC Control (%Q bit Offset 72)
DSM Control (Digital Output1_4)
Out3_D Config
Out3_D Control Source
PLC Control (%Q bit Offset 73)
DSM Control (Digital Output3_4)
GFK-1742A
Chapter 4 Configuration
4-9
4
Axis Configuration Data
The DSM314 Axis configuration parameters define items such as User Units to Counts ratio, Jog
Velocity, Jog Acceleration, End of Travel, and Velocity limits. The configuration parameters for
each control loop mode are defined and briefly described here. The numbers in the “Ref” column
refer to section reference numbers in this chapter. Values for MaxPosnUu, MaxVelUu, and
MaxAccUu in the following table can be calculated using the formulas in Table 4-12 (“Computing
Data Limit Variables”).
Table 4-8. Axis Configuration Data
Configuration
Parameter
Description
User Units
Counts
User Units Value
Feedback Counts
OT Limit Sw
Over travel Limit Switch
Enable / Disable
Drive Ready Input
High Position Limit
Low Position Limit
High Software EOT
Limit
Low Software EOT
Limit
Software End of
Travel
Velocity Limit
Command Direction
VersaPro
Defaults
Values
1...65,535
1...65,535
Enabled
Disabled
Drive Ready Input Control Enabled
Disabled
High Position Limit
-MaxPosnUu
…+MaxPosnUu-1*
Low Position Limit
-MaxPosnUu
…+MaxPosnUu-1*
High Software End of
-MaxPosnUu
Travel Limit
…+MaxPosnUu-1*
Low Software End of Travel -MaxPosnUu
Limit
…+MaxPosnUu-1*
Software End of Travel
Disabled
Control
Enabled
Axis Velocity Limit
1…MaxvelUu
Allowable Commanded
Bi-directional
Direction
Positive Only
Ref
Units
1
1
N/A
N/A
5.01
5.01
Enabled
N/A
5.02
Enabled
N/A
5.03
+8388607
User units
5.04
-8388608
User units
5.05
+8388607
User units
5.06
-8388608
User units
5.07
Disabled
N/A
5.08
1,000,000
Bi-directional
User units/sec
N/A
5.09
5.10
Normal
N/A
5.11
Default
N/A
5.12
Negative Only
Axis Direction
Axis Direction
Feedback Source
Feedback type
Normal
Reverse
Default
Ext Quadrature Encoder
Feedback Mode
(Digital Mode only)
Reversal
Compensation
Drive Disable Delay
Jog Velocity
Reversal Compensation
Ext Serial Encoder
Incremental
Absolute
0...255
Drive Disable Delay
Jog Velocity
0...60,000
1...MaxVelUu
100
+1000
Jog Acceleration
Jog Acceleration
1...MaxAccUu*
+10,000
Feedback Mode
Incremental
N/A
5.13
0
user units
5.14
ms
5.15
5.16
User Units
sec
User Units
5.17
sec 2
Jog Acceleration
4-10
Jog Acceleration Mode
Linear
Linear
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
N/A
5.18
GFK-1742A
Configuration
Configuration
Parameter
Description
Mode
VersaPro
Defaults
Values
Home Offset
Home Offset Value
Final Home Velocity Final Home Velocity
Scurve
Low Position Limit …
High Position Limit
-32,768...+32,767
1...MaxVelUu*
Find Home Velocity
Find Home Velocity
1...MaxVelUu*
+2000
Home Mode
Find Home Mode
Home Switch
Move +
Move 0…FF
Home Switch
Home Position
Home Position
4
Ref
Units
0
user units
5.19
0
+500
user units
5.20
5.21
User Units
sec
User Units
sec
N/A
5.22
5.23
Return Data 1 Mode
Return Data 1 Mode
Return Data 1 Offset
Return Data 1 Offset
0
5.24
0
5.24
-2,147483,648 to
2,147,483,647
Return Data 2 Mode
Return Data 2 Mode
0…FF
0
5.24
Return Data 2 Offset
Return Data 2 Offset
-2,147483,648 to
2,147,483,647
0
5.24
Cam Master Source
Cam Master Source
Cmd Position 1
Actual Position 3 N/A
5.25
Disabled
N/A
5.26
Actual Position 1
Cmd Position 2
Actual Position 2
Cmd Position 3
Actual Position 3
Cmd Position 4
Actual Position 4
Follower Control
Loop
Follower Control Loop
Enable
Disabled
Ratio A Value
Follower A/B Ratio A
-32768...+32767
1
N/A
5.27
Ratio B Value
Follower A/B Ratio B
1...32767
1
N/A
5.27
Follower Master
Source 1
Follower Master Source 1
None
None
N/A
5.28
None
N/A
5.29
Enabled
Cmd Position 1
Actual Position 1
Cmd Position 2
Actual Position 2
Cmd Position 3
Actual Position 3
Cmd Position 4
Actual Position 4
Follower Master
Source 2
Follower Master Source 2
None
Cmd Position 1
Actual Position 1
Cmd Position 2
Actual Position 2
GFK-1742A
Chapter 4 Configuration
4-11
4
Configuration
Parameter
Description
VersaPro
Defaults
Values
Ref
Units
Cmd Position 3
Actual Position 3
Cmd Position 4
Actual Position 4
Follower Enable
Trigger
Follower Enable Input
Trigger
None
Follower Disable
Trigger
Follower Enable Input
Trigger
None
Follower Disable
Action
Follower Disable Action
Stop
None
N/A
5.30
None
N/A
5.31
Stop
N/A
5.32
CTL01-CTL32
CTL01-CTL32
Inc Position
Abs Position
Ramp Makeup
Acceleration
Follower Ramp Makeup
Acceleration
Ramp Makeup Mode Follower Ramp Makeup
Mode
1...MaxAccUu*
10,000
User Units
sec
Makeup Time
5.33
2
Makeup Time
N/A
5.34
Makeup Velocity
Ramp Makeup Time
Follower Ramp
Acceleration Makeup Time
0…32000
0
mSec
5.35
Ramp Makeup
Velocity
Follower Ramp Makeup
Velocity
1...MaxVelUu*
+100,000
User Units
sec
5.36
* See Table 4-8 for calculating MaxAccUu, MaxPosnUu, and MaxVelUu.
5.01
User Units, Counts. The User Units to Counts ratio sets the number of programming units for
each position feedback count. This allows the user to program the DSM314 in application-specific
units. The User Units and Counts values must be within the range of 1 to 65,535. The User Units
to Counts ratio must be within the range of 8:1 to 1:32. For example, if there is 1.000 inch of travel
for 8192 feedback counts, a 1000:8192 User Units:Counts ratio sets 1 User Unit equal to 0.001
inch. Default is 1:1.
The User Units to Counts ratio sets the number of position programming units for each feedback
count. It is a requirement to set this value correctly for the mechanical systems coupled to the axis,
otherwise movement to unsafe and inaccurate positions may occur.
Note
It is important to set this relationship at the beginning of the configuration
session; most other configuration fields are specified in user units.
For example, Velocity will be specified in user units per second and Acceleration will be specified
in user units per second per second.
This ratio is a very powerful scaling feature. A User Unit to Counts ratio can be configured to
allow programming in other than default counts. In a simplified example, suppose an encoder
feedback application has an encoder that produces 1,000 quadrature counts per revolution (250
lines) and is geared to a machine that produces one inch per revolution. The default unit would be
one thousandth of an inch per count. However, you may want to write programs and use the
DSM300 Series module with metric units. A ratio of 2540 User Units to 1000 Counts can be
4-12
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Configuration
4
configured to allow this. With this ratio, one user unit would represent .01 millimeters. 2540 user
units would represent 25.40 millimeters (one inch) of travel.
The example below illustrates how to meet the requirements that the User Units and Counts values
be within the range of 1 to 65,535, and the User Units to Counts ratio be within the range of 8:1 to
1:32.
The basic equation we need to satisfy is:
(Load Movement per Motor Rotation) ÷ (Desired User Units Resolution)
User Units
=
Counts
Encoder Counts per Motor Rotation
The numerator and denominator must each fit within the RANGE limits. The reduced fraction
must fit between the RATIO limits. The decimal point is always implied, not used. The User
Units to Counts ratio is always expressed as an integer ratio.
Example Application
Use the User Units to Counts ratio to configure the DSM314 so you can program in engineering
units rather than encoder counts. As an example, assume a machine has a motor with a motormounted quadrature encoder connected through a gear reducer to a spur gear. The spur gear is
mounted to the end of a pinch-roller shaft. The pinch roller feeds sheet material for a cut-to-length
application. The motion program will specify the length of cut sheets. The programmer wishes to
program in 0.01-inch resolution.
The following data is given:
•
2000 line encoder (x4 = 8000 counts per encoder revolution)
•
20:1 gear reduction
•
14.336 inch pitch diameter spur gear
•
Inch desired programming unit (.01)
Although several approaches are possible, the most straightforward is to base the
calculations on a single spur gear revolution.
1.
First determine the number of User Units per spur gear revolution:
14.336 inch pitch diameter * π (pi) = 45.0378 inches circumference
45.0378 inches / 0.01 inch desired programming units = 4503.78 User Units per
revolution of spur gear
2.
Then determine the number of encoder counts per spur gear revolution:
2000 lines *
3.
4 counts 20 motor revs.
160,000 encoder counts
*
=
per spur gear revolution
line
1 gear rev.
Then check the value of the User Units to Counts ratio. The ratio must be in the 8:1
to 1:32 ( 8 to 0.03125) range and the two numbers must be in the 1 to 65535 range.
4503.78 User Units / 160,000 encoder counts = 0.02815 or 1:35.5
GFK-1742A
Chapter 4 Configuration
4-13
4
This ratio is too small, so something must be changed. Any of the following system
components could be changed to solve the problem:
•
•
•
•
Change the spur gear diameter to 15.92 inch or larger
Change the encoder lines per revolution to 1800 or less
Change the gear reduction to 18:1 or less
Change the desired programming unit to 0.001 inch
By far, the easiest component to change is the desired programming unit to 0.001 inch.
4.
Now, recalculate to determine the revised User Units per revolution using 0.001 inch
programming unit.
14.336 inches diameter * pi = 45.0378 inches circumference
45.0378 inches / 0.001 inch programming unit = 45,037.8 User Units per revolution of
spur gear
Thus, the User Units to Counts ratio is 45,038 / 160,000 = 0.2815 or about 1:3.6 which is
within the valid ratio range.
So a 45,038 / 160,000 ratio would be used except that 160,000 is larger than the maximum
65,535 range value. Dividing both numbers by 10 solves this to make the ratio 4,504 /
16,000. Note that in the above example, we simply reduced the fraction and ignored the
slight rounding error
One method of avoiding “rounding” is to express the numeric ratio as a fraction. From the
previous example, any number set that produced a 0.2815 ratio could be used. An
example is 2815 / 10000.
Another approach is to rationalize the fraction (reduce it to its lowest terms). This is done
by evenly dividing both the numerator and denominator by successively smaller prime
numbers, beginning with the largest prime that will evenly divide into both the numerator
and the denominator, until no more division without remainders is possible.
Always maintain an exact integer fraction, a decimal ratio expressed as a fraction, or a rationalized
fraction when configuring the User Units to Counts ratio for the best accuracy. The user must
determine if the rounding error, if present, is of significance. A rotary mode application that always
operates in one direction will accumulate rounding errors over time and “drift”. A linear
application will only accumulate error for the length of travel then “rewind” as the axis reverses.
5.02
Overtravel Limit Switch. Selects whether the DSM300 Series module uses the hardware
over travel limit switch inputs.
DISABLED, the faceplate overtravel inputs (IN09 and IN10) may be used as general-purpose
motion program flow control and program branching inputs (assigned to CTL01-CTL24).
ENABLED, indicates that the DSM300 will check the axis over travel inputs continuously, every
10 milliseconds whenever the %I Drive Enabled input is true. If either limit switch opens (the
input goes to logic zero, Off) all motion is immediately commanded to stop. No deceleration
control is active; the servo velocity command is set to zero. The solid state axis enable relay will
4-14
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Configuration
4
not open until after the %Q Enable Drive command is set to zero. An error code indicating which
limit is tripped is reported to the %AI Axis Error Code. At this point, only one DSM314 action is
allowed: the appropriate %Q Jog and %Q Clear Error bits may be used simultaneously to back
away from the Limit Switch. The %Q Clear Error bit must be maintained ON to Jog off the limit
switch. The user may also manually move the disabled axis off the limit switch. After the alarm is
cleared, normal operation may resume.
Caution
Force D/A commands ignore the limit switches and should be used with
caution.
5.03
Drive Ready Input. Enables or disables the Drive Ready input for Analog Servos. This
configuration item is ignored for a Digital Servo or Auxiliary axis,. If the Drive Ready input is
enabled, the Drive Ready faceplate input signal (IN4) must be turned on (set to 0v) within 1
second after the Enable Drive %Q bit is turned on. If the Drive Ready faceplate input is turned off
while the Drive Enabled %I bit is on, error code C0h will be reported and the axis will stop. The
Drive Ready Input configuration should be set to Disabled for Analog Servos which do not provide
a compatible Drive Ready output signal.
5.04
High Position Limit. (User Units). When moving in the positive direction, the Actual Position
will roll over to the low limit when this value is reached. The Position Limits can be used for
continuous rotary applications when the Software End of Travel configuration is set to
Disabled. The High Position Limit should always be set one User Unit smaller than the desired
cycle. For example, a 360° machine would have a High Position Limit setting of 359. At the next
count past 359, the count would roll over to the value set in the Low Position Limit parameter (0 in
this example). For proper operation, the rollover modulus (High Position Limit - Low
Position Limit +1) must always be greater than the distance traveled by the axis in one
position loop sample time (normally 2 ms). See Appendix C for considerations when using an
absolute mode encoder. Default: 8,388,607.
5.05
Low Position Limit. Low Pos Limit (User Units). When moving in the negative direction, the
Actual Position will roll over to the high limit when this value is reached. . The Position Limits
can be used for continuous rotary applications when the Software End of Travel
configuration is set to Disabled. For proper operation, the rollover modulus (High Position
Limit - Low Position Limit +1) must always be greater than the distance traveled by the axis
in one position loop sample time (normally 2 ms). See Appendix C for considerations when
using an absolute mode encoder. Default: -8,388,608.
5.06
High Software EOT Limit. High Software End of Travel Limit (User Units). If the limit is
enabled and the DSM314 is programmed to go to a position greater than the High Software EOT
value, an error will result and the DSM314 will not allow axis motion. If the Follower control loop
is enabled, the High Software EOT Limit is ignored for slave axis motion resulting from master
axis commands. The limit only applies to slave axis motion resulting from internally generated jog
and motion program commands. The limit is always ignored for Move at Velocity %AQ
commands. Default: +8,388,607.
In Analog or Digital Servo modes, the High Software EOT limit is used only when the Software
End of Travel configuration is set to Enabled. If the High Software EOT Limit is enabled and its
GFK-1742A
Chapter 4 Configuration
4-15
4
value is more positive than the High Position Limit, the High Software EOT Limit will internally
be set equal to the High Position Limit. Axis error code 17h will also be reported, indicating that
the limit has been adjusted. The High Software EOT Limit is ignored for Jog commands if the
Position Valid %I bit is off.
In Auxiliary Axis mode, the High Software EOT limit has separate purposes depending on the
setting for Software End of Travel:
Software End of Travel set to Enabled - Motion Programs and Jog commands are restricted to
the High Software EOT Limit value. A Move at Velocity %AQ Command can cause
Commanded Position to exceed the EOT limit. Commanded Position will roll over at the
maximum positive and negative position values (-2,147,483,648 … +2,147,483,647 at 1:1
scaling).
Software End of Travel set to Disabled - The High Software EOT Limit is used as the rollover
value for Commanded Position. Motion Program, Jog and Move at Velocity commands will all
cause Commanded Position to roll over at the High Software EOT Limit.
5.07
Low Software EOT Limit. Low Software End of Travel Limit (User Units). If the limit is
enabled and the DSM314 is programmed to go to a position less than the Low Software EOT, an
error will result and the DSM314 will not allow axis motion. If the Follower control loop is
enabled, the High Software EOT Limit is ignored for slave axis motion resulting from master axis
commands. The limit only applies to slave axis motion resulting from internally generated jog and
motion program commands. The limit is always ignored for Move at Velocity %AQ commands.
Default: -8,388,608
In Analog or Digital Servo modes, the Low Software EOT limit is used only when the Software
End of Travel configuration is set to Enabled. If the Low Software EOT Limit is enabled and its
value is more negative than the Low Position Limit, the Low Software EOT Limit will internally
be set equal to the Low Position Limit Axis error code 17h will also be reported, indicating that the
limit has been adjusted. The Low Software EOT limit is ignored for Jog commands if the
Position Valid %I bit is off.
In Auxiliary Axis mode, the Low Software EOT limit has separate purposes depending on the
setting for Software End of Travel:
Software End of Travel set to Enabled - Motion Programs and Jog commands are restricted to
the Low Software EOT Limit value. A Move at Velocity %AQ Command can cause
Commanded Position to exceed the EOT limit. Commanded Position will roll over at the
maximum positive and negative position values (-2,147,483,648 … +2,147,483,647 at 1:1
scaling).
Software End of Travel set to Disabled - The Low Software EOT Limit is used as the rollover
value for Commanded Position. Motion Program, Jog and Move at Velocity commands will all
cause Commanded Position to roll over at the Low Software EOT Limit.
5.08
Software End of Travel. Enables or disables the High Software EOT Limit and Low
Software EOT Limit. Default: Disabled
5.09
Velocity Limit. Axis Velocity Limit (User Units/sec). The Velocity Limit applies to the sum of
all velocity command sources for an axis, including the internal path generator and external
follower master axis commands. If a servo velocity command exceeds the limit, error code F2h
4-16
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Configuration
4
will be reported and the servo command will internally be set to the limit value. Default:
1,000,000
5.10
Command Direction. Allows an axis to be configured for unidirectional or bi-directional
operation. If unidirectional operation is selected (Positive Only or Negative Only), servo
commands in the opposite direction will not be sent to the servo position loop. Default: Bidirectional
5.11
Axis Direction For all GE Fanuc digital servos, a configured axis direction of Normal defines
the positive axis direction as counter clockwise (CCW) motor shaft rotation when viewed looking
into the motor shaft. A configured axis direction of Reverse defines the positive axis direction as
clockwise (CW) shaft rotation.
For analog servos, a configured axis direction of Normal defines the positive axis direction as
encoder channel A leading channel B. A configured axis direction of reverse defines the positive
axis direction as encoder channel B leading channel A. In practice, the axis direction configuration
allows the user to easily reverse the motion caused by all commands without having to change the
motion program. Default: Normal
5.12
Feedback Source. This configuration item is unused in the present DSM314 firmware. It
must be set to Default.
5.13
GFK-1742A
Feedback Mode. Only used when the Axis Mode is set to Digital Servo. This item configures
Incremental or Absolute feedback type for the GE Fanuc serial encoder. Incremental means the
serial encoder is being used as an incremental encoder and encoder battery alarms will not be
reported. Absolute means the serial encoder is being used as an absolute encoder (encoder backup
battery installed) which maintains position if system power is cycled. In Absolute mode, encoder
battery alarms will be reported. See appendix C, Position Feedback Devices, for more information.
Default: Incremental
Chapter 4 Configuration
4-17
4
5.14
Reversal Compensation. A compensation factor that allows the servo to reverse direction
and still provide accurate positioning in systems exhibiting backlash. Backlash is exhibited by a
servomotor that must move a small amount (lost motion) before the load begins moving when
direction is reversed. For example, consider a dead bolt door lock. Imagine the servo controls the
key in the lock and the feedback reports bolt movement. When the servo turns the key
counterclockwise, the bolt moves left. However, as the servo turns the key clockwise, the bolt does
not move until the key turns to a certain point. The Reversal Compensation feature adds in the
necessary lost motion to quickly move the servo to where motion will begin on the feedback
device. The DSM314 removes the compensation distance when a move in the negative direction is
commanded, and adds the compensation distance before a move in the positive direction.
Default: 0.
Note
Reversal compensation is not available if the Follower Control Loop
configuration is set to Enabled.
5.15
Drive Disable Delay. Servo Drive Disable Delay (milliseconds). The time delay from the time the
zero velocity command is received until the drive enable (digital servo MCON) signal switches off.
Disable Delay is effective when the Enable Drive %Q bit is turned off or certain error conditions (Stop
Mode) occur. Disable Delay should be longer than the worst case deceleration time of the servo from
maximum speed. Because turning OFF the Enable Drive %Q bit stops the DSM314 from commanding
the servo, there are times when the drive enable signal should stay ON. For example, if the servo runs into
an End of Travel Limit and the drive enable signal was immediately turned OFF due to the error, the servo
may continue moving until it coasted to a stop. Thus, to allow the DSM314 to command and control a fast
stop, the Drive Disable Delay should be longer than the deceleration time of the servo from maximum
speed.
The disable delay may be used to control when torque is removed from the motor shaft.
Applications using an electro-mechanical brake generally need time for the brake to engage prior to
releasing servo torque. The delay should be set to a value longer than the engagement time for the
brake. Default: 100.
5.16
Jog Velocity. Jog Velocity (User Units/second). The velocity at which the servo moves during
a Jog operation. Jog Velocity is used by motion programs when no Velocity command is included
in the program. Jog Velocity is always used by the %AQ Move Command (27h). Default: 1000.
5.17
Jog Acceleration. Jog Acceleration Rate (User Units/second/second). The acceleration and
deceleration rate used during Jog, Find Home, Move at Velocity, Abort All Moves and Normal
Stop operations. A Normal Stop occurs when the PLC switches from Run to Stop or after certain
programming errors (refer to Appendix A). Jog Acceleration is used by motion programs when no
Acceleration command is included in the program. Jog Acceleration is always used by the %AQ
Move Command (27h). The value of Jog Acceleration should be set high enough to perform
satisfactorily during Abort all Moves and Normal Stop operations. Default: 10000.
Note: A minimum value after scaling is used in the DSM314. This value is determined by the rule:
Jog Acc * (user units/counts) >= 32 counts/sec/sec.
5.18
4-18
Jog Acceleration Mode. Jog Acceleration Mode (LINEAR or S-CURVE). The acceleration
mode for Jog, Find Home, Move at Velocity, Abort All Moves and Normal Stop operations. A
Normal Stop occurs when the PLC switches from Run to Stop or after certain programming errors
(refer to Appendix A). LINEAR (constant acceleration) causes commanded velocity to change
linearly with time. S-CURVE (jerk limited acceleration) causes commanded velocity to change
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
4
Configuration
more slowly than the linear mode at the beginning and end of acceleration intervals. Motions using
S-Curve acceleration require twice the time and distance to change velocity compared to
motions using the same acceleration value with Linear acceleration. In order to maintain equal
machine cycle times, an S-Curve motion profile requires an acceleration value (and peak motor
torque) twice as large as the equivalent Linear acceleration motion profile. Therefore a tradeoff
between motor cost and machine cycle time may be necessary. Default: LINEAR.
5.19
Home Position. Home Position (User Units). The value assigned to Commanded Position
when a Find Home cycle completes.
5.20
Home Offset. Home Position Offset (User Units). A value added to or subtracted from the
servo’s final stopping point when a Find Home cycle completes. Home Offset adjusts the final
servo stopping point relative to the encoder marker. See chapter 6 for details on the home cycle.
Default: 0.
5.21
Find Home Velocity. Find Home Velocity (User Units/second). The velocity at which the
servo seeks the initial Home Switch transitions during the Find Home cycle when the Home Mode
is configured for HOMESW. If desired, Find Home Velocity can be set to a high value to allow
the servo to quickly locate the Home Switch. Default: 2000
5.22
Final Home Velocity. Final Home Velocity (User Units/second). The velocity at which the
servo seeks the final Home Switch transition and Encoder Marker pulse at the end of a Find Home
cycle. This velocity is also used for the home cycle MOVE+ and MOVE- modes. See chapter 6
for details on the home cycle. Final Home Velocity must be slow enough to allow a 10 millisecond
(filter time) delay between the final Home Switch transition and the Encoder Marker pulse.
Default: 500
5.23
Home Mode. Find Home Mode. The method used to find home during a Find Home cycle.
HOME SWITCH indicates that a Home Switch is to be monitored to Find Home. MOVE+ and
MOVE– specify direct positive and negative movement to the next encoder marker at the Final
Home Velocity. See chapter 6, “Non-Programmed Motion,” for details on the Home Cycle, Home
Switch, Move+, and Move- Modes. Default: HOMESW.
5.24
Return Data 1 Mode and Offset, Return Data 2 Mode and Offset. These
configuration parameters allow alternate data to be reported in the User Selected Data 1 and User
Selected Data 2 %AI location for each axis. The alternate data includes information such as
Parameter memory contents and the DSM314 Firmware Revision.
There are two Return Data configuration parameters, a mode selection and an offset selection. The
mode parameter selects the Return Data type. The offset parameter is only used when the
Parameter Data mode (18h) is selected. Mode default = 0 (Torque Command). Offset default = 0.
The following Return Data selections are allowed:
GFK-1742A
Chapter 4 Configuration
4-19
4
Table 4-9. User Selected Return Data
Digital Analog
Selected Return Data
Data Mode
Data Offset
Y
N
Torque Command
00h
not used
Y
Y
DSM Firmware Revision
10h
not used
Y
Y
11h
not used
Y
N
DSM Firmware Build ID No.
(hex)
Absolute Feedback Offset (cts)
17h
not used
Y
Y
Parameter Data
18h
Parameter Number (0–255)
Y
Y
CTL bits 1-32
19h
not used
Y
Y
Analog Inputs - Axis 1
1Ch
not used
Y
Y
Analog Inputs - Axis 2
1Dh
not used
Y
Y
Analog Inputs - Aux 3
1Eh
not used
Y
Y
Analog Inputs - Aux 4
1Fh
not used
Y
Y
Commanded Position (user units)
20h
not used
Y
Y
21h
not used
Y
Y
Follower Program Command
Position (cts)
Unadjusted Actual Position (cts)
28h
not used
Y
Y
Unadjusted Strobe 1 Position (cts)
29h
not used
Y
Y
Unadjusted Strobe 2 Position (cts)
2Ah
not used
Torque Command is scaled so that +/- 10000 = +/- 100% torque.
DSM Firmware Revision is interpreted as two separate words for major-minor revision codes.
DSM Firmware Build ID is interpreted as a single hex word.
Absolute Feedback Offset is the position offset (in counts) that is used to initialize Actual Position
when a GE Fanuc digital Absolute Encoder is used. Actual Position = Absolute Encoder Data +
Absolute Feedback Offset.
Analog Inputs provides two words of data for each axis: low word = AIN1 and high word = AIN2.
The data is scaled so that +/- 32000 = +/- 10.0v.
Commanded Position (user units) is a copy of the Commanded Position %AI data reported for
each axis. Refer to paragraph 2.04 in Chapter 5.
Follower Program Command Position (cts) is the active commanded position (in feedback counts)
updated and used by the internal motion command generator. Refer to Chapter 9 - Combined
Follower and Commanded Motion.
Unadjusted Actual Position is the accumulated actual position (in counts, not user units) with a 32
bit binary rollover value of -2,147,483,648 … +2,147,483,647.
Unadjusted Strobe 1 Position is the value of Unadjusted Actual Position captured when a Strobe 1
input occurs.
Unadjusted Strobe 2 Position is the value of Unadjusted Actual Position captured when a Strobe 2
input occurs.
At least three PLC sweeps or 10 milliseconds (whichever represents more time) must elapse
before the new Selected Return Data is available in the PLC.
4-20
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
4
Configuration
5.25
Cam Master Source. This configuration item is unused in the present DSM314 firmware.
5.26
Follower Control Loop. When this configuration item is set to Enabled, the servo axis will
follow a master axis input in addition to the standard internally generated motion functions.
Default: Disabled
5.27
Ratio A Value and Ratio B Value. (Follower Control Loop must be Enabled) The A over
B ratio sets the follower slave/master gear ratio.
Follower Axis Motion (counts) =
A * Master Reference Counts
B
The range for A is –32,768 to +32,767 and B is 1 to +32,767. When A is negative, the
slave axis will move in the opposite direction from the master. The DSM firmware
supports A/B slave/master follower ratios in the ranges of 32:1 to 1:10,000. Default: 1:1.
5.28
Follower Master Source 1. (Follower Control Loop must be Enabled) Configures follower
Master Axis Source 1. Allowed choices are Commanded or Actual Position for any of the 4 axes
(as long as it’s a configured axis). Follower Master Source 1 is active when the Follower Master
Source Select %Q bit is OFF.
Cmd Position or Actual Position of a slave axis should not be selected as a master source for
that axis. If an unconfigured axis is selected for Follower Master Source 1, it will be ignored.
Default: None. Refer to Chapter 8 for information on follower mode.
5.29
Follower Master Source 2. (Follower Control Loop must be Enabled) Configures follower
Master Axis Source 2. Allowed choices are Commanded or Actual Position for any of the 4 axes
(as long as it’s a configured axis). Follower Source 2 is active when the Follower Master Source
Select %Q bit is ON.
Cmd Position or Actual Position of a slave axis should not be selected as a master source for
that axis. If an unconfigured axis is selected for Follower Master Source 2, it will be ignored.
Default: None. Refer to Chapter 8 for information on follower mode.
5.30
Follower Enable Trigger. Follower Enable Trigger Input. Selects the control bit, CTL01CTL32, to be used as the Follower Enable trigger input. The follower axis is enabled when the
selected trigger input transitions ON and the Enable Follower %Q bit is also ON. After Follower
is enabled, the PLC Enable Follower %Q bit and an optional Follower Disable trigger bit controls
the active state of the following function. None means the follower axis is enabled only by the
Enable Follower %Q bit. Default: None.
5.31
Follower Disable Trigger. Follower Disable Trigger Input. Selects the control bit, CTL01CTL32, to be used as the Follower Disable trigger input. The trigger input is tested only when the
Enable Follower %Q bit is ON. When the Enable Follower %Q bit is ON, an OFF to ON
transition of the trigger bit will disable the follower. Turning OFF the Enable Follower %Q bit
immediately disables the follower, regardless of the disable trigger configuration. Default: None.
5.32
Follower Disable Action. Stop means the follower will immediately decelerate to zero
velocity at the configured Follower Ramp Acceleration rate. Inc Position means the follower will
continue at its present velocity, then decelerate and stop after a specified distance has elapsed. The
incremental distance is specified in a parameter register for each axis:
P227 = Axis 1 Incremental distance
GFK-1742A
Chapter 4 Configuration
4-21
4
P235 = Axis 2 Incremental distance
P242 = Axis 3 Incremental distance
P250 = Axis 4 Incremental distance
The incremental distance represents the total actual position change that will occur from the point
where the follower is disabled until it stops.
A configuration of Abs Position is not supported in the present DSM314 firmware. Default: Stop
5.33
Ramp Makeup Acceleration. Follower Ramp Makeup Acceleration (uu/sec2). Specifies
the acceleration used to:
•
Accelerate the follower axis to match master velocity after the follower is enabled
(sector AB in Figure 4-1 ),
•
Make up the master command counts lost during follower acceleration (sector BC and
DE in Figure 4-1),
•
Decelerate to a stop after the follower is disabled (sector FG in Figure 4-1).
D
C
E
B
Velocity
Ramp Makeup
Time
A
0
Follower
Disabled
F
G
Time
Figure 4-1. Velocity profile during the follower ramp cycle
5.34
5.35
Ramp Makeup Mode. Choices are Makeup Time or Makeup Velocity, explained below.
•
Makeup Time Mode – in this mode the makeup process takes the amount of time specified
by Ramp Makeup Time parameter (refer to Figure 4-1). This is the default mode.
•
Makeup Velocity Mode – This mode is reserved for future use.
Ramp Makeup Time. Follower Acceleration Ramp Makeup Time (milliseconds). Specifies
the time in milliseconds used to make up the master command counts lost during a follower
acceleration ramp. If the distance correction is not possible in the configured makeup time
(because the value is too small) then the correction time is longer and a warning error is reported.
This setting only has an effect when the Ramp Makeup Mode is set to Makeup Time.
If an acceleration ramp without any correction for lost counts is desired, Makeup Time should be
set to 0. In this case, the motor will synchronize velocity relative to the master, but will not attempt
to correct for any positional deviation that occurs while the follower axis is accelerating.
Makeup time has a minimum value of 10, so for values entered in the range of 1…10 use 10
instead.
Default: 0.
4-22
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Configuration
4
Refer to Chapter 8, Follower Motion, Follower Axis Acceleration Ramp Control section, for a
much more detailed discussion of this feature
5.36
GFK-1742A
Ramp Makeup Velocity. This field is reserved.
Chapter 4 Configuration
4-23
4
Tuning Data
The DSM314 Tuning tabs are used to configure Servo axis tuning data. Parameters such as Motor
Type, Velocity at Max Cmd, Velocity Feed Forward Percentage, and Position Loop Time Constant
are configured in these tabs. From one to four Tuning tabs may appear in the DSM314
configuration window, one tab for each Servo axis configured in the Settings tab.
The numbers in the “Ref” column of the table below refer to item numbers in this chapter.
Table 4-10. Tuning Tab Items
Configuration
Parameter
Description
Motor Type
Analog Servo
Command
Motor Type
Analog Servo Command
Type
Position Error Limit
In Position Zone
Pos Loop Time
Constant
Velocity at MaxCmd
Position Error Limit
In Position Zone
Position Loop Time
Constant
Velocity at Maximum
Command
Velocity Feed Forward
Percentage
Acceleration Feed Forward
Percentage
Position Loop Integrator
Mode
Velocity Feed
Forward Percentage
Acceleration Feed
Forward Percentage
Integrator Mode
Integrator Time
Constant
Velocity Loop Gain
Position Loop Integrator
Time Constant
Velocity Loop Gain
Ref
Units
0…65535
Velocity
Torque (Note 1)
100...60,000
1…60,000
0…65535
0
Velocity
N/A
N/A
6.01
6.02
60,000
10
1000
User Units
User Units
0.1 mSec
6.03
6.04
6.05
256.. MaxVelUu (Note 2)
100,000
User Units
6.06
0…12000
0
.01%
6.07
0…12000
0
.01%
6.08
Off
Continuous
Servo Null
0…10000
Off
N/A
6.09
0
mSec
6.10
0…65535
16
N/A
6.11
Note 1:
Denotes a parameter reserved for possible future use.
Note 2:
See Table 4-8 for calculating MaxVelUu.
6.01
VersaPro
Defaults
Values
Motor Type. Selects the type of FANUC AC servomotor to be used with the DSM314 in Digital
Mode ONLY. The DSM314 internally stores setup motor parameter tables for each of the FANUC
motors supported. A motor type of 0 disables digital servo control by the DSM314 for the digital
servo axis. Motor type must be set to 0 when no digital servo is attached if any %Q bit
commands or %AQ data commands will be sent to the axis. Supported FANUC Motor types
are listed in the tables below.
The Motor Type must be 0 for ANALOG Mode or if no motor is attached to the axis. Default: 0.
FANUC Motor part numbers are used to determine the proper FANUC Motor type code and are in
the form A06B-xxxx-yyyy, where xxxx represents the motor specification field. For example:
When reading a motor number from a motor label of A06B-0032-B078, the motor specification
digits 0032 indicate the motor model of β2/3000. The β Series table references the Motor Type
Code (36) needed for the configuration field. Supported FANUC Motor types are listed in the
tables below. The list of supported motors may be expanded in future releases.
4-24
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Configuration
4
α Series FANUC Servo Motor
Motor Type Code
GFK-1742A
Motor Model
Motor Specification
61
α 1/3000
0371
46
α 2/2000
0372
62
α 2/3000
0373
15
α 3/3000
0123
16
α 6/2000
0127
17
α 6/3000
0128
18
α 12/2000
0142
19
α 12/3000
0143
27
α 22/1500
0146
20
α 22/2000
0147
21
α 22/3000
0148
28
α 30/1200
0151
22
α 30/2000
0152
23
α 30/3000
0153
30
α 40/2000
0157
29
α 40/FAN
0158
Chapter 4 Configuration
4-25
4
α L Series FANUC Servo Motor
Motor Type Code
Motor Model
Motor Specification
56
α L3/3000
0561
57
α L6/3000
0562
58
α L9/3000
0564
59
α L25/3000
0571
60
α L50/2000
0572
α C Series FANUC Servo Motor
Motor Type Code
Motor Model
Motor Specification
7
α C3/2000
0121
8
α C6/2000
0126
9
α C12/2000
0141
10
α C22/1500
0145
α HV Series FANUC Servo Motor
Motor Type Code
Motor Model
Motor Specification
3
α 12HV/3000
0176
4
α 22HV/3000
0177
5
α 30HV/3000
0178
α M Series FANUC Servo Motor
Motor Type Code
Motor Model
Motor Specification
24
α M3/3000
0161
25
α M6/3000
0162
26
α M9/3000
0163
β Series FANUC Servo Motor
Motor Type Code
4-26
Motor Model
Motor Specification
13
β 0.5/3000
0013
35
β 1/3000
0031
36
β 2/3000
0032
33
β 3/3000
0033
34
β 6/2000
0034
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
4
Configuration
6.02
Analog Servo Command. The Analog Servo Command determines whether the analog
command issued by the DSM300 series module is a velocity or torque command. The torque
command selection is not supported in the present DSM314 firmware. Default: Velocity
6.03
Position Error Limit. Position Error Limit (User Units). The Position Error Limit is the
maximum Position Error (Commanded Position - Actual Position) allowed when the DSM314 is
controlling a servo. Position Error Limit should normally be set to a value 10% to 20% higher than
the highest Position Error encountered under normal servo operation. Default: 60000.
The Position Error Limit range formula is:
256 x (user units/counts) ≤ Position Error Limit ≤ 60,000 x (user units/counts)
If Velocity Feedforward is not used, Position Error Limit can be set to a value approximately 20%
higher than the Position Error required to produce a 4000-rpm command. The Position Error
(User Units) required to produce a 4000 rpm command with 0% Velocity Feed forward is:
Position Error (user units) =
Position Loop Time Constant (ms) x Servo Velocity @ 4000 rpm (user units/sec)
1000
Example
The user units:counts ratio is 2:1 and the Position Loop Time Constant is 50 ms.
Step 1:
Calculate servo velocity at 4000 rpm =
(2 user units/count) x (8192 counts/rev) x (4000 revs/minute)
(60 seconds/minute)
=
1,092,266 user units/second
Step 2:
Calculate Position Error at 4000 rpm =
(50 milliseconds) x (1,092,266 user units/second)
1000 milliseconds/second
=
54613 user units
If Velocity Feedforward is used to reduce the following error, a smaller error limit value can be
used, but in general, the error limit value should be 10% - 20% higher than the largest expected
following error.
Note
An Out of Sync error will occur and cause a fast stop if the Position Error Limit Value is
exceeded by more than 1000 counts. The DSM314 attempts to prevent an Out of Sync
error by temporarily halting the internal command generator whenever position error
exceeds the Position Error Limit. Halting the command generator allows the position
feedback to catch up and reduce position error below the error limit value.
If the feedback does not catch up and the position error continues to grow, the Out of Sync
condition will occur. Possible causes are:
1. Erroneous feedback wiring
2. Feedback device coupling slippage
GFK-1742A
Chapter 4 Configuration
4-27
4
3. Servo drives failure.
4. Mechanically forcing the motor/encoder shaft past the servo torque
capability.
5. Commanded motor acceleration or motor deceleration that is greater than system
capability.
6.04
In Position Zone. In Position Zone (User Units). When the Position Error is less than or
equal to the active In Position Zone value, the In Zone %I bit will be ON. Default: 10.
6.05
Pos Loop Time Constant (0.1ms). Position Loop Time Constant (units = 0.1
milliseconds). The desired servo position loop time constant. This value configures the amount of
time required for the servo velocity output to reach 63% of its final value when a step change
occurs in the Velocity command. The lower the value, the faster the system response. Values that
are too low will cause system instability and oscillation. Default: 1000 = 100 ms.
Note
For accurate commanded velocity profile tracking, Pos Loop Time Constant
should be 1/4 to 1/2 of the MINIMUM system acceleration or deceleration time.
For example if the fastest acceleration that must occur occupies 100msec of time
the Pos Loop Time Constant should be between 25 to 50msec. To maintain
system stability, use the largest value possible.
For users familiar with servo bandwidth expressed in rad/sec:
Bandwidth (rad/sec) = 1000 / Position Loop Time Constant (ms)
For users familiar with servo gain expressed in ipm/mil:
Gain (ipm/mil) = 60 / Position Loop Time Constant (ms)
Table 4-11. Gain / Bandwidth / Position Loop Time Constant
Gain
(ipm/mil)
0.5
0.75
1.0
1.5
2.0
2.5
3.0
Bandwidth
(rad/sec)
Position Loop Time
Constant (ms)
8.5
12.5
16.6
25.1
33.4
41.8
50
120
80
60
40
30
24
20
For applications that do not require feedback control or employ very crude positioning systems, an
Open Loop Mode exists. Setting a zero Position Loop Time Constant, which indicates that the
positioning loop is disabled, selects this mode. Note that in Open Loop Mode, the only way to
generate motion is to program a non-zero Velocity Feedforward. The Position Error is no longer
used to generate motion because Position Error is based on position feedback and Open Loop
Mode ignores all feedback.
Caution
For Analog Axes, the Position Loop Time Constant will not be accurate
unless the Velocity at Max Cmd value is set correctly.
4-28
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
4
Configuration
6.06
Velocity at MaxCmd (User Units/Second.) All DSM314 analog servo functions depend on
this value being correct for proper operation.
For Digital Servo Mode, the Velocity at Max Cmd configuration field is not used.
For Analog Servo Mode, the Velocity at Max Cmd configuration field is the Actual Servo
Velocity (User Units/second) desired for a 10 Volt DSM314 analog velocity command output to
the servo. The Force D/A Output %AQ Immediate Command and the Actual Velocity %AI status
word can be used for a command voltage to empirically determine the proper configuration value if
necessary.
In Digital Mode only, if the user sends the DSM314 a velocity command that exceeds the servo
system capability, the DSM314 will clamp that command value at the appropriate maximum motor
velocity boundary. Note that no error will be reported back to the DSM314.
See Appendix D, “Start-up and Tuning GE Fanuc Digital and Analog Servo Systems,” for more
information on determining the correct value.
Default: 100000.
Caution
The Velocity at 10V must be configured correctly in order for the analog
servo Pos Loop Time Constant and Velocity Feedforward factors to be
accurate.
6.07
Velocity Feed Forward (0.01%). Velocity Feed forward gain (units = 0.01 percent). The
Commanded Velocity percentage that is added to the DSM314’s position loop velocity command
output. Increasing Velocity Feedforward causes the servo to operate with faster response and
reduced position error. The optimum value for each system has to be determined individually. For
Digital Servos, a 95 to 100% Velocity Feed Forward Percentage value is a good starting point.
For analog servos, 90-100 % is a typical value. If Velocity Feed Forward is changed, Pos Err
Limit may require adjustment. Default: 0.
Caution
For Analog Axes, the Velocity Feed Forward Percentage will not be accurate
unless the Velocity at MaxCmd value is first set correctly.
6.08
Acceleration Feed Forward Percentage. This configuration item is not used in the
Release 1.0 DSM314 firmware.
6.09
Integrator Mode Integrator Mode. Position loop position error integrator operating mode. Off
means the integrator is not used. Continuous means the integrator runs continuously even during
servo motion. Servo Null means the integrator only runs when the Moving %I status bit is OFF.
Integrator Mode should normally be set to Off. Continuous mode may be used for Follower
operation only when a constant or slowly changing master velocity is expected. This parameter
should not be used to dampen disturbances in the position loop feedback. Never select Continuous
for point to point positioning applications. Default: OFF.
6.10
GFK-1742A
Integrator Time Constant Integrator Time Constant (milliseconds). This is the position
loop position error integrator time constant. This value indicates the time required to reduce the
position error by 63%. For example, if the Integrator Time Constant is 1000 (1 second), the
Position Error would be reduced to 37% of its initial value after 1 second. A value of zero turns
Chapter 4 Configuration
4-29
4
off the integrator. If used, the Integrator Time Constant should be 5 to 10 times greater than
the Position Loop Time Constant to prevent instability and oscillation. Default: 0.
6.11
Velocity Loop Gain Velocity Loop Gain. Used to set velocity loop gain. This applies to GE
Fanuc Digital Servos only. This parameter is not used for Analog Servo Mode. The formula
Load Inertia (JL)
Velocity Loop Gain =
x 16
Motor Inertia (JM)
can be used to select an initial velocity loop gain value. The allowable value range is 0 to 255. The
value of 0 should be used if the motor shaft is not attached to a load.
Default: 16 (load inertia equals motor inertia).
Computing Data Limit Variables
The data limit values for parameters MaxPosnUu, MaxVelUu, and MaxAccUu, referred to in some
of the tables in this chapter, can be calculated using the following formulas:
Table 4-12. Computing Data Limit Variables
Formulas for Computing Data Limit Variables
Position Limit MaxPosnUu
If uu:cts >= 1:1
MaxPosnUu = 536,870,912
Else (uu:cts < 1:1)
MaxPosnUu = 536,870,912 * uu/cts
4-30
Velocity Limit MaxVelUu
Acceleration Limit MaxAccUu
MaxVelUu = 1,000,000* uu/cts If uu:cts >= 1:1
MaxAccUu = 1,073,741,823
Else (uu:cts < 1:1)
MaxAccUu = 1,073,741,823* uu/cts
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Configuration
4
Advanced Tab Data
Although the Advanced Tab has 16 rows for entering axis tuning parameter data, the DSM314
Release 1.0 firmware only allows Entry rows 1 and 2 to be used. The figure below shows data in
the cells for Axis 1 on Entry rows 1 and 2.
Entry Row 1
Entry Row 2
Figure 4-2. Advanced Tab
Tuning Parameters Supported in Release 1.0
DSM314 release 1.0 only supports Tuning Parameters 1 and 3:
Tuning Parameter 1: Sets Digital Encoder Resolution (for GE Fanuc digital servos only).
Settings other than 0 result in a derating of the maximum supported motor speed. Note that, for
settings 0 and 1, some motors’ maximum speed ratings are below the maximum supported speed
shown in the table. Range of allowable settings: 0 – 3. In Figure 4.2 above, Tuning Parameter 1 is
set to a value of 2 for Axis 1.
Table 4-13. Tuning Parameter 1 Values
Tuning
Parameter 1 Counts/Revolution
Values
Maximum
Supported
Motor Speed
0
8192
44001,2
1
16384
36622
2
32768
1831
3
65536
915
Note 1: Default setting
Note 2: Some motors’ maximum speed rating is lower than the value
in the table
Tuning Parameter 3: Sets minimum velocity output (millivolts) for analog servos. Allowed data
range is 0 -1000 millivolts. The recommended setting is 5 - 10mv, or just enough to make the servo
pull in to +/- 1 count of position error. In Figure 4.2 above, Tuning Parameter 3 is set to a value of
10 for Axis 1.
GFK-1742A
Chapter 4 Configuration
4-31
4
Entering Tuning Parameter Numbers and Data in the Advanced Tab Cells
To start, double click the desired cell. For example, if you double clicked the cell on Entry row 1,
in the Axis 1 Par # column, the 1:Axis 1 Par # dialog box would appear, shown below. Enter the
Tuning Parameter Number desired. Remember, DSM314 firmware Release 1.0 only supports
Tuning Parameters 1 and 3. In the example below, a value of 1, representing Tuning Parameter 1
was entered:
Click the OK button, to place a 1 in the Entry row 1, Axis 1 Par # cell. (Shown in Figure 4-2.)
Then, double click in the cell to the right, Entry row 1, Axis 1 Data. The following dialog box will
appear. In this example, the number 2 was entered. Remember, only values between 0 to 3 are
applicable for Tuning Parameter 1 (see Table 4-13).
Click the OK button to place the value 2 in the Entry row 1, Axis 1 Data cell. (Shown in Figure 42.)
Power Consumption Data
This is a display only tab that indicates the power required by the DSM314 module.
4-32
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Chapter
Motion Mate DSM314 to PLC Interface
5
This chapter defines the data that is transferred between the CPU and the Motion Mate DSM314
automatically each PLC sweep, without user programming. This data is categorized as follows:
„
„
Input Status Data (Transferred from Motion Mate DSM314 to CPU)
†
†
Status Bits:
32 (1 Axis), 48 (2 Axes),64 (3 Axes), 80 (4 Axes) bits of %I data
Status Words:
24(1 Axis),44 (2 Axes) ,64 (3 Axes) ,84 (4 Axes) words of % AI data
Output Command Data (Transferred from CPU to Motion Mate DSM314)
†
†
Discrete Commands:
32(1 Axis),48(2 Axes),64(3 Axes),80(4 Axes) bits of %Q data
Immediate Commands:
data
3(1 Axis),6(2 Axes),9(3 Axes),12 (4 Axes) words of %AQ
Note
Throughout this chapter words shown in italics refer to actual PLC machine
data references (%I, %A, %AI, %AQ).
GFK-1742A
5-1
5
Section 1: %I Status Bits
The following %I Status Bits are transferred automatically from the DSM314 to the CPU each
sweep. The actual addresses of the Status Bits depend on the starting address configured for the
%I references (see Table 4-1, “Settings Tab”). The bit offsets listed in the following table are
offsets to this starting address. All reference section designations pertain to this chapter.
Bit
Offset
5-2
Table 5-1. %I Status Bits
Description
Axis
Ref.
Bit
Offset
Description
Axis
Ref.
Position Error Limit
Torque Limit
Servo Ready / IN4_B (5v)
Reserved
Follower Enabled
Velocity Limit
Follower Ramp Active
Reserved
Servo 2
Servo 2
Servo 2
1.12
1.13
1.14
Servo 2
Servo 2
Servo 2
1.15
1.16
1.17
00
01
02
03
04
05
06
07
Module Error Present
Local Logic Active
New Configuration Received
Reserved
CTL01 (function selected by config)
CTL02 (function selected by config)
CTL03 (function selected by config)
CTL04 (function selected by config)
N/A
N/A
N/A
1.01
1.02
1.03
N/A
N/A
N/A
N/A
1.04
1.04
1.04
1.04
40
41
42
43
44
45
46
47
08
09
10
11
12
13
14
15
CTL05 (function selected by config)
CTL06 (function selected by config)
CTL07 (function selected by config)
CTL08 (function selected by config)
CTL13 (function selected by config)
CTL14 (function selected by config)
CTL15 (function selected by config)
CTL16 (function selected by config)
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
1.04
1.04
1.04
1.04
1.04
1.04
1.04
1.04
48
49
50
51
52
53
54
55
Axis OK
Position Valid
Drive Enabled
Program Active
Moving
In Zone
Strobe 1 Flag (5v)
Strobe 2 Flag (5v)
Servo 3
Servo 3
Servo 3
Servo 3
Servo 3
Servo 3
Servo 3
Servo 3
1.05
1.06
1.07
1.08
1.09
1.10
1.11
1.11
16
17
18
19
20
21
22
23
Axis OK
Position Valid
Drive Enabled
Program Active
Moving
In Zone
Strobe 1 Flag (5v)
Strobe 2 Flag (5v)
Servo 1
Servo 1
Servo 1
Servo 1
Servo 1
Servo 1
Servo 1
Servo 1
1.05
1.06
1.07
1.08
1.09
1.10
1.11
1.11
56
57
58
59
60
61
62
63
Position Error Limit
Reserved
Servo Ready/IN4_C Input
Reserved
Follower Enabled
Velocity Limit
Follower Ramp Active
Reserved
Servo 3
1.12
Servo 3
1.14
Servo 3
Servo 3
Servo 3
Servo 3
1.15
1.16
1.17
24
25
26
27
28
29
30
31
Position Error Limit
Torque Limit
Servo Ready / IN4_A (5v)
Reserved
Follower Enabled
Velocity Limit
Follower Ramp Active
Reserved
Servo 1
Servo 1
Servo 1
1.12
1.13
1.14
Servo 1
Servo 1
Servo 1
1.15
1.16
1.17
64
65
66
67
68
69
70
71
Axis OK
Position Valid
Drive Enabled
Program Active
Moving
In Zone
Strobe 1 Flag (5v)
Strobe 2 Flag (5v)
Servo 4
Servo 4
Servo 4
Servo 4
Servo 4
Servo 4
Servo 4
Servo 4
1.05
1.06
1.07
1.08
1.09
1.10
1.11
1.11
32
33
34
35
36
37
38
39
Axis OK
Position Valid
Drive Enabled
Program Active
Moving
In Zone
Strobe 1 Flag (5v)
Strobe 2 Flag (5v)
Servo 2
Servo 2
Servo 2
Servo 2
Servo 2
Servo 2
Servo 2
Servo 2
1.05
1.06
1.07
1.08
1.09
1.10
1.11
1.11
72
73
74
75
76
77
78
79
Position Error Limit
Reserved
Servo Ready / IN4_D (5v)
Reserved
Follower Enabled
Velocity Limit
Follower Ramp Active
Reserved
Servo 4
Servo 4
Servo 4
Servo 4
Servo 4
Servo 4
Servo 4
Servo 4
1.12
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
1.14
1.15
1.16
1.17
GFK-1742A
5
DSM to PLC Interface
1.01
Module Error Present. This status bit is set when the DSM314 detects any error. Errors
related to a specific Servo or Auxiliary Axis will be identified in the associated Axis n Error Code
%AI word. Module errors not related to a specific axis will be identified in the Module Status
Code %AI word. See section 2, “%AI Status Words”, for more details. The Clear Error %Q bit
is the only command that will clear the Module Error Present %I status bit and the associated
Module Status Code and Axis n Error Code %AI word(s). If the condition causing the error is
still present, the Module Error Present %I status bit will not be cleared.
1.02
Local Logic Active. When this status bit is ON, it indicates that a Local Logic program is
executing.
1.03
GFK-1742A
New Configuration Received. The New Configuration Received %I status bit is set
whenever the PLC sends a reset command or new configuration to the DSM314. New
Configuration Received should be cleared by a PLC program before any %AQ Immediate
commands such as In Position Zone or Position Loop Time Constant have been sent to the
DSM314. The status bit can then be monitored by the PLC. If the bit is set, then the DSM314
has been reset or reconfigured. The PLC should clear the bit and then re-send all necessary %AQ
commands. The bit is cleared by %AQ Immediate command 49h. Refer to section 4, “%AQ
Immediate Commands,” later in this chapter, for more details about the %AQ immediate
command interfaces.
Chapter 5 Motion Mate DSM314 to PLC Interface
5-3
5
1.04
Configurable %I Status Bits. These inputs indicate the state of configurable CTL bits
CTL01-CTL08 and CTL13-CTL16. The default CTL bit assignments report the level of external
input devices connected to faceplate signals. All CTL bits may be tested during the execution of
motion program Wait and Conditional Jump commands. CTL bits can also be used to trigger the
follower ramp enable / disable functions. The CTL bit assignments are selected through
configuration. Consult Chapters 4 and 14 for additional information. Default CTL01-CTL08 and
CTL13-CTL16 assignments are shown in Table 5-2.
Table 5-2. Defaults for Configurable %I Status Bits
Bit
Name
1.05
Signal
Name
Signal Use
Input
Type
Faceplate Digital Analog
Connector Servo
Servo /
Pin
TB Pin Aux Axis
TB Pin
CTL01
IN9_A
Servo Axis 1 (+) Overtravel
24v
A-16
6
CTL02
IN10_A
Servo Axis 1 (-) Overtravel
24v
A-34
14
34
CTL03
IN11_A
Servo Axis 1 Home Switch
24v
A-17
7
17
CTL04
IN1_A
Servo Axis 1 Strobe 1 Level
5v
A-1,19
1,9
9
CTL05
IN9_B
Servo Axis 2 (+) Overtravel
24v
B-16
6
16
CTL06
IN10_B
Servo Axis 2 (-) Overtravel
24v
B-34
14
34
CTL07
IN11_B
Servo Axis 2 Home Switch
24v
B-17
7
17
CTL08
IN1_B
Servo Axis 2 Strobe 1 Level
5v
B-1,19
1,9
9
CTL13
IN9_C
Servo Axis 3 (+) Overtravel
24v
C-16
NA
16
CTL14
IN10_C
Servo Axis 3 (-) Overtravel
24v
C-34
NA
34
CTL15
IN11_C
Servo Axis 3 Home Switch
24v
C-17
NA
17
CTL16
IN5_C
Servo Axis 3 Strobe 1 Level
5v
C-9
NA
9
16
Axis OK. The Axis OK status bit is ON when the DSM314 is ready to receive commands and
control a servo. An error condition that stops the servo will turn Axis OK OFF. When Axis OK
is OFF, no commands other than the Clear Error %Q bit will be accepted by the axis.
1.06
Position Valid. For a Servo Axis, the Position Valid status bit indicates that a Set Position
command or successful completion of a Find Home cycle has initialized the position value in the
Actual Position % AI status word. For a Servo Axis, Position Valid must be ON in order to
execute a motion program.
For an Auxiliary Axis, the Position Valid status bit indicates that an Aux Encoder Set Position
command or successful completion of a Find Home cycle has initialized the position value in the
Actual Position % AI status word. For an Aux Axis, Position Valid is not required to be ON in
order to execute a motion program.
If the DSM314 is configured to use an absolute feedback digital encoder (GE Fanuc α or β Series
servo with optional encoder battery), Position Valid is automatically set whenever the digital
encoder reports a valid absolute position. See Appendix C for details of operation when absolute
mode digital encoders are used.
5-4
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
5
DSM to PLC Interface
1.07
Drive Enabled. The Drive Enabled status bit indicates the state of the Enable Drive %Q bit
and the solid state relay output supplied by the DSM314. The ON state of the Drive Enabled %I
bit corresponds to the CLOSED state of the relay output and the ON state of the associated
faceplate EN LED. In Digital mode, the solid state relay provides the MCON signal to the GE
Fanuc Digital Servo through the servo command cable. Drive Enabled is cleared following
power-up or an error condition that stops the servo.
1.08
Program Active. The Program Active status bit for each axis indicates that a Motion
Program (1-10) or a Move %AQ command (27h) is executing on that axis. Executing a multiaxis program will set the Program Active %I bits for both Axis 1 and Axis 2.
1.09
Moving. The Moving status bit is ON when Commanded Velocity is non-zero, otherwise it is
OFF. All Move, Jog, and Move at Velocity commands will cause the Moving bit to be set to ON.
The Force Digital Servo Velocity %AQ command and Follower acceleration ramp will not set
the Moving bit.
In Follower mode, Moving is ON for the conditions described above and is not affected by the
enabled or disabled state of the follower master input. When the Follower acceleration /
deceleration ramp is active, a separate %I bit, Follower Ramp Active, is ON. Refer to Chapter 8,
Follower Motion, for additional information on the Follower Acceleration Ramp.
1.10
In Zone. Operation of the In Zone bit depends only on the Position Error value and is not
related to the state of the Moving bit. In Zone will be ON whenever Position Error is less than or
equal to the configured In Position Zone value. In Zone (ON) can be used in combination with
the Moving bit (OFF) to determine when the axis has arrived at its destination.
Table 5-3. In Zone Bit Operation
Cmd Generator Active
(Moving %I bit ON)
No
No
Yes
Yes
1.11
Position Error ≤
In Position Zone
No
Yes
No
Yes
In Zone
bit
OFF
ON
OFF
ON
Axis at
Destination
No
Yes
No
No
Strobe 1 Flag, Strobe 2 Flag. The Strobe 1 Flag and Strobe 2 Flag status bits indicate
that an OFF to ON transition has occurred at the associated faceplate Strobe Input. When this
occurs, an axis position is captured and reported in the Strobe n Position %AI status word, where
“n” is Axis 1 - Axis 4. The Strobe n Flag %I bit is cleared by the associated Reset Strobe n %Q
bit. A maximum of 2 PLC sweeps is required for the Strobe n Flag %I bit to be cleared in
the PLC after a Reset Strobe n %Q bit is turned ON. Once the Strobe n Flag bit is cleared,
new data may be captured by another Strobe Input. The position capture resolution is +/- 2 counts
with an additional 10 microseconds of variance for the strobe input filter delay.
Note
The Strobe n Flag bits do not indicate the logic level of the faceplate input, they
only indicate that an OFF to ON transition has occurred on the input.
1.12
Position Error Limit. The Position Error Limit status bit is set when the absolute value of
the position error exceeds the configured Position Error Limit value. When the Position Error
GFK-1742A
Chapter 5 Motion Mate DSM314 to PLC Interface
5-5
5
Limit status bit is set, Commanded Velocity and Commanded Position are frozen to allow the axis
to ”catch up” to the Commanded Position.
1.13
Torque Limit. The Torque Limit status bit is set when the commanded torque exceeds the
torque limit setting for the configured motor type.
1.14
Servo Ready. This status bit is set when faceplate signal IN4 of the associated connector (A,
B, C or D) is ON (active low: ON = 0v, OFF = +5v). For each Servo Axis, this input reports the
Servo Ready state of the servo amplifier.
1.15
Follower Enabled. This status bit indicates when the Follower is enabled for the axis. The
Enable Follower % Q bit and an optional CTL01-CTL32 faceplate trigger input enable the
Follower function. If follower ramp acceleration control is active when Follower Enabled turns
on, the axis will accelerate to the master velocity command, and when it turns off, the axis will
decelerate to zero master velocity command. Both acceleration and deceleration during the ramp
process will utilize the configured Follower Ramp Acceleration.
1.16
Velocity Limit. The Velocity Limit status bit is set if the velocity requested by any axis
command (internal path generator or internal/external follower source) exceeds the configured
velocity limit. Therefore, Velocity Limit is an indication that the axis is no longer locked to its
position command. If Follower is enabled, an error code is reported in the associated axis Error
Code variable when Velocity Limit is set.
An exception exists when unidirectional motion is configured by setting Command Direction to
Positive Only or Negative Only. Positive Only means that the velocity limit is zero for negative
motion. Negative Only means that the velocity limit is zero for positive motion. No error is
generated for the limit that is set to zero. For example, if Command Direction is set to Negative
Only and + Counts are commanded, the Velocity Limit Status bit is set, but no Status Error code is
reported.
1.17
5-6
Follower Ramp Active. When the follower is enabled, Follower Ramp Active is ON during
initial acceleration and distance makeup. When the follower is disabled, Follower Ramp Active
is ON until the Follower Disable Action incremental distance (if selected) has been traveled and
the follower has decelerated to zero velocity.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
DSM to PLC Interface
5
Section 2: %AI Status Words
The following %AI Status Words are transferred automatically from the DSM314 to the CPU each
sweep. The total number of the %AI Status Words is configured with the Configuration Software
to be a length of 24, 44, 64 or 84. The actual addresses of the Status Words depend on the
starting address configured for the %AI references. See Table 4-1, “Settings Tab.” The word
numbers listed in the following table are offsets to this starting address. All reference section
designations pertain to this chapter. All %AI data except Actual Velocity is updated within the
DSM314 at the position loop sampling rate (2 ms for digital servos, 0.5 ms or 1.0 ms for some
analog servo configurations). Actual Velocity is updated once every 128 milliseconds.
Table 5-4. %AI Status Words
Word
Offset
00
01-03
Module Status Code
Reserved
Axis
Ref
N/A
2.01
Description
Axis
Ref
04
Axis 1 Error Code
Servo 1
2.02
44
Axis 3 Error Code
Servo 3
2.02
05
Command Block Number
Servo 1
2.03
45
Command Block Number Servo 3
2.03
06-07
Commanded Position
Servo 1
2.04
46-47
Commanded Position
Servo 3
2.04
08-09
Actual Position
Servo 1
2.05
48-49
Actual Position
Servo 3
2.05
10-11
Strobe 1 Position
Servo 1
2.06
50-51
Strobe 1 Position
Servo 3
2.06
12-13
Strobe 2 Position
Servo 1
2.06
52-53
Strobe 2 Position
Servo 3
2.06
14-15
Position Error
Servo 1
2.07
54-55
Position Error
Servo 3
2.07
16-17
Commanded Velocity
Servo 1
2.08
56-57
Commanded Velocity
Servo 3
2.08
18-19
Actual Velocity
Servo 1
2.09
58-59
Actual Velocity
Servo 3
2.09
20-21
User Selected Data 1
Servo 1
2.10
60-61
User Selected Data 1
Servo 3
2.10
22-23
User Selected Data 2
Servo 1
2.11
62-63
User Selected Data 2
Servo 3
2.11
Axis 2 Error Code
Servo 2
2.02
64
Axis 4 Error Code
Servo 4
2.02
24
Commanded Block Number Servo 2
2.03
65
Command Block Number Servo 4
2.03
26-27
Commanded Position
Servo 2
2.04
66-67
Commanded Position
Servo 4
2.04
28-29
Actual Position
Servo 2
2.05
68-69
Actual Position
Servo 4
2.05
30-31
Strobe 1 Position
Servo 2
2.06
70-71
Strobe 1 Position
Servo 4
2.06
32-33
Strobe 2 Position
Servo 2
2.06
72-73
Strobe 2 Position
Servo 4
2.06
34-35
Position Error
Servo 2
2.07
74-75
Position Error
Servo 4
2.07
36-37
Commanded Velocity
Servo 2
2.08
76-77
Commanded Velocity
Servo 4
2.08
25
GFK-1742A
Description
Word
Offset
38-39
Actual Velocity
Servo 2
2.09
78-79
Actual Velocity
Servo 4
2.09
40-41
User Selected Data 1
Servo 2
2.10
80-81
User Selected Data 1
Servo 4
2.10
42-43
User Selected Data 2
Servo 2
2.11
82-83
User Selected Data 2
Servo 4
2.11
Chapter 5 Motion Mate DSM314 to PLC Interface
5-7
5
2.01
Module Status Code. Module Status Code indicates the current DSM314 operational status.
When the Module Error Present %I flag is set, and the error is not related to a specific axis, an
error code number is reported in the Module Status Code that describes the condition causing the
error. A new Module Status Code will not replace a previous Module Status Code unless the new
Module Status Code has Fast Stop or System Error priority.
The Module Status Code word is also used to report System Status Errors. These are of the format
Dxxx, Exxx, and Fxxx. For details on System Status Error codes, refer to Appendix A.
For a list of Motion Mate DSM314 error codes refer to Appendix A.
2.02
Axis 1 - Axis 4 Error Code. The Servo Axis n Error Code, where n = Axis 1 - Axis 4,
indicates the current operating status of each axis. When the Module Error Present %I flag is
set, and the error is related to a particular axis, an error code number is reported which describes
the condition causing the error. A new Axis Error Code will replace a previous Axis Error Code
if it has equal or higher priority (Warning, Normal Stop, Fast Stop) compared to the previous Axis
Error Code.
For a list of Motion Mate DSM314 error codes refer to Appendix A.
2.03
Command Block Number. Command Block Number indicates the block number of the
command that is presently being executed in the active Program or Subroutine. It changes at the
start of each new block as the program commands are executed, and thus identifies the present
operating location within the program. Block numbers are displayed only if the motion program
uses them. Additionally, the most recently used block number will be displayed until superseded
by a new value. The Command Block Number is set to zero on power cycle or reset.
2.04
Commanded Position. Commanded Position (user units) is where the axis is commanded
to be at any instant in time. For a Servo Axis, the difference between Commanded Position and
Actual Position is the Position Error value that produces the Velocity Command to drive the axis.
The rate at which the Commanded Position is changed determines the velocity of axis motion.
If Commanded Position moves past either of the count limits, it will roll over to the other limit
and continue in the direction of the axis motion.
2.05
Actual Position. Actual Position (user units) is a value maintained by the DSM314 to
represent the physical position of the axis. It is set to an initial value by the Set Position %AQ
Immediate command or to Home Position by the Find Home cycle. When digital absolute
encoders are used, Actual Position is automatically set whenever the encoder reports a valid
position. The motion of the axis feedback device continuously updates the axis Actual Position.
If Actual Position moves past either of the count limits, it will roll over to the other limit and
continue in the direction of the axis motion.
2.06
Strobe 1, 2 Position. Strobe 1 Position and Strobe 2 Position (user units) contain the axis
actual position when a Strobe 1 Input or Strobe 2 Input occurs. When a Strobe Input occurs, the
Strobe 1Flag or Strobe 2 Flag %I bit is set to indicate to the PLC that new Strobe data is
available in the related Strobe 1 Position or Strobe 2 Position status word. The PLC must set the
proper Reset Strobe 1 or Reset Strobe 2 Flag %Q bit to clear the associated Strobe 1,2 Flag %I
bit.
Strobe 1, 2 Position will be maintained and will not be overwritten by additional Strobe Inputs
until the Strobe 1, 2 Flag %I bit has been cleared. If the Reset Strobe Flag %Q bit is left in the
5-8
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
5
DSM to PLC Interface
ON state (thus holding the Strobe 1, 2 Flag %I bit in the cleared state), then each Strobe Input
that occurs will cause the axis position to be captured in Strobe 1, 2 Position.
The Strobe 1, 2 Position actual position values are also placed in data parameter registers for use
with motion programs commands. The data parameter register assignments are as follows:
Servo Axis 1
Servo Axis 2
Servo Axis 3
Servo Axis 4
Strobe 1 Position
P224
P232
P240
P248
Strobe 2 Position
P225
P233
P241
P249
This feature allows the strobe input to trigger a Conditional JUMP in a program block using the
Strobe 1 Position or Strobe 2 Position as the destination of a CMOVE or PMOVE command.
See Chapter 1, "Product Overview, DSM314 Position Strobes," for information on strobe latency
and processing times.
2.07
Position Error. Position Error (user units) is the difference between Commanded Position
and Actual Position. In the servo control loop, Position Error is multiplied by a gain constant to
provide the servo velocity command.
2.08
Commanded Velocity. Commanded Velocity (user units/sec) is a value generated by the
DSM314 axis command generator. Commanded Velocity indicates the instantaneous velocity
command that is producing axis motion. At the beginning of a move it will increase at the
acceleration rate, and once the programmed velocity has been reached, it will stabilize at the
programmed velocity value.
In Follower mode, Commanded Velocity only represents the output of the axis command
generator. The Follower Master Axis input or the Follower Acceleration Ramp controller does
not affect Commanded Velocity.
GFK-1742A
2.09
Actual Velocity. Actual Velocity (user units/sec) represents the axis velocity derived from the
Feedback device and is updated by the DSM314 once every 128 milliseconds.
2.10
User Selected Data 1. There is one of these words for each of the four axes. The
information reported in User Selected Data 1 is determined by module configuration (see Chapter
4) or the Select Return Data 1 %AQ command (see Section 4, “%AQ Immediate Commands,” in
this chapter).
2.11
User Selected Data 2. There is one of these words for each of the four axes. The
information reported in User Selected Data 2 is determined by module configuration (see Chapter
4) or the Select Return Data 2 %AQ command (see Section 4, “%AQ Immediate Commands,” in
this chapter). Refer to Section 4 “%AQ Immediate Commands” for additional information.
Chapter 5 Motion Mate DSM314 to PLC Interface
5-9
5
Section 3: %Q Discrete Commands
The following %Q Outputs represent Discrete Commands that are sent automatically to the DSM314
from the CPU each PLC sweep. A command is executed simply by turning on its corresponding Output
Bit. The actual addresses of the Discrete Command bits depend on the starting address configured for
the %Q references. See Table 4-1, “Settings Tab.” The Bit Offsets listed in the following table are
offsets to this starting address. Numbers in the “Ref” columns pertain to sections in this chapter.
Table 5-5. %Q Discrete Commands
Bit
Description
Axis
Offset
5-10
Ref
Bit
Offset
Description
Axis
Ref
00
01
02
03
04
05
06
07
Clear Error
Enable Local Logic
Execute Motion Program 1
Execute Motion Program 2
Execute Motion Program 3
Execute Motion Program 4
Execute Motion Program 5
Execute Motion Program 6
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
3.01
3.02
3.03
3.03
3.03
3.03
3.03
3.03
40
41
42
43
44
45
46
47
OUT1_B / Config. CTL bit src.
OUT3_B / Config. CTL bit src.
Reserved
Reserved
Enable Follower
Select Follower Master Source
Reserved
Reserved
Servo 2
Servo 2
3.12
3.13
Servo 2
Servo 2
3.14
3.15
08
09
10
11
12
13
14
15
Execute Motion Program 7
Execute Motion Program 8
Execute Motion Program 9
Execute Motion Program 10
Configurable CTL bit source
Configurable CTL bit source
Configurable CTL bit source
Configurable CTL bit source
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
3.03
3.03
3.03
3.03
3.04
3.04
3.04
3.04
48
49
50
51
52
53
54
55
Abort All Moves
Feed Hold (Pause Program)
Enable Drive / MCON
Find Home
Jog Plus
Jog Minus
Reset Strobe 1
Reset Strobe 2
Servo 3
Servo 3
Servo 3
Servo 3
Servo 3
Servo 3
Servo 3
Servo 3
3.05
3.06
3.07
3.08
3.09
3.10
3.11
3.11
16
17
18
19
20
21
22
23
Abort All Moves
Feed Hold (Pause Prgm)
Enable Drive / MCON
Find Home
Jog Plus
Jog Minus
Reset Strobe 1
Reset Strobe 2
Servo 1
Servo 1
Servo 1
Servo 1
Servo 1
Servo 1
Servo 1
Servo 1
3.05
3.06
3.07
3.08
3.09
3.10
3.11
3.11
56
57
58
59
60
61
62
63
OUT1_C / Config. CTL bit src.
OUT3_C / Config. CTL bit src.
Reserved
Reserved
Enable Follower
Select Follower Master Source
Reserved
Reserved
Servo 3
Servo 3
3.12
3.13
Servo 3
Servo 3
3.14
3.15
24
25
26
27
28
29
30
31
OUT1_A / Config. CTL bit src.
OUT3_A / Config. CTL bit src.
Reserved
Reserved
Enable Follower
Select Follower Master Source
Reserved
Reserved
Servo 1
Servo 1
3.12
3.13
Servo 1
Servo 1
3.14
3.15
64
65
66
67
68
69
70
71
Abort All Moves
Feed Hold (Pause Program)
Enable Drive / MCON
Find Home
Jog Plus
Jog Minus
Reset Strobe 1
Reset Strobe 2
Servo 4
Servo 4
Servo 4
Servo 4
Servo 4
Servo 4
Servo 4
Servo 4
3.05
3.06
3.07
3.08
3.09
3.10
3.11
3.11
32
33
34
35
36
37
38
39
Abort All Moves
Feed Hold (Pause Program)
Enable Drive / MCON
Find Home
Jog Plus
Jog Minus
Reset Strobe 1
Reset Strobe 2
Servo 2
Servo 2
Servo 2
Servo 2
Servo 2
Servo 2
Servo 2
Servo 2
3.05
3.06
3.07
3.08
3.09
3.10
3.11
3.11
72
73
74
75
76
77
78
79
OUT1_B / Config. CTL bit src.
OUT3_B / Config. CTL bit src.
Reserved
Reserved
Enable Follower
Select Follower Master Source
Reserved
Reserved
Servo 4
Servo 4
Servo 4
Servo 4
Servo 4
Servo 4
Servo 4
Servo 4
3.12
3.13
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
3.14
3.15
GFK-1742A
5
DSM to PLC Interface
3.01
Clear Error. When an error condition is reported, this command is used to clear the Module
Error Present %I status bit as well as the associated Module Status Code and Axis 1-Axis 4 Error
Code %AI status words. Error conditions that are still present (such as an End of Travel limit
switch error) will not be cleared and must be cleared by some other corrective action. If the Clear
Error bit is maintained ON, a Jog command can be used to move away from an open hardware
overtravel limit switch.
3.02
Enable Local Logic. This command enables the current Local Logic program within the
DSM to execute. Refer to Chapter 4 for information on configuring the Local Logic program
name.
3.03
Execute Motion Program 1 - 10. These commands are used to select stored motion
programs for immediate execution. Each command uses a one shot action; thus a command bit
must transition from OFF to ON each time a program is to be executed. Programs may be
temporarily paused by a Feed Hold command.
When a program begins execution, Rate Override is always set to 100%. A Rate Override %AQ
command can be sent on the same sweep as the Execute Motion Program n %Q bit and will be
effective as the program starts.
Only one Motion Program can be executed at a time per axis. The Program Active %I status bit
must be OFF or Motion Program execution will not be allowed to start. A multi-axis Motion
Program uses both axis 1 and axis 2, so both Program Active bits must be OFF to start a multiaxis Motion Program.
3.04
Configurable CTL Bit Sources. %Q bit offsets 12-15 are configurable as sources for CTL
bits CTL01-CTL24. Refer to Chapter 4 for additional information. The default configuration is:
%Q bit offset 12: CTL09
%Q bit offset 13: CTL10
%Q bit offset 14: CTL11
%Q bit offset 15: CTL12
3.05
Abort All Moves. This command causes any motion in progress to halt at the current Jog
Acceleration rate and configured Jog Acceleration Mode. Therefore it is important to use a Jog
Acceleration that will provide deceleration in a satisfactory distance. Any pending
programmed or immediate command is canceled and therefore not allowed to become effective.
The abort condition is in effect as long as this command is on. If motion was in progress when
the command was received, the Moving status bit will remain set until the commanded velocity
reaches zero.
3.06
Feed Hold (On Transition). This command causes any motion programs in progress to
stop at the active program acceleration rate. The Feed Hold command does not stop motion
commanded by a master source in Follower Enabled Mode. Once the motion is stopped, the
Moving status bit is cleared and the In Zone status bit is set when the In Zone condition is
attained. Jog commands are allowed when in the Feed hold condition. After an ON transition,
program motion will stop, even if the command bit transitions back OFF before motion stops.
Feed Hold (Off Transition). This command causes any motion programs interrupted by
Feed Hold to resume at the programmed acceleration and velocity rate. Additional program
moves will then be processed and normal program execution will continue. Feed Hold OFF
behaves in a similar fashion to an Execute Program command except the path generation software
uses only the remaining distance in the program.
GFK-1742A
Chapter 5 Motion Mate DSM314 to PLC Interface
5-11
5
If jogging occurred while Feed Hold was ON, the interrupted Move command will resume from
where the axis was left after the Jog. The Move finishes at the correct programmed velocity and
continues to the original programmed position as if no jog displacement occurred.
5-12
3.07
Enable Drive / MCON. If the Module Error Present and Drive Enabled %I status bits are
cleared, this command will cause the Drive Enable relay contact to close and the Drive Enabled
%I bit to be set. When the Drive Enabled %I bit is set, the path generation and position control
functions are enabled and servo motion can be commanded. A signal will be sent (MCON) to the
digital servo enabling the drive. Enable Drive must be maintained ON to allow normal servo
motion (except when using Jog commands). If using the Force Analog Output immediate
command (see Section 4.06, “Force Analog Output”), the applicable Enable Drive signal must be
on to produce an analog output with this command.
3.08
Find Home. This command causes the DSM314 to establish the Home Position. A Home
Limit Switch Input from the I/O connector roughly indicates the reference position for Home, and
the next encoder marker encountered indicates the exact home position. When the Home Mode
axis configuration is set to MOVE+ or MOVE-, the Home Limit Switch input will be ignored.
For a Servo Axis, the configured Home Offset defines the location of Home Position as the offset
distance from the Home Marker. The Position Valid %I bit indication is set at the conclusion of
the Home Cycle. See Chapter 6 for additional Home Cycle information. See Appendix C for
absolute encoder information.
3.09
Jog Plus. When this command bit is ON, the axis moves in the positive direction at the
configured Jog Acceleration and Jog Velocity rates. Turning Jog Plus OFF causes the axis to
decelerate and stop. If Jog Plus is momentarily turned off, even for one PLC sweep, the axis will
decelerate to a stop then accelerate and continue jogging. The axis will move as long as the Jog
Plus command is maintained and the configured Positive End Of Travel software limit or Positive
Overtravel switch is not encountered. The Overtravel switch inputs can be disabled using the OT
Limit configuration parameter. Jog Plus may be used to jog off of the Negative Overtravel
switch if the Clear Error %Q bit is also maintained on. See Chapter 6, Non-Programmed
Motion, for more information on Jogging with the DSM314.
3.10
Jog Minus. When this command bit is ON, the axis moves in the negative direction at the
configured Jog Acceleration and Jog Velocity rates. Turning Jog Minus OFF causes the axis to
decelerate and stop. If Jog Minus is momentarily turned off, even for one PLC sweep, the axis
will decelerate to a stop then accelerate and continue jogging. The axis will move as long as the
Jog Minus command is maintained and the configured Negative End Of Travel software limit or
Negative Overtravel switch is not encountered. The Overtravel switch inputs can be disabled
using the OT Limit configuration parameter. Jog Minus may be used to jog off of the Positive
Overtravel switch if the Clear Error %Q bit is also maintained on. See Chapter 6, NonProgrammed Motion, for more information on Jogging with the DSM314.
3.11
Reset Strobe 1, 2 Flag. The Strobe n Flag %I status bit flag informs the PLC that a Strobe
Input has captured an axis position that is now stored in the associated Strobe n Position %AI
status word. When the PLC acknowledges this data, it may use the Reset Strobe n Flag %Q
command bit to clear the Strobe n Flag %I status bit flag. Once the Strobe n Flag %I bit is set,
additional Strobe Inputs will not cause new data to be captured. The flag must be cleared before
another Strobe Position will be captured. As long as the Reset Strobe n Flag %Q command bit is
set, the Strobe n Flag bit will be held in the cleared state. In this condition, the latest Strobe Input
position is reflected in the Strobe n Position status word, although the flag cannot be used by the
PLC to indicate when new data is present.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
DSM to PLC Interface
3.12
5
OUT1_A, B, C, D Output Control / Configurable CTL Bit Source. Each axis
connector has a 24-vdc solid state relay (SSR) output rated at 125 ma. The OUT1_A, OUT1_B,
OUT1_C and OUT1_D Output Control %Q bits can control the state of the associated output, but
only if the associated Output Bits configuration is set for PLC Control. Refer to Chapter 4 for
configuration information.
For each axis, the following connector terminals are assigned:
Faceplate
Connector
Pin
Auxiliary TB
IC693ACC336
Terminal
Servo TB
IC693ACC335
Terminal
OUT1 SSR (+) terminal
18
18
8
OUT1 SSR (-) terminal
36
36
16
These %Q bits are also available as sources for configurable CTL bits, independent of the Output
Bits configuration. Refer to Chapter 4 for information on configuring the CTL01-CTL24 bit
sources.
Note
The OUT_1A, B, C, D bits will not control the faceplate outputs unless the
associated Output Bits configuration is set for PLC Control. Refer to
Chapter 4 for configuration information.
3.13
OUT3_A, B, C, D Output Control / Configurable CTL Bit Source. Each axis
connector has a differential 5-vdc output that is suitable for driving 5v TTL or CMOS loads. The
OUT3_A, OUT3_B, OUT3_C and OUT3_D Output Control %Q bits control the state of the
associated output, but only if the associated Output Bits configuration is set for PLC Control.
Refer to Chapter 4 for configuration information.
For each axis the following connector terminals are assigned:
Faceplate
Connector
Pin
Auxiliary TB
IC693ACC336
Terminal
Servo TB
IC693ACC335
Terminal
OUT3 (+) terminal
14
14
5
OUT3 (-) terminal
32
32
13
Note
The OUT_3A, B, C, D bits will not control the faceplate outputs unless the
associated Output Bits configuration is set for PLC Control. Refer to
Chapter 4 for configuration information.
These %Q bits are also available as sources for configurable CTL bits, independent of the Output
Bits configuration. Refer to Chapter 4 for information on configuring the CTL01-CTL24 bit
sources.
GFK-1742A
Chapter 5 Motion Mate DSM314 to PLC Interface
5-13
5
5-14
3.14
Enable Follower. When this bit is set and the Follower Enabled %I status bit indicates the
Follower is enabled, motion commanded by the external or internal master will act as an input to
the follower loop. An optional Follower Trigger bit may be configured to initiate follower motion.
When a Follower Trigger is used, Enable Follower must be ON for the trigger condition to be
tested. Clearing Enable Follower disconnects the follower loop from the master source. Jog,
Move at Velocity, and Execute Program n commands will be allowed regardless of the state of
Enable Follower. When the Follower is enabled, Jog, Move at Velocity, or Execute Program n
commands will be superimposed on the master velocity or position command. Find Home is not
allowed unless Enable Follower is cleared. Refer to Chapter 8 for additional information. This
bit is only used by follower mode.
3.15
Select Follower Master Source. This bit switches the follower master axis source from
Follower Master Source 1 (bit OFF) to Follower Master Source 2 (bit ON). The Follower Master
sources are configurable as Commanded Position or Actual Position from any of the 4 axes.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
DSM to PLC Interface
5
Section 4: %AQ Immediate Commands
The following %AQ Immediate Command words are transferred each PLC sweep from the CPU
%AQ data to the DSM314. The number of %AQ words configured (6, 9, or 12) depends upon the
number of controlled axes configured. The actual addresses of the Immediate Command words
depend on the starting address configured for the %AQ words. See Table 4-1, “Settings Tab.”
The word offset numbers listed in the following table are offsets to this starting address. The
words are assigned as follows:
Table 5-6. %AQ Word Assignments
Word Offset
Description
Axis
00
01-02
Immediate Command Word
Command Data
Servo 1
Servo 1
03
04-05
Immediate Command Word
Command Data
Servo 2
Servo 2
06
07-08
Immediate Command Word
Command Data
Servo 3
Servo 3
09
10-11
Immediate Command Word
Command Data
Servo 4
Servo 4
Only one %AQ Immediate command may be sent to each axis of the DSM314 every PLC
sweep, the only exception being the Load Parameter Immediate command, which is axis
independent. The number of Load Parameter Immediate commands that can be sent in one sweep
depends upon the number of %AQ words configured (see Table 5-8 for details).
Even though the commands are sent each sweep, the DSM314 will act on a command ONLY if it
changed since the last sweep. When any of the 3 words change, the DSM314 will accept the data
as a new command and respond accordingly.
The Axis OK %I bit must be ON for an axis to accept a new %AQ Immediate Command.
Under some conditions such as a disconnected digital encoder, un-powered servo amplifier, or uncleared error, Axis OK will be OFF and the %AQ command processing for that axis will be
disabled. If Digital Servo Axis 1 or 2 is not used for motor control, the configured Motor Type
must be set to 0 or an error will be reported and Axis OK will stay OFF.
The 6-byte format for the Immediate Commands is defined in Table 5-7. The actual addresses of
the Immediate Command Words depend on the starting address configured for the %AQ
references. The word numbers listed in the following table are offsets to this starting address.
The word offsets are shown in reverse order and in hexadecimal to simplify the data entry. The
following example sends the Set Position command to axis 1. The first word, word 0, contains the
actual command number. For the Set Position command, the command number is 0023h. The
GFK-1742A
Chapter 5 Motion Mate DSM314 to PLC Interface
5-15
5
second and third words contain the data for the Set Position command that is a position. The
second word, word 1, is the least significant word of the position and the third word, word 2, is
the most significant word.
Example:
To set a position of 3,400,250, first convert the value to hexadecimal. 3,400,250 decimal equals
0033E23A hexadecimal. For this value, 0033 is the most significant word and E23A is the least
significant word. The data to be sent to the DSM314 would be:
Word 2
Word 1
Word 0
Command
0033
E23A
0023
Set Position 3,400,250
Setting up word 0 as a hexadecimal word and words 1 and 2 as a double integer in a VersaPro
Reference View Table Display will simplify immediate command entry.
The data limit values MaxPosnUu, MaxVelUu and MaxAccUu are computed as shown below:
Formulas for Computing Data Limit Variables
Position Limit MaxPosnUu
If uu:cts >= 1:1
MaxPosnUu = 536,870,912
Else (uu:cts < 1:1)
MaxPosnUu = 536,870,912 * uu/cts
5-16
Velocity Limit MaxVelUu
Acceleration Limit MaxAccUu
MaxVelUu = 1,000,000* uu/cts If uu:cts >= 1:1
MaxAccUu = 1,073,741,823
Else (uu:cts < 1:1)
MaxAccUu = 1,073,741,823* uu/cts
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
DSM to PLC Interface
5
In the following %AQ command table, only the word offsets for Servo Axis 1 are listed. Word
offsets for the other axes are computed by adding 3 (Servo Axis 2), 6 (Servo Axis 3), or 9 (Servo
Axis 4) to the listed word offsets. The Ref column numbers refer to sections in this chapter.
Table 5-7. %AQ Immediate Commands Using the 6-Byte Format
Word 2
Word 1
Word 0
Byte 5
Byte 4
Byte 3
Byte 2
Byte 1
Byte 0
xx
xx
xx
xx
00
00h
Null
4.01
xx
xx
xx
RO%
00
20h
Rate Override
RO% = 0 ...120%
4.02
xx
xx
*
Incr
00
21h
Position Increment Without Position Update
Incr. = -128 ... +127 User Units
4.03
Velocity
00
22h
Move At Velocity
Vel. = -MaxVelUu … +MaxVelUu
4.04
Position
00
23h
Set Position
Pos. = -MaxPosnUu ... + MaxPosnUu-1
4.05
00
24h
Force Analog Output
Analog Output = -32,000 ... + 32,000
4.06
4.07
Analog Output
Immediate Command Definition
Ref
xx
xx
xx
xx
*
Incr.
00
25h
Position Increment With Position Update
xx
xx
xx
In Posn
Zone
00
26h
In Position Zone
Range = 0 ... 255
4.08
Move
Type
27h
Move Command
Pos. = -MaxPosnUu ... + MaxPosnUu-1
Par # = 0 ... 255
4.09
Velocity
00
28h
Jog Velocity
Vel. = +1 … +MaxVelUu
4.10
Acceleration
00
29h
Jog Acceleration
Acc. = +1 ... + MaxAccUu
4.11
xx
00
2Ah
Position Loop Time Constant
Time Constant = 0 - 65535 (0.1 ms units)
4.12
Incr. = -128 ... +127 User Units
Position or Parameter #
xx
Time Constant
(0.1 ms units)
xx
xx
VFF (0.01% units)
00
2Bh
Velocity Feedforward
VFF = 0 ... 12000 (0.01% units)
4.13
xx
xx
Integr. TC
00
2Ch
Integrator Time Constant
4.14
Time Constant = 0, 10 ... 10,000 ms
Ratio B
Ratio A
00
2Dh
Follower A/B Ratio
4.15
Ratio A = –32,768 … +32,767
Ratio B = +1 ... +32,767
GFK-1742A
xx
xx
xx
VLGN
xx
xx
Torque Limit
(0.01% units)
00
2Eh
Velocity Loop Gain (Digital mode only)
VLGN = 0 ... 255
4.16
00
2Fh
Torque Limit (Digital mode only)
Range = 0-10000 (0.01% units)
4.17
Chapter 5 Motion Mate DSM314 to PLC Interface
5-17
5
Table 5-7. - Continued - %AQ Immediate Commands Using the 6-Byte Format
Word 2
Word 1
Byte 5 Byte 4
Byte 3
Word 0
Byte 2
xx
Immediate Command Definition
Ref
00
31h
Set Aux Encoder Position
Pos. = -MaxPosnUu ... + MaxPosnUu-1
4.18
Digital Servo
Velocity Cmd
00
34h
Force Digital Servo Velocity
4.19
Position
xx
Byte 1 Byte 0
Servo Velocity Cmd = -4,095 ... +4,095 RPM
xx
xx
Offset
Mode
40h
Select Return Data 1
4.20
xx
xx
Offset
Mode
41h
Select Return Data 2
4.21
xx
xx
Make-Up Time
00
42h
Follower Ramp Distance Make-Up Time
4.22
Active Range = 0, 10 ... 32000 ms
xx
xx
xx
xx
Mode
xx
xx
Parameter Data
Axis
47h
Select Analog Output Mode (Digital mode only)
4.23
00
49h
Clear New Configuration Received
4.24
Par #h
50h
Load Parameter Immediate
Par # = 0 ... 255
Parameter Data = Range depends on parameter
usage.
4.25
* = Only 00 or FFh are acceptable.
xx = don’t care
4.01
Null. This is the default %AQ Immediate command. Since the %AQ words are automatically
transferred each PLC sweep, the Null command should always be used to avoid inadvertent
execution of another %AQ Immediate command.
4.02
Rate Override. This command immediately changes the % feedrate override value, which will
modify the commanded velocity for all subsequent programmed moves. This new value will
become effective immediately when received by the DSM314. It is stored and will remain
effective until overwritten by a different value. A rate override has no effect on non-programmed
motion or acceleration. Rate Override is set to 100% whenever a program is initiated. The Rate
Override command can be sent on the same PLC sweep as an Execute Program %Q bit and the
Override value will immediately take effect. Rate Override can be used to adjust the programmed
velocity (not acceleration) of a particular move or a set of moves on any given axis.
4.03
Position Increment Without Position Update. (User units) This command offsets the
axis position from -128 to +127 user units without updating the Actual Position or Commanded
Position. The DSM314 will immediately move the axis by the increment commanded if the servo
is enabled. Position Increments can be used to make minor machine position corrections to
compensate for changing actual conditions. See Chapter 6, Non-Programmed Motion, for more
information on Position Increment Commands with the DSM314.
4.04
Move At Velocity. (User units/sec) This command is executed from the PLC to move the axis
at a constant velocity. The active Jog Acceleration rate and configured Jog Acceleration Mode
are used for Move at Velocity commands. Axis actual position data will roll over at the
configured Hi or Lo Limit when reached during these moves. See Chapter 6, Non-Programmed
Motion, for more information on the Move at Velocity Command.
5-18
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
5
DSM to PLC Interface
4.05
Set Position. (User units) This command changes the axis position register values without
moving the axis. Operation of the command depends on the axis configuration:
Servo Axis - The Commanded Position and Actual Position values will both be changed so that
no motion command will be generated. The Actual Position will be set to the value designated
and the Commanded Position will be set to the value + Position Error. Set Position cannot be
performed when the Moving %I bit or the Program Active %I bit is ON. Set Position is allowed if
the In Zone %I bit is OFF as long as Actual Velocity is ≤ 100 cts/sec. The position value must be
within the End of Travel Limits and Count Limits or a status error will be reported. The Position
Valid %I bit is set after a successful Set Position command. See Appendix C for considerations
when using absolute mode encoders. The Set Position command is commonly used to set the
starting position reference point to zero (or another value) without homing the axis.
Aux Axis - Commanded Position is set to the command data. For an Aux Axis, Actual Position
is independent of Commanded Position and is not affected by Set Position. Refer to paragraph
4.18 Set Aux Encoder Position to set Actual Position for an Aux axis encoder. Set Position
cannot be performed when the Moving %I bit or the Program Active %I bit is ON. The position
value must be within the End of Travel Limits or a status error will be reported.
Note
When a GE Fanuc digital servo system with absolute encoder (Feedback Mode
= Absolute) is first powered up after removal or replacement of the encoder
battery, the encoder must be rotated past its internal reference point. If this is
not done the Set Position command will be ignored and Error Code 53h (Set
Position before encoder passes reference point) will be reported.
4.06
Force Analog Output. Each axis connector supports one analog output signal. The Force
Analog Output immediate command may be used in the PLC application program to set the value
of this DC voltage output. The Force Analog Output command operates one of the analog outputs
on DSM faceplate connector C or D in Digital mode, or in Analog mode, on connector A, B, C, or
D. Multiple Force Analog Output commands can be used to operate outputs on different
connectors by using the appropriate %AQ word offsets (see the paragraph before Table 5-7). A
Force Analog Output command has a range of +32000 (+10.00 Vdc) to -32000 (-10.00 Vdc).
It is necessary to enable the applicable %Q “Enable Drive” bit (there is one for each axis) to
activate the analog output value set by this command. Note: This differs from IC693DSM302
functionality.
There are two requirements to sustain the forced analog output voltage: (1) the Force Analog
Output command and value must remain continuously in the %AQ data, and (2) the associated
%Q “Enable Drive” bit must be on. The %Q “Enable Drive” bit can be used to switch the analog
output voltage on and off.
When a Force Analog Output command is active for a given axis, any other %AQ immediate
command for that axis will remove the Force Analog Output command and turn off the associated
analog output.
There are some differences between the Digital and Analog Axis Modes when using this
command, which are detailed below:
GFK-1742A
Chapter 5 Motion Mate DSM314 to PLC Interface
5-19
5
Digital Mode
•
The Force Analog Output command can only be used on connectors C and D in Digital mode
(in Digital mode, both Axis 1 and Axis 2, on connectors A and B respectively, must be
digital). In fact, Force Analog Output is the default signal on connectors C and D in Digital
mode.
•
If Axes 1 and 2 (connectors A and B) are configured for digital servo, their analog outputs
are used only for servo tuning, and this function cannot be overriden by the Force Analog
Output command. Issuing a Force Analog Output command to a digital axis (connector A or
B) will have no affect, and no error will be reported.
•
In Digital mode, a Force Analog Output signal can be overridden if another signal is routed
to connector C or D by the Select Analog Output Mode command. If the default Force
Analog Output command has been overriden on connectors C or D, it can be reinstated by
either (1) issuing the immediate command Select Analog Output (Signal Code 00) to each
affected axis or (2) power cycling the DSM314. See Section 4.25, “Select Analog Output
Mode.”
Force Analog Output (Digital Mode) Example
In this example, Axes 1 and 2 are configured as Digital, the beginning DSM314 %Q address is
configured as %Q1, and the beginning %AQ address is configured as %AQ1. Connectors C and
D are set at their default analog output condition (Force Analog Output).
To force an analog output of +5VDC on connector D, the Force Analog Output immediate
command will be issued in the ladder logic program. Since the first %AQ word was configured as
%AQ1, the three words that apply to Connector D (“Axis 4”), are %AQ10, %AQ11, and %AQ12
(see the paragraph above Table 5-7 for details). Since %Q1 was configured as the first %Q bit,
the Enable Drive (Servo 4) bit for Axis 4 is %Q67 (see Table 5-5, “%Q Discrete Commands”).
So the following values must be moved into the applicable words, using Move instructions in
ladder logic (using a WORD type Move instruction makes it easier to move a hex number):
•
%AQ10
Set to 24h (which specifies the Force Analog Output command)
•
%AQ11
Set to +16000 (which equals +5VDC)
•
%AQ12
Set to 0 (this word is not used to convey significant data)
Additionally, the %Q67 bit (Enable Drive) must be set to logic 1.
MOVE
WORD
%AQ10
0024
IN
OUT
LEN
00001
5-20
MOVE
INT
+16000
MOVE
INT
%AQ11
IN
OUT
LEN
00001
%AQ12
+00000
OUT
IN
LEN
00001
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
5
DSM to PLC Interface
Analog Mode
4.07
•
In Analog mode, the Force Analog Output command can be used on all four connectors to
force a voltage output.
•
The Select Analog Output command, discussed in the “Digital Mode” section above, does not
work in Analog mode.
Position Increment with Position Update. (User units) This command is similar to the
Position Increment Without Position Update command (#21h) except that Actual Position and
Commanded Position (returned in %AI data) are both updated by the increment value. If the
servo is enabled, the DSM314 will immediately move the axis by the increment value. Position
Increments can be used to make minor machine position corrections to compensate for changing
actual conditions. See Chapter 6, Non-Programmed Motion, for more information on Position
Increment Commands with the DSM314.
4.08
In Position Zone. (User Units) This command can be used to set the active In Position Zone
to a value different than the configured value.
The DSM314 compares In Position Zone to the Position Error in order to control the In Zone %I
bit. When the Position Error is ≤ In Position Zone, the In Zone %I bit is ON.
If the DSM314 is power cycled or the PLC CPU is reset for any reason, the value set by this
command will be lost and the In Position zone value set by configuration software will be
reinstated.
4.09
Move Command. This command will produce a single move profile that will move the axis
to the position commanded each time it is sent. The current Jog Acceleration and Jog Velocity
(which can also be changed by %AQ commands) will be used for the move. A PMOVE command
does not complete (Program Active %I bit turns OFF) until Commanded Position has reached the
destination and the In Zone %I bit is on. A CMOVE command completes (Program Active %I bit
turns off) whenever Commanded Position reaches the destination even if In Zone is OFF.
Therefore a CMOVE will complete even if Actual Position has not yet reached the CMOVE
destination. The Program Active %I bit can be monitored to determine when an AQ Move
command is active.
The data field for this command may contain the move position or distance in bytes 2-5 with the
command type (in hexadecimal format) as defined below:
GFK-1742A
Chapter 5 Motion Mate DSM314 to PLC Interface
5-21
5
Move Type (byte 1):
00h = Abs, Pmove, Linear
01h = Abs, Cmove, Linear
10h = Abs, Pmove, Scurve
11h = Abs, Cmove, Scurve
40h = Inc, Pmove, Linear
41h = Inc, Cmove, Linear
50h = Inc, Pmove, Scurve
51h = Inc, Cmove, Scurve
The data field for this command may contain a parameter number in byte 2 (bytes 3-5 unused)
with the command type as defined below:
Move Type (byte 1):
80h = Abs, Pmove, Linear
81h = Abs, Cmove, Linear
90h = Abs, Pmove, Scurve
91h = Abs, Cmove, Scurve
C0h = Inc, Pmove, Linear
C1h = Inc, Cmove, Linear
D0h = Inc, Pmove, Scurve
D1h = Inc, Cmove, Scurve
The Move Command is executed as a single move motion program. Therefore all the restrictions
that apply to motion program execution also apply to the Move Command. For example, if a
program is already active for axis 1, then an attempt to send this command for axis 1 will result in
an error condition being reported.
4.10
Jog Velocity. (User units/sec) This command sets the velocity used when a Jog %Q bit is used
to jog in the positive or negative direction. Jog Velocity is used by motion programs when no
Velocity command is included in the program. Jog Velocity is always used by the %AQ Move
Command (27h). A PLC reset or power cycle returns this value to the configured data.
4.11
Jog Acceleration. (User units/sec/sec) This command sets the acceleration value used by
Jog, Find Home, Move at Velocity, Abort All Moves and Normal Stop operations. A Normal
Stop occurs when the PLC switches from Run to Stop or after certain programming errors (refer
to Appendix A). Jog Acceleration is used by motion programs when no Acceleration command is
included in the program. Jog Acceleration is always used by the %AQ Move Command (27h). A
PLC reset or power cycle returns this value to the configured data.
Note: A minimum value after scaling is used in the DSM314. This value is determined by the
rule: Jog Acc * (user units/counts) >= 32 counts/sec/sec.
4.12
Position Loop Time Constant. (0.1 Milliseconds) This command allows the servo
position loop time constant to be changed from the configured value. The lower the Position Loop
Time Constant value, the faster the system response. Values that are too low will cause system
instability and oscillation. For accurate tracking of the commanded velocity profile, the Position
Loop Time Constant should be 1/4 to 1/2 of the MINIMUM system acceleration or deceleration
5-22
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
5
DSM to PLC Interface
time. For Analog mode, the “Vel at Max Cmd” configuration value must be set correctly for
proper operation of the Position Loop Time Constant. A PLC reset or power cycle returns this
value to the configured data.
4.13
Velocity Feedforward. This command sets the Velocity Feedforward gain (0.01 percent).
It is the percentage of Commanded Velocity that is added to the DSM314 velocity command
output. Increasing Velocity Feedforward causes the servo to operate with faster response and
reduced position error. Optimum Velocity Feedforward values are 90-100 %. For analog servos,
the “Vel at Max Cmd” configuration value must be set correctly for proper operation of the
Velocity Feedforward gain factor. A PLC reset or power cycle returns this value to the
configured data.
4.14
Integrator Time Constant. (Milliseconds) This command sets the Integrator Time
Constant for the position error integrator. The value specifies the amount of time in which 63%
of the Position Error will be removed. The Integrator Time Constant should be 5 to 10 times
greater than the Position Loop Time Constant to prevent instability and oscillation. It is
recommended that the position error integrator only be used in continuous follower
applications. Use of the integrator in point to point positioning applications may result in
position overshoot when stopping.
4.15
Follower A/B Ratio. This command allows the PLC to update the slave : master A/B ratio
used in each follower loop. “A” is a 16-bit signed integer with a minimum value of -32,768 and a
maximum value of +32,767. “B” is a 16-bit integer with a minimum value of 1 and a maximum
value of 32,767. The magnitude of the A/B ratio must be in the range 32:1 to 1:10,000 or a status
error will be generated. Refer to Chapter 8 for additional information about the A/B ratio.
4.16
Velocity Loop Gain. (VLGN) Digital Mode only. The velocity control loop gain for a GE
Fanuc digital servo axis may be set with the Velocity Loop Gain command. The VLGN value is
used to match the load inertia (JL) to the motor inertia (JM). VLGN is defined with a default
value of 16 representing an inertia ratio of 1 to 1. The VLGN value is calculated assuming that
the load is rigidly applied to the motor. Therefore, in actual machine adjustment the required
value may significantly differ from the calculated value due to rigidity, friction, backlash, and
other factors. A PLC reset or power cycle returns VLGN to the value set in the configuration
software. A suggested starting point for Velocity Loop Gain is:
Load Inertia (JL)
Velocity Loop Gain =
x 16
Motor Inertia (JM)
The allowed range of Velocity Loop Gain is 0 to 255.
For example: The motor inertia (JM) of a particular servo is 0.10 lb-in-s2. The load inertia (JL) in
this application is 0.05 lb-in-s2. VLGN = (0.05 / 0.10) * 16 = 8
The default Velocity Loop Gain is set using the Velocity Loop Gain setting in the VersaPro
Configuration Software.
Caution
An incorrect VLGN value may cause an axis to be unstable. Care should be
used when making any change to the VLGN value.
GFK-1742A
Chapter 5 Motion Mate DSM314 to PLC Interface
5-23
5
4.17
Torque Limit. (0.01 percent) Digital Mode only. The Torque Limit Command provides a
method of limiting the torque produced by the GE Fanuc servomotor. The DSM314 will set the
Torque Limit at the default 10000 (100 %) whenever a power cycle or reset occurs. The PLC
application logic must set any other value for desired Torque Limit. The valid range for Torque
Limit is 0 to 10000 in units of 0.01%. This represents 0 - 100 % of peak torque at commanded
velocity. If an over-range value of 10001 - 65535 is sent, the torque limit will be set to 10000.
Torque Limit can be changed during axis motion and takes effect immediately. Refer to the
appropriate servo motor manual for the motor torque curve to determine the actual value of torque
output available at a given velocity. A simple example would be the use of Torque Limit to
prevent over-tightening on a machine.
4.18
Set Aux Encoder Position. (User Units) This command sets the Actual Position value for
an Aux Axis Encoder without using a Find Home operation. The Position Valid %I bit for the
Aux Axis will be set when the command is received.
4.19
Force Digital Servo Velocity. (RPM) Digital Mode only. This command bypasses the
position loop and forces a velocity command to the digital servo for tuning purposes. Acceleration
control is not used and changes in velocity take effect immediately. A Force Digital Servo
Velocity command value of +4095 will produce a motor velocity of + 4,095 RPM and -4095 will
produce a motor velocity of -4,095 RPM (depending on individual motor maximum velocities).
The digital servo control loops may limit actual motor speed to a lower value. Care should be
taken not to operate a servomotor past the rated duty cycle.
The Enable Drive %Q bit must be active with no other motion commanded for the Force Digital
Servo Velocity command to operate. The command must remain continuously in the %AQ data
for proper operation. When a Force Digital Servo Velocity command is active for a given axis, any
other %AQ immediate command for that axis will remove the Force Digital Servo Velocity data
and halt the servo. Chapter 6, Non-Programmed Motion, also contains information on Force
Digital Servo Velocity.
4.20
Select Return Data 1. This command allows alternate data to be reported in the User
Selected Data 1 %AI location for each axis. The alternate data includes information such as
Parameter memory contents and the DSM314 Firmware Revision.
The Select Return Data 1 command uses a mode selection and an offset selection. The mode
selection (byte offset +1 of the six byte command) determines the Return Data type. The offset
selection (byte offsets +2, +3 of six-byte command) selects an individual data item for some
modes. Setting the mode to 00h causes the default Torque Command to be reported. The default
mode and offset for User Selected Data 1 can be set in the module configuration software.
4.21
Select Return Data 2. This command allows alternate data to be reported in the User
Selected Data 2 %AI location for each axis. The alternate data includes information such as
Parameter memory contents and the DSM314 Firmware Revision.
The Select Return Data 2 command uses a mode selection and an offset selection. The mode
selection (byte offset +1 of the six byte command) determines the Return Data type. The offset
selection (byte offsets +2, +3 of six-byte command) selects an individual data item for some
modes. Setting the mode to 00h causes the default Torque Command to be reported. The default
mode and offset for User Selected Data 2 can be set in the module configuration software.
The following selections are allowed for Select Return Data 1 and Select Return Data 2:
5-24
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
5
DSM to PLC Interface
Digital Analog
Selected Return Data
Data Mode
Data Offset
Y
N
Torque Command
00h
not used
Y
Y
DSM Firmware Revision
10h
not used
Y
Y
11h
not used
Y
N
DSM Firmware Build ID No.
(hex)
Absolute Feedback Offset (cts)
17h
not used
Y
Y
Parameter Data
18h
Parameter Number (0–255)
Y
Y
CTL bits 1-32
19h
not used
Y
Y
Analog Inputs - Axis 1
1Ch
not used
Y
Y
Analog Inputs - Axis 2
1Dh
not used
Y
Y
Analog Inputs - Aux 3
1Eh
not used
Y
Y
Analog Inputs - Aux 4
1Fh
not used
Y
Y
Commanded Position (user units)
20h
not used
Y
Y
21h
not used
Y
Y
Follower Program Command
Position (cts)
Unadjusted Actual Position (cts)
28h
not used
Y
Y
Unadjusted Strobe 1 Position (cts)
29h
not used
Y
Y
Unadjusted Strobe 2 Position (cts)
2Ah
not used
Torque Command is scaled so that +/- 10000 = +/- 100% torque.
DSM Firmware Revision is interpreted as two separate words for major-minor revision codes.
DSM Firmware Build ID is interpreted as a single hex word.
Absolute Feedback Offset is the position offset (in counts) that is used to initialize Actual
Position when a GE Fanuc digital Absolute Encoder is used. Actual Position = Absolute Encoder
Data + Absolute Feedback Offset.
Analog Inputs provides two words of data for each axis: low word = AIN1 and high word =
AIN2. The data is scaled so that +/- 32000 = +/- 10.0v.
Commanded Position (user units) is a copy of the Commanded Position %AI data reported for
each axis. Refer to paragraph 2.04 in Chapter 5.
Follower Program Command Position (cts) is the active commanded position (in feedback
counts) updated and used by the internal motion command generator. Refer to Chapter 9 Combined Follower and Commanded Motion.
Unadjusted Actual Position is the accumulated actual position (in counts, not user units) with a
32 bit binary rollover value of -2,147,483,648 … +2,147,483,647.
Unadjusted Strobe 1 Position is the value of Unadjusted Actual Position captured when a Strobe
1 input occurs.
Unadjusted Strobe 2 Position is the value of Unadjusted Actual Position captured when a Strobe
2 input occurs.
At least three PLC sweeps or 10 milliseconds (whichever represents more time) must elapse
before the new Selected Return Data is available in the PLC.
GFK-1742A
Chapter 5 Motion Mate DSM314 to PLC Interface
5-25
5
4.22
Follower Ramp Distance Make-Up Time. When the Follower Ramp feature has been
selected and the follower is enabled, the following axis is ramped up to the Master velocity at the
configured Follower Ramp Acceleration rate when the Master Velocity is non-zero at the time
the Follower is enabled. The master counts that accumulate during acceleration of the follower
axis are stored. In this mode, the follower axis will accelerate to a velocity that exceeds the
Master Velocity in order to make up the position error that accumulated while the Follower axis
was accelerating to the Master Velocity. This make-up distance correction has a trapezoidal
velocity profile determined by the Follower Ramp Distance Make-Up Time and Ramp Makeup
Acceleration at the beginning of the correction. This mode is used when the Follower axis must
be position-and-velocity-synchronized to the Master position at the instant the Follower mode was
enabled.
If the Follower Ramp Distance Make-Up Time is too short then the velocity profile is a
triangular profile. If during the distance correction, velocity exceeds 80% of the velocity limit,
then the automatically calculated velocity will be clamped at 80% of the configured velocity limit.
In both cases a warning message is reported and the real distance make-up time is longer than
programmed, but the distance is still corrected properly.
Setting a Follower Ramp Distance Make-Up Time of 0 allows the Ramp feature to accelerate the
axis without making up any of the accumulated counts. In this instance, the Follower axis velocity
will not exceed the master velocity. For applications where the Follower axis only needs to be
synchronized to the master velocity and lost counts do not matter, set the distance make-up time =
0.
Typical velocity profile during the follower ramp cycle is shown below.
m a s te r ve lo c ity
M ake-up
distance
V elocity
F ollower
D isabled
M ake-U p T im e
0
T im e
V e lo c ity -tim e P ro file
(F o llo w e r E n a b le d a t t= 0 )
See Chapter 8, “Follower Motion, Follower Axis Acceleration Ramp Control” section, for a much
more detailed discussion of this feature.
4.23
Select Analog Output Mode. Digital Mode only. For GE Fanuc digital servos, this
command lets you choose what analog signals will be sent to the Analog Output pins (pins 6 and 24) on
the four DSM faceplate connectors. The Select Analog Output Mode command uses a Signal Code to
specify the signal to be sent, and a Connector Code to specify the DSM connector to receive the signal.
This command is particularly useful for servo tuning. This command can be sent from the Command
registers for any axis (1-4).
Use the following structure to set up the 6-byte %AQ Immediate Command (described in Table 5-7):
•
5-26
Byte 0 contains the Select Analog Output Mode command code (47h).
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
DSM to PLC Interface
•
Byte 1 contains the Connector Code, a hex number.
•
Bytes 2-3 contain the Signal Code, a decimal number.
•
Bytes 4-5 are not used and should contain 0.
5
Connector Codes
Connector Code
Connector Selected
01h
Connector A
02h
Connector B
03h
Connector C
04h
Connector D
Connector Pins
Pin 6 = OUT
Pin 24 = COM (Ref. to 0V)
Refer to the I/O Connection
Diagrams in Chapter 3 for
Terminal Board connections.
Signal Codes
Note in the following Signal Code table that only some of the signals have a default output.
Default Output to:
Signal Code
Signal Description
00 decimal*
%AQ Force Analog Output data*
Connector C or D
10 decimal
Servo Axis 1 Torque Command
None
15 decimal
Servo Axis 1 Actual Velocity
Connector A
20 decimal
Servo Axis 2 Torque Command
None
25 decimal
Servo Axis 2 Actual Velocity
Connector B
* Cannot be re-routed. This signal code can only be used to restore this signal back to its default output.
Note
The analog output is not available for user control on digitally controlled axes.
Issuing the Force Analog Output or the Select Analog Output commands for
digital axes will have no effect on these analog outputs.
The Select Analog Output Mode has three basic uses:
(1) Re-route either Servo Axis 1 Actual Velocity or Servo Axis 2 Actual Velocity from its default
output to a different output. The %AQ Force Analog Output data signal cannot be re-routed
to a different connector; however, it can be replaced on its default output connector (C or D)
by another signal that is routed there by the Select Analog Output Mode command.
(2) Route one of the two signals lacking a default output, Servo Axis 1 Torque Command and
Servo Axis 2 Torque Command, to one of the outputs, thus replacing the previous signal on
that output. This is shown in Example 2, below.
(3) Restore signals with default outputs that were replaced by a re-routed signal. In Example 2,
the %AQ Force Analog Output signal, which is normally found on Connector D by default, is
replaced by the Servo Axis 1 Torque Command signal that was routed to connector D by the
Select Analog Output Mode command. In Example 3, the %AQ Force Analog Output signal
is restored to Connector D by using the Select Analog Output Mode command.
GFK-1742A
Chapter 5 Motion Mate DSM314 to PLC Interface
5-27
5
Example 1:
In this example, the Servo Axis 1 Actual Velocity signal (Signal Code=15) is re-routed from its
default output on Connector A to Connector B (Connector Code=02h), replacing any previous
signal on Connector B. This is accomplished by placing the following data in the %AQ
immediate command words:
Word 2
Word 1
Word 0
(Byte 5 and Byte 4)
(Byte 3 and Byte 2)
(Byte 1 and Byte 0)
+00000
+00015
0247h
Signal Code (15) Target Connector
Code (02h)
Select Analog Output Mode
Command Code (47h)
Example 2:
In this example, the Servo Axis 1 Torque Command signal (Signal Code=10) is selected as the
Analog Output on Connector D (Connector Code=04h), replacing any previous signal on
Connector D. To accomplish this, place the following data in the %AQ immediate command
words:
Word 2
Word 1
Word 0
(Byte 5 and Byte 4)
(Byte 3 and Byte 2)
(Byte 1 and Byte 0)
+00000
+00010
0447h
Signal Code (10) Target Connector
Code (04h)
Select Analog Output Mode
Command Code (47h)
Example 3:
In Example 2, the %AQ Force Analog Output default signal was replaced as the Analog Output
on Connector D by the Servo Axis 1 Torque Command signal. To restore the %AQ Force Analog
Output signal (Signal Code=00) to Connector D (Connector Code=04h), place the following data
in the %AQ immediate command words:
Word 2
Word 1
Word 0
(Byte 5 and Byte 4)
(Byte 3 and Byte 2)
(Byte 1 and Byte 0)
+00000
+00000
0447h
Signal Code (00) Target Connector
Code (04h)
5-28
Select Analog Output Mode
Command Code (47h)
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
5
DSM to PLC Interface
4.24
Clear New Configuration Received. This command clears the New Configuration
Received %I bit. Once cleared, the Configuration Complete bit is only set when the PLC resets or
reconfigures the module. The PLC can monitor the bit to determine if it must re-send other %AQ
commands, such as In Position Zone or Jog Acceleration. This would only be necessary if the
%AQ commands were used to override DSM314 configuration data programmed with the PLC
configuration software. This command can be sent from the Command registers for any axis (1-4).
4.25
Load Parameter Immediate. This command is executed from the PLC to immediately
change a DSM314 data parameter value. It can be sent from the Command registers for any axis
(1-4). Data parameters are only used by motion programs. A command for each parameter
change is required. Byte 1 of Word 0 contains the Parameter Number (in hexadecimal format) to
be changed. The DSM314 contains 256 double word parameters, numbered 0-255 (decimal). See
the Chapter 7 section “Parameters (P0-P255) in the DSM314” for details.
Table 5-8. Number of Load Parameter Immediate Commands Permitted per Sweep
Number of
Number of
Axes
%AQ Words
Configured
GFK-1742A
Number of Load Parameter
Immediate Commands
Permitted per Sweep
2
6
2
3
9
3
4
12
4
Chapter 5 Motion Mate DSM314 to PLC Interface
5-29
Chapter
Non-Programmed Motion
6
The DSM314 can generate motion in an axis in one of several ways without using a motion
program.
„
„
Find Home and Jog Plus/Minus use the %Q bits to command motion.
Move at Velocity, Move, Force Digital Servo Velocity, Force Analog Output, and Position
Increment use %AQ immediate commands.
During Jog, Find Home, Move at Velocity, Move and Force Digital Servo Velocity, any other
commanded motion, programmed or non-programmed, will generate an error. The only
exception is the Position Increment %AQ command, which can be commanded any time. See the
description of Position Increment motion below for more details.
Non-programmed motions (Abort All Moves, Jog Plus/Minus, Move at Velocity, AQ Move Cmd
and Normal Stop) use the Jog Acceleration and Jog Acceleration Mode. The Feed Hold %Q
command uses the programmed acceleration and acceleration mode.
DSM314 Home Cycle
A home cycle can be used to establish a correct Actual Position relative to a machine reference
point. The configured Home Offset defines the location of Home Position as the offset distance
from the Home Marker.
The Enable Drive %Q bit must be ON during an entire home cycle. However, the Find Home %Q
bit does not need to be held ON during the cycle; it may be turned on momentarily with a oneshot. Note that turning ON the Find Home %Q bit immediately turns OFF the Position Valid %I
bit until the end of the home cycle. The Abort All Moves %Q bit halts a home cycle, but the
Position Valid bit does not turn back ON. No motion programs can be executed unless the
Position Valid bit is ON.
Home Switch Mode
If the Find Home Mode is configured as HOMESW (HOME Switch), the Home Switch input
from the axis I/O connector is used first to roughly indicate the reference position for home.
Then, the next encoder marker encountered when traveling in the negative direction indicates the
exact location. An open Home Switch input indicates the servo is on the positive side of the home
switch and a closed Home Switch input indicates the axis is on the negative side of the home
GFK-1742A
6-1
6
switch. An OFF to ON transition of the Find Home %Q command yields the following home
cycle. Unless otherwise specified, acceleration is at the current Jog Acceleration and configured
Jog Acceleration Mode.
Find Home Routine for Home Switch
If initiated from a position on the positive side of the home switch, in which case the home switch
must be OPEN (Logic 0), the Find Home routine starts with step 1 below. (All of the first several
steps of the following routine are necessary to allow for a variety of possible home switch designs
and starting positions.) If the Find Home routine is initiated from a position on the negative side
of the home switch, in which case the home switch must be CLOSED (Logic 1), the routine starts
with step 3 below.
1.
The axis is moved in the negative direction at the configured Find Home Velocity until the
Home Switch input closes.
2.
The axis decelerates and stops.
3.
The axis is accelerated in the positive direction and moved at the configured Find Home
Velocity until the Home Switch input opens.
4.
The axis decelerates and stops.
5.
The axis is accelerated in the negative direction and moved at the configured Final Home
Velocity until the Home Switch input closes.
6.
The axis continues negative motion at the configured Final Home Velocity until a marker
pulse is sensed. The marker establishes the home reference position.
7.
The axis decelerates and stops (at a position past the marker pulse).
8.
The axis is moved, at the current Jog Velocity, the number of user units specified by the
Home Offset value from the home reference position. If Home Offset = 0, the axis moves
back to the position of the marker pulse.
9.
The axis decelerates and stops.
10. The DSM314 sets the Commanded Position and Actual Position %AI status words to the
configured Home Position value. Finally, the DSM314 sets the Position Valid %I bit to
indicate the home cycle is complete.
Home Switch Example
Many different home switch designs are possible. The switch may be normally open or normally
closed, and may be mounted in one of several possible locations. The example given in this
section illustrates a fairly common arrangement used for linear axes. In the following picture, the
home switch is a normally open proximity switch, mounted near the end of the machine slide’s
travel range (in the negative direction). The imaginary line that divides the home switch’s
positive and negative sides is the home switch’s operating point, located approximately on the
switch’s centerline. If the machine slide travels in the negative direction far enough so that the
right-hand edge of the home switch cam causes the home switch to close, we consider the machine
slide as having crossed over to the “negative side” of the home switch. The home switch cam is
long enough so that while the machine slide is on the negative side of the home switch, it will
keep the normally open home switch closed.
Note the relationships of the home position, the negative overtravel position, and the positive stop
position. A small amount of distance is provided in the negative direction between the home
position and the negative overtravel position. This is to allow some “working room” for
6-2
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
6
Non-Programmed Motion
adjustment and setup of these positions and for the “find home” routine, which requires that its
final move be in the negative direction.
Distance is also provided between the overtravel limit position and the positive stop. Enough
distance should be allowed here to prevent the machine slide from hitting the positive stop. The
correct distance needs to be greater than the worst-case stopping distance required by the machine
slide after it reaches the overtravel limit position.
In this example, the machine slide’s working range is on the positive side of the home switch. If
the DSM’s Home Position parameter was set to 0, this would simplify programming absolute
positioning commands since only positive numbers would be used.
Often, the home position needs to be set to an exact distance from a reference point on the
machine. To facilitate this adjustment, the home switch cam could be made with slotted mounting
holes that would allow a coarse adjustment of the cam to bring the calibration to within one turn
of the encoder. Then, the small remaining distance would be accurately measured and the value
obtained would be entered into the DSM’s Home Offset parameter.
+
Direction
-
Positive
Stop
Machine Slide
Machine
Frame
Home Switch Cam
Home Switch
Home Position
Negative Overtravel Position
45741.cvs
Figure 6-1. Home Switch Example
Move+ and Move– Modes
If Find Home Mode is configured as MOVE+ or MOVE–, the first encoder marker pulse
encountered when moving in the appropriate direction (positive for MOVE+, negative for
MOVE–) after the find home command is given is used to establish the exact location. In this
mode, the operator usually jogs the axis to a position close (within one revolution of the encoder)
GFK-1742A
Chapter 6 Non-Programmed Motion
6-3
6
to the home position first, then initiates the find home command. To assist the operator in
jogging to the correct position, a set of alignment marks indicating a close proximity to the home
position is sometimes placed on the machine and machine axis.
Move – (Minus) Home Cycle Example
The next picture shows an example of the Home Position parameter set to Move – (minus). In
this example, the operator jogs the axis until the moveable mark on the machine slide lines up
with the stationary mark on the alignment plate mounted to the machine frame. (Note that the
marks align on the positive side of home position since the Home Position parameter is set to
Move –). Then the operator initiates the find home routine, which causes the axis to move in the
negative direction until the marker pulse occurs.
+
Direction
-
Positive
Stop
Machine
Slide
Moveable Alignment Mark
Stationary Alignment Mark
Home Position
Negative Overtravel Position
45742.cvs
.
Figure 6-2. Move – (Minus) Home Position Example
Find Home Routine for Move + or Move –
When the find home command (an OFF to ON transition of the Find Home %Q bit) is initiated,
the following sequence of events occurs:
1.
2.
6-4
The axis is accelerated at the Jog Acceleration rate and moved at the configured Final Home
Velocity (positive direction for MOVE+, negative direction for MOVE–) until a marker pulse
is sensed. This marker pulse establishes the home reference position.
The axis is stopped (at a position past the marker pulse) using the configured Jog
Acceleration rate and with the configured Jog Acceleration Mode.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Non-Programmed Motion
3.
4.
5.
6
The axis is moved, at the configured Jog Velocity and with the configured Jog Acceleration
rate and Jog Acceleration Mode, the number of user units specified by the Home Offset
value from the home reference position. If Home Offset = 0, the axis moves back to the
position of the marker pulse.
The axis is stopped at the configured Jog Acceleration rate and with the configured Jog
Acceleration Mode.
The DSM314 sets the Commanded Position and Actual Position %AI status words to the
configured Home Position value; the DSM314 sets the Position Valid %I bit to indicate the
home cycle is complete.
Jogging with the DSM314
The Jog Velocity, Jog Acceleration, and Jog Acceleration Mode are configuration parameters in
the DSM314. These values are used whenever a Jog Plus or Jog Minus %Q bit is turned ON.
Note that if both bits are ON simultaneously, no motion is generated. The Jog Acceleration and
Jog Acceleration Mode are also used during Find Home, Move at Velocity, Abort All Moves and
Normal Stop. Programmed motions use the Jog Velocity and Jog Acceleration as defaults.
A Jog Plus/Minus %Q command can be performed when no other motion is commanded, or while
programmed motion is temporarily halted due to a Feed Hold %Q command. The Enable Drive
%Q bit does not need to be ON to jog, but it can be ON. Turning on a Jog Plus/Minus %Q bit
will automatically close the Enable Relay, and turn on the Drive Enabled %I bit. When an
overtravel limit switch is OFF, Jog Plus/Minus and Clear Error %Q bits may be turned on
simultaneously to move away from the open limit switch. Thus a Jog Plus %Q command will not
work while the positive end of travel switch is open and Jog Minus will not work while the
negative end of travel switch is open. Turning a Jog %Q bit OFF causes the axis to decelerate and
stop. If a Jog %Q bit is momentarily turned off, even for one PLC sweep, the axis will decelerate
to a stop then accelerate and continue jogging.
Move at Velocity Command
A Move at Velocity %AQ command is generated by placing the value 22h in the first word of
%AQ data assigned to an axis. The second and third words together represent a signed 32-bit
velocity. Note that the third word is the most significant word of the velocity. Once the command
is given, the %AQ data can be cleared by sending a NULL command, or changed as desired.
Move at Velocity will not function unless the servo drive is enabled (Enable Drive %Q command
and Drive Enabled %I status bit are set).
The listing of %AQ immediate commands shows the words in reverse order to make
understanding easier. For example, to command a velocity of 512 user units per second in a
DSM314 configured with %AQ data starting at %AQ1, the following values should be used:
0022h (34 decimal) in %AQ1, 0200h (512 decimal) in %AQ2, and 0 in %AQ3. When the
DSM314 receives these values, if Drive Enabled %I is ON, Abort All Moves %Q is OFF, and no
other motion is commanded it will begin moving the axis at 512 user units per second in the
positive direction using the current Jog Acceleration and Acceleration Mode.
The Drive Enabled %I bit must be ON before the DSM314 receives the immediate command or
an error will occur. Also, if a Move at Velocity command is already in the %AQ data, the velocity
GFK-1742A
Chapter 6 Non-Programmed Motion
6-5
6
value must change while the Drive Enabled bit is ON for the DSM314 to accept it. The DSM314
detects a Move at Velocity command when the %AQ values change.
When the DSM314 is performing a Move at Velocity command, it ignores the software end of
travel limits (Pos EOT and Neg EOT). Hardware overtravel limits must be ON if they are
enabled.
A Move at Velocity command can be stopped without causing an error in two ways: a Move at
Velocity command with a velocity of zero, or turning the Abort All Moves %Q bit ON for at least
one PLC sweep.
Force Digital Servo Velocity Command (DIGITAL Servos)
This command bypasses the position loop and forces a velocity RPM command to the digital servo
for tuning purposes. Acceleration control is not used and changes in velocity take effect
immediately. A Force Digital Servo Velocity command value of +4095 will produce a motor
velocity of + 4,095 RPM and -4095 will produce a motor velocity of -4,095 RPM (depending on
individual motor maximum velocities). The digital servo control loops may limit actual motor
speed to a lower value.
CAUTION
Care should be taken not to operate a servomotor beyond its rated duty cycle.
The Enable Drive %Q bit must be active with no other motion commanded for the Force Digital
Servo Velocity command to operate. The command must remain continuously in the %AQ data
for proper operation. When a Force Digital Servo Velocity command is active for a given axis, any
other %AQ immediate command for that axis will remove the Force Digital Servo Velocity data
and halt the servo. A one-shot Force Digital Servo Velocity command will therefore only operate
during the sweep in which it appears.
Refer to Chapter 5, Motion Mate DSM314 to PLC Interface, for more information on this
command.
Note: The Force Analog Output command, described below, is used for analog servos.
Force Analog Output Command (ANALOG Servos)
In Analog mode, the Force Analog Output %AQ immediate command operates the analog output
on the DSM faceplate connectors A, B, C, or D. A Force Analog Output value of +32000 will
produce +10.00 Vdc and a Force Analog Output value of -32000 will produce -10.00 Vdc.
Force Analog Output operates only while the %AQ data is active. When a Force Analog Output
command is active for a given axis, any other %AQ immediate command for that axis will
remove the Force Analog Output command and turn off the associated analog output.
Refer to Chapter 5, “Motion Mate DSM314 to PLC Interface”, for more information on this
command.
6-6
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Non-Programmed Motion
6
Position Increment Commands
To generate small corrections between the axis position and the DSM314 tracking, the Position
Increment %AQ commands can be used to offset Actual Position by a specific number of user
units. If the Drive Enabled %I bit is ON, the axis will immediately move the increment amount.
If the position increment without position update is used (%AQ command 21h), the Actual
Position %AI status word reported by the DSM314 will remain unchanged. If the Position
Increment With Position Update is used (%AQ command 25h), the Actual Position and
Commanded Position %AI status words reported by the DSM314 will be changed by the
increment value. Position Increment can be used at any time, though simultaneous use with the
Force Digital Servo Velocity command is impossible because the Force Digital Servo Velocity
command must remain in the %AQ command data area or the servo will be stopped.
Other Considerations
Other considerations when using non-programmed motion are as follows:
„
„
„
„
„
„
„
GFK-1742A
The Abort All Moves %Q bit, when ON, will prevent any non-programmed motion from
starting.
Turning ON the Abort All Moves %Q bit will immediately stop any current non-programmed
motion at the current Jog Acceleration.
A Set Position %AQ command during non-programmed motion will cause a status error.
Turning OFF the Enable Drive %Q bit while performing a home cycle or executing a Move
at Velocity %AQ command will cause a stop error.
The Feed Hold %Q bit has no effect on non-programmed motion.
The Rate Override %AQ command has no effect on non-programmed motion.
Changing the Jog Velocity or Jog Acceleration will not affect moves in progress.
Chapter 6 Non-Programmed Motion
6-7
Chapter
Programmed Motion
7
A motion program consists of a group of user-programmed motion command statements that are
stored to and executed in the DSM314. The DSM314 executes motion program commands
sequentially in a block-by-block fashion once a program is selected to run. The motion program is
executed autonomously from the PLC, although the PLC starts the DSM314 motion program and
can interface with it (with parameters and certain commands) during execution. In addition,
external inputs (CTL bits) connected directly to the DSM314 faceplate or controlled by Local
Logic can be used in motion programs to delay or alter program execution flow. The PLC
receives status information (such as position, velocity, and Command Block Number) from the
DSM314 during program execution. Motion programs 1-10 and subroutines 1-40 are created
using VersaPro 1.1 (or later) PLC programming software and are stored along with the module’s
configuration settings to the DSM314 via the PLC backplane. Please refer to the VersaPro
Programming Software User’s Guide, GFK-1670 or the VersaPro 1.1 on-line help for further
information.
Single-Axis Motion Programs and Subroutines
A single-axis program contains program statements for one axis only. The programmed axis is
specified in the first line of the program, for example: PROGRAM 1 AXIS1. The DSM314 may
operate up to four single-axis programs. These programs may run independently or
simultaneously. For example, motion Program 1 may be written for Axis 1 and motion Program 2
written for Axis 2. Each axis may be home referenced and the motion program for each axis may
execute independently without regard to the state of the other axis. Alternately, Program 1 and
Program 2 may start simultaneously (via the run program %Q bits) during the same PLC sweep.
DSM314 motion programs support the subroutine feature, which may include all the available
motion program commands including the CALL command. The SYNC Block command is reserved
for multi-axis (Axis 1 and 2) programs and subroutines. Subroutine “nesting” using CALL
statements is supported to a maximum of 8 levels. Single-axis subroutines, similar to motion
programs, contain commands for only one axis. The difference is that the axis number is not
specified in a single-axis subroutine. A single-axis motion program may CALL any single-axis
subroutine stored in module memory. For example, single-axis motion Program 1, operating Axis
1, may include a CALL statement to single-axis Subroutine 1. Additionally, single-axis motion
Program 2, operating Axis 2, may include a CALL statement to single-axis Subroutine 1. Singleaxis motion programs cannot CALL multi-axis subroutines.
The motion program and subroutine structure allows flexibility in execution and axis control in
the DSM314 module. The practical limitation is that each axis may only execute one program at
a time. For example, if Program 1 is enabled to run in Axis 1, it must either complete or abort
prior to enabling Program 2 to run in Axis 1.
GFK-1742A
7-1
7
Multi-axis Motion Programs and Subroutines
The term multi-axis is specified in the definition statement (on the first line) of a program or
subroutine, for example: PROGRAM 2 MULTI-AXIS, or SUBROUTINE 7 MULTI-AXIS. Axis
1 and Axis 2 are the only two axis numbers permitted in a multi-axis program or subroutine.
Both axes must be home referenced and meet the remaining prerequisites (see the section
“Prerequisites for Programmed Motion” in this chapter) before a program can be executed. A
multi-axis motion program may CALL only multi-axis subroutines. One motion program
instruction, SYNC Block, is available only in a multi-axis motion program or subroutine.
Subroutine “nesting” limitations are the same as for a single-axis motion program. In a multiaxis program, there are two categories of moves: 1-Axis moves and 2-Axis moves.
1-Axis moves: When two consecutive 1-Axis moves are programmed, the second move will begin
execution within 2 milliseconds after the first move finishes.
2-Axis moves: A 2-Axis move is programmed with three consecutive blocks. The first of the
three blocks must contain the SYNC Block command. The next two blocks contain the move
commands, one for Axis 1, and one for Axis 2. When the SYNC Block command is executed, the
two moves will be started “together” (within 2 milliseconds). Note that only the start of the moves
is synchronized.
More information about multi-axis programming, program block structure, flow control (JUMP),
and the SYNC Block command, is provided later in this chapter.
Motion Program Command Types
The motion program commands are grouped into four categories:
Type 1 Commands
„
„
CALL (Subroutine)
JUMP
Type 2 Commands
„
„
„
„
„
Block number
SYNC (Block Synchronization)
LOAD (Parameter)
ACCEL (Acceleration)
VELOC (Velocity)
Type 3 Commands
„
„
„
„
PMOVE (Positioning Move)
CMOVE (Continuous Move)
DWELL
WAIT
Program/Subroutine Definition Commands
„
„
„
„
7-2
PROGRAM
ENDPROG
SUBROUTINE
ENDSUB
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
7
Programmed Motion
Type 1 commands can redirect the program path execution, but do not directly affect positioning.
•
Call (Subroutine) executes a subroutine before returning execution to the next command.
•
Jumps may be conditional or unconditional. An unconditional jump always redirects
execution to a specified program location. A conditional jump is assigned a CTL bit to
check. If the CTL bit is ON, the jump redirects execution to a specified program location.
If the CTL bit is OFF, the jump is ignored.
Type 2 commands also do not affect position.
•
Block numbers provide an identification or label for the Type 3 command that follows.
Block numbers are required with JUMP commands; otherwise, they are optional. If a
program block does not contain a block number, the previous block number, if any, remains
in effect.
•
The SYNC (synchronize block) command is a two-axis synchronization command (this may
or may not delay motion on one axis).
•
The Load Parameter command allows the user to load a value into a parameter register.
•
The Velocity (VELOC) and Acceleration (ACCEL) commands specify velocity and
acceleration rates for the Type 3 MOVE command or commands that follow. Velocity and
Acceleration commands remain in effect until changed.
Type 3 commands start or stop motion and thus affect positioning control.
•
Positioning (PMOVE) and Continuous (CMOVE) moves command motion.
•
The Dwell, Wait, and End of Program commands stop motion.
Program Blocks and Motion Command Processing
A “program block” consists of and is defined as one (and only one) Type 3 command with any
number and combination of preceding Type 1 and 2 commands.
A block number has two primary uses: (1) it provides a Jump-To identification (label), and (2) it
identifies the section of the program that is currently executing via the Block Number %AI Status
words for each axis. Type 2 commands are optional; a program block can contain a single Type 3
command. Type 2 commands and Conditional Jumps do not take effect until the DSM executes
the next Type 3 command.
While the DSM314 is executing a program block, the following program block is processed into a
buffer command area. This buffering feature minimizes block transition time. Thus, parameters
used in a move must be loaded before the move command that was programmed two blocks earlier
completes execution. In other words, in order to minimize the block-to-block transition time, a
new block is pre-processed during previous block execution. Program block parameters must be
loaded before the preceding block begins execution.
When a DSM314 is executing a multi-axis program, the program commands are scanned independently
by each axis and only the data designated for that axis is executed. Note that some multi-axis program
commands do not specify an axis (Block number, Jump, Call, and End) and therefore apply to both
axes.
GFK-1742A
Chapter 7 Programmed Motion
7-3
7
A multi-axis program can contain SYNC commands to synchronize the axes at designated points.
When the first axis reaches a SYNC block (a block containing a SYNC command), it will not
execute the next block until the other axis has also reached the SYNC Block. Refer to Example
18, “Multi-axis Programming”, later in this chapter, for an example of this.
Prerequisites for Programmed Motion
The following conditions must be satisfied before a motion program can be initiated (for a multiaxis program, the conditions must be met for both axes):
„
„
„
„
„
„
„
„
„
„
The Enable Drive %Q bit must be ON
The Drive Enabled %I bit must be ON
The Position Valid %I bit must be ON
The Moving %I bit must be OFF
The Program Active %I bit must be OFF
The Abort All Moves %Q bit must be OFF
The axis position must be within the configured end of travel limits (High Software EOT and
Low Software EOT), unless the Software End of Travel mode is configured as Disabled
The Overtravel Limit Switch inputs must be ON (24V input is high) if enabled
A Force Digital Servo Velocity %AQ command must not be active
The program to be executed must be a valid program stored in the DSM314
Conditions That Stop a Motion Program
A motion program will immediately cease when one of the following conditions occurs:
„
„
„
„
„
7-4
The Abort All Moves %Q bit turns ON
The Enable Drive %Q bit turns OFF
An Overtravel Limit Switch turns OFF when OT Limit Switch is ENABLED via
configuration.
The next programmed move, either PMOVE or CMOVE, will pass a Software EOT Limit
(unless the Software End of Travel mode is configured as Disabled)
A Stop Normal or Stop Fast Response Method Error occurs. See Appendix A, “Error
Reporting.”
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Programmed Motion
7
Motion Program Basics
Number of Programs, Subroutines, and Statements
The DSM314 supports 10 motion programs, 40 subroutines, and a maximum total of 1000 motion
program statements.
Format
•
Motion programs and subroutines are written using ASCII text.
•
Only one motion language statement is permitted per line, and a motion language statement
may not span more than one line. Normal comments may span multiple lines.
•
White space and blank lines may be used to improve readability and to separate certain items.
•
The Motion Editor is not case sensitive.
•
All motion programs and subroutines must be contained in a single file.
Single-axis and multi-axis programs and subroutines
A given single-axis program must have the capability to be run on any one axis specified in the
Program definition statement. Therefore, motion language commands in single-axis programs
and subroutines will not specify an axis. Rather, the axis specified in the PROGRAM statement is
used for all motion commands in the program. Multi-axis programs and subroutines can only call
multi-axis subroutines. Likewise, single-axis programs and subroutines can only call single-axis
subroutines.
Program and subroutine definition statements
The Motion Editor requires “Program” and ”Subroutine” definition statements that specify
program/subroutine number and axis configuration (PROGRAM 1 AXIS2 or SUBROUTINE 2
MULTI-AXIS). These statements are placed on the first line of the program or subroutine.
Programs are terminated with an ENDPROG statement, subroutines are terminated with and
ENDSUB statement. These statements serves as separators between programs and subroutines,
identify the program and subroutine numbers, and indicate the type of program (single-axis or
multi-axis).
Block numbers and sync blocks
Block numbers will be suffixed with a colon (1: for example). Sync blocks are identified by a line
with a block number followed by the SYNC command (2: SYNC for example). Block numbers
may appear alone on a line or preceding a motion command on the same line.
GFK-1742A
Chapter 7 Programmed Motion
7-5
7
Motion Language Syntax and Commands
White space
White space has no significance and is ignored, except where necessary to use as a separator. For
example, in “CMOVE AXIS1 50000,ABS,S-CURVE” a space is required as a separator between
CMOVE and AXIS1, but is not required in the phrase 50000,ABS because the comma separates
the parameters. Blanks, blank lines, and tabs are considered white space.
Numeric Constants
Numeric constants are limited to 32-bit integer values, which may be signed or unsigned
depending on the context in which they are used. All motion commands further limit this range.
Numeric constants may be entered as decimal, hexadecimal, or binary values. Hexadecimal and
binary constants are identified by the prefixes, 16# and 2#, respectively (do not use a space
between the prefix and the number). Hexadecimal and binary constants cannot be prefixed with a
negative sign. Therefore, negative values must be entered in two’s complement form. Numeric
constants may contain single underline characters (e.g. 5_000_000) between digits to improve the
readability of large numbers or to represent implied decimal points in fixed point numbers.
Comments
The (* character pair introduce a normal comment, which terminates with the *) character pair.
These comments may appear anywhere white space can, for example within or following a motion
program statement, alone on a line, or spanning several lines. These comments do not nest. The
// character pair introduces a single line comment. All text following the // to the end of the line
is ignored by the Motion Editor. However, if using the //, do not force a break to the next line (by
using a Return) or an error will result. If you wish to make long comments readable on the
Motion Editor screen without the need for scrolling to the right, you can use the (* and *) symbols
(required for multi-line comments) along with Returns (created by pressing the Enter key), which
force the text to break to the next line.
Motion Program Key Words
The following words have special significance in the motion programming language.
ABS
ABSOLUTE
ACCEL
ACC
ACCELERATION
AXIS1
AXIS2
7-6
AXIS3
AXIS4
CALL
CMOVE
DWELL
ENDP
ENDPROG
ENDSUB
ENDS
INCR
INCREMENTAL
JUMP
LINEAR
LOAD
MULTI-AXIS
PMOVE
PROGRAM
PROG
S-CURVE
SINGLE-AXIS
SUBROUTINE
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
SUB
SYNC
VELOC
VEL
VELOCITY
WAIT
GFK-1742A
Programmed Motion
7
Variables
Motion Programs support a limited set of predefined variables: the parameter data registers and
the CTL bits. In the following table, x represents a decimal value in the specified range. The
value x is interpreted based on its numeric value. Therefore, a given variable may be referenced
several ways. For example, P1 and P001 both refer to Parameter Data Register 1 and will be
accepted by the Motion Editor.
Variable
Px
CTLx
Constraints
0 ≤ x ≤ 255
01 ≤ x ≤ 32
Separators
Separators are used to separate elements or are added to elements to indicate that they serve a
unique function.
Separator
,
:
GFK-1742A
Chapter 7 Programmed Motion
Function
Separate command parameters
Identifies a constant as a block number
7-7
7
Motion Program Commands
This section describes the motion commands. Most motion commands have two forms, multi-axis
and single-axis. The multi-axis form is used in multi-axis programs and subroutines and requires
the axis to be specified as a parameter in certain commands (for example: VELOC AXIS1 5000).
In single-axis programs the axis number is specified in the program header (for example:
PROGRAM 2 AXIS1) and must not be specified within the program.
Some of the command keywords have aliases. The alias command keywords are functionally
equivalent to the actual keywords. Alias usage is optional and largely a matter of personal
preference.
Items that appear within angle brackets (“<”, “>”) represent classes of items, and are described in
more detail. Items that appear in square brackets (“[”, “]”) are optional. Items that appear in
curly brackets (“{”, “}”) are required for multi-axis programs and subroutines but are illegal when
used in single-axis programs or subroutines.
The general format of motion language commands is KEYWORD {axis} <parameter [,
parameter]>. If the axis is specified, it immediately follows the command keyword. Command
parameter(s) follow the axis, if specified. If there are multiple parameters, they are separated by
commas.
NOTE: The DSM314 does not support the NULL command or Program Zero.
ACCEL
The ACCEL statement sets the axis acceleration for subsequent moves and remains in effect in a
given program unless changed. If an ACCEL statement is not used in a program, the moves will
accelerate at the current Jog Acceleration value. Moves programmed before the first ACCEL
statement will accelerate at the current Jog Acceleration. Moves programmed after an ACCEL
statement will use the value in the ACCEL statement.
Note: ACCEL commands for a given axis in a program or subroutine must be separated by a
PMOVE statement, CMOVE statement, or an unconditional jump.
Syntax:
ACCEL {<axis>} <acceleration>
Parameter
<axis>
<acceleration>
Description
The axis number can only be specified in a multi-axis program or
subroutine. The axis may be specified using the keywords or constants.
The acceleration is specified by using either an unsigned constant in the
range of 1 - 1,073,741,823 or by using a parameter data register.
Aliases:
ACC, ACCELERATION
Errors:
1. ACCEL commands must be separated by at least one move command.
7-8
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
7
Programmed Motion
2.
3.
4.
5.
6.
Specified acceleration constant is not in the range of 1 - 1,073,741,823
Parameter data register is not in the range of 0 - 255.
Axis specified in single-axis program.
No axis specified in multi-axis program.
Specified axis does not support programmed motion.
Block Number
Block numbers may be used as the destination of JUMP commands. They may appear alone on a
line, or preceding a command.
Syntax:
<block num>: [<command>]
Parameter
<block num>
< command>
Description
Block number must be in the range of 1 – 65535
Any command except PROGRAM, SUBROUTINE, ENDPROG, ENDSUB, or
another block number may follow a block number on the same line
Aliases:
None
Errors:
1.
All block numbers and synch block numbers must be unique within a program or subroutine.
2.
Block number must be in the range of 1 – 65535.
CALL
The CALL command calls a subroutine from a program or subroutine.
Syntax:
CALL <subroutine destination>
Parameter
<subroutine
destination>
Description
A subroutine destination specified as a constant, 1 – 40, or a parameter
data register.
Aliases:
None
Errors:
GFK-1742A
1.
Subroutine number must be in the range of 1 – 40, or parameter data register 0 – 255.
2.
If caller is a subroutine, it cannot call itself (no recursive calls) or call another subroutine that
directly or indirectly references it.
3.
Call destination subroutine must be defined in the same file.
4.
Single-axis programs and subroutines can only call single-axis subroutines. Multi-axis
programs and subroutines can only call multi-axis subroutines.
Chapter 7 Programmed Motion
7-9
7
CMOVE
The CMOVE command programs a continuous move using the specified position and acceleration
mode.
Syntax:
CMOVE {<axis>} <position>, <positioning mode>, <acceleration mode>
Parameter
<axis>
Description
The axis can only be specified in a multi-axis program or subroutine.
The axis may be specified using the AXISx keywords or constants.
The destination position. May be a constant or a parameter data
register.
Specifies incremental (INCR) or absolute (ABS) positioning.
Specifies linear (LINEAR) or s-curve (S-CURVE) acceleration for the
move.
<position>
<positioning mode>
<acceleration mode>
Aliases:
None
Errors:
1. Axis specified in single-axis program.
2. No axis specified in multi-axis program.
3. Position must be in the range of –536,870,912 – 536,870,911, or parameter data register 0 255.
4. Positioning mode must be either INCR or ABS.
5. Acceleration mode must be either LINEAR or S-CURVE.
6. Specified axis does not support programmed motion.
DWELL
DWELL causes motion to cease for a specified time period before processing the next command.
Specifying a dwell of zero (either as a constant or the value in a parameter data register) causes no
dwell to occur (this is a change from APM and DSM302 functionality).
A single DWELL command only applies to one axis. Therefore, in a multi-axis program, you
must designate an axis number for each DWELL command. For example: DWELL AXIS1 2000.
If you wish to pause both axes in a multi-axis program, you must use a DWELL command for
each axis.
Syntax:
DWELL {<axis>} <delay>
Parameter
<axis>
<delay>
7-10
Description
The axis can only be specified in a multi-axis program or subroutine.
The axis may be specified using the AXISx keywords or constants.
Delay in milliseconds specified as a constant or a parameter data
register. Range is 0-60,000 ms. A value of 0 is interpreted as a null
command.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Programmed Motion
7
Aliases:
None
Errors:
1. Axis specified in single-axis program.
2. No axis specified in multi-axis program.
3. Delay must be in the range of 0 – 60,000 or parameter data register 0 - 255.
4. Specified axis does not support programmed motion.
ENDPROG
The ENDPROG statement terminates a motion program definition.
Syntax:
ENDPROG
Aliases:
ENDP
ENDSUB
The ENDSUB statement terminates a motion subroutine definition.
Syntax:
ENDSUB
Aliases:
ENDS
JUMP
Jump to a block number or sync block within the current program or subroutine. The jump may
be conditional, based on the state of a CTL bit, or unconditional.
Syntax:
JUMP <condition>, <destination>
Parameter
<condition>
<destination>
Description
Jump condition, must specify CTL01 – CTL32 or UNCOND
Destination block or synch block number
Aliases:
None
Errors:
GFK-1742A
1.
Jump condition must be CTL in the range of 1 – 32, or keyword UNCOND.
2.
Destination block must be in the range of 1 - 65535 and must be defined within the same
program or subroutine as the JUMP statement.
Chapter 7 Programmed Motion
7-11
7
LOAD
Initializes or changes a parameter data register with a 32-bit twos-complement integer value.
Syntax:
LOAD <parameter data register>, <load value>
Parameter
<parameter data
register>
<load value>
Description
Parameter data register to be initialized. Restricted to registers P000 –
P255.
32-bit numeric constant.
Aliases:
None
Errors:
1.
2.
Parameter data register must be in the range of P000 – P255.
Load value must be in the range of a 32-bit twos-complement value.
PMOVE
The PMOVE command programs a positioning move using the specified position and acceleration
mode.
Syntax:
PMOVE {<axis>} <position>, <positioning mode>, <acceleration mode>
Parameter
<axis>
<position>
<positioning mode>
<acceleration mode>
Description
The axis can only be specified in a multi-axis program or subroutine.
The axis may be specified using the AXISx keywords or constants.
The destination position. May be a constant or a parameter data
register.
Specifies incremental (INCR) or absolute (ABS) positioning.
Specifies linear (LINEAR) or s-curve (S-CURVE) acceleration for the
move.
Aliases:
None
Errors:
1. Axis specified in single-axis program.
2. No axis specified in multi-axis program.
3. Position must be in the range of –536,870,912 – 536,870,911, or parameter data register 0 255.
4. Positioning mode must be either INCR or ABS.
5. Acceleration mode must be either LINEAR or S-CURVE.
6. Specified axis does not support programmed motion.
7-12
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Programmed Motion
7
PROGRAM
The PROGRAM statement is the first statement in a motion program. The program statement
identifies the program number (1-10) and the axis configuration. Program definitions cannot
nest.
There are two types of motion programs, single-axis in which all commands are directed to the
same axis, and multi-axis, which may contain commands for axis 1 and axis 2. The program type
is specified by the PROGRAM statement. A single-axis program is identified by specifying the
target axis following the program number (for example, PROGRAM 3 AXIS1). A multi-axis
program is identified by the word MULTI-AXIS following the program number (for example,
PROGRAM 4 MULTI-AXIS).
The program axis configuration is used to enforce whether or not the axis parameter must be
supplied in the program’s motion commands. It also restricts multi-axis programs to calling
multi-axis subroutines, and single-axis programs to calling single-axis subroutines. The axis
specified in a single-axis program is used by any subroutine it calls; therefore, an axis number
should not be specified anywhere within a single-axis subroutine.
Syntax:
PROGRAM <program number> <axis configuration>
Parameter
<program number>
<axis configuration>
Description
The program number must be a decimal value in the range of 1 – 10.
Within a source file, each PROGRAM defined must have a unique
number.
The axis configuration must have a value of MULTI-AXIS for multi-axis
programs, or axis designation (for example, AXIS1) for single-axis
programs. Axes may be specified using the AXISx keywords or constants,
where x = 1-4.
Aliases:
PROG
GFK-1742A
Chapter 7 Programmed Motion
7-13
7
SUBROUTINE
The SUBROUTINE statement is the first statement in a motion subroutine. The subroutine
statement identifies the subroutine number (1-40) and the axis configuration. Subroutine
definitions cannot nest.
There are two types of motion subroutines, single-axis in which all commands are directed to the
same axis, and multi-axis, which may contain commands for axis 1 and axis 2. The subroutine
type is specified by the SUBROUTINE statement. A single-axis subroutine is identified by the
word SINGLE-AXIS following the subroutine number. A multi-axis subroutine is identified by
the word MULTI-AXIS following the subroutine number.
The subroutine axis configuration is used to enforce whether or not the axis parameter must be
supplied in the subroutine’s motion commands. It also restricts multi-axis subroutines to calling
multi-axis subroutines, and single-axis subroutines to calling single-axis subroutines. A singleaxis subroutine uses the axis number specified in the calling program.
Syntax:
SUBROUTINE <subroutine number> <axis configuration>
Parameter
<subroutine number>
<axis configuration>
Description
The subroutine number must be a decimal value in the range of 1 – 40.
Within a source file, each subroutine defined must have a unique
number.
The axis configuration must have a value of MULTI-AXIS or SINGLEAXIS.
Aliases:
SUB
7-14
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Programmed Motion
7
Sync Block
A sync block is a special case of a block number. A sync block may only be used in a multi-axis
program.
A sync block is identified by a block number followed by the command SYNC. The SYNC
command must appear on the same line as the block number.
Syntax:
<block num>:
SYNC
Parameter
<block num>
Description
Block number must be in the range of 1 – 65535
Aliases:
none
Errors:
1.
Sync blocks can only appear in multi-axis programs.
2.
All block numbers and synch block numbers must be unique within a program or subroutine.
3.
Sync blocks and block numbers cannot appear in consecutive statements without an
intervening command.
4.
Sync block numbers must be in the range of 1 – 65535.
VELOC
Sets the axis velocity used by subsequent motion program move commands and remains in effect
until changed by another VELOC statement. If a VELOC statement is not used in a program,
moves will use the current Jog Velocity value. Also, moves programmed before the first VELOC
statement will use the current Jog Velocity.
Note: VELOC commands for a given axis in a program or subroutine must be separated by a
PMOVE statement, CMOVE statement, or an unconditional jump.
Syntax:
VELOC {<axis>} <velocity>
Parameter
<axis>
<velocity>
Description
The axis can only be specified in a multi-axis program or subroutine. The axis may
be specified using the AXISx keywords or constants.
The desired velocity. May be a constant or a parameter data register.
Aliases:
VEL, VELOCITY
Errors:
1. Axis specified in single-axis program.
2. No axis specified in multi-axis program.
3. Velocity must be a constant in the range of 1 – 8388607.
4. VELOC commands must be separated by at least one move command.
5. Specified axis does not support programmed motion.
GFK-1742A
Chapter 7 Programmed Motion
7-15
7
WAIT
Permits synchronization with some external event through the CTL bits. Execution of the next
command is suspended until the specified CTL is set.
A single WAIT command only applies to one axis. Therefore, in a multi-axis program, you must
designate the axis number that a WAIT applies to. For example: WAIT AXIS1 CTL01. If you
wish to make both axes wait in a multi-axis program, you must use a separate WAIT command
for each axis.
Syntax:
WAIT {<axis>} <ctl>
Parameter
<axis>
<ctl>
Description
The axis can only be specified in a multi-axis program or subroutine. The axis may
be specified using the AXISx keywords or constants.
Specifies CTL01 – CTL32.
Aliases:
none
Errors:
1. Axis specified in single-axis program.
2. No axis specified in multi-axis program.
7-16
3.
CTL must be in the range of 1 – 32.
4.
Specified axis does not support programmed motion.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
7
Programmed Motion
Program and Subroutine Structure
Single-axis Program Structure
•
PROGRAM definition statement. It must be the first line of the program. It must
identify the program number and axis number. The program number has a space between
the PROGRAM keyword and the number. In contrast, the axis number must not have a
space within it. For example:
PROGRAM 1 AXIS3
•
Body. The program body contains the actual program commands. Note that in a singleaxis program, you must not specify an axis number in any of the commands. Doing so will
generate an error. An example of correct syntax for a single-axis program is:
ACCEL 50000
•
End of Program. Uses the ENDPROG statement. This statement clearly identifies the end
of the program and helps separate one program or subroutine from another. The
ENDPROG should be the only thing on the last line of any program:
ENDPROG
Single-Axis Program Example
Note that the axis number is specified in the first line and is not specified in the program body.
Note also, that there is no space in the term AXIS1.
PROGRAM 2 AXIS1
ACCEL 50000
VELOC 5000
PMOVE 10000, ABS, LINEAR
DWELL 6000
PMOVE 5000, ABS, LINEAR
ENDPROG
GFK-1742A
Chapter 7 Programmed Motion
7-17
7
Multi-Axis Program Structure
•
PROGRAM definition statement. It must be the first line of the program. It must
identify the program number and the fact that this is a multi-axis program by using the
MULTI-AXIS term. For example:
PROGRAM 3 MULTI-AXIS
•
Body. The program body contains the actual program commands. Note that in a multi-axis
program, you must specify an axis number in many of the commands. Failure to do so will
generate an error. Note that the axis number term, such as AXIS1, must not have a space
within it. An example of correct syntax for a multi-axis program command is:
ACCEL AXIS1 50000
•
End of Program. Uses the ENDPROG statement. This statement clearly identifies the end
of the program and helps separate one program or subroutine from another. The
ENDPROG should be the only thing on the last line of any program:
ENDPROG
Multi-Axis Program Example
Note that the term MULTI-AXIS must be used in the PROGRAM statement on the first line, and
that axis numbers are specified in the applicable commands in the program body.
PROGRAM 1 MULTI-AXIS
ACCEL AXIS1 500000
VELOC AXIS1 5000
1:
CMOVE AXIS2 –100000, ABS, LINEAR
DWELL AXIS2 6000
JUMP CTL31, 1
CALL P255
LOAD P215, 2000
PMOVE AXIS1 8388607, INCR, S-CURVE
ENDPROG
7-18
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Programmed Motion
7
Single-axis Subroutine Structure
•
SUBROUTINE definition statement. It must be the first line of the subroutine. It must
identify the subroutine number and contain the SINGLE-AXIS statement. For example:
SUBROUTINE 3 SINGLE-AXIS
•
Body. The subroutine body contains the actual programmed commands. Note that in a
single-axis subroutine, you must not specify an axis number in any of the commands.
Doing so will generate an error. An example of correct syntax for a single-axis subroutine
command is:
ACCEL 50000
•
End of Subroutine. Uses the ENDSUB statement. This statement clearly identifies the end
of the subroutine and helps separate one subroutine or program from another. The
ENDSUB should be the only thing on the last line of any subroutine:
ENDSUB
Single-Axis Subroutine Example
An axis number should not be specified in a single-axis subroutine. That is because a single-axis
subroutine will apply to the axis specified in the single-axis program that calls it. This allows a
subroutine to be used by different single-axis programs, regardless of the particular axis number
they specify.
SUBROUTINE 15 SINGLE-AXIS
ACCEL 50000
VELOC 10000
PMOVE 200000, ABS, LINEAR
DWELL 3000
PMOVE 50000, ABS, LINEAR
ENDSUB
Multi-Axis Subroutine Structure
•
SUBROUTINE definition statement. It must be the first line of the subroutine. It must
identify the subroutine number and the fact that this is a multi-axis program by using the
MULTI-AXIS term. For example:
SUBROUTINE 7 MULTI-AXIS
•
Body. The subroutine body contains the actual programmed commands. Note that in a
multi-axis subroutine, you must specify an axis number in many of the commands. Failure
to do so will generate an error. An example of correct syntax for a multi-axis subroutine
command is:
ACCEL AXIS2 50000
GFK-1742A
Chapter 7 Programmed Motion
7-19
7
•
End of Subroutine. Uses the ENDSUB statement. This statement clearly identifies the end
of the subroutine and helps separate one subroutine or program from another. The
ENDSUB should be the only thing on the last line of any subroutine:
ENDSUB
Multi-Axis Subroutine Example
SUBROUTINE 2 MULTI-AXIS
ACCEL AXIS2 P100
VELOC AXIS2 P105
2:
SYNC
CMOVE AXIS2 P001, INCR, S-CURVE
DWELL AXIS2 P001
JUMP
CTL01, 2
PMOVE AXIS2 P214, ABS, LINEAR
ENDSUB
7-20
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Programmed Motion
7
Command Usage Examples
The following examples are not complete programs. For example, in many cases the PROGRAM
and ENDPROG statements are not shown. These statements (in correct context) would need to be
added to make the program compile successfully.
Programmed moves have three parameters:
1.
The distance (data) to move or position to move to,
2.
The type of positioning reference (command modifier) to use for the move, and
3.
The type of acceleration (command modifier) to use while performing the move.
Note: Motion programs can contain statements that use constants as data associated with
commands or variables that are also referred to as parameters (P0-P255).
Absolute or Incremental Positioning
Absolute Positioning
In an absolute positioning move, the first parameter is the position to move to. The following is
an absolute positioning move example.
PMOVE 5000, ABS, LINEAR
In this example, the axis will move from its current position, whatever it may be, to the position
5000. Thus, the actual distance moved depends upon the axis’ current position when the move is
encountered. If the initial position is 0, the axis will move 5000 user units in the positive
direction. If the initial position is 8000, the axis will move 3000 user units in the negative
direction. If the initial position is 5000, the axis will not move.
Incremental Positioning
In an incremental move, the first parameter specifies the distance to move from the current
position. The DSM314 translates incremental move distances into absolute move positions. This
eliminates error accumulation. The following is an incremental positioning move example.
PMOVE 5000, INCR, LINEAR
In this example, the axis will move from its current position to a position 5000 user units greater.
With an incremental move, the first parameter specifies the actual number of user units the axis
moves.
GFK-1742A
Chapter 7 Programmed Motion
7-21
7
Types of Acceleration
Linear Acceleration
A sample linear move profile that plots velocity versus time is shown in Figure 7-1. As
illustrated, a linear move uses constant (linear) acceleration. The area under the graph represents
the distance moved.
v
ACCEL 1000
VELOC 2000
PMOVE 6000, INCR, LINEAR
t
Figure 7-1. Sample Linear Motion
S-Curve Acceleration
An S-Curve motion sample, plotting velocity versus time, is shown below. As illustrated, SCurve acceleration is non-linear. When the move begins, the acceleration starts slowly and
builds until it reaches the programmed acceleration. This should be the midpoint of the
acceleration. Then, the acceleration begins decreasing until it is zero, at which time the
programmed velocity has been reached. An S-Curve move requires twice the time and distance
to accelerate and decelerate that a comparable linear move needs. The area under the graph
represents the distance moved.
ACCEL
VELOC
PMOVE
2000
2000
8000, INCR, S-CURVE
v
t
Figure 7-2. Sample S-Curve Motion
7-22
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Programmed Motion
7
Types of Programmed Move Commands
The following examples are not complete programs. For example, in many cases the PROGRAM
and ENDPROG statements are not shown. These statements (in correct context) would need to be
added to make the program compile successfully.
Positioning Move (PMOVE)
A PMOVE must always come to a complete stop. The stop must long enough to allow the In Zone
%I bit to turn ON before the next move can begin.
A PMOVE uses the most recently programmed velocity and acceleration. If a VELOC command
has not been encountered in the motion program, the Jog Velocity is used as default. If an
ACCEL command has not been encountered in the motion program, the Jog Acceleration is used
as default.
Continuous Move (CMOVE)
A CMOVE does not stop when completed unless it is followed by a DWELL or a WAIT, the next
programmed velocity is zero, or it is the last program command. It does not wait for In Zone %I
bit to turn ON before going to the next move. A normal CMOVE is a command that reaches its
programmed position at the same time that it reaches the velocity of the following Move
command.
A CMOVE uses the most recently programmed velocity and acceleration. If a VELOC command
has not been encountered in the motion program, the Jog Velocity is used as default. If an
ACCEL command has not been encountered in the motion program, the Jog Acceleration is used
as default.
A special form of the CMOVE command can be used to force the DSM314 to reach the
programmed CMOVE position before starting the velocity change associated with the next move
command (that is, execute the entire CMOVE command at a constant velocity). Programming
an incremental CMOVE command with an operand of 0 (for example: CMOVE 0, INCR,
LINEAR) will delay the servo velocity change until the next move command in sequence.
The following sequence of commands illustrates this effect (assume ACCELs are chosen to allow
motions to complete normally):
GFK-1742A
Chapter 7 Programmed Motion
7-23
7
Command
VELOC
CMOVE
VELOC
CMOVE
CMOVE
VELOC
PMOVE
Data
Comments
10000
15000, ABS,
LINEAR
20000
30000, ABS,
LINEAR
0, INCR, LINEAR
//Set velocity of first move = 10000
//Reach velocity of second move (20000) at position =
15000
//Set velocity of second move = 20000
(*Stay at velocity = 20000 until position = 30000, then
change to velocity = 5000*)
(*Flag to signal the DSM314 to wait for next move before
changing to the next velocity*)
//Set velocity of third move = 5000
//Final stop position = 40000
5000
40000, ABS,
LINEAR
Note: White space characters (blank spaces, tabs, etc.) were used in the program above to
improve
readability.
v
20000
10000
5000
15000
30000 40000
t
Figure 7-3. Example 1, Before Inserting CMOVE (0)
v
20000
10000
5000
15000
30000
40000 t
Figure 7-4. Example 2, After Inserting CMOVE (0)
7-24
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Programmed Motion
7
Programmed Moves
By combining CMOVEs and PMOVES, absolute and incremental moves, and linear and s-curve
motion, virtually any motion profile can be generated. The following examples show some simple
motion profiles, as well as some common motion programming errors.
Example 1: Combining PMOVEs and CMOVEs
This example shows how simple PMOVEs and CMOVEs combine to form motion profiles.
ACCEL 1000
VELOC 2000
PMOVE 5000, ABS, LINEAR
VELOC 1200
PMOVE 10000, ABS, S-CURVE
ACCEL 1500
VELOC 2800
v
CMOVE 6000, INCR, LINEAR
VELOC 1200
P-L
P-S
C-L
C-S
P-L
CMOVE 23000, ABS, S-CURVE
23000
6000
ACCEL 1000
VELOC 2800
PMOVE 5000, INCR, LINEAR
t
Figure 7-5. Combining PMOVEs and CMOVEs
The first PMOVE accelerates to program velocity, moves for a distance, and decelerates to a stop.
This is because motion stops after all PMOVEs. When the first move stops, it is at the
programmed distance.
The second move is an s-curve PMOVE. It, like the first, accelerates to the programmed velocity,
moves for a time, and decelerates to zero velocity because it is a PMOVE.
The next move is a linear CMOVE. It accelerates to program velocity, moves for a time, and then
decelerates to a lower velocity using linear acceleration. When a CMOVE ends, it will be at the
programmed position of the move just completed, and at the velocity of the next move. Thus
when the fourth move begins, it is already at its programmed velocity.
The fourth move is a CMOVE, so as it approaches its final position, it accelerates to be at the
velocity of the fifth move when it completes. The graph shows the acceleration of the fourth move
is s-curve.
Finally, the fifth move begins and moves at its programmed velocity for a time until it decelerates
to zero. Any subsequent moves after the fifth would begin at zero velocity because the fifth move
is a PMOVE.
GFK-1742A
Chapter 7 Programmed Motion
7-25
7
Example 2: Changing the Acceleration Mode During a Profile
The following example shows how a different acceleration, and an even acceleration mode, can be
used during a profile using CMOVEs. The first CMOVE accelerates linearly to the programmed
velocity. Because the second CMOVE’s velocity is identical to the first, the first CMOVE finishes
its move without changing velocity. The acceleration of the second move is S-curve as it
decelerates to zero velocity.
ACCEL
VELOC
CMOVE
ACCEL
CMOVE
2000
6000
13000, ABS, LINEAR
4000
15000, INCR, S-CURVE
C-L
C-S
t
13000
Figure 7-6. Changing the Acceleration Mode During a Profile
Example 3: Not Enough Distance to Reach Programmed Velocity
CMOVES and PMOVES can be programmed that do not have enough distance to reach the
programmed velocity. The following graph shows a CMOVE that could not reach the
programmed velocity. The DSM314 accelerates to the point where it must start decelerating to
reach the programmed position of C1 at the velocity of the second CMOVE.
ACCEL
VELOC
CMOVE
ACCEL
VELOC
CMOVE
2000
8000
7000, INCR, LINEAR
10000
2000
4400, INCR, LINEAR
v
C1
C2
7000
t
Figure 7-7. Not Enough Distance to Reach Programmed Velocity
Example 4: Hanging the Move When the Distance Runs Out
A serious programming error involves “hanging” (i.e. leaving no desirable options for the
command generator) the move at a high velocity when the distance runs out. In the following
example, the first CMOVE accelerates to a high velocity. The second CMOVE has an identical
velocity. However, the distance specified for the second CMOVE is very short. Thus, the axis is
running at a very high velocity and must stop in a short distance. If the programmed acceleration
7-26
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
7
Programmed Motion
is not large enough, the following profile could occur. The DSM314 attempts to avoid
overshooting the final position by commanding a zero velocity. This rapid velocity change is
undesirable and can cause machine damage.
ACCEL
VELOC
CMOVE
ACCEL
CMOVE
500
3000
9000, ABS, LINEAR
600
4800, INCR, LINEAR
v
C1
C2
t
9 00 0
Figure 7-8. Hanging the DSM314 When the Distance Runs Out
DWELL Command
A DWELL command is used to generate no motion for a specified number of milliseconds. The
DWELL command may use a value stored in a designated parameter.
A DWELL after a CMOVE will make the CMOVE stop before the next move, unless the specified
dwell duration is zero milliseconds. A DWELL is treated as a “null” command and skipped
(CMOVE continues to the next Move following the DWELL) if the DWELL command has a
value of zero, or references a parameter register that has a value of zero.
A single DWELL command only applies to one axis. Therefore, in a multi-axis program, you
must designate an axis number with each DWELL command. For example: DWELL AXIS1
2000. If you wish to pause both axes in a multi-axis program, you must use a DWELL command
for each axis.
Example 5: DWELL
A simple motion profile, which moves to a specific point, waits, and returns to the original point
is shown below.
ACCEL
VELOC
PMOVE
DWELL
PMOVE
30000
15000
120000, ABS, LINEAR
4000
0, ABS, LINEAR
v
P1
t
P2
Figure 7-9. Dwell Command Example
GFK-1742A
Chapter 7 Programmed Motion
7-27
7
Wait Command
The WAIT command is similar to the DWELL command. Instead of generating no motion for a
specified period of time, a WAIT stops program motion until a specified CTL bit turns ON. Thus
motion stops any time a WAIT is encountered, even if the CTL bit is ON before the WAIT is
reached in the program. The trigger to continue the program can be any of the twelve CTL bits.
If, in the previous example, WAIT were substituted for DWELL, the motion profile would be the
same except the second PMOVE would not start until the CTL bit turned ON. If the CTL bit was
ON when the program reached the WAIT, the second PMOVE would begin immediately after the
first PMOVE finished.
Also, if WAIT were used instead of DWELL in the previous example, CMOVEs and PMOVEs
would generate similar velocity profiles. The WAIT will stop motion whether the previous move
is a CMOVE or PMOVE.
A single WAIT command only applies to one axis. Therefore, in a multi-axis program, you must
designate an axis number with each WAIT command. For example: WAIT AXIS1 CTL001. If
you wish to have both axes wait in a multi-axis program, you must use a separate WAIT
command for each axis.
Subroutines
The DSM314 can store up to ten separate programs and forty subroutines. Subroutines can be
defined as two types: single-axis and multi-axis. Subroutines are available for all motion
programs created with the Motion Editor. Commands within single-axis subroutines do not
contain an axis number; this allows single-axis subroutines to be called from any single-axis
program (the commands in the subroutine use the axis number specified by the calling program).
Commands within multi-axis subroutines contain axis numbers just like commands within multiaxis programs. Multi-axis subroutines can only be called from multi-axis programs or
subroutines. Single-axis subroutines can only be called from single-axis programs or subroutines.
For example, a single-axis program for axis 1 and a single-axis program for axis 2 can call the
same single-axis subroutine simultaneously. Each subroutine must be assigned a unique number
between 1 and 40.
Subroutines are programmed using the CALL command, which specifies the subroutine number
to be called. When a CALL is encountered during program execution, program execution is
redirected to the subroutine. When the subroutine completes, program execution resumes at the
command after the CALL command. Subroutines can be called from another subroutine, but once
a subroutine has been called, it must complete before it can be called again for the same axis.
Thus, recursion is not allowed.
Block Numbers and Jumps
Block numbers are used as reference points within a motion program and to control jump testing.
A %AI data word displays the current block number which can be monitored to ensure correct
program execution or to determine when events should occur. A block number can also serve as a
JUMP command destination. Jumps may be unconditional or conditional. An unconditional jump
7-28
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
7
Programmed Motion
command simply tells the DSM314 to continue program execution at the destination block
number. A conditional jump only executes if the specified condition occurs. Examples of both
types of jumps follow.
Unconditional Jumps
Example 6: Unconditional Jump
In the example below, the program executes a PMOVE, dwells for 2 seconds, then unconditionally
jumps back to the beginning of the program at block 1. Thus, the PMOVE repeats until an end of
travel limit (High Software EOT or Low Software EOT) or Overtravel Limit Switch is reached.
An Abort All Moves %Q bit command could also be used to halt the program.
ACCEL
VELOC
10000
30000
PMOVE
DWELL
JUMP
200000, INCR, LINEAR
2000
UNCOND, 1
v
1:
Figure 7-10. Unconditional Jump
Conditional Jumps
A conditional jump is a JUMP command with a CTL bit specified in the command. Conditional
jumps are Type 1 commands in that they affect program path execution, but they are also similar
to Type 2 commands because they do not take effect until a Type 3 command following the JUMP
command is executed. When a conditional JUMP command is executed, the DSM314 examines
the specified CTL bit. If the bit is ON, program execution jumps to the destination block number;
if the bit is OFF, the program continues executing the command after the JUMP. Note that the
Type 3 command after the conditional jump and at the jump destination will affect jump behavior.
Conditional Jump commands should not be used with multi-axis programs containing SYNC
blocks unless the JUMP is triggered while both axes are testing the same JUMP command.
Failure to follow this recommendation can result in unpredictable operation.
Conditional Jump testing starts when the next PMOVE, CMOVE, DWELL, or WAIT command
following a Conditional JUMP becomes active.
When Conditional Jump testing is active, the designated CTL bit is tested at the position loop
update rate (0.5, 1.0 or 2.0 milliseconds depending on configuration).
Conditional Jump testing ends when the designated CTL bit turns ON (Jump Trigger occurs) or
when a new Block Number becomes active.
If more than one Conditional Jump is programmed without an intervening PMOVE, CMOVE,
DWELL, or WAIT command, only the last Conditional Jump will be recognized.
GFK-1742A
Chapter 7 Programmed Motion
7-29
7
A Conditional Jump cannot be used as the last line of a Subroutine (or on the line before an
Unconditional Jump to the end of a subroutine) because jump testing terminates when the End
Subroutine command is processed.
In summary, a Conditional Jump transfers control to a new program block on the basis of one of
the external CTL input bits turning ON. Tests for CTL bit status can be carried out once or
continuously during the following Type 3 command if it is in the same program block. Multiple
Conditional Jumps are not supported within the same program block (the following example
illustrates this incorrect usage of the Conditional Jump command).
Conditional Jump Example 1:
PROGRAM 1 MULTI-AXIS
VELOC
AXIS1 10000
ACCEL
AXIS1 10000
1:
JUMP
CTL01, 2
JUMP
CTL02, 3
CMOVE AXIS1 +40000, INCR, LINEAR
2:
CMOVE AXIS2 +20000, INCR, LINEAR
3:
PMOVE AXIS2 +100000, ABS, LINEAR
4:
DWELL AXIS2 100
ENDPROG
//This JUMP command will be ignored
//This JUMP command will be recognized
The first JUMP is not programmed correctly because (1) it is not followed by an intervening Type
3 command, and (2) it is in the same block as another JUMP command. When a new Block
Number becomes active AFTER a Conditional JUMP command, Jump testing will occur one final
time.
Conditional Jump Example 2:
PROGRAM 2 AXIS1
VELOC
10000
ACCEL
10000
1:
CMOVE 20000, ABS, LINEAR
JUMP
CTL01, 3
2:
PMOVE 40000, ABS, LINEAR
3:
DWELL 100
ENDPROG
//CTL01 tested only once
In the example above, The CTL01 bit test occurs just once because the PMOVE following the
JUMP contains a new Block Number (2). However, changing the location of Block Number 2
causes CTL bit testing throughout the PMOVE following the JUMP, as seen in the following
example:
Conditional Jump Example 3:
PROGRAM 3 AXIS1
VELOC
10000
ACCEL
10000
1:
CMOVE 20000, ABS, LINEAR
2:
JUMP
CTL01, 3
PMOVE 40000, ABS, LINEAR
7-30
//CTL01 tested throughout PMOVE
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
7
Programmed Motion
3:
DWELL
ENDPROG
100
In this example, the CTL01 bit is tested throughout the PMOVE because the PMOVE and JUMP
commands are in the same Block.
The DSM314 can perform a Conditional JUMP from an active CMOVE to a program block
containing a CMOVE or PMOVE without stopping. For the axis to jump without stopping, the
distance represented by the CMOVE or PMOVE in the Jump block must be greater than
the servo stopping distance. The servo stopping distance is computed using the present
commanded velocity and the acceleration parameters that would be in effect when the jump block
became active.
The axis will STOP before jumping if a Conditional Jump trigger occurs under any of the
following conditions:
„
„
„
„
When a PMOVE is active
When a CMOVE is active and the Jump destination block contains a CMOVE or PMOVE
representing motion in the opposite direction.
When a CMOVE is active and the Jump destination block contains a CMOVE or PMOVE
representing motion in the same direction with insufficient distance for the axis to stop.
When a CMOVE is active and the Jump destination block contains a DWELL, WAIT or
END (program) command.
If the axis does STOP before a Conditional Jump, the current programmed acceleration and
acceleration mode will be used.
Unconditional Jumps do not force the axis to stop before jumping to a new program block. For
example, a CMOVE followed by a JUMP Unconditional to another CMOVE will behave just as if
the two CMOVEs occurred without an intervening Unconditional JUMP.
If Conditional Jump testing is active when the DSM314 command processor encounters a CALL
SUBROUTINE command, the axis will stop and terminate jump testing before the CALL is
executed.
If Conditional Jump testing is active when the DSM314 command processor encounters an END
SUBROUTINE command, the axis will stop and terminate jump testing before the END
SUBROUTINE is executed.
Jump Testing
Conditional jumps perform jump testing. If the CTL bit is ON, the jump is immediately
performed. If the CTL bit is OFF, the DSM314 watches the CTL bit and keeps track of the JUMP
destination. This monitoring of the CTL bit is called jump testing. If during jump testing the
CTL bit turns ON before a BLOCK command, another JUMP command, or a CALL command is
encountered, the jump is performed. These commands will end jump testing.
Example 7: Jump Testing
Consider the following two single-axis program section examples. In Example 1, the move to
position 2000 is completed before jump testing begins. The block number occurring immediately
after the JUMP command ends jump testing. Thus, the duration for which the CTL bit is
GFK-1742A
Chapter 7 Programmed Motion
7-31
7
monitored is very short. However, in Example 2, the JUMP command is encountered before the
CMOVE command. This starts the jump testing before motion begins, and jump testing continues
as long as the move lasts. If the CTL bit turns ON while the move is being performed, the jump
will be performed. After the move completes, the next block number is encountered, which ends
jump testing, and program execution continues normally. If additional moves were programmed
ahead of the next block number, jump testing would continue during those moves until the next
block number was encountered.
Example 1
Example 2
ACCEL 5000
VELOC 1000
ACCEL 5000
VELOC 1000
1:
1:
CMOVE 2000, ABS, LINEAR
JUMP CTL01, 3
2:
JUMP CTL01, 3
CMOVE 2000, ABS, LINEAR
2:
Normal Stop Before JUMP
A conditional jump command is similar to Type 2 commands in that jump testing does not start
until the Type 3 command immediately after the JUMP is executed. If this Type 3 command
would normally stop motion, then motion will stop before jump testing begins. Type 3 commands
that will stop motion are: DWELL, WAIT, ENDPROG, and moves in the opposite direction.
Thus even though the CTL bit may be ON before the block with the conditional JUMP and Type 3
command is executed, axis motion will stop before program execution continues at the jump
destination. This stopping is NOT a Jump Stop, which is described in Example 10.
Example 8: Normal Stop Before JUMP
The following example contains a jump followed by a DWELL command. The DSM314, because
it processes ahead, knows it must stop after the CMOVE command. Thus, it comes to a stop
before the DWELL is executed. Since jump testing does not begin until the DWELL is executed,
testing begins after motion stops. Jump testing ends when the following CMOVE begins due to
the associated BLOCK command. The dashed lines in the velocity profile indicate when jump
testing takes place. In this example, the CTL03 bit does not turn ON during the program
execution.
1:
ACCEL 5000
VELOC 10000
CMOVE 60000, INCR, LINEAR
2:
JUMP
CTL03, 4
DWELL 4000
3:
ACCEL 10000
VELOC 5000
CMOVE 15000, INCR, LINEAR
v
JUMP
Testing
t
4:
Figure 7-11. Normal Stop Before JUMP
7-32
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
7
Programmed Motion
Jumping Without Stopping
If the Type 3 command following a conditional jump is a CMOVE and the Type 3 command at
the destination is a move command with sufficient distance to fully decelerate to zero when
completed, the jump will be executed without stopping. This is the only way to sustain motion
when a jump is performed.
Example 9: JUMP Without Stopping
This is a simple example of a conditional jump from one CMOVE to another. While jump testing
the CTL03 bit, the first CMOVE accelerates to the programmed velocity. Before the dashed line,
the CTL03 bit is OFF, but at the dashed line the CTL03 bit turns ON. Program execution is
immediately transferred to block 3 and the CMOVE there begins. Because the velocity at the
jump destination is different, the velocity changes at the acceleration programmed of the jump
destination block. Finally, as the second CMOVE completes, velocity is reduced to zero and the
program ends.
1:
ACCEL 2000
v
VELOC 10000
JUMP
CTL03, 3
CMOVE 120000, INCR, LINEAR
3:
ACCEL 20000
C1
CTL03 ON
C2
t
VELOC 5000
CMOVE 15000, INCR, LINEAR
Figure 7-12. JUMP Without Stopping
GFK-1742A
Chapter 7 Programmed Motion
7-33
7
Jump Stop
A jump stop is a stop that is caused by a jump. When a jump stop occurs, the current
programmed acceleration and acceleration mode are used. Note that s-curve motion will
achieve constant velocity before beginning to decelerate. See the s-curve jump examples for more
details. There are two ways of generating a jump stop each described below.
A conditional JUMP triggered during a PMOVE will always generate a jump stop. Because a
PMOVE always stops before continuing to a subsequent motion, a jump stop always occurs when
a jump takes place during a PMOVE.
When a conditional jump trigger occurs during a CMOVE, however, a jump stop will not occur if
the motion programmed at the jump destination is a PMOVE or CMOVE representing sufficient
distance in the same direction. A jump stop will occur if the PMOVE or CMOVE at the jump
destination does not represent sufficient distance or represents motion in the opposite direction.
In an s-curve move, a jump stop will do one of two things. If the jump takes place after the
midpoint of the acceleration or deceleration, the acceleration or deceleration is completed before
the jump stop is initiated. If the jump occurs before the midpoint of the acceleration or
deceleration, the profile will immediately begin leveling off. Once acceleration or deceleration is
zero, the jump stop begins. See the s-curve jump examples.
Example 10: Jump Stop
The following is an example conditional jump with a jump stop. An enhancement on Example 5,
DWELL, would be to watch an external CTL bit that would indicate a problem with the positive
motion. If the CTL bit never turns on, the profile for the following program will be identical to
the profile shown in the DWELL example. If the CTL bit turned on during the first PMOVE or
the DWELL, the reverse movement would immediately commence.
The following profile would appear if the CTL bit turned on during the first PMOVE, at the
dashed line. Because the first move completed early due to the CTL bit turning on, the second
move would not have to move as far to get back to 0 position as it did in the DWELL example.
Note that because the motion programmed at the jump destination is in the opposite direction as
the initial motion, the profile would be identical if the moves were CMOVEs instead of PMOVEs.
1:
2:
ACCEL
30000
VELOC
15000
JUMP
CTL09, 2
PMOVE
DWELL
120000, ABS, LINEAR
4000
PMOVE
0, ABS, LINEAR
v
P1
P2
t
CTL09 ON
Figure 7-13. Jump Stop
7-34
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Programmed Motion
7
Example 11: Jump Followed by PMOVE
In this JUMP example, the command after the JUMP is a PMOVE in the same direction. The
velocity profile below shows the acceleration and movement for the first CMOVE and the
deceleration to the PMOVE’s velocity. The CTL01 bit, OFF when the PMOVE begins, turns ON
at the second dashed line. Motion stops after a PMOVE, even if a conditional jump goes to
another block. Thus the CTL01 bit triggers a deceleration to zero before the final CMOVE
begins.
1:
2:
3:
ACCEL
2000
VELOC
8000
CMOVE
76000, INCR, LINEAR
ACCEL
1000
VELOC
4000
JUMP
CTL01, 3
PMOVE
50000, INCR, LINEAR
ACCEL
6000
VELOC
6000
CMOVE
6000, INCR, LINEAR
v
C1
P
C2
76000
t
CTL01 ON
Figure 7-14. Jump Followed by PMOVE
S-CURVE Jumps
Jumps during linear motion and jumps during s-curve motion at constant velocities immediately
begin accelerating or decelerating to a new velocity. Jumps during a s-curve acceleration or
deceleration, however, require different rules in order to maintain a s-curve profile. What
happens when a jump occurs during an s-curve move while changing velocity depends on whether
the jump occurs before or after the midpoint (the point where the acceleration magnitude is
greatest) and whether the velocity at the jump destination is higher or lower than the current
velocity.
S-CURVE Jumps after the Midpoint of Acceleration or Deceleration
If the jump occurs after the midpoint of the change in velocity, the change will continue normally
until constant velocity is reached; then the velocity will be changed to the new velocity using the
acceleration mode of the move at the jump destination.
GFK-1742A
Chapter 7 Programmed Motion
7-35
7
Example 12: S-CURVE - Jumping After the Midpoint of Acceleration or
Deceleration
In the following example, a jump occurs during the final phase of deceleration, at the dashed line.
The deceleration continues until constant velocity is reached and then the acceleration to the
higher velocity begins.
ACCEL 50000
VELOC 100000
1: JUMP
CTL01, 3
CMOVE 500000, ABS, S-CURVE v
2: VELOC 60000
CMOVE 500000, INCR, S-CURVE
C1
C3
3: VELOC 85000
ACCEL 100000
CTL01 ON
CMOVE 250000, INCR, S-CURVE
t
Figure 7-15. Jumping After the Midpoint of Acceleration or Deceleration
S-CURVE Jumps before the Midpoint of Acceleration or Deceleration
If a jump takes place before the midpoint of acceleration or deceleration, the result depends on
whether the velocity at the jump destination is higher or lower than the velocity before the jump
took place. In the first case, when accelerating but the new velocity is lower, or decelerating and
the new velocity is greater, the DSM314 will immediately begin reducing the acceleration or
deceleration to zero. Once at zero velocity, the DSM314 will use the jump destination acceleration
and velocity and change to the new velocity.
Example 13: S-CURVE - Jumping Before the Midpoint of Acceleration or
Deceleration
In the following example, during the acceleration of the first CMOVE, a jump takes place at the
first dashed line. Because the velocity at the jump destination is lower than the velocity of the
first CMOVE the DSM314 slows the acceleration to zero. Constant velocity, zero acceleration,
occurs at the second dashed line. There, the DSM314 begins decelerating to the new velocity
using the acceleration at the jump destination. Finally, the second CMOVE finishes.
ACCEL 1000
VELOC 50000
v
1: JUMP
CTL01, 3
CMOVE 50000, INCR, S-CURVE
3: VELOC 5000
C1
C2
ACCEL 10000
CMOVE 15000, INCR, S-CURVE
CTL01 ON
C2 Begins
Figure 7-16. Jumping before the Midpoint of Acceleration or Deceleration
7-36
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
t
7
Programmed Motion
S-CURVE Jumps to a higher Acceleration while Accelerating or a lower
Deceleration while Decelerating
The second case involves jumping to a higher velocity while accelerating or a lower velocity while
decelerating. When this occurs, the DSM314 continues to the first move’s acceleration or
deceleration. This acceleration or deceleration is maintained, similar to be a linear acceleration,
until the axis approaches the new velocity. Then the normal S-curve is used to reduce
acceleration or deceleration to zero.
Example 14: S-CURVE - Jumping to a Higher Velocity While Accelerating
or Jumping to a Lower Velocity While Decelerating
In this example, a JUMP command is triggered during the initial phase of acceleration (at the first
dashed line) and the velocity at the jump destination is higher than that of the current move. The
first dashed line indicates the maximum acceleration of the first CMOVE. This value is held as
the axis continues to accelerate until it s-curves back to constant velocity. Constant velocity, the
second dashed line, indicates the beginning of the second CMOVE. This move continues until it
decelerates to zero at the end of the program.
ACCEL 50000
VELOC 30000
1:
JUMP
V
CTL02, 2
CMOVE 150000, INCR, S-CURVE
2:
C1
VELOC 90000
C2
ACCEL 25000
CMOVE 500000, INCR, SCURVE
t
CTL02 ON
C2 Begins
Figure 7-17. Jumping to a Higher Velocity While Accelerating, or Jumping to a Lower Velocity While
Decelerating
GFK-1742A
Chapter 7 Programmed Motion
7-37
7
Other Programmed Motion Considerations
The following examples are not complete programs. For example, in many cases the PROGRAM
and ENDPROG statements are not shown. These statements (in correct context) would need to be
added to make the program compile successfully.
Maximum Acceleration Time
The maximum time for a programmed acceleration or deceleration is 131 seconds. If the time to
accelerate or decelerate is computed to be longer than this time, the DSM314 will compute an
acceleration to be used based on 131 seconds. To obtain longer acceleration times, multiple
CMOVEs with increasing or decreasing velocities must be used.
Example 15: Maximum Acceleration Time
The following two program examples are only valid for a DSM314 using a 2ms position loop
update time. They show a hypothetical problem with a very long acceleration time in Example1,
and a possible solution in Example 2. In Example 1 below, 240 seconds is required to reach the
programmed velocity of 24,000 at an acceleration rate of 100 (24000 ÷ 100 = 240). Since this is
greater than the DSM’s limit of 131 seconds per acceleration or deceleration, the DSM will
calculate a value within its limit. In this case, the DSM calculates that to reach a velocity of
24,000 in 131 seconds, an acceleration of 183 would be required. The Example 1 solid line
velocity profile shows the higher (183) acceleration rate used by the DSM. The dashed line
profile in that drawing indicates the desired (programmed) acceleration rate and velocity profile
that could not be attained.
ACCEL 100
VELOC 24000
PMOVE 8000000, INCR, LINEAR
v
Actual
Profile
Desired
Profile
t
Figure 7-18. Maximum Acceleration Time Example 1
One solution (which requires some extra calculations) for obtaining a low acceleration for a long
period of time breaks a move up into separate continuous moves (using CMOVE commands), with
each move’s acceleration time being less than 131 seconds. In the problem introduced in
Example 1, the programmed move would require 240 seconds each for acceleration and
deceleration. We can easily see that if we divide this time in half, by using two moves whose
acceleration or deceleration times are each 120 seconds, we would be within the DSM’s limit of
131 seconds. This scheme is used in the following example.
7-38
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
7
Programmed Motion
Example 2 below shows how the result desired in Example 1 could be obtained by replacing
Example 1’s single move with four moves. Four moves are required since both the acceleration
and deceleration portions of the profile must each be divided into two moves. To divide the total
acceleration (or deceleration) time in half, we calculate the distance at the midpoint of either
slope, when velocity is 12000, to be 720,000 user units.
The distance traveled during acceleration or deceleration is calculated using the formula:
Change in velocity x Required time
Distance traveled =
2
12,000 x 120
720,000 =
2
(Since 240 seconds is needed to reach a velocity of 24,000, a velocity of 12,000 can be reached in
120 seconds.) The initial CMOVE and the final PMOVE both use this distance. A second
CMOVE “takes over” at the midpoint of the acceleration slope from the first CMOVE and
accelerates to the target velocity of 24,000. A third CMOVE is required for dividing up the
deceleration portion of the profile. The final move, a PMOVE, “takes over” from the third
CMOVE at the deceleration midpoint distance (720,000 user units from the final position). The
third CMOVE, as it approaches its final position, will automatically decelerate to the PMOVE’s
velocity of 12,000. The dashed lines in the Example 2 drawing separate the four moves. To
calculate the distances of the second and third CMOVEs, we subtracted the distances we
calculated for the first CMOVE and final PMOVE (720,000 each for a total of 1,440,000) from
the final distance of 8,000,000. This gave us a remaining distance of 6,560,000, which we
divided equally between the second and third CMOVES (3,280,000 each).
ACCEL
VELOC
CMOVE
VELOC
CMOVE
VELOC
CMOVE
VELOC
PMOVE
100
12000
720000, INCR, LINEAR
12000
3280000, INCR, LINEAR
24000
3280000, INCR, LINEAR
12000
720000, INCR, LINEAR
v
Second
CMOVE
Starts
Third
CMOVE
Starts
24000
12000
720000
4000000
PMOVE
Starts
7280000 8000000
t
Figure 7-19. Maximum Acceleration Time Example 2
GFK-1742A
Chapter 7 Programmed Motion
7-39
7
Feedhold with the DSM314
Feedhold is used to temporarily pause program execution without ending the program, often to
examine some aspect of a system. It causes all axis motion to end at the programmed
acceleration. When Feedhold is ended, program execution resumes. Interrupted motion will
resume at the programmed acceleration and velocity.
Feedhold is asserted by turning ON the Feed Hold %Q bit and lasts until the %Q bit is turned
OFF. The Abort All Moves %Q bit turning ON or an error that would normally cause a stop error
will end feedhold as well as terminate the program. During Feedhold, jogging positive and
negative is allowed, but no other motion. When Feedhold is terminated and program execution
resumes, the DSM314 remembers and will move to its previous destination.
Example 16: Feedhold
The following example illustrates a motion profile when Feedhold is applied. The linear move
accelerates to the programmed velocity at the programmed rate. Feedhold is applied at the dashed
line, so velocity decreases at the programmed acceleration to zero. Then, a Jog is performed using
the Jog Minus %Q bit. This is evident because the jog velocity is negative. Note that the
acceleration used during the Jog is the current Jog Acceleration, which is different than the
programmed acceleration. Note also, the Feed Hold %Q command must be applied during the
entire duration of the Jog. After the jog motion has ceased, the Feedhold is ended and the
program continues to completion.
v
ACCEL 1000
VELOC 2000
PMOVE 12000, INCR, LINEAR
Jog
Feedhold
Applied
Feedhold
Removed
t
Figure 7-20. Feedhold Example
7-40
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Programmed Motion
7
Feedrate Override
Some applications require small modifications to a programmed velocity to handle outside
changes. A Rate Override %AQ immediate command, which is sent to the DSM through ladder
logic, allows changes to a programmed feedrate (velocity) during program execution. (Details
about the Rate Override command are found in Chapter 5.) When a program begins executing,
the override rate is initially set to 100%. Thus, changes to feedrate before the execute program bit
is turned ON will be ignored. However, a rate override commanded on the same sweep as an
execute program bit will be effective.
A percentage can be assigned to the feedrate override of from 0% to 120%. When a Rate
Override is commanded, the DSM314 internally multiplies the feedrate percentage by
programmed velocity to obtain a new velocity. If the axis is moving, the current move’s Jog
Acceleration Mode is used to change velocity to the new velocity. All future move velocities will
be affected by the feedrate change. Note that when a feedrate of 0% is applied, no motion will be
generated until a new feedrate is commanded. Also note the Moving %I bit stays ON when the
feedrate is 0%.
Rate Override has no effect on non-programmed motion such as Jog, Find Home, or Move at
Velocity.
Example 17: Feedrate Override
During execution of this program, feedrate changes of + or -10% are commanded. Dotted lines
indicate -10%, dashed lines indicate +10%.
ACCEL
VELOC
PMOVE
LINEAR
1000
6000
110000, INCR,
v%
120
110
100
90
-10%
+10%
-10%
+10%
+10%
t
Figure 7-21. Feedrate Override Example
GFK-1742A
Chapter 7 Programmed Motion
7-41
7
Multi-axis Programming
Sync Blocks can be used in a multi-axis program to synchronize the axis motion commands at
positions where timing is critical.
Example 18: Multi-axis Programming
This example assumes that axis 1 controls vertical motion and axis 2 controls horizontal motion.
The objective is to move a piece of material from point A to point E as quickly as possible while
avoiding the obstacle that prevents a direct move between those points.
A simple way would be to move straight up from point A to point C, and then from point C to
point E. This sequence, however, wastes time. A better way would begin the horizontal
movement before reaching point C. It has been determined that after axis 1 has moved to a
position of 30,000, user units (to point B), axis 2 could then start and still clear the obstacle. The
program segment could be programmed as follows:
10:
CMOVE
20:
SYNC
AXIS1 30000, INCR, LINEAR
PMOVE
AXIS1 50000, INCR, LINEAR
PMOVE
AXIS2 120000, INCR, LINEAR
When Block 10 is executed, axis 1 begins its 30,000-unit move while axis 2 pauses. When the
axis 1 move completes, two things occur: axis 1 begins the 50,000-unit PMOVE commanded in
Block 20 (SYNC) without stopping (because the first move was a CMOVE), and axis 2 begins its
120,000-unit move. In the figure below, the axis 1 first move transfers the part from point A to
point B. At point B, axis 1 continues moving (performing its second move) and axis 2 begins its
move, bringing the part to point D. Axis 1 completes its second move at point D and stops;
however, axis 2 continues, and moves the part to point E.
a45271
AXIS 2
0
80,000
C
120,000
D
Part
E
Move 2
30,000
B
OBSTACLE
Move 1
AXIS 1
0
A
Figure 7-22. Multi-axis Programming Example
7-42
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Programmed Motion
7
If this program segment is not at the beginning of a program, and for some reason axis 2 has not
yet reached Block 20 when axis 1 has moved 30,000 counts, an error would occur. Axis 1 would
continue to 80,000 counts, and the DSM314 would report a “Block Sync Error during a CMOVE”
in the Status Code.
If it is imperative that the axes synchronize at Block 20, Changing Block 10 to a PMOVE would
guarantee synchronization, but then axis 1 would stop at 30,000 counts.
GFK-1742A
Chapter 7 Programmed Motion
7-43
7
Parameters (P0-P255) in the DSM314
The DSM314 maintains 256 double word parameters (0 through 255) in memory. These
parameters can be used as variables in ACCEL, VELOC, DWELL, PMOVE, and CMOVE motion
commands. Be aware that range limits still apply and errors may occur if a parameter contains a
value out of range. Parameters 216-255 are special purpose parameters. Some of the special
purpose parameters are automatically written by the DSM314. For example, P224 is
automatically updated when Position Strobe 1 on Axis 1 occurs. The following table describes the
function of the special purpose parameters.
Table 7-1. Special Purpose Parameters
Parameter
Number
216-223
Special Purpose Function
Axis
Units
Reserved
224
Position Strobe 1
Axis 1
user units
225
Position Strobe 2
Axis 1
user units
226
Commanded Position at Follower Enable Trigger
Axis 1
user units
227
Follower Incremental Stop Distance
Axis 1
user units
228-231
Reserved
232
Position Strobe 1
Axis 2
user units
233
Position Strobe 2
Axis 2
user units
234
Commanded Position at Follower Enable Trigger
Axis 2
user units
235
Follower Incremental Stop Distance
Axis 2
user units
236-239
Reserved
240
Position Strobe 1
Axis 3
user units
241
Position Strobe 2
Axis 3
user units
242
Commanded Position at Follower Enable Trigger
Axis 3
user units
243
Follower Incremental Stop Distance
Axis 3
user units
244-247
Reserved
248
Position Strobe 1
Axis 4
user units
249
Position Strobe 2
Axis 4
user units
250
Commanded Position at Follower Enable Trigger
Axis 4
user units
251
Follower Incremental Stop Distance
Axis 4
user units
252-255
Reserved
Parameters are all reset to zero after a power cycle or after a DSM314 configuration is stored by
the PLC. Parameters can be assigned in three ways:
7-44
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
7
Programmed Motion
•
•
•
The motion program LOAD command.
The Load Parameter Immediate %AQ command.
The COMM_REQ function block. This is the preferred way if you need to send multiple
parameters per scan. The COMM_REQ function block is described in Appendix B.
Assigning a value to a parameter overwrites any previous value. Parameter values can be changed
during program execution, but the change must occur before the DSM314 begins executing the
Type 3 command (Move, Wait or Dwell) previous to the Type 3 command that uses the
parameter. This is due to the pre-processing of Type 3 commands that occurs within the DSM314.
Note that a JUMP command clears pre-processing and forces the program commands at the jump
target to be processed.
Below is an example of a motion program using Parameters. The values of Parameters 1-5 are
pre-loaded with a COMREQ command from the PLC at least two program blocks before usage.
(Remember that “program blocks” are not the same as sections of the motion program that are
labeled with the BLOCK # command.)
Block/Command/Data
Comments
1:
VELOC P001
// Set velocity of first move = value in Parameter 1
ACCEL P002
// Set acceleration of first move = value in Parameter 2
CMOVE P003, ABS, LINEAR
3
// Reach velocity of 2nd move (20000) at position = Par.
VELOC 20000
PMOVE 20000, INCR, LINEAR
// Set velocity of second move = 20000
// Normal PMOVE
2:
DWELL P004
// Dwell for Parameter 4 time
PMOVE P005, INCR, LINEAR
// PMOVE to value in Parameter 5
(* Strobe #1 occurs on Axis-1 during move to Param. 5 position *)
3:
GFK-1742A
DWELL 1000
// Dwell for one second
LOAD
// Load Parameter 6 parameter
P006,2000
PMOVE P224, INCR, LINEAR
// Move to strobed position for Strobe #1 on axis-1
DWELL 2000
// Dwell for two seconds
PMOVE P006, ABS, S-CURVE
// Final stop position = value in Parameter 6
Chapter 7 Programmed Motion
7-45
7
Calculating Acceleration, Velocity and Position Values
One method of determining the value for APM or DSM motion program variables such as
Acceleration, Velocity or Position is to plot the desired move or move segment as a velocity
profile. A velocity profile plots time on the horizontal axis of a graph and velocity on the vertical
axis. The key to understanding profile generation is to break the complete move into smaller
segments that may be analyzed geometrically. Most applications will use the economical
trapezoidal move, velocity profile as illustrated below. To move as quickly as possible, use a
triangular velocity profile if the servo has sufficient speed range. A triangular move would
accelerate half the distance then decelerate the remaining half. Another alternative is to use a
trapezoidal profile with a shorter slew segment.
Kinematic Equations
Kinematics is the branch of mechanics that studies the motion of a body or a system of bodies
without consideration given to its mass or the forces acting on it. The following table includes
transformations of the basic linear equations as applied to the acceleration portion of motion
profiles. Use these formulae to calculate the velocity and acceleration for the acceleration portions
of the move.
Table 7-2. Linear Equation Transformations
Given
A, X
A, V
A, t
V, t
V, X
X, t
V/t
V2/2X
2X/t2
2X/t
Solve For
Acceleration
Velocity
X (Distance)
time
2AX
2X
A
V2/2A
V/A
At
At2/2
Vt/2
2X/V
Let’s take a look at the figure below. Beginning at zero velocity the axis will accelerate in a
positive direction (ta), run (slew) at velocity for some time (ts), then decelerate back to zero
velocity (td). That’s a complete move or move segment. Looking at the figure below we can
easily separate the different portions of the move. A common rule of thumb is to divide the
trapezoidal move into three time portions, one-third for acceleration, one-third at slew velocity
and the remaining third to decelerate. The slew (Xs) section of an equally divided trapezoidal
velocity profile represents ½ of the distance moved and the acceleration and deceleration portions
each represent ¼ of the total distance. The rule of thirds minimizes the RMS torque current in the
motor and is the most economical use of energy.
7-46
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
7
Programmed Motion
Trapezoidal Move
Vpk
•Limits max motor speed
•Higher accel torque than triangle move
•Symmetrical profile (1/3, 1/3, 1/3 time)
maximizes power transfer to load
Velocity
•Most common for long moves
A = acceleration
D = deceleration
X = distance
Vpk = velocity peak
ta = time acceleration
ts = time at slew velocity
td = time deceleration
Ta = acceleration Torque
Td = deceleration Torque
Xa = acceleration distance
Xs = slew distance
Xd = deceleration distance
A
D
Xs
Xa
Xd
ta
Torque
ts
X
td
time
Ta
Td
Equations
x = V pk (0 . 5 t a + t s + 0 . 5 td
V pk =
a =
(0 . 5 t a
V pk
ta
x
+ t s + 0 . 5 td
⇒ D =
)
)
V pk
td
Figure 7-23. Trapezoidal Move
Once the move segment outline is drawn, we need to examine specifications or physical
restrictions applicable to the move. For instance the move may have to complete in a certain time
interval (ta + ts + td) or move a fixed distance (X). The maximum velocity (Vpk) of the servomotor
is one example of a physical limitation. Given any two known values of the acceleration portion
of the move segment, a remaining variable can be found using the kinematic equations as
illustrated in the example below.
Trapezoidal Velocity Profile Application Example
Let’s assume that a complete move of 16 inches must be made in three seconds and the maximum
motor velocity, translated through the gearing is 15 inches per second. Using our rule of thumb,
we divide the move’s time into thirds: ta = 1sec, ts = 1sec and td = 1sec. We can also subdivide the
16-inch move into three distances. The slew (Xs) section of an equally divided trapezoidal
velocity profile represents ½ of the distance moved and the acceleration (Xa) and deceleration (Xd)
portions each represent ¼ of the total distance: Xa =4 in, Xs =8 in and Xd =4 in.
To calculate peak Velocity (Vpk), the first acceleration portion of the move must travel a given
distance (Xa) in a given time (ta). From the above Kinematic Velocity formula (2X/t) using the
given, Xa =4 inches and ta = 1 second, (2*4 inches) / 1 second = 8 inches/second.
To calculate Acceleration the simplest formula is (V/T)=(8 inches/second / 1 second)=8
inches/second/second.
The Position (Distance = X) is the entire distance moved (Xa + Xs + Xd) or 16 inches
GFK-1742A
Chapter 7 Programmed Motion
7-47
7
Triangular Velocity Profiles
The triangular velocity profile minimizes servo acceleration rate and requires a higher servomotor
velocity when compared to a trapezoidal profile of the same distance and time. Use a triangular
profile for fast short moves.
Equations:
Position = Area
Vpk
1
x = V pk (ta + td )
2
A
D
Velocity
X
ta
2( x)
=
(t a + td )
V pk
td
time
Torque
Ta
Td
a=
V pk
ta
Figure 7-24. Triangular Velocity Profile
Non-Linear or S-Curve Acceleration
S-Curve or jerk limited acceleration calculation is simple to do if the linear calculation is
accomplished first. The APM and DSM motion controllers use 100% jerk limiting. To convert a
linear acceleration to 100% jerk limited acceleration you either double the Acceleration value
(2*A) or double the time used for acceleration (2ta). Using S-Curve acceleration at the same
acceleration rate (A) as linear acceleration will require twice the time (ta) reaching velocity. If the
time duration of the move must remain the same and the servo has sufficient peak torque, use
twice the acceleration (2*A) to reach velocity in the same amount of time.
Equations:
Xa = Xd =
Velocity
V pk
2
Vpk
Xs
a
Xa
Xd
t
ta = td =
2V pk
a
Acceleration
a
ts =
Xs
V pk
td
t
ta
ts
Figure 7-25. S-Curve Acceleration
7-48
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
7
Programmed Motion
Motion Editor Error and Warning Messages
The editor will generate three types of error messages; syntax errors, semantic errors, and
warnings. These are explained below.
The editor will only generate program code if your source motion program contains no syntactic
or semantic errors. If the editor detects unrecognized syntax or semantic errors, it will generate
an error message that can be used to troubleshoot the program. The last page of this chapter
discusses this subject (“Using Error Messages to Troubleshoot Motion Programs”).
Error messages displayed in the Status window contain a numeric error code. The following
listing matches error code, error description, and common cause information.
The Motion Editor enforces maximum limits for position, velocity, and acceleration based 8:1
uu/cts scaling.
Syntax Errors
The VersaPro motion editor translates programs into the code used by the DSM314. If the source
code violates the syntactic rules, the editor cannot recognize the code and generates syntax errors.
Syntax errors will attempt to describe the error source.
Semantic Errors
This section describes parse errors reported by the motion parser and their typical causes.
(M200) Undefined identifier
Text string is not a recognized motion program variable or keyword.
(M201) Parameter register must be in range of P000 - P255
Motion program referenced a parameter register outside the range of P000 - P255.
(M203) CTL variable must be in range CTL01 - CTL32 (DSM314)
Motion program referenced a CTL bit outside the valid range.
(M204) Invalid motion program input
Motion program file contains an invalid character. Motion program files must contain only
ASCII text or white space.
(M210) Hexadecimal constants must be in range of 16#0 - 16#FFFFFFFF
Motion program contains a hexadecimal number outside the valid range.
(M211) Binary constants must be in range of 0 to (2^32)-1
Motion program contains a binary number outside the valid range. A binary number cannot
contain more that 32 binary digits.
(M212) Integer constants must be in range of 0 to 4294967294
Motion program contains an unsigned integer value that cannot be represented in 32 bits.
(M213) Signed integer constants must be in range of -2147483648 to 2147483647
GFK-1742A
Chapter 7 Programmed Motion
7-49
7
Motion program contains a signed integer value that cannot be represented in 32 bits.
(M214) SYNC Statement is only valid in multi-axis programs and subroutines
A single-axis motion program or subroutine attempted to define a sync block.
(M215) Multi-axis programs do not support Axis 3 or 4
Commands in multi-axis programs can only reference axis 1 or 2.
(M220) Specified axis is out of range
A single-axis motion program can only reference axis 1, 2, 3, or 4.
(M221) Acceleration must be in range 1 – 1073741823
An ACCEL command has specified an acceleration outside the valid range.
(M222) Velocity must be in range 1 – 8388607
A VELOC command has specified a velocity outside the valid range.
(M223) Position must be in range -536870912 – 536870911
A CMOVE or PMOVE command has specified a position outside the valid range.
(M224) Dwell must be in range 0 – 60000
A DWELL command has specified a dwell outside the valid range.
(M225) Block number must be in range 1 – 65535
A motion program or subroutine has attempted to define a block number outside the valid range.
(M230) Must specify an axis in a multi axis program
ACCEL, VELOC, CMOVE, PMOVE, DWELL, and WAIT commands in a multi-axis program or
subroutine must specify an axis.
(M231) Cannot specify axis in a single-axis program
ACCEL, VELOC, CMOVE, PMOVE, DWELL, and WAIT commands in a single-axis program
or subroutine must not specify an axis.
(M233) Acceleration reassignment without intervening move command
It is illegal to change the acceleration for a given axis if there is not an intervening PMOVE or
CMOVE command.
(M234) Velocity reassignment without intervening move command
It is illegal to change the velocity for a given axis if there is not an intervening PMOVE or
CMOVE command.
(M235) Block number already defined in this program unit
The motion program or subroutine has attempted to define a block number that has already been
defined.
(M236) Jump destination block not defined
The motion program or subroutine has a JUMP statement to a block number that has not been
defined.
(M237) Call destination subroutine not defined
The motion program or subroutine contains a call to a subroutine that has not been defined.
7-50
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
7
Programmed Motion
(M238) Program must be in range 1 – 10
A PROGRAM statement is attempting to define a program number that is outside the valid range.
(M239) Attempt to redefine program. Program already defined
A PROGRAM statement is attempting to define a program using a program number that is
already defined.
(M240) End program definition with ENDPROG statement
A PROGRAM has been terminated with an ENDSUB statement, or an ENDSUB statement was
encountered within a program.
(M242) Missing ENDPROG statement
A PROGRAM had not been terminated with an ENDPROG statement when the end of file was
encountered.
(M243) Subroutine must be in range 1 – 40
A SUBROUTINE statement is attempting to define a subroutine number that is outside the valid
range.
(M244) Attempt to redefine subroutine. Subroutine already defined
A SUBROUTINE statement is attempting to define a program using a subroutine number that is
already defined.
(M245) End subroutine definition with ENDSUB statement
A SUBROUTINE has been terminated with an ENDPROG statement, or an ENDPROG
statement was encountered within a subroutine.
(M246) No subroutine is being defined
The program block contains an ENDSUB command, but there is no open SUBROUTINE.
(M247) Subroutine cannot call itself
The DSM does not support any kind of recursion. Once invoked a subroutine cannot call itself or
be called by a subroutine that it has invoked.
(M248) Axis definition of subroutine must match caller
An attempt has been made to call a single-axis subroutine from a multi-axis program or
subroutine, or call a multi-axis subroutine from a single-axis program or subroutine.
(M249) Already defining program or subroutine
A PROGRAM or SUBROUTINE statement has been encountered within an unterminated
PROGRAM or SUBROUTINE.
(M280) Instruction limit exceeded, max 1000
A motion program block can contain no more that 1000 program statements. This error is issued
if the number of statements exceeds that limit.
(M281) File must contain at least one program
A motion program block must contain at least one PROGRAM; otherwise, there is no way to
invoke it. This error is issued if a motion program block does not contain any PROGRAMs.
(M282) Statement must be within a program or subroutine
GFK-1742A
Chapter 7 Programmed Motion
7-51
7
This error is issued if motion program commands occur outside a PROGRAM or SUBROUTINE.
(M283) This instruction is invalid for the specified module type
A motion program block contains an instruction that is invalid for the destination module.
(M293) Maximum error count exceeded.
The motion program parser reports up to 30 errors when parsing a motion program block. When
that limit is reached, this error is issued and no more errors are reported.
(M300) Parse directives must precede any executable statements
A #pragma directive must be issued at the beginning of the motion program block, i.e. preceding
any motion program statements.
(M301) Invalid directive option
An invalid #pragma directive has been specified.
(M302) Invalid directive parameter
An invalid option has been specified as #pragma directive parameter.
Warnings
Warnings are generated for code that seems questionable, but does not specifically cause an error.
This section describes parse warnings reported by the motion parser and their typical causes.
(M482) Unexpected end of program: unclosed comment
A comment was not terminated when an end of file was encountered.
(M483) Nested comments.
The motion parser does not support nesting comments. A warning is issued if a comment is
defined within a comment.
(M490) Program contains no executable statements
A warning is issued if a program block contains no executable statements.
7-52
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Programmed Motion
7
Using Error Messages to Troubleshoot Motion Programs
After creating motion programs or subroutines in the Motion Editor window, you
can check for basic errors by clicking the Block Check icon on the toolbar.
The editor will check the motion program block and report any errors it detects in the Information
window. The next figure shows an example of an error detected during the check.
Cursor
Highlighted
Error Message
Figure 7-26. Using Error Messages to Troubleshoot Motion Programs
The error shown in the above figure, “Error: (M231) Cannot specify axis in a single-axis
program: 1,” refers to the last line of the program, just before the ENDPROG statement. Notice
that AXIS1 is found on this line. Since PROGRAM 2 is a single-axis program, the use of axis
numbers within the program is not allowed so an error was generated.
In the above example, the error message was double clicked, as indicated by the fact that it is
highlighted in reverse video. When this is done, the cursor jumps to the place in the program that
produced the error. You will note the presence of the cursor at the start of the line containing the
AXIS1 statement.
For further help in troubleshooting errors, the “Motion Editor Error and Warning Messages”
section of this chapter lists common causes for the various error codes. For example, the listing
for error (M231), seen in the example above, states:
(M231) Cannot specify axis in a single-axis program
ACCEL, VELOC, CMOVE, PMOVE, DWELL, and WAIT commands in a single-axis
program or subroutine must not specify an axis.
GFK-1742A
Chapter 7 Programmed Motion
7-53
Chapter
Follower Motion
8
Configuring the DSM314 for Follower Control Loop = Enabled (in the VersaPro Axis
Configuration tab) allows each Servo Axis (slave) to respond to a Master Axis input using a
programmable slave : master ratio. The DSM314 defines the slave : master ratio as the ratio of
two integer numbers A and B. The basic formula for computing Follower motion is:
Follower Servo Axis motion (slave axis) = Master Axis motion x (A/B)
or
slave : master ratio = A : B ratio
If a Jog, Move at Velocity or Execute Motion Program command is also initiated, the axis motion
will represent the combination of the Master Axis motion and the internally commanded motion.
This Chapter provides details of servo motion related to the Master Axis input. Refer to Chapter 9
for additional information about combined Follower and commanded motion.
When the Enable Follower %Q bit is turned ON, an axis will immediately begin following the
selected Master Source unless a Follower Enable Trigger input has been selected. If a Follower
Enable Trigger input has been selected, then the Enable Follower %Q bit must be ON and an
OFF to ON transition of the trigger input must occur. The external trigger input CTL01 CTL032 is selected in the configuration software.
The DSM314 always operates the follower axis in “ramp makeup” mode. If the master axis has a
nonzero velocity when the follower is enabled, the slave axis will accelerate at the configured
Ramp Makeup Acceleration to a speed which allows it to catch up to the master axis.
GFK-1742A
8-1
8
Master Sources
A DSM314 Servo Axis can be configured to follow any two of eight possible master input sources.
The two sources are identified as Source 1 and Source 2. A Follower Master Source Select %Q
bit determines whether Source 1 or Source 2 is the active source. The available selections for
Source 1 and Source 2 are:
•
•
•
•
•
•
•
•
Axis 1 Commanded Position
Axis 1 Actual Position
Axis 2 Commanded Position
Axis 2 Actual Position
Axis 3 Commanded Position
Axis 3 Actual Position
Axis 4 Commanded Position
Axis 4 Actual Position
Note that follower motion is summed with Jog, Move at Velocity, or Motion Programs. If a slave
axis is following a master input at velocity V1, and a Jog is commanded at velocity V2, the axis
will move at velocity V1 + V2.
External Master Inputs
Actual Position for Axis 1 - Axis 4 represent external master axis sources. An encoder connected
to the axis or the feedback of a servo system may be used as an actual position source. The
DSM314 follower loop allows a slave axis to follow a selected external source as shown in this
example:
Example 1: Following Axis 3 Actual Position Master Input
In this example, a graph of velocity (v) versus time (t) shows the velocities of the master input
(Actual Position 3), and the slave axis that is following the master. The DSM314 is configured
with Follower Master Source 1 = Actual Position 3 and the Select Master Source %Q bit is
OFF. The A:B ratio is 1:1. The velocity profile of the following (slave) axis is identical to the
master input.
v
A:B
Ratio
= 1:1
a45327
v
Follower
Master
t
t
Figure 8-1. Following Encoder 3 Master Input
8-2
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
8
Follower Motion
Internal Master Axis Command generators
Commanded Position for Axis 1 - Axis 4 represent internal master axis sources. The DSM314
follower loop will allow a slave axis to follow a selected internal command source as shown in this
example:
Example 2: Following an Internal Master command
In this example, Axis 1 of the DSM314 is configured with Follower Master Source 2 =
Commanded Position 2 and the Select Internal Master %Q bit is ON. The A:B ratio is 1:2. Axis
2 is commanded to Move at Velocity 12000 and then 0. Axis 1 follows axis 2 at half of the axis 2
velocity and acceleration, and moves only half the distance that axis 2 has moved.
v
a45330
v
A:B
Ratio
= 1:2
t
Axis 2 (Master)
Axis 1 (Follower)
t
Figure 8-2. Following Servo Axis 2 Encoder
A:B Ratio
A DSM314 axis following a master input can do so at a wide range of slave : master (A:B) ratios.
The “A” value can be any number from –32768 to 32767. The “B” value can be anywhere
between 1 and 32767. The magnitude of the A:B ratio can be from 1:10,000 to 32:1. Thus very
precise ratios such as 12,356:12,354 or 32,000:1024 can be used.
The Follower A/B Ratio %AQ command can be used to change the A:B ratio at any time, even
while following. However, an invalid ratio will generate a status error and be ignored. An invalid
ratio is a ratio with B equal to or less than zero or A:B magnitude greater than 32:1 or less than
1:10,000.
When following with a non 1:1 ratio, the velocity profile of the master and follower will look
somewhat different. Horizontal lines, indicating constant velocity, and slanted lines, indicating
acceleration and deceleration, will be different. If the A:B ratio is less than 1:1, the follower
velocity and acceleration will be less than the master. Likewise, if the A:B ratio is greater
than 1:1, the follower velocity and acceleration will be greater than the master. The duration
of motion, and time that the slave axis will accelerate, decelerate, or stay at constant velocity are
the same for the master and follower.
The distance moved, which in a velocity profile is the area between the graph and the time axis,
will be that of the master multiplied by the A:B ratio. If A is zero, no following motion will be
generated. If A is negative, the following axis will move with the direction of motion reversed.
GFK-1742A
Chapter 8 Follower Motion
8-3
8
Example 3: Sample A:B Ratios
All of the following samples are following the master source input at various A:B ratios.
v
v
a45331
t
t
Follower Axis
A:B Ratio = 1:2
Master Source
v
v
t
t
Follower Axis
A:B Ratio = 1:3
Follower Axis
A:B Ratio = 2:1
v
v
t
t
Follower Axis
A:B Ratio = 5:6
Follower Axis
A:B Ratio = 4:3
v
v
t
Follower Axis
A:B Ratio = -1:1
t
Follower Axis
A:B Ratio = -2:3
Figure 8-3. Sample A:B Ratios
8-4
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Follower Motion
8
Example 4: Changing the A:B Ratio
One example of variable A:B ratios is to use one ratio while moving positive, and another when
moving negative. Note that determination of positive and negative velocity and update of the
A:B ratio must be done in the PLC or the DSM314 Local Logic program. In the profile
below, the following axis uses a 2:1 ratio when moving positive and a 1:2 ratio when moving
negative.
v
a45332
v
Ratio 2:1
t
Master Source
Following Axis
Ratio 1:2
t
Figure 8-4. Changing the A:B Ratio
Velocity Clamping
Velocity clamping is available using the Velocity Limit set in the Configuration software. When
the master velocity exceeds the configured limit, the following axis will continue to move at
the limit velocity multiplied by the A:B ratio. The Velocity Limit %I bit is set and a status error
is generated to indicate that the slave axis is no longer locked to the master input positioning.
The slave axis has essentially fallen behind the master input.
Example 5: Velocity Clamping
The Velocity Limit is set to 100,000 in this example. Thus the slave axis velocity is clamped at
100,000 user units/sec in either direction. When the master axis peaks greater than the limits, the
following axis stays at the limit. After the master slows to under the limit, the following axis
continues tracking the master axis velocity. Counts generated in excess of the Velocity Limit are
lost to the follower. The horizontal dashed lines indicate the velocity limits. The shaded area
indicates the times when the In Velocity Limit bit is ON and the following axis is falling behind
the master.
GFK-1742A
Chapter 8 Follower Motion
8-5
8
v
v
a45334
Ratio
1:1
t
t
Master Axis
Following Axis
Figure 8-5. Velocity Clamping
Unidirectional Operation
Setting the axis Command Direction configuration to Positive Only or Negative Only results in
unidirectional follower motion. Any master axis counts in the zero limited direction are ignored.
No error is generated by counts in the zero limited direction. The In Velocity Limit %I bit,
however, does reflect the presence of a master command in the zero limited direction.
Example 9: Unidirectional Operation
In this example, the Command Direction configuration is set to Positive Only. As shown in the
velocity profile below, the slave axis follows the positive counts, but ignores the negative counts.
Note that when the master is moving negative, the In Velocity Limit %I bit is ON, but no status
error is generated.
v
v
a45335
Ratio
1:1
t
t
Master Source
Following Axis
Figure 8-6. Unidirectional Operation
Enabling the Follower with External Input
Any CTL bit CTL01- CTL32 can be configured as an enable trigger for the follower axis. If a
CTL bit source is configured as an external faceplate input, that input can be used to start the
follower. When no input is selected, the follower is enabled and disabled directly by the Enable
Follower %Q bit. When an input is selected for the Enable Trigger and the Enable Follower %Q
bit is set, the next positive transition of the defined input will instantly enable the follower. The
follower will remain enabled until the Enable Follower %Q bit is cleared. The faceplate 24v
8-6
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Follower Motion
8
inputs have 5 ms filters that result in a Follower Enable Trigger response time of 5-7
milliseconds. The faceplate 5v inputs do not have these filters and will provide an Enable Trigger
response time of 2 millisecond or less.
When the Enable Follower trigger occurs, the Commanded Position at that point is captured in a
parameter register so that it can be used in a Programmed Move command. The position is
captured in parameter 226 (for Servo Axis 1), parameter 234 (for Servo Axis 2), parameter 242
(for Servo Axis 3) or parameter 250 (for Servo Axis 4).
Follower Enabled status is returned in a %I bit for each axis.
Disabling the Follower with External Input
Any CTL bit CTL01- CTL32 can be configured as a Disable Trigger for the follower axis. The
trigger input is tested only when the Enable Follower %Q bit is ON. When the Enable Follower
%Q bit is ON, an OFF to ON transition of the trigger bit will disable the follower. Turning OFF
the Enable Follower %Q bit immediately disables the follower, regardless of the disable trigger
configuration.
Follower Disable Action Configured for Incremental Position
Configuring the Follower Disable Action for Inc Position allows the follower axis to perform an
Incremental Registration Move. Disabling the follower with the Enable Follower %Q bit or
optional Disable Trigger will cause the axis to continue at its present velocity, then decelerate and
stop after a specified distance has elapsed. The incremental distance is specified in a parameter
register for each axis:
P227 = Axis 1 Incremental distance
P235 = Axis 2 Incremental distance
P242 = Axis 3 Incremental distance
P250 = Axis 4 Incremental distance
The incremental distance represents the total actual position change that will occur from the point
where the follower is disabled until it stops. Superimposed motion commands (Jog, Move at
Velocity or Motion Programs) should not be active during a Follower Registration Move.
Follower Axis Acceleration Ramp Control
For applications where the Follower is enabled after the Master command is already up to speed,
the Follower Ramp feature can be used to apply a controlled acceleration rate to bring the follower
axis up to speed. This may be done without losing any Master command counts from the point at
which the Follower was enabled. During the automatically generated Follower Ramp Control
make-up move, the acceleration/deceleration does not exceed the configured Follower Ramp
Acceleration value and provides a smooth motion. When the follower is enabled, the slave axis is
ramped up to the master velocity at the active configured Follower Ramp Acceleration rate. This
function is most useful when the master source is in motion before the follower mode is enabled.
In addition to the PLC Enable Follower %Q bit, a CTL bit (CTL01-CTL32) may be configured as
the enable follower signal for position registration functions. When the Enable Follower %Q bit
GFK-1742A
Chapter 8 Follower Motion
8-7
8
is ON, then the CTL bit chosen acts as a rising edge trigger to enable follower mode. After
Follower is enabled, only the PLC Enable Follower %Q bit controls the active state of the
following function. When the follower axis is enabled to a moving master source, some master
source counts cannot be used immediately. The master counts that accumulate during acceleration
of the follower axis are stored. When the follower axis reaches the master velocity, they will be
inserted during make-up distance correction motion. This motion has an automatically calculated
trapezoidal velocity profile determined by the Follower Ramp Distance Makeup Time, the
amount of accumulated counts, and the configured Follower Ramp Acceleration. Set the
Follower Ramp Distance Make-up Time to the desired time in the configuration software or it
can be changed with the PLC %AQ Command 42h.
If the Follower Ramp Distance Makeup Time is too short then the automatically generated
velocity profile is triangular in profile. If during the distance correction velocity exceeds 80% of
the configured Velocity Limit, then the automatically calculated move velocity will be clamped at
80% of the limit value. Clamping the makeup move velocity at 80% of the velocity limit allows
the system some reserve velocity capacity for continued tracking of the master source velocity. In
both cases a warning message is reported and the real distance make-up time is longer than
programmed, but the distance is still corrected properly.
Setting a Follower Ramp Distance Make-Up Time of 0 allows the Ramp feature to accelerate the
axis without making up any of the accumulated counts. In this instance velocity will not exceed
the master velocity. For applications where lost counts do not matter, set the distance make-up
time = 0.
By default the superimposed motion profile that is automatically generated by the follower ramp
function (with non-zero makeup time) is trapezoidal using the Follower Ramp Acceleration and a
distance derived from the active Ramp Makeup Time.
The value of the Velocity Limit may affect functionality differently depending on the
relationships of the master source velocity. The following case examples illustrate these points.
Case 1: The master source velocity is less than 80% of the configured Velocity Limit and the
makeup time (Mkup Time) is a long enough interval so that the resultant velocity remains less
than 80% of the Vlim. This is the preferred operation, no errors are reported and the over speed
move of the ramp function occurs within the specified makeup time. The follower axis velocity
will not exceed 80% of the Vlim unless the master source velocity increases.
Case 2: The master source velocity is below 80% of the configured Velocity Limit but the makeup
time interval is too short to allow operation as in case 1. A status only error (ECh) will be
returned when the follower velocity matches the master command velocity. The makeup move
will accelerate using the active Follower Ramp Acceleration to 80% of the velocity limit (Vlim).
The makeup move will occur and all accumulated counts stored during initial acceleration will be
used.
Case 3: The master source velocity is greater than 80% of the configured Velocity Limit when the
follower velocity matches the master command velocity. A status only error (EAh) is returned
and no makeup correction move is attempted.
Case 4: At the time when the follower velocity matches the master command velocity and the
makeup move is to occur and conditions are the same as in Case 1 or Case 2 and the makeup
move has initiated, the master source increases to >80% of the Velocity Limit. The amount of
accumulated counts and the active makeup time value will determine if the makeup move will
complete in the specified makeup time. A status only error (F2h) will occur if the combined
8-8
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
8
Follower Motion
master command velocity and the makeup move velocity reach 100% of the velocity limit. The
master command velocity will not exceed 100% of the Velocity Limit value. Accumulated counts
may be lost and the makeup move will not complete.
The Follower Ramp Active %I bit indication is turned on while the ramp control is in effect for
both the ramp up/make-up and ramp down.
The Follower Enabled and Follower Ramp Active %I bits can be monitored by the PLC to
determine which part of the follower ramp up/ramp down cycle is active. The following figure
shows the state of Follower Enabled and Follower Ramp Active during a follower cycle.
Make- up distance
Follower
Disabled
Velocity
Make- up time
0
Time
Follower
Enabled
Follower
Ramp Active
Figure 8-7. Follower Ramp Up/Ramp Down Cycle (Case 2)
GFK-1742A
Chapter 8 Follower Motion
8-9
8
The programmed make-up time can be too short for the required distance correction. In this case a
warning error is reported (in the point B of the trajectory), but system continues acceleration up to
the speed, insuring the minimum possible distance correction time . The velocity profile for such
case is shown on the figure 8-12.
C
Follower
Disabled
Make-up
distance
B
Velocity
make-up
time
0
Time
Figure 8-8. Follower Ramp Up/Ramp Down Cycle – Case 2 with make-up time too small.
During the ramp phase of the distance correction, the velocity limit is controlled. If calculated
velocity is too high, then the velocity is clamped and warning error code is set (in the point C of
the trajectory). Figure 8-13 shows the velocity profile during the follower ramp cycle for this case.
Constant velocity
max Vel=0.8*Vlim
B
Velocity
C
Make-up
distance
Follower
Disabled
make-up
time
0
Time
Figure 8-9. Follower Ramp Up/Ramp Down Cycle - case with active velocity limit.
If the acceleration time (sector BC of the trajectory in figure 8-13) exceeds 128 seconds, then
another warning error will be reported. In this case the distance also will be corrected accurately.
8-10
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
8
Follower Motion
Follower Mode Command Source and Connection Options
The diagrams on the following pages illustrate a variety of Master axis and Follower slave axis
loop connection options.
The diagram below illustrates the three DSM314 analog axes connected in parallel with Actual
Position for Axis #4. The reader should note that with this configuration, the Local Logic
function can be run. This is because the command generator for axis #4 is not required for this
configuration. The Master Source Configuration items are all set to Actual Position Axis #4.
This is not a requirement. However, it does eliminate a source of error due to the master source
select bit being set incorrectly.
4
A ctua l P o sitio n
A xis # 4
Fe ed F orw ard
M a ste r E n ab le
S o urce Fo llow er
S e le ct A xis # 1
A xis # 1
R atio
A /B
P o sitio n
Lo op
S e rvo
A m plifie r
M
S lave
M o to r
A xis#1
1
E n cod er
Jog /
M o ve a t
V e lo city
M o tion
P ro gra m
S lave A xis #1
Fe ed F orw ard
R atio
A /B
M a ste r E n ab le
S o urce Fo llow er
S e le ct A xis # 2
A xis # 2
P o sitio n
Lo op
M o tion
P ro gra m
S e rvo
A m plifie r
Jog /
M o ve a t
V e lo city
M
S lave
M o to r
A xis#2
2
E n cod er
M
S lave
M o to r
A xis#3
3
E n cod er
S lave A xis #2
Fe ed F orw ard
R atio
A /B
M a ste r
S o urce
S e le ct
A xis # 3
E n ab le
Fo llow er
A xis # 3
P o sitio n
Lo op
M o tion
P ro gra m
Jog /
M o ve a t
V e lo city
S e rvo
A m plifie r
S lave A xis #3
Figure 8-10. 3-Axis Analog Follower / Parallel Structure / Follower Source = Actual Position 4
GFK-1742A
Chapter 8 Follower Motion
8-11
8
The diagram below illustrates the three DSM314 analog axes connected in parallel with
Commanded Position for Axis #4. The reader should note that with this configuration, the Local
Logic function can not be run. This is because the command generator for axis #4 is required for
this configuration. The Master Source Configuration items are all set to Commanded Position
Axis #4. This is not a requirement. However, it does eliminate a source of error due to the master
source select bit being set incorrectly.
P a th G e ne rator A xis #4
C om m a nd ed
P o sitio n
A xis # 4
Fe ed F orw ard
R atio
A /B
M a ste r
S o urce
A xis # 1
E n ab le
Fo llow er
A xis # 1
P o sitio n
Lo op
S e rvo
A m plifie r
M
S lave
M o to r
A xis#1
1
E n cod er
Jog /
M o ve a t
V e lo city
M o tion
P ro gra m
S lave A xis #1
Fe ed F orw ard
R atio
A /B
M a ste r
S o urce
A xis # 2
E n ab le
Fo llow er
A xis # 2
P o sitio n
Lo op
M o tion
P ro gra m
S e rvo
A m plifie r
Jog /
M o ve a t
V e lo city
M
S lave
M o to r
A xis#2
2
E n cod er
M
S lave
M o to r
A xis#3
3
E n cod er
S lave A xis #2
Fe ed F orw ard
M a ste r
S o urce
A xis # 3
E n ab le
Fo llow er
A xis # 3
R atio
A /B
P o sitio n
Lo op
M o tion
P ro gra m
S e rvo
A m plifie r
Jog /
M o ve a t
V e lo city
S lave A xis #3
Figure 8-11. 3-Axis Analog Follower / Parallel Structure / Source = Commanded Position 4
8-12
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
8
Follower Motion
The diagram below illustrates the two DSM314 digital axes connected in parallel with
Commanded Position or Actual Position for Axis #3. The reader should note that with this
configuration the Local Logic function can be run. This is because the command generator for
axis #4 is not required for this configuration.
P a th G e ne rator A xis #3
C om m a nd ed
P o sitio n
A xis # 3
S lave
M o to r
A xis#1
Fe ed F orw ard
R atio
A /B
M a ste r E n ab le
S o urce Fo llow er
S e le ct A xis # 1
P o sitio n
Lo op
M o tion
P ro gra m
V e lo city an d
To rqu e Lo op
S e rvo
Am p
M
Jog /
M o ve a t
V e lo city
1
S lave A xis #1
E n cod er
S lave
M o to r
A xis#2
Fe ed F orw ard
R atio
A /B
M a ste r
S o urce
S e le ct
E n ab le
Fo llow er
A xis # 2
P o sitio n
Lo op
M o tion
P ro gra m
V e lo city an d
To rqu e Lo op
Jog /
M o ve a t
V e lo city
S lave A xis #2
3
A ctua l
P o sitio n
A xis # 3
S e rvo
Am p
M
2
E n cod er
Figure 8-12. 2-Axis Digital Follower / Parallel Structure / Source = Commanded or Actual Position 3
GFK-1742A
Chapter 8 Follower Motion
8-13
8
The diagram below illustrates two DSM314 digital axes connected in parallel with Commanded
Position from Axis 1 driving servo loops for Axis 1 and Axis 2. This will allow both axes to run
from the same commanded path. Note that Axis 1 is configured with Follower Control Loop =
Disabled. This configuration does not allow for load sharing between axes that are tightly
coupled. The reader should note that with this configuration the Local Logic function can be run.
This is because the command generator for axis #4 is not required for this configuration.
P a th G e ne rator A xis #1
C om m a nd ed
P o sitio n
A xis # 1
S e rvo
M o to r
A xis#1
Fe ed F orw ard
V e lo city an d
To rqu e Lo op
P o sitio n
Lo op
S e rvo
Am p
M
1
A xis #1 (F ollow er C ontrol Loop = D isabled)
E n cod er
S lave
M o to r
A xis#2
Fe ed F orw ard
R atio
A /B
M a ste r
S o urce
A xis # 2
E n ab le
Fo llow er
A xis # 2
P o sitio n
Lo op
M o tion
P ro gra m
V e lo city an d
To rqu e Lo op
S e rvo
Am p
M
Jog /
M o ve a t
V e lo city
S lave A xis #2 (F ollow er C ontrol Loop = E nabled)
2
E n cod er
Figure 8-13. 2-Axis Digital Follower / Parallel Structure / Source = Commanded Position 1
8-14
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
8
Follower Motion
The diagram below illustrates the four DSM314 analog axes connected in two parallel pairs. The
reader should note that with this configuration the Local Logic function can not be run. This is
because the servo position loop for axis #4 is required for this configuration.
P a th G e ne rator A xis #1
C om m a nd ed
P o sitio n
A xis # 1
Fe ed F orw ard
S e rvo
A m plifie r
P o sitio n
Lo op
M
S e rvo
M o to r
A xis#1
1
E n cod er
M
S lave
M o to r
A xis#2
2
E n cod er
M
S e rvo
M o to r
A xis#3
3
E n cod er
A xis #1 (F ollow er C ontrol Loop = D isabled)
Fe ed F orw ard
R atio
A /B
M a ste r
S o urce
A xis # 2
E n ab le
Fo llow er
A xis # 2
P o sitio n
Lo op
S e rvo
A m plifie r
Jog /
M o ve a t
V e lo city
M o tion
P ro gra m
S lave A xis #2 (F ollow er C ontrol Loop = E nabled)
P a th G e ne rator A xis #3
C om m a nd ed
P o sitio n
A xis # 3
Fe ed F orw ard
P o sitio n
Lo op
S e rvo
A m plifie r
A xis #3 (F ollow er C ontrol Loop = D isabled)
Fe ed F orw ard
R atio
A /B
M a ste r
S o urce
A xis # 4
E n ab le
Fo llow er
A xis # 4
P o sitio n
Lo op
M o tion
P ro gra m
S e rvo
A m plifie r
Jog /
M o ve a t
V e lo city
M
S lave
M o to r
A xis#4
4
E n cod er
S lave A xis #4 (F ollow er C ontrol Loop = E nabled)
Figure 8-14. 4-Axis Analog Follower / Parallel Structure / Src = Cmd Pos 1 & Cmd Pos 3
GFK-1742A
Chapter 8 Follower Motion
8-15
8
Follower Control Loop Block Diagram
%Q Enable
Follower
Master Source 1
%Q Master
Source Select
CTL01CTL32
Follower
Enabled
Axis Follower Control Loop
(Axis 1 loop is shown)
(Axis 2,3,4 loop is identical)
Follower
Ramp Active
Enable/
Disable
Control
1 per Servo Axis
ACC
Ramp
Control
Path Generator Axis #
or
Actual Position Axis #
Velocity
Timebase
*A
Selected by
Configuration
Master FF
Velocity
+
+
Velocity
Limit
Velocity
Limit
Master Source 2
Path Generator Axis #
or
Actual Position Axis #
+
*B
Selected by
Configuration
*B
B
1/B
Jog
Move
@ Vel
Path
(Command)
Generator
Home
1 per Servo Axis
Encoder
1
+
Actual
Position
Register
Motion
Programs
PGM CMD
Position
Cmd
Velocity
+
NOTE:
In Follower Mode, Servo Axis 1
Motion = (Master CTSx A/B) +
Cmd Generator CTS
Motor
x
Ratio
A/B
A
Tracking Error
Accumulator
Servo
Amplifier
Local Logic
Position
Increment Cmd
Position
Error and
In Zone
Detection
Pos Loop
Time Constant
x Position
Loop Gain
+
+
+
Pos Error
(FB Counts)
In Error Limit
In Zone
FF%
x Vel
FF Gain
+
Servo Velocity Command
Figure 8-15. Follower Axis Control Loop Block Diagram
8-16
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Chapter
Combined Follower and Commanded Motion
9
Combined motion consists of Follower motion commanded from a master axis combined with one
of these internally commanded motions:
„
„
„
„
Jog Plus/Minus %Q Command
Move at Velocity %AQ Command
Move %AQ Command
Stored Motion Program
Combined motions are additive. The slave axis motion is equal to the sum of the motion
commanded by the master axis and the internally commanded motion.
Example 1: Follower Motion Combined with Jog
In this example, the Enable Follower %Q bit is set, causing the slave axis to follow the master
input. While the slave axis is following, the Jog Plus %Q bit is set. The following axis
accelerates from its master’s velocity to its master’s velocity added to the current Jog Velocity.
This acceleration will be just as if the axis was not following a master source at the time. When
the Jog Plus %Q bit is cleared, the following axis decelerates to its master’s velocity. In the
velocity profiles below, the dotted lines indicate when the Jog Plus %Q bit is turned ON and then
OFF.
v
a45337
v
Master Source
t
Following
t
Figure 9-1. Combined Motion (Follower + Jog)
GFK-1742A
9-1
9
Follower Motion Combined with Motion Programs
Motion commands from stored programs or the Move %AQ command can also be combined with
the master command to drive the follower axis. These point-to-point move commands can come
from one of the stored motion programs 1 through 10 and any stored subroutines they may call.
The Move %AQ command is treated as a single line motion program, which uses the present Jog
Velocity and Jog Acceleration. Program execution is started by the PLC setting an Execute
Program n %Q bit or sending a Move %AQ command.
If there is no master command, the axis can be commanded solely from the stored motion program
data. Thus, with no master input to Servo Axis 2 and Commanded Position 2 selected as the
master source for Servo Axis 1, a stored program can be used to control Servo Axis 2 with Servo
Axis 1 following per the designated ratio.
When PMOVEs are executed with Follower not enabled, the In Zone %I bit must be set at the end
of the move before programmed motion will continue. When Follower is enabled, since In Zone
may not turn on while also following a master command, the In Zone indication will not be
required to continue. The next Move will take place when the commanded distance for the
previous move has completed. The In Zone %I bit will always indicate the true in zone condition.
The active commanded position updated and used by the stored motion program is referred to as
Program Command Position. Each time a program is selected for execution, this position register
is initialized in one of the two ways listed below.
1.
If the follower is not enabled, the Program Command Position is set to the current
Commanded Position = Actual Position + Position Error.
2.
If the follower is enabled, the Program Command Position is set to the Program Reference
Position (0). Since the Program Command Position is only updated by internally generated
commands (and not by the master command), it will then indicate the position commanded by
the stored program. Absolute move commands from the stored program will be referenced to
the Program Reference Position.
Position ranges (in counts) for the Actual and Program Command Position registers are indicated
in the figure below.
Program
Position Range
Fixed
-2B
Lo Limit (max)
-536M
0
Hi limit (max)
+536M
Fixed
+2B
Actual Position
(from Feedback)
With sustained commanded motion in the same direction, the Program Command Position will
roll over at +2,147,483,647 or –2,147,483,648 counts
The Actual Position, however, will be confined by the configured High Position Limit and Low
Position Limit.
9-2
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – October 2000
GFK-1742A
Combined Follower and Commanded Motion 9
Table 9-1 below indicates which source commands affect these position registers and the actual
and commanded velocities. Program Command Position is updated only by internally generated
move commands (program commands, Jog Plus Minus, Find Home, and Move at Velocity). The
Commanded Velocity (returned in %AI data) also only indicates velocity commanded by these
internally generated move commands. Actual Position and Actual Velocity %AI return data reflect
the combination of the master input and the move commands. In other words, counts coming
from the master source affect only the Actual Position and Actual Velocity. If there are no
internally generated move commands, the Commanded Velocity will be 0 and the Program
Command Position will not change.
Table 9-1. Command Input Effect on Position Registers
COMMAND
Input
Master Commands
(from selected
Master source)
Follower
Enabled
Follower Registers Affected by input
No
None affected
Yes
Actual Position %AI status word is updated
Commanded Position %AI status word is updated
(Actual Position + Position Error)
Program Command Position is Not affected
Actual Velocity %AI status word is updated
Commanded Velocity %AI status word is Not affected
Program Commands
No
Actual Position %AI status word is updated
Commanded Position %AI status word is updated
Actual Position + Position Error)
Program Command Position is updated
Actual Velocity %AI status word is updated
Commanded Velocity %AI status word is updated
(by Program commanded velocity only)
Yes
Actual Position %AI status word is updated
(by Program command + Master command)
Commanded Position %AI status word is updated
(Actual Position + Position Error)
Program Command Position is updated
(by Program command only)
Actual Velocity %AI status word is updated
(by Program command velocity + Master command velocity)
Commanded Velocity %AI status word is Updated
(by Program command velocity only)
GFK-1742A
Chapter 9 Combined Follower and Commanded Motion
9-3
9
Table 9-1. - Continued - Command Input Effect on Position Registers
COMMAND
Input
Other Internally
Generated Move
Follower
Enabled
No
Follower Registers Affected by input
Actual Position %AI status word is updated
Commanded Position %AI status word is updated
Commands
(Actual Position + Position Error)
Program Command Position is updated but not used
(Home, Jog, and
Move at Velocity)
Actual Velocity %AI status word is updated.
Commanded Velocity %AI status word is updated
(by Internal command velocity only)
Yes
Actual Position %AI status word is updated
(Find Home
(by Internal command + Master command)
is not
Commanded Position %AI status word is updated
allowed)
(Actual Position + Position Error)
Program Command Position is updated but not used
Actual Velocity %A status word is updated
(by Internal command velocity + Master command velocity)
Commanded Velocity %AI status word is updated
(by Internal command velocity only)
The Program Command Position can be synchronized to the Actual Position %AI value in 3 ways:
•
Find Home %Q command execution
•
Set Position %AQ command
•
Execute Motion Program n %Q command (if the follower is not enabled)
The effect of these commands is indicated in Table 9-2 below.
Table 9-2. Actions Affecting Program Command Position
ACTION
Home Found
Follower
Enabled
No
Resulting Updates to Follower Position Registers
Actual Position %AI status word is set to Home Value
Program Command Position is set to Actual Position + Position Error
Yes
Find Home %Q command is Not allowed
Status Error is returned
Set Position %AQ
Command
Not
Actual Position %AI status word is set to %AQ Value
applicable
Program Command Position is set to Actual Position + Position Error
Note: Set Position is not allowed if the Moving %I bit is ON.
Execute Program
No
Actual Position %AI status word is NOT affected
Program Command Position is set to Actual Position + Position Error
Yes
Actual Position %AI status word is NOT affected
Program Command Position is set to Reference Position (0)
9-4
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – October 2000
GFK-1742A
Combined Follower and Commanded Motion 9
Program moves will execute in a continuous fashion such that incremental PMOVE or CMOVE
commands past the limits will roll over at the limit and continue. Absolute PMOVE or CMOVE
commands can also be used for applications that do not require going beyond the high/low count
limits.
Any internally generated move command can be immediately terminated by the Abort All Moves
%Q command.
The User Selected Data %AI status word can be changed to report the Program Command
Position by using the Select Return Data %AQ command. Refer to Chapter 5 for details.
The following application example illustrates how a stored program can be used to control
positioning operations relative to the detected edge of a moving object as it moves at a rate
detected by the master axis (Aux Axis 3) encoder input.
Example 2: Follower Motion Combined with Motion Program
Applications that require modifying parts on the fly (such as notching, marking, riveting, spot
welding, spot gluing, and so forth) would make use of the point-to-point moves superimposed on
follower motion and enable follower at input features. A typical configuration and control
sequence required for these applications is shown below.
Follower
Carriage
Home
Sensor
Part
Edge
Sensor
o
Master
motion
(Aux Axis 3)
PART
o
Follower Axis
Control Sequence:
1.
With Enable Follower %Q bit OFF, the PLC commands Follower axis to home position
where Actual Position & Program Command Position are synchronized and set to Home
Position value. Position Valid %I bit indicates when this step is complete.
2.
The PLC sets the Enable Follower %Q bit command.
Note
The CTL01- CTL24 bit to which the part edge sensor is connected would
already have been configured in the Follower Enable Trigger configuration
parameter.
3.
GFK-1742A
When the Part edge sensor trips, the DSM314 enables the Follower axis to start following the
master (Aux Axis 3) encoder inputs. The Follower Enabled %I bit indicates when the axis is
Chapter 9 Combined Follower and Commanded Motion
9-5
9
following the master command. Note that the Accel Ramp and Make-Up Time feature could
be used to allow the follower axis to catch up to the master axis if required.
4.
Once the follower is enabled, the PLC sends the Execute Motion Program n %Q bit to start
execution of the selected program for the follower axis. At the time the program is selected,
Program Command Position will be set to program reference position (0) because the follower
is enabled. Program execution is then relative to the moving part edge as the follower axis
tracks the part. Program Command Position now contains the position of the follower axis
relative to the part edge and Actual Position indicates the total distance the follower axis has
moved from the Home point (master +/– program commands).
5.
At the end of program, the PLC turns Enable Follower %Q bit OFF and loops back to step 1
to repeat for next part.
Note
Since the DSM314 saved the Follower enable input trigger Commanded
Position in a parameter register (#226 for axis 1, #234 for axis 2), step 1 this
time could be used to execute another program with an absolute move command
back to the parameter value position and continuing with step 2. In this case,
the Moving and In Zone %I bit indications could be used to indicate when step 1
is complete.
This method is possible because the Program Command Position is set to the
Actual Position + Position Error when execute motion program is commanded
with the follower disabled.
9-6
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – October 2000
GFK-1742A
Chapter
Introduction to Local Logic Programming
10
This chapter contains an introduction to the basic local logic programming concepts. The DSM
and the DSM motion programming language are not discussed in detail in this chapter. These
concepts are discussed in other chapters within this manual.
Introduction to Local Logic Programming
The local logic program works in conjunction with the PLC logic program and motion program to
yield a flexible programming environment. Specifically, local logic programs provide the user
with the ability to perform math and logic that is deterministic and synchronized with the DSM
Position Loop execution rate. This ability is critical to many applications where the accuracy
and/or speed require this tight synchronization.
The DSM local logic function provides the user the ability to execute basic logic and mathematical
functions within the DSM module. Additionally, local logic permits fast read/write access to local
DSM digital and analog I/O. Consult Chapter 14 and Chapter 15 for a complete listing of available
I/O. The local logic program execution method guarantees the local logic program runs at the
position loop sample rate and completes each sample period. Note: If the module is unable to
complete the local logic program execution within the allotted time the module generates an error
message. Chapter 13 and Appendix E contain more information concerning program execution
times. Additionally, the local logic program runs in parallel with normal DSM motion programs.
The parallel program execution allows the local logic program to supervise the motion program.
Thus, local logic programs are also called supervisory logic blocks (SLB). The local logic program
execution versus motion program execution is shown in Figure 10-1.
GFK-1742A
10-1
10
Motion Program
CMOVE ##,ABS,SCURVE
PMOVE ##,ABS,SCURVE
DWELL ##
PMOVE ##,ABS,LINEAR
.
.
.
.
Motion
Program
Supervisory
Logic Block
CMOVE
Local Logic Program (Supervisory Logic Block)
Position_Loop_TC_1:=50;
IF Actual_Position_1>4000 THEN
Digital_Output1_1:=ON;
END_IF;
IF Actual_Position_1>=4500 THEN
Digital_Output1_1:=OFF;
END_IF;
IF Actual_Position_1> 6000 THEN
Digital_Output2_1:=ON;
END_IF;
IF Actual_Position_1>=7500 THEN
Digital_Output2_1:=OFF;
END_IF;
PMOVE
DWELL
PMOVE
ETC..
2
ms
2
ms
2
ms
2
ms
2
ms
2
ms
2
ms
2
ms
2
ms
2
ms
SLB
SLB
SLB
SLB
SLB
SLB
SLB
SLB
SLB
SLB
Time
Figure 10-1. Local Logic Versus Motion Program Execution
It is important to understand the concept shown in Figure 10-1 before writing local logic programs.
The local logic program runs to completion each position loop sample period. The program then
re-executes the complete local logic program the next position loop sample period. This execution
method differs from the motion program execution method. The motion programs execute each
command to completion in a sequential fashion, without any time guarantees. To reiterate this
concept, we look at the first four local logic execution periods (reference Table 10-1) for the local
logic and motion programs shown in Figure 10-1. In the example, we note that the local logic
program executes to completion each position loop sample period. The motion program statements
execute until the controlled motion achieves the desired result. For additional details concerning
motion program statement execution consult chapter 7.
10-2
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Table 10-1. Local Logic – Motion Program Execution Example
GFK-1742A
Position
Loop Sample
Number
Active Motion Program
Statement
Local Logic Program Statements
n
CMOVE ##,ABS,S-CURVE
Position_Loop_TC_1:=50;
IF Actual_Position_1>4000 THEN
Digital_Output1_1:=ON;
END_IF;
IF Actual_Position_1>=4500 THEN
Digital_Output1_1:=OFF;
END_IF;
IF Actual_Position_1> 6000 THEN
Digital_Output3_1:=ON;
END_IF;
IF Actual_Position_1>=7500 THEN
Digital_Output3_1:=OFF;
END_IF;
n+1
CMOVE ##,ABS,SCURVE
Position_Loop_TC_1:=50;
IF Actual_Position_1>4000 THEN
Digital_Output1_1:=ON;
END_IF;
IF Actual_Position_1>=4500 THEN
Digital_Output1_1:=OFF;
END_IF;
IF Actual_Position_1> 6000 THEN
Digital_Output3_1:=ON;
END_IF;
IF Actual_Position_1>=7500 THEN
Digital_Output3_1:=OFF;
END_IF;
n+2
CMOVE ##,ABS,SCURVE
Position_Loop_TC_1:=50;
IF Actual_Position_1>4000 THEN
Digital_Output1_1:=ON;
END_IF;
IF Actual_Position_1>=4500 THEN
Digital_Output1_1:=OFF;
END_IF;
IF Actual_Position_1> 6000 THEN
Digital_Output3_1:=ON;
END_IF;
IF Actual_Position_1>=7500 THEN
Digital_Output3_1:=OFF;
END_IF;
n+3
CMOVE ##,ABS,SCURVE
Position_Loop_TC_1:=50;
IF Actual_Position_1>4000 THEN
Digital_Output1_1:=ON;
END_IF;
IF Actual_Position_1>=4500 THEN
Digital_Output1_1:=OFF;
END_IF;
IF Actual_Position_1> 6000 THEN
Digital_Output3_1:=ON;
END_IF;
IF Actual_Position_1>=7500 THEN
Digital_Output3_1:=OFF;
END_IF;
Chapter 10 Introduction to Local Logic Programming
10-3
10
When to Use Local Logic Versus PLC Logic
The local logic programming language contains basic mathematical and logical constructs. The
capabilities have not been designed to replace the PLC’s logic capabilities. Instead, local logic is
designed to complement the PLC logic and mathematical abilities. Specifically, local logic is
designed to solve a small logic and mathematical set that requires tight synchronization with the
controlled motion. The local logic program must run to completion each sample period. Thus,
local logic programs are limited in size. The default local logic program size limit is 150 lines.
The Local Logic build process will generate an error message when the 150 line limit is exceeded.
A warning message is generated when 100 lines are exceeded. If the program is very large and
computationally intensive it may exceed the allowed execution time and result in a watchdog timer
warning/error (refer to Appendix E). In contrast, the PLC program size is limited only by available
memory. However, as PLC program sizes increase, PLC sweep times increase. (Please consult the
Series 90-30/20/Micro PLC CPU Instruction Set Reference Manual, GFK-0467, for additional
information concerning PLC sweep times.) This is not true with local logic programs. Local Logic
programs always execute to completion every position loop sample period. When using PLC logic,
the added latency associated with the PLC sweep times for time-critical logic operations that are
tightly coupled to motion can be unacceptable or limit process performance. These tightly coupled
and time-critical processes are potential Local Logic applications. Each process will have to be
evaluated on an individual basis to determine which sections to write in PLC logic and which
sections to write in Local Logic.
10-4
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Getting Started with Local Logic and Motion Programming
The sections that follow provide information on getting started with the Local Logic Editor and
Motion program editors. The sections concentrate on program usage with an emphasis on program
creation, syntax check, and program download.
Requirements
The Local Logic and Motion Program editors are integrated within the VersaPro programming
environment. Prior to beginning the Local Logic Getting Started section, the user needs to install
VersaPro version 1.1 or later. Please reference the VersaPro documentation for instructions on
how to install this software. The DSM314 feature set also requires 90-30 CPU firmware release
10.0 or higher. Please make sure your CPU Hardware supports this firmware release and is at or
above this revision level.
Getting Started with VersaPro
Once the VersaPro setup process is complete, the integrated Local Logic and Motion Programming
editors are installed onto the computer. The installation process adds the GE Fanuc Software group
to the start toolbar. To access VersaPro, click the Start button, navigate to the VersaPro entry, and
then select VersaPro (Figure 10-2).
Figure 10-2. VersaPro Start Menu
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-5
10
Another method for starting VersaPro is to double-click “My Computer” Icon, navigate to the
location on your computer where VersaPro is installed, and double-click the VersaPro icon
(VersaPro.exe), shown in Figure 10-3
Figure 10-3. VersaPro Program Directory
Or, you may wish to create a VersaPro “short-cut” and place the short-cut on the Windows desktop.
(Reference the operating system documentation to determine how to create a short-cut.) Then, to
open VersaPro, double-click the short-cut.
10-6
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Using the Local Logic Editor
The Local Logic editor is integrated into the VersaPro environment. The editor allows the user to
easily create, edit, store, and download a Local Logic program. To create a Local Logic program
the user needs to open or create a new VersaPro folder. Reference the VersaPro documentation on
how to create or open a folder. Once the VersaPro folder is open, select the File menu selection
then the New Program menu selection followed by the Local Logic… menu selection. (Figure 104).
Figure 10-4. Create Local Logic Program
After selecting Local Logic from the New Motion menu, the Create New Local Logic Program
dialog box will appear. This dialog box is used to give the Local Logic program a name and
descriptive comment, and to select the motion module type. At this time, Local Logic is only
supported on the DSM314. As such, the default selection for Motion Module Type should not be
changed. (Reference Figure 10-5)
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-7
10
Figure 10-5. Create New Local Logic Program
The user then selects the OK button to create the Local Logic program.
Once this action is complete, the Local Logic editor screen is brought up by VersaPro. (Figure 106).
Figure 10-6. Blank Local Logic Editor
10-8
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Local Logic Variable Table
The VersaPro programming environment includes a window that contains the Local Logic
Variables. The table has several tabs that break the variables up by category. The categories are:
•
•
•
•
•
•
•
Axis 1 – Variables specific to axis number one
Axis 2 – Variables specific to axis number two
Axis 3 – Variables specific to axis number three
Axis 4 – Variables specific to axis number four
Global – Global data such as Module Status Code
CTL bits – DSM general purpose control/status bits
Parameter Registers - DSM Parameter data
The table allows the user to drag and drop or cut and paste the text from the table into a program.
(Reference Figure 10-7)
Figure 10-7. Local Logic Variable View Table
The table has six columns. The columns are as follows:
GFK-1742A
•
Name – This column contains the variable name that is valid to be used within a local logic
program
•
Type – This is the data type for this variable. For example 32 Bits means that this variable is a
32 bit variable.
•
Group – This is the group this variable is placed in. For example, FacePlate I/O means that
this variable refers to a point on the module faceplate.
•
Description – This column contains a textual description of the variable. If the user hovers the
mouse pointer over the description a tool tip will be generated that allows the user too easily
read the description.
•
R – This column indicates if the variable can be Read by a Local Logic program
•
W- This column indicates if the variable can be Written by a Local Logic program
Chapter 10 Introduction to Local Logic Programming
10-9
10
To resize columns in the Local Logic Variable table, move the mouse pointer over the top of the
right edge of the column. The cursor will change to a vertical bar with arrows. Press the primary
mouse button and drag the column width to the appropriate size.
The table has a floating menu that can be accessed by right click the mouse when the pointer is
over the table. The pop-up menu is shown in Figure 10-8.
Figure 10-8. LLVT Pop up menu
The pop-up menu allows the user to perform the following operations:
•
Copy allows the user to copy text from the Local Logic Variables table (LLVT) into the editor
window.
•
Sort allows the user to sort the LLVT by the selected column in either Ascending order or
Descending order.
•
Allow docking allows the user to toggle the ability to dock the LLVT with the main VersaPro
window.
•
Hide allows the user to toggle the LLVT display on and off.
From the main screen, the user accesses the available editor functions through the drop down
menus and/or the toolbar. The drop down menu functions is explained in the next section followed
by the toolbar functions.
Main Window Menus
The main window menu is as follows:
Figure 10-9. VersaPro Drop Down Menu System
The follow explains the drop down menus that are directly used by the Local Logic editor. The
descriptions do not explain all the menu items. For a more complete description, consult the
VersaPro documentation.
File
The File menu contains items that allow the user to create new Local Logic programs among many
other tasks. The File submenu is shown in Figure 10-10.
10-10
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Figure 10-10. File Submenu
New Motion opens a sub menu that allows the user to create a new Local Logic, Motion, or Cam
program. The sub menu is shown in Figure 10-11.
Figure 10-11. New Motion Submenu
The Local Logic Program selection opens a dialog box that allows you to name the Local Logic
program, give it a description, and choose the destination module type (DSM314).
The Motion Program selection opens a dialog box that allows you to name the Motion program,
give it a description, and choose the destination module type (DSM314).
The Cam Program selection opens a dialog box that allows you to name the Cam program, give it
a description, and choose the destination module type (DSM314).
Save allows you to save the selected block to its current location. If the VDT or the Folder Browser
have changed, they are also saved.
Save All allows you to save an open folder and its contents to its current location. This operation
saves the entire folder, not individual parts.
Close allows you to close the selected window.
Close Folder allows you to close the open folder. Since only one folder can be open at a time in a
single instance of VersaPro, an open folder must be closed before creating a new folder or loading
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-11
10
an existing folder. When you open a folder, you are prompted to save the old folder. You can also
close an open folder directly.
Print … allows the user to prints the selected item.
Edit
The Edit menu contains a submenu that allows the user to edit the current document. Operations
like cut, paste find/replace among others are contained in this menu. The Edit submenu is shown
in Figure 10-12.
Figure 10-12. Edit Submenu
10-12
•
Undo allows the user to reverses the previous action.
•
Redo allows the user to reverses the previous undo action.
•
Cut allows the user to removes the selected item and places it on the Clipboard.
•
Copy allows the user to copy the selected item to the Clipboard.
•
Copy As allows the user to copy the selected element(s) either as a bitmap image or as text to
the Clipboard.
•
Paste allows the user to pastes the Clipboard contents to the selected area.
•
Delete allows the user to delete selected item(s).
•
Select All allows the user to selects all items
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
•
Find/Replace allows the user to Find and Replace a variable Name or Address, a Call to a
Subroutine, or a Jump/Label or MCR/END_MCR pair in logic, or text within a Local Logic or
Motion Program.
•
Find Next allows the user to finds the next item of defined search criteria.
•
Go to allows the user to go to a row in IL logic, a rung in LD logic or a line number in a Local
Logic or Motion Program
•
Properties allow the user to add or modify a description to the current block, to add or modify
a description to the current folder, or to set the properties of temporary variables or conversion
variables.
View
The View menu allows the user to change the way the VersaPro display appears. The View
submenu is shown in Figure 10-13.
Figure 10-13. View Program Submenu
GFK-1742A
•
Toolbars allows the user to show or hide toolbars.
•
Function Toolbars allows the user to expand or compact function toolbars
•
Status Bar allows the user to show or hide the Status bar.
Chapter 10 Introduction to Local Logic Programming
10-13
10
•
Folder Browser allows the user to open or close the Folder Browser window.
•
Information Window allows the user to open or close the Information window. This
window contains the status of the syntax check for Local Logic and Motion Programs along
with other informative messages. Consult the VersaPro documentation for additional
information concerning this window.
•
Variable Declaration Table allows the user to open or close the Variable Declaration Table
window.
•
Hardware Configuration allows the user to open the Hardware Configuration window.
•
MAIN block allows the user to open the _MAIN block.
•
Local Logic Variable Table allows the user to show or hide the Local Logic variable table.
This table contains a listing of the variable names that can be used within a Local Logic
program. The user can copy and paste or drag and drop from this table into the Local Logic
editor window.
•
Sort allows the user to sort specific columns of the VDT in ascending or descending order.
•
Monitor allows the user to display real-time logic execution on the PLC.
•
Display Format allows the user to change the display format of monitored logic.
Folder
The Folder menu performs actions on the folder or the current window. The syntax check function
is accessible from this menu. The Folder submenu is shown in Figure 10-14.
Figure 10-14. Folder Submenu
10-14
•
Check Block ‘BlockName’ allows the user to check the selected block for syntactic
correctness. If no block is selected, this menu option reads "Check Block_Main" and selecting
it results in checking the _Main block for syntactic correctness.
•
Check All allows the user to check all blocks for syntactic correctness.
•
Lock/Unlock allows the user to lock or unlock the open folder.
•
Backup allows the user to back up a folder.
•
Restore allows the user to restores a folder.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
•
10
Compact allows the user to reduce the size of the folder by removing edit history information
from the VDT.
PLC
The PLC menu allows the user to interact with the PLC. The PLC submenu is shown in Figure
10-15.
Figure 10-15. PLC Submenu
GFK-1742A
•
Connect allows the user to connect to the PLC
•
Disconnect allows the user to disconnect from the PLC
•
Store allows the user to store the contents of a folder to the PLC
•
Load allows the user to load the contents of a folder from the PLC
•
Verify allows the user to verify the equality of the current folder and the connected PLC.
•
Clear allows the user to clear the PLC memory.
•
Flash/EEPROM
•
Run allows the user to put the PLC in run mode.
•
Stop allows the user to put the PLC in stop mode.
•
Toggle allows the user to toggle a reference.
•
Override allows the user to override a reference.
allows the user to read, write, or verify PLC Flash memory.
Chapter 10 Introduction to Local Logic Programming
10-15
10
•
Write allows the user to write a value to a reference.
•
Tuning Parameters allows the user to tune PLC PID Instructions.
•
Status Info allows the user to view the PLC status.
•
Abort! allows the user to stop a communication action.
Tools
The Tools menu allows the user to set various options, settings, import and export variables among
other functions. The Tools submenu is shown in Figure 10-16.
Figure 10-16. Tools Submenu
10-16
•
Fault Table allows the user to open the fault table.
•
Communications Setup allows the user to define communications parameters
•
Import Variables allows the user to import a variable.
•
Export Variables allows the user to export a variable.
•
View Online Cross Reference allows the user to view the online cross-reference view.
•
Convert Block allows the user to convert PLC logic from one language to another.
•
Options allows the user to set General (language–related) and Display (colors, fonts), Ladder
(show fields, cell width), and Autoconnect options. This menu selection opens the dialog box
that allows the user to select the font and color coding for Local Logic and Motion Program
keywords. (Figure 10-17)
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Figure 10-17. Options Dialog Box
Window
The Window menu allows the user to control window placement, icon placement, and editor focus.
The Window submenu is shown in Figure 10-18.
Figure 10-18. Window Submenu
•
GFK-1742A
Cascade allows the user to arrange all open block windows so that all title bars are visible and
the active window is in front.
Chapter 10 Introduction to Local Logic Programming
10-17
10
•
Tile Horizontally allows the user to resize and horizontally arranges all open block windows
so that all of them are visible.
•
Tile Vertically allows the user to resize and vertically arranges all open block windows so that
all of them are visible.
•
Arrange Icons allow the user to align all minimized block windows.
•
Close All allows the user to close all open block windows.
•
Next Window allows the user to make the next window in the clockwise direction active.
•
Previous Window allows the user to make the next window in the counter-clockwise direction
active.
Help
The Help menu provides the user help concerning VersaPro. The Help submenu is shown in
Figure 10-19
Figure 10-19. Help Submenu
Contents and Index allows the user to display VersaPro™ Help.
About VersaPro™ allows the user to display information about this version of VersaPro™ and
about available memory and disk space.
Toolbars
The VersaPro™ tool has many toolbar icons. The following section is only going to discuss the
toolbar items that are most directly related to Local Logic. The reader should consult the VersaPro
documentation for additional information concerning toolbar functionality.
The save folder toolbar button shown at left allows the user to save the entire folder.
The save toolbar button shown at left allows the user to save the current block.
The open folder toolbar button shown at left opens an existing folder.
The check all toolbar button shown at left allows the user to syntax check all blocks in the
current folder.
The check block button shown at left allows the user to check the selected blocks for syntax
correctness.
10-18
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
10
Introduction to Local Logic Programming
The connect to PLC button shown at left allows the user to connect to the PLC.
The disconnect from PLC button shown at left allows the user to disconnect from the PLC
The store folder to PLC button shown at left allows the user to store the folder to the PLC
The load folder from PLC button shown at left allows the load the folder from the PLC
The Local Logic Variable Table button shown at left toggles the Local Logic Variable Table
on and off. This table contains variable names that can be used within a Local Logic program. The
user can either drag and drop or cut and paste from this table into the Local Logic program editor.
The information button shown at left toggles the information window on and off. The
information window is used to display the results of syntax check for Local Logic and Motion
Programs (as well as other tasks). If a syntax error in the Motion or a Local Logic program occurs,
the user can go to the line that displays the error in the information window and double click the
error to be navigated in the editor window to the error. For additional details concerning the
information window's functionality consult the VersaPro documentation.
The folder browser button shown at left toggles the folder browser window on and off. The
folder browser displays the blocks contained within the current folder.
The open hardware configuration button shown at left allows the user to open the hardware
configuration tool for the current folder.
The help button shown at left allows the user to open context sensitive help based upon your
current cursor position.
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-19
10
VersaPro/Local Logic Editor Window Layout
The main VersaPro/Local Logic editor layout is shown in Figure 10-20.
Menu Bar (DropDown Menus)
Tool Bars
Local Logic
Program Window
Folder
Browser
Information
Window
Local Logic
Variable Table
Figure 10-20. Local Logic Editor Main Screen Layout
Changing a VersaPro Screen Layout
If the default screen layout is not to your liking, you can easily change it. For example, some users
prefer to have the Folder Browser window on the left side of the screen, or prefer the Local Logic
Program window to be larger than the default size.
Moving a window: Click just inside the window’s border with the left mouse button. A
rectangular box will appear on-screen. While holding the mouse button, drag the box to position it
where desired, then release the mouse button to place it there. Sometimes when a window is
moved its shape will change. If desired, you can resize it to a different shape as described next.
Resizing a window: Place the mouse on the applicable border of the window you wish to resize.
The mouse pointer will change to a short double line with arrows.
Click and hold the left mouse button, drag to resize the window, then release the mouse button.
10-20
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Connecting the Local Logic Editor to the DSM
VersaPro software has several communications options. The most commonly used
communications option is to connect directly to the PLC SNP port, shown in Figure 10-21 below.
Ethernet options are also available. All DSM314 programming is done through the VersaPro
interface, yielding single point of programming for the module. (The DSM314 also has a serial
port on the module faceplate which is used only for updating the DSM314’s firmware.) Local
Logic and Motion programs are stored by VersaPro to a dedicated memory space inside the PLC
CPU. The DSM314 then requests these programs by name from the CPU during configuration.
The link to the programs the DSM314 requests from the CPU is contained in the Hardware
Configuration for the PLC rack. The benefit is that programs are not module-specific but are
rack/slot specific. Thus, if there is a need to swap DSM314s within a PLC, or to replace a
DSM314, the user only needs to perform the following three steps: (1) turn off power to the PLC,
(2) change out the DSM314 modules, and (3) reapply power to the PLC. Upon powering up, the
PLC will send the correct programs and configuration settings to the DSM314s.
Configuration, Motion Programming,
and Local Logic Programming
SNP
(RS-485)
Series 90-30 PLC
D
S
M
Personal Computer
Running VersaPro Software
Figure 10-21. VersaPro Programmer Connection Diagram
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-21
10
Building Your First Local Logic Program
The VersaPro user environment is a self-contained environment that allows the user to perform all
the actions necessary to create, edit, and download a local logic program to a DSM314 module. To
aid the first time user the sections that follow will give a step by step process that results in a local
logic program successfully downloaded to the motion module. To begin, evoke the VersaPro
environment. Once in VersaPro, create a new VersaPro Folder. To create a VersaPro folder select
the File menu followed by New Folder. This will cause the New Folder Wizard to execute. The
user is prompted to enter a Folder Name, a location, and a Folder Description. For the Example,
enter the text as shown in the dialog box. (Figure 10-22)
Figure 10-22. New Folder Wizard Page 1
Click the Next button to proceed with the wizard. The next dialog box allows the user to either
start with a blank folder or import from another source. In the example, we are going to start with a
blank folder. (Figure 10-23)
10-22
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Figure 10-23. New Folder Wizard Page 2
Click the Finish button to create the new folder. The resulting VersaPro display will be as shown
in Figure 10-24.
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-23
10
Figure 10-24. New Folder VersaPro Main Screen
At this point, we need to create an example Local Logic Program. To perform this action select
File from the main menu, select New Program from the sub menu, and then select Local Logic.
(Figure 10-25)
10-24
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Figure 10-25. Local Logic Program Creation
This will cause the “Create New Local Logic Program” dialog box to be shown. For the example,
enter the following text in the dialog box fields.
Name: LLExample
Description: My first Local Logic Program
Motion Module Type: DSM314
The dialog box with these entries is shown in Figure 10-26.
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-25
10
Figure 10-26. Create New Local Logic Program Dialog
Click the OK button. The Local Logic program named “LLExample” will be created and the editor
window opened. The resulting display will be similar to Figure 10-27.
Figure 10-27. VersaPro New Local Logic Program
10-26
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
The Local Logic editor is a free-form text editor that allows users to enter programs in the style that
they prefer. The example is of a very simple Local Logic program that does not represent a fully
functional application because it is intended for instructional purposes only. The example program
is a simple timer application that relies on the digital servos position loop sample period (2 mSec)
as a time base. See Chapter 1 for position loop sample periods for other configurations.
3URJUDP 1DPH //([DPSOH
'HVFULSWLRQ 7KH IROORZLQJ H[DPSOH ORFDO ORJLF SURJUDP LV
D SURJUDP WKDW FUHDWHV D VLPSOH WLPHU 7KH WLPHU EHJLQV
DIWHU WKH ILUVW /RFDOB/RJLFB6ZHHS KDV RFFXUUHG 7KH
SURJUDP PDNHV XVHV WKH IDFW WKDW /RFDO /RJLF LV UXQ E\
WKH '60 HYHU\ P6HF 7KXV LW FRXQWV ORFDO ORJLF VZHHSV 7KH SURJUDP KDV WKUHH FRXQWHUV 7KH ILUVW FRXQWHU LV WKH
PLOOLVHFRQGV FRXQWHU ZKLOH WKH RWKHU WZR FRXQWHUV DUH IRU
VHFRQGV DQG PLQXWHV 7KH VHFRQGV FRXQWHU DQG PLQXWHV
FRXQWHUV UROO RYHU DW 7KH SURJUDP DOVR VHWV &7/ HYHU\
VHFRQG
9DULDEOHV
3
0LOOLVHFRQGV &RXQWHU
3
6HFRQGV &RXQWHU
3
0LQXWHV &RXQWHU
&7/
6HFRQGV 6LJQDO
3
8VHG WR FKHFN LI 6HF KDV SDVVHG
3
8VHG WR FKHFN LI 0LQ KDV SDVVHG
IF First_Local_Logic_Sweep THEN
P001 := 0;
P003 := 0;
P004 := 0;
END_IF;
(*
(*
(*
(*
First execution
Initialize P001
Initialize P003
Initialize P004
sweep *)
to 0 *)
to 0 *)
to 0 *)
P001:=P001+2;
(* Time in Milliseconds *)
P100:= P001 MOD 1000;
IF P100 = 0 THEN
P003:=P003+1;
CTL01 := 1;
IF P003 = 60 THEN
P003:=0;
END_IF;
END_IF;
IF P100 <> 0 THEN
CTL01 :=0;
END_IF;
(* Check to see if 1 Sec (1000 mSec) Passed) *)
(* Remainder of MOD Operation=0 1 Sec Passed *)
(* Time in Seconds *)
P101:=P001 MOD 60000;
IF P101 = 0 THEN
P004:=P004+1;
IF P004 = 60 THEN
P004:=0;
END_IF;
END_IF;
(* If Seconds = 60 then start over at 0 *)
(* CTL01=0 When not incrementing sec counter *)
(*
(*
(*
(*
Check to see if 1 Min (60000mSec) Passed *)
Remainder of MOD Operation=0 1 Min Passed *)
Time in Minutes *)
If Minutes = 60 then start over at 0 *)
Once you type the above program into the text editor, the editor screen will look similar to Figure
10-28.
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-27
10
Figure 10-28. VersaPro Local Logic (LLExample)
At this point, the user needs to check the program to verify correct language syntax. The language
syntax verification is done by selecting from the main menu Folder then the submenu Check Block
‘LLExample’. This causes the syntax check routines to run on the specified Local Logic program.
Note: The user can also select Check All which will cause all the blocks within the folder to be
checked. (Reference Figure 10-29)
10-28
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Figure 10-29. LLExample Syntax Check Command
Checking the blocks causes the information window to appear if it was not previously displayed.
Note the Information window can be toggled on and off by pressing the
icon.
information toolbar
The information window displays the output of the syntax check operation. If the sample program
has been entered correctly, the user should receive a message indicating zero errors and zero
warnings. Note: The information window is a scrollable window. The user can press the scroll
button on the right hand side of the window to see information that will not display inside the
available window area.
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-29
10
Figure 10-30. LLExample Successful Syntax Check
If the information window indicates a syntax error has occurred, the user can scroll the information
window to the line that contains the error message. While the information window has focus,
double click the error message. This will cause the editor window to automatically go to the line
within the program that caused this error. For example, if in the example program the user
incorrectly typed “First_Local_Logic_Sweep” as “First_Local_Logic_Swee” a syntax error will be
generated. As follows:
Error: (P200) Undefined identifier: First_Local_Logic_Swee
The user can then go to the error message in the information window and double click the line.
The Local Logic editor will automatically go to the beginning of the line that caused the error
message so the user can fix the error, as shown in Figure 10-31.
If you are actively editing a local logic program and want to find out your approximate line
number, click on the vertical scrollbar on right side of the local logic editor. It will display the line
number of the line at the top of the window. If the cursor is several lines below the top of the
window, either scroll the window until the current line is at the top of the window or count down
the number of lines from the top and add them to the current line number.
10-30
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Figure 10-31. LLExample Syntax Check Failure
Chapter 12 contains additional details that cover an unsuccessful syntax check and corrective
action. Once a successful syntax check has occurred, we need to set up the hardware configuration
that will allow the example program to be downloaded to the correct DSM314 module. The order
the example is done is not typical for most installations. Most users will first setup their hardware
configuration and then generate the programming statements. However, the example is aimed at
illustrating Local Logic. Therefore, the order is reversed to better illustrate the link between
hardware configuration and the Local Logic program name in the DSM314 hardware configuration.
The next step in our example is to bring up the hardware configuration. There are multiple ways to
bring up the Hardware configuration screens. Consult VersaPro documentation for additional
details. Two methods are as follows. To perform these steps either access the View selection from
the main menu and then select Hardware Configuration or hit the Hardware Configuration toolbar
icon.
This will evoke the Hardware configuration tool. The default hardware configuration screens are
for the VersaMax product. As such, the first operation we need to perform is to select the Series
90-30. To perform this action select File from the main menu, Convert To from the File menu and
Series 90-30 from the Convert To menu. This will change the VersaMax default to a Series 90-30.
The menu selections are as shown in Figure 10-32. VersaPro allows “Series 90-30” to be chosen as
the permanent default in the Tools/Options/General Tab choices.
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-31
10
Figure 10-32. Hardware Configuration Rack Selection
A dialog box will appear that warns the user that information will be deleted. The folder that we
created for the example is new, as such no information will be lost. If the user has not created a
new folder then they need to be aware that configuration information will be lost by performing
this operation. It is recommended that you use a new “scratch” folder for this example. Answer
Yes to the dialog box. (Figure 10-33)
Figure 10-33. Hardware Configuration Rack Convert Dialog Box
Once this operation is complete, we have a blank 90-30 rack that requires configuration. The
resulting Hardware Configuration screens should be as shown in Figure 10-34.
10-32
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Figure 10-34. Hardware Configuration 90-30 rack with CPU
The user then needs to select the power supply and CPU that is appropriate for their installation.
The reader should note that Local Logic requires that the CPU firmware be release 10 or higher and
the CPU hardware support release 10.0 firmware as well. The default CPU “CPU351” does not
support release 10.0 firmware. As such, we are going to change the CPU to the “CPU364” model.
This CPU does support the required CPU release 10 firmware. The user should consult the
VersaPro documentation concerning how to change CPU’s within VersaPro. Additionally, the
CPU documentation will contain the list of CPU hardware that supports release 10.0 functionality.
The resulting display will appear as shown in Figure 10-35.
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-33
10
Figure 10-35. Hardware Configuration 90-30 rack with CPU364
At this point, we need to add the DSM314 into the rack. To perform this step, select the rack slot
that the DSM314 is to be installed. In our example, we are going to install the DSM314 in slot
number 2. As such, we want to add the DSM314 module to this slot location. There are several
ways to add modules to a rack slot. Consult the VersaPro documentation for additional details and
procedure. Two methods to add the module are as follows. The user can either double click the
desired slot (in this case slot number 2) or select Edit from the main menu then select Module
Operations from the Edit submenu, and then select Add Module from the Module Operations
menu. At this point a dialog box will be generated. The dialog box allows the user to select the
type module they wish to add. In our case, we want to add a module of type “Motion.” Therefore,
we need to select the “Motion” tab from the dialog box. At this point, select the DSM314 module
from the list. The resulting display will be as shown in Figure 10-36.
10-34
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Figure 10-36. Hardware Configuration 90-30 rack DSM314 Selection
This operation will add the DSM314 to the rack and bring up the DSM314 configuration screens.
This will allow the user to customize the DSM314 to their particular application. The reader
should reference chapter 4 for details concerning the DSM314 configuration settings. For the
example, we are going to change the Logic program name and “Local Logic Mode:” These fields
are contained on the “Settings” tab. In the field “Local Logic Mode”, we want to set it to Enabled.
To do this, double click the field, and a dialog box will be displayed. Select Enable and click OK.
In the field “Local Logic Block Name:”, we want to type in the name of our example program. Our
example program is named “LLExample”. Thus, we type “LLExample” into this field.
Note: This method of linking the DSM314 to a Local Logic program was chosen to allow the user
to easily specify multiple DSM314s that all use the same Local Logic program. In our example,
we only have one DSM314. However, if we had multiple DSM314 that all need to run the same
Local Logic program we would simply indicate that in the configuration for the specific DSM314
that needed to execute this program. This allows the programmer to have one Local Logic source
file for multiple DSM314’s. The reader should also note this does not preclude DSM314’s from
executing different programs.
The resulting Hardware Configuration screens will be as shown in Figure 10-37.
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-35
10
Figure 10-37. Hardware Configuration 90-30 rack DSM314 Settings Tab
The example Local Logic program uses parameter registers P001,P003, and P004 as counters. The
counters contain values that represent time. We want to be able to view these parameter registers
in the DSM return data registers. To configure return data, access the Axis #1 tab and input 18 in
Return Data 1 Mode. This tells the DSM that you want to return parameter registers. In Return
Data 1 Offset, enter a 1. This tells the DSM to return parameter P001. The LLExample program
returns P001, P003 and P004. However, the grouping is better if we return P003 and P004 in Axis
#2. Therefore, we can either leave Return Data 2 Mode and Return Data 2 Offset at the default
values or enter in 18 in Return Data 2 Mode and 2 in Return Data 2 Offset to tell the DSM to return
P002. Note Select Return Data 1 Axis1 is returned in %AI memory offset 21 while Return Data 2
for Axis 1 is returned in % AI offset 23.
10-36
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Figure 10-38. Hardware Configuration 90-30 rack DSM314 Axis#1 Tab
We need to repeat the above step for P003 and P004. To set this up, access the Axis #2 tab and
input 18 in Return Data 1 Mode. This tells the DSM that you want to return parameter registers. In
Return Data 1 Offset, enter a 3. This tells the DSM to return parameter P003.Next enter in 18 in
Return Data 2 Mode and 4 in Return Data 2 Offset to tell the DSM to return P004. Note: Select
Return Data 2 Axis 2 is returned in %AI memory offset 41 while Return Data 2 for Axis 2 is
returned in % AI offset 43.
Figure 10-39. Hardware Configuration 90-30 rack DSM314 Axis #2 Tab
We want to have the Local Logic program control CTL01. CTL01 is used to signal the Motion
Program that a second has passed. As such, we need to configure the CTL bit to be under Local
Logic Control. To do this access the CTL Bits tab in hardware configuration. Select “CTL01
Config” and choose Local_Logic_Controlled. The resulting Hardware Configuration screens will
be as shown in Figure 10-40.
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-37
10
Figure 10-40. Hardware Configuration 90-30 rack DSM314 CTL Bits Tab
This completes the configuration changes necessary for the example. Close the Hardware
Configuration tool and save the folder. To save the folder, select the File from the main menu and
then select Save All from the file menu.
The link between our example Local Logic program and the DSM314 module is now complete.
The user can now create any required PLC rung ladder logic and then perform a Check All on the
programs.
Downloading Your First Local Logic Program
To perform the download operation, we need to first make sure that the communications port is
properly configured. To access communications setup, select Tools from the main menu and then
select the Communications Setup … sub menu. The menu selection invokes the communications
configuration package. The first dialog box will prompt the user for a password. The default (as
shipped) password is netutil (Figure 10-41).
10-38
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Figure 10-41. Communications Setup Password Dialog Box
Once the user has entered the password, the communications configuration utility is invoked
(Figure 10-42). VersaPro uses the Host Communications Toolkit (HCT) to provide the
communications drivers. The reader should consult the “GFK1026 - GE Fanuc Communications
Configuration Utility” for additional details concerning the proper application of this utility.
Online help is available for the utility that can answer many common questions.
Figure 10-42. Communications Configuration Utility
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-39
10
After configuring the communications port, the local logic program can be downloaded to the PLC
CPU.
To store the current folder to the PLC, choose PLC from the Menu Bar and Connect from the
submenu. Once connected, choose PLC from the Menu Bar and Store from the submenu. The
store operation begins the folder transfer process from the programmer to the PLC CPU. When the
user initiates the store operation, a dialog box is presented that allows the user to choose what they
wish to store to the PLC. In our case, we want to store our Local Logic program, our Hardware
configuration, and any PLC logic. To perform this operation, select, in the dialog box, Store
hardware configuration and motion to the PLC and Store logic to PLC (Figure 10-43).
NOTE: The Local Logic and Motion programs are transferred as part of the Hardware
configuration process. Thus, whenever you download an updated Local Logic program and/or
Motion program, select the Store hardware configuration to PLC item in the store dialog box.
(Figure 10-43).
Figure 10-43. VersaPro Store Dialog Box
VersaPro will then check any blocks that have changed. If the build procedure is successful, it will
download the files to the PLC. VersaPro will indicate that it has successfully downloaded the
program with a dialog box that says “Store to PLC Successful.”
The programs are now downloaded to the PLC. We can interact with the DSM to verify that the
Local Logic program is working correctly. The Reference View Table (RVT) is a display that can
be used for this operation. To create a RVT, access the File menu and select the New Reference
View Table menu. (Figure 10-4). This will cause the New Reference View Table dialog box to be
displayed. (Figure 10-44). The dialog box allows the user to name the RVT. In our example, the
name chosen is RVTExample.
10-40
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Figure 10-44. New Reference View Table Dialog Box
The user can then insert variables, determine variable display formats, toggle data points, and send
AQ commands, among other actions. Consult the VersaPro documentation for details on RVT
construction. One example RVT that is useful for this program is shown in Figure 10-45.
Figure 10-45. Reference View Table
Executing Your First Local Logic Program
Once the download operation is complete, the module is ready to execute the local logic program.
To cause the DSM module to execute the local logic program the user must set the Q bit offset 1
from the PLC, while the PLC is in RUN mode. At this point, the local logic program is active and
running within the DSM. Note: The LLExample sample program is a simple counter application.
The user can use the RVT to look at the passed parameters to verify that the program is active and
functioning correctly. From the RVT (Figure 10-45), we can see 1 Minute 8 Seconds have passed
since Local Logic was started (see %AI0043 and %AI0041, respectively). Additionally, 68370
milliseconds have passed as shown in %AI0021. Additional details concerning the PLC interface
between the DSM and the PLC are contained in chapter 5. The user should save the folder once the
program has been verified to work correctly.
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-41
10
Using the Motion Program Editor
Now that we have successfully gotten our Local Logic program working, it would be nice to link in
a Motion Program. The Motion Program editor is accessed in a manor very similar to the Local
Logic editor. The editor allows the user to easily create, edit, store, and download Motion
programs. To create a Motion program the user needs to have a VersaPro folder open. For our
example, the open VersaPro folder needs to be the folder created as part of the Local Logic
example in the previous sections. The folder name in the example is “MotionTest”. Reference the
VersaPro documentation on how to open a folder. Once the VersaPro folder is open, select the File
menu selection then the New Program menu selection followed by the Motion… menu
selection.(Figure 10-46).
Figure 10-46. VersaPro Create Motion Program Menus
The aforementioned menu selections will evoke a dialog box that will allow the user to give the
Motion program a name, a descriptive comment, and select the motion module type. At this time,
Motion programs using this editor are only supported on the DSM314. As such, the default
selection for Motion Module Type should not be changed. (Reference Figure 10-47)
10-42
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Figure 10-47. Create New Motion Program Dialog Box
The user then selects the OK button to create the Motion program.
Once this action is complete, VersaPro brings up the Motion editor screen. (Figure 10-48).
Figure 10-48. VersaPro Blank Motion Program Editor
In the previous sections, the file menu functions where covered, this will not be repeated in this
section. Please reference the previous sections for this information. The Motion editor is a freeform text editor that allows the user to enter their program in the style that they prefer. For the
example, we are going to use a very simple Motion program. The example does not represent a
functional application and is for instructional purposes. The example is linked with the Local
Logic program we entered in the Local Logic getting started section. The Local Logic program
from the previous is repeated for reference:
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-43
10
3URJUDP 1DPH //([DPSOH
'HVFULSWLRQ 7KH IROORZLQJ H[DPSOH ORFDO ORJLF SURJUDP LV
D SURJUDP WKDW FUHDWHV D VLPSOH WLPHU 7KH WLPHU EHJLQV
DIWHU WKH ILUVW /RFDOB/RJLFB6ZHHS KDV RFFXUUHG 7KH
SURJUDP PDNHV XVHV WKH IDFW WKDW /RFDO /RJLF LV UXQ E\
WKH '60 HYHU\ P6HF 7KXV LW FRXQWV ORFDO ORJLF VZHHSV 7KH SURJUDP KDV WKUHH FRXQWHUV 7KH ILUVW FRXQWHU LV WKH
PLOOLVHFRQGV FRXQWHU ZKLOH WKH RWKHU WZR FRXQWHUV DUH IRU
VHFRQGV DQG PLQXWHV 7KH VHFRQGV FRXQWHU DQG PLQXWHV
FRXQWHUV UROO RYHU DW 7KH SURJUDP DOVR VHWV &7/ HYHU\
VHFRQG
9DULDEOHV
3
0LOOLVHFRQGV &RXQWHU
3
6HFRQGV &RXQWHU
3
0LQXWHV &RXQWHU
&7/
6HFRQGV 6LJQDO
3
8VHG WR FKHFN LI 6HF KDV SDVVHG
3
8VHG WR FKHFN LI 0LQ KDV SDVVHG
,) )LUVWB/RFDOB/RJLFB6ZHHS 7+(1
3 3 3 (1'B,)
3 3
7LPH LQ 0LOOLVHFRQGV 3 3 02' ,) 3
7+(1
3 3
&7/ ,) 3
)LUVW H[HFXWLRQ VZHHS ,QLWLDOL]H 3 WR ,QLWLDOL]H 3 WR ,QLWLDOL]H 3 WR &KHFN WR VHH LI 6HF P6HF 3DVVHG 5HPDLQGHU RI 02' 2SHUDWLRQ 6HF 3DVVHG 7LPH LQ 6HFRQGV 7+(1
3 ,I 6HFRQGV
WKHQ VWDUW RYHU DW (1'B,)
(1'B,)
,) 3 ! 7+(1
&7/ (1'B,)
&7/ :KHQ QRW LQFUHPHQWLQJ VHF FRXQWHU 3 3 02' &KHFN WR VHH LI 0LQ P6HF 3DVVHG ,) 3
7+(1
5HPDLQGHU RI 02' 2SHUDWLRQ 0LQ 3DVVHG 3 3
,) 3
7+(1
3 (1'B,)
7LPH LQ 0LQXWHV ,I 0LQXWHV
WKHQ VWDUW RYHU DW (1'B,)
The Local Logic program causes CTL01 to transition from logic 0 to logic 1 every second. For our
simple Motion program example, we will make the motor shaft rotate 1/60 of a revolution for each
10-44
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
10
Introduction to Local Logic Programming
CTL01 transition. The motion program will therefore make the motor shaft act like the second
hand on a quartz clock. Not an elegant application, but it does demonstrate several concepts.
Before we write the Motion Program, we will need to determine axis scaling. The first variable we
need to determine is the user units to counts ratio. The User Units to Counts ratio sets the number
of programming units for each position feedback count. This allows the user to program the
DSM314 in application-specific units. The User Units and Counts values must be within the range
of 1 to 65,535. The User Units to Counts ratio must be within the range of 8:1 to 1:32. For
example, if there is 1.000 inch of travel for 8192 feedback counts, a 1000:8192 User Units:Counts
ratio sets 1 User Unit equal to 0.001 inch.
To set the User Units to Counts ratio the first piece of information required is the number of counts
per revolution of the feedback device. In our example, we will be using a Beta 0.5 motor. The
Beta 0.5 has a feedback resolution of 8192 counts per revolution. We now perform the calculation
to determine the ratio. The basic equation we need to satisfy is:
User Units  Load Movement Per Motor Rotation 
1
=
⋅
Counts
Desired Resolution

 Encoder Counts Per Motor Rotation
For our example we have




User Units  1  1
=
⋅
 1  8192
Counts


 60 
User Units
60
=
Counts
8192
This ratio is a problem since it violates the rule that the minimum User Units to Counts Ratio is
1
. The problem is easy to fix. We will change our programming units from 60th of a revolution
32
1
⋅ revolution . We
to a 600th of a revolution. This will make 1 programming unit equal to
600
repeat the above calculation.




User Units  1  1
=
⋅
 1  8192
Counts


 600 
User Units 600
=
Counts
8192
1
of a revolution, we enter 10 units in our motion program.
60
Additional information on setting the User Units to Counts ratio is contained in Chapter 4.
Thus, to have our motor travel
The next item we need to determine is the motor top speed. This is a relatively simple calculation.
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-45
10
 uu 
 rev 
 cnts  User Units  uu 
⋅
TopSpeed ⋅ 

 = Motor Top Speed 
 ⋅ Enc. Counts per Rev ⋅ 
⋅
 sec 
 sec 
 rev  Counts
 cnts 
 uu  3000  rev 
 cnts  600  uu 
⋅
⋅
TopSpeed ⋅ 

=
 ⋅ 8192 ⋅ 
⋅
60  sec 
 sec 
 rev  8192  cnts 
 uu 
 uu 
TopSpeed ⋅ 

 = 3000 ⋅ 10 ⋅ 
 sec 
 sec 
 uu 
 uu 
 = 30000 ⋅ 

TopSpeed ⋅ 
 sec 
 sec 
Next, we need to calculate the velocity and acceleration that we want for our move. In our case, we
want to minimize time, so we will choose a triangular velocity profile. The equations to calculate
the parameters are shown below.
Equations:
Position = Area
Vpk
1
x = V pk (ta + td )
2
A
D
Velocity
X
ta
V pk
2( x)
=
(t a + td )
td
time
Torque
Ta
Td
a=
V pk
ta
Applying our numbers to the triangular velocity equations, we have the following:
10-46
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Given :
t a = 0.01 ⋅ sec
t d = 0.01⋅ sec
x=
1
⋅ rev
60
1
⋅ rev
60
V pk =
0.01⋅ sec + 0.01⋅ sec
rev
V pk = 1.6667 ⋅
sec
rev
cnts 600 uu
⋅ 8192 ⋅
⋅
⋅
V pk = 1.6667 ⋅
sec
rev 8192 cnts
uu
V pk = 1000 ⋅
sec
V pk
a=
ta
2⋅
uu
sec
a=
0.01⋅ sec
uu
a = 10000 ⋅
sec 2
1000 ⋅
We are now ready to write our motion program. The code is as follows.
(**************************************************************)
(* Program Name: MPExample
*)
(* Description: The following Motion program causes
*)
(* the motor to rotate 10 Units (Distance based
*)
(* upon scaling) every time CTL01 transitions from
*)
(* 0 to 1.
*)
(**************************************************************)
(* Variables
*)
(* CTL01 = Program execution trigger
*)
(**************************************************************)
PROGRAM 1 AXIS1
ACCEL 10000
VELOC 1000
(* Program Number 1 for Axis 1 *)
(* 10000 uu/sec^2 *)
(* 100 uu/sec *)
1:
WAIT CTL01
PMOVE 10, INCR, LINEAR
JUMP UNCOND, 1
ENDPROG
(* Wait for CTL01 Signal *)
(* Position Move 10 Incr Linear *)
(* Jump back to start *)
(* End Program *)
The user needs to type the above program into the text editor. Once that is complete, the editor will
look similar to Figure 10-49.
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-47
10
Figure 10-49. VersaPro Motion Editor MPExample
At this point, the user needs to check the program to verify correct language syntax. The language
syntax verification is done by selecting from the main menu Folder then the submenu Check Block
‘MPExample’. This causes the syntax check routines to run on the specified Motion program.
Note: The user can also select Check All which will cause all the blocks within the folder to be
checked. (Reference Figure 10-50)
10-48
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Figure 10-50. MPExample Check Block Menu
Checking the blocks causes the information window to appear if it was not previously displayed.
Note the Information window can be toggled on and off by pressing the
icon.
information toolbar
The information window displays the output of the syntax check operation. If the sample program
has been entered correctly, the user should receive a message indicating zero errors and zero
warnings. Note: The information window is a scrollable window. The user can press the scroll
button on the right hand side of the window to see information that will not display inside the
available window area.
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-49
10
Figure 10-51. MPExample Successful Syntax Check
If the information window indicates a syntax error has occurred, the user can scroll the information
window to the line that contains the error message. While the information window has focus,
double click the error message. This causes the editor window to automatically go to the line
within the program that caused this error.
If you are actively editing a motion program and want to find out your approximate line number,
click on the vertical scrollbar on right side of the motion progrma editor. It will display the line
number of the line at the top of the window. If the cursor is several lines below the top of the
window, either scroll the window until the current line is at the top of the window or count down
the number of lines from the top and add them to the current line number.
Chapter 12 contains additional details that cover an unsuccessful syntax check and corrective
action. Once a successful syntax check has occurred, we need to setup the hardware configuration
that will allow the example program to be downloaded to the correct DSM314 module. The order
the example is done is not typical for most installations. Most users will first setup their hardware
configuration and then generate the programming statements. However, the example is aimed at
illustrating the Motion programs and has reversed the order to better illustrate the link between
hardware configuration and the Motion program name in the DSM314 hardware configuration.
Thus, the next step in our example is to bring up hardware configuration. There are multiple ways
to bring up the Hardware configuration screens. Consult the VersaPro documentation for
additional details. Earlier sections in this chapter show a step by step method to activate the
Hardware configuration. As such, this information will not be repeated in this section. The section
concentrates on the additional information that needs to be put into the Hardware configuration to
allow the motion program to function. For additional details concerning the DSM314
configuration settings consult chapter 4. The first field we need to edit is on the Settings tab. We
need to define to the DSM314 the Motion program name we wish to download to the module. In
10-50
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
10
Introduction to Local Logic Programming
the field “Motion Program Block Name:”, we want to type in the name of our example program.
Our example program is named “MPExample”. Thus, we type “MPExample” into this field.
Note: This method of linking the DSM314 to a Motion program was chosen to allow the user to
easily specify multiple DSM314s that all use the same Motion program. In our example, we only
have one DSM314. However, if we had multiple DSM314 that all need to run the same Motion
program we would simply indicate that in the configuration for the specific DSM314. This allows
the programmer to have one Motion program source file for multiple DSM314’s. The reader
should also note this does not preclude DSM314’s executing different programs.
Since we are using the Beta 0.5 for our example, we need to set Axis1 Mode to Digital Servo.
The resulting Hardware Configuration screens will be as shown in Figure 10-52.
Figure 10-52. Hardware Configuration DSM314 Settings Tab
We also need to configure the DSM with the values calculated above for User Units to Counts and
top speed. The example also configures Axis direction and high position limit. These are optional.
Consult chapter 4 for information on these configuration fields. To add these values type the
following into the fields on the Axis#1 tab.
UserUnits: 600
Counts: 8192
High Position Limit: 599 (Optional, causes position to rollover every revolution)
Positive Velocity: 30000
Axis Direction: Reverse (Optional causes servo to turn clockwise)
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-51
10
Figure 10-53. Hardware Configuration DSM314 Axis#1 Tab
To finish our configuration we need go to the Tuning#1 tab and enter the following data.
Motor Type: 13
Position Error Limit: 200 (Optional see Configuration information for additional information)
In Position Zone: 5 (Optional see Configuration information for additional information)
Pos Loop Time Const: 200 (Note: Based upon application/mechanics reference Chapter 4 and
Appendix D)
Velocity FeedForward: 9000 (Note: Based upon application/mechanics reference Chapter 4 and
Appendix D)
The resulting display should be similar to Figure 10-54.
10-52
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Introduction to Local Logic Programming
10
Figure 10-54. Hardware Configuration Tuning#1 Tab
At this point, we can close the module configuration dialog box. This is a good point to save our
work. To save your work, select the File from the main menu and then select Save All from the file
menu.
The link between our example Motion program, Local Logic program, and the DSM314 module is
now complete. Create any required PLC rung ladder logic and then perform a Check All on the
programs and download them to the PLC. Additional information concerning the download
operation is shown in VersaPro documentation GFK-1670 or the VersaPro 1.1 on-line help.
Executing Your First Motion Program
Once the download operation is complete, the module is ready to execute the Motion and Local
Logic programs. To cause the DSM module to execute the local logic program the user must set
the Q bit offset 1 from the PLC, while the PLC is in RUN mode. This activates the Local Logic
program within the DSM. The next thing we need to do is perform a set position command. This
references the module and will allow it to execute the desired motion program. To perform this
function, open the RVT (RVTExample) created in the Local Logic section and enter 0023 hex in
AQ offset 1. This enters the set Position command. Then enter 0 in AQ offset 2. Reference
Chapter 5 for additional information concerning entering AQ commands. The resulting display
should be similar to Figure 10-55.
GFK-1742A
Chapter 10 Introduction to Local Logic Programming
10-53
10
Figure 10-55. RVTExample Screen
At this point, if we have no errors, we can execute the motion program. Enter a 1 (or toggle) Q bit
offset 2 (%Q00003). The motor should then begin to execute the motion program and advance
1/60 of a revolution each second.
Additional details concerning the interface between the DSM and the PLC are contained in Chapter
5.
10-54
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Chapter
Local Logic Tutorial
11
Introduction
The Local Logic programming language supports assignment, conditional statements, arithmetic,
logical, and relational operations. The Local Logic program runs synchronously with the motion
module position loop and as such is deterministic. The language includes constructs that allow the
Local Logic program to communicate information between the Logic program, the Motion
Program, and the host PLC. The tutorial focuses on the local logic language and its communication
with motion programs. The user should consult the chapter 7 for additional information concerning
the motion programmer language.
Statements
The Local Logic programming language supports assignment and conditional statements.
Assignment statements permit arithmetic results and bitwise logical operations to be assigned to a
variable. Conditional statements permit conditional local logic code execution. Conditional
execution is based on the value of a constant or variable, or the result of a relational or bitwise
logical expression.
Assignment statements use the “:=” operator. The following example multiplies two parameter
registers and assigns the result to another parameter register.
P001 := P210 * P107;
Note: Assignment statements require a semi-colon terminator as shown above.
Conditional statements use the IF-THEN-END_IF keyword combination. The END_IF keyword
concludes the conditional statement. The following example checks the Block_1 variables value
and conditionally sets a value in a parameter register. Specifically, if the Block_1 variable’s value
equals 5 then the parameter P010 value is set to 100.
IF Block_1 = 5 THEN
P010 := 100;
END_IF;
The IF, THEN, and END_IF keywords are case sensitive, and the END_IF statement is terminated
with a semi-colon. IF statements may be nested up to eight levels and the body of the IF statements
may contain one or more statements. Refer to Chapter 12 for a detailed description of these
statements.
GFK-1742A
11-1
11
Comments
Comments allow the programmer to describe program operation, or any information that the
programmer wishes to embed in the program. Comment text begins with the (* character pair and
terminates with the *) character pair and may appear anywhere within the program. For example:
(* Valid Comment Structure *)
The DSM during program execution ignores comments. Thus, comment lines do not count when
determining local logic program length.
Variables
Local Logic provides the user access to motion controller data, control and status bits, and
parameters using a fixed set of variables. The language also supports decimal, hexadecimal, and
binary constants. Hexadecimal and binary value representations are unsigned constants in program
statements, but are ALWAYS interpreted as signed two’s complement in mathematical
expressions. To assign a value to a variable the user would enter the following
Torque_Limit_1 :=5000;
(* Sets Torque Limit Axis 1 to 50% *)
or in hexadecimal form
Torque_Limit_1:=16#1388; (* Set Torque Limit Axis 1 to 50% *)
When variables are assigned a numeric value they are automatically limit checked to a signed 32bit value. For example the following values represent the largest positive and negative values that
are acceptable.
P001:=16#7FFFFFFF; (* P001=2147483647 *)
or in decimal form
P001:=2147483647; (* P001=16#7FFFFFFF *)
To assign the maximum negative value the user would enter
P002:=16#80000000;
(* P002=-2147483648 *)
or in decimal form
P002:=-2147483648; (* P002=16#80000000 *)
If the user enters a number that exceeds the above numerical limits an error will be generated
indicating that the constant is out of range.
Local Logic variables have a read, write, or read/write “directional” attribute. (Additional
information concerning the variables and their type are contained in chapter 13.) As an example,
the variable Positive End of Travel for Axis 1 (Positive_EOT_1) is a read only variable. As such,
the following is a valid construct:
P001:=Positive_EOT_1; (* P001 = Positive End of Travel Axis 1 *)
However, the following is an invalid construct:
Positive_EOT_1:=1;
11-2
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Tutorial
11
The Local Logic Parser generates an error if the program attempts to write to a read only variable,
or attempts to read a write only variable.
In addition, Local Logic variables have a size attribute ranging from Boolean (1-bit) to double
integer (64-bits). The Local Logic Parser generates a warning message when a non-Boolean value
is assigned to a Boolean variable. The warning indicates that data may be lost, due to truncation,
when this assignment occurs. The user should note that double integer variables (64-bit) variables
may only be used as the destination of a multiply operation, or the numerator of a divide or
modulus operation.
Consult chapter 13 for additional information concerning Local Logic variables. Additionally, the
Local Logic Variables Table (LLVT) within VersaPro contains the information on the variables
size, type and Read/Write properties.
Operators
Local logic provides three classes of operators. The operators are arithmetic, relational, and bitwise
logical operators. An introduction to each operator follows. A more detailed discussion of the
operators is contained in Chapter 12.
Arithmetic Operators
Local Logic provides the user with the ability to perform basic arithmetic operations. The language
supports 32-bit integer operations and limited use of 64/32 bit operations where appropriate to
maintain precision. All arithmetic functions, except the ABS function, require two operands.
Local Logic supports addition, subtraction, multiplication, division, absolute value, and modulus
operations.
Example constructs are:
P010 := Commanded_Velocity_1 - P009; (* P010=Commanded Velocity Axis 1 – P009*)
The user should note that the following would be an invalid mathematical construct:
Commanded_Velocity_1 := P010 - P009; (* Commanded_Velocity_1=P010-P009*)
The reason this is invalid is that the mathematical expression is attempting to assign the result
(P010-P009) to Commanded_Velocity_1 which is a read-only variable.
Storing intermediate results into parameter registers provides the flexibility necessary to solve
complex mathematical expressions.
For example, the following construct is invalid since it contains more than one operation (Multiply
and Subtraction):
P005:= Torque_Limit_1 *( P001 – P010);
To achieve the same result, the user can enter the following:
P004:= P001 – P010;
P005:= Torque_Limit_1 * P004;
GFK-1742A
Chapter 11 Local Logic Tutorial
11-3
11
Relational Operators
Relational operators compare two operands in a conditional statement. The < (less than), > (greater
than), <= (less than or equal), >= (greater than or equal), = (equal), and <> (not equal) operators are
valid relational operators. The IF statement body execution takes place when the conditional
expression is a true. In the example, the variable Torque_Limit_1 is set to 10000 if the variable
Block_1 equals 3. If the Block_1 value is not equal to 3 then the expression evaluates to false and
program execution continues after the END_IF program statement.
Example:
IF Block_1 = 3 THEN
Torque_Limit_1 := 10000;
END_IF;
(* Set Torque Limit = 100% @ Block 3 *)
Complex relations may be solved by nesting IF statements. For example, to set Axis 1 torque limit
(Torque_Limit_1) to 10000=100% (i.e. same scaling as in AQ command processing) when the
motion program block 3 is active and axis 1 commanded velocity (Commanded_Velocity_1) is less
than 1000, the following construct is valid:
IF Block_1 = 3 THEN
IF Commanded_Velocity_1 < 1000 THEN
Torque_Limit_1 := 10000;
(* Set Torque Limit = 100% @ Block 3 *)
END_IF;
END_IF;
Bitwise Logical Operators
Bitwise logical operators mask or invert an individual bit or groups of bits. The BWAND (and),
BWOR (or), BWXOR (exclusive or), and BWNOT (ones-complement) operators are valid
constructs. BWAND, BWOR, and BWXOR require two operands. The BWNOT operator
requires one operand.
As an example, the following code segment isolates a copy of several bits in the CTL_1_to_32
word and assigns them to a parameter register.
Then, the least significant four bits of that value are tested and P002 is assigned a value 4985 if any
are set.
P001 := CTL_1_to_32 BWAND 16#0000A005;
IF P001 BWAND 16#F THEN
P002 := 4985;
END_IF;
Specifically, the statements perform the following operations. The first statement uses
16#0000A005 as a mask. The mask corresponds to a binary value as follows:
16# 0000A005 = 2#0000 0000 0000 0000 1010 0000 0000 0101
Thus, the statement
P001:=CTL_1_to_32 BWAND 16#0000A005
11-4
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
11
Local Logic Tutorial
isolates bits 1,3,14, and 16 from CTL_1_to_32 and places the result in P001.
The next statement performs a bitwise test to see if any of the bits in the least significant byte are
set. The test value corresponds to a binary value as follows:
16#F = 2#1111
Thus the statement
IF P001 BWAND 16#F THEN
performs a bitwise test with the least significant byte of P001 and if any of the bits in the least
significant byte are set to a logical true (value = 1) then statements in the IF block are evaluated.
In our example, since we have masked CTL_1_to_32 in the previous statement, the IF condition
only tests bit 1 and bit 3 of CTL_1_to_32.
Local Logic / PLC / Motion Program Communication
The Local Logic program or host PLC communicates with the motion program using parameters,
CTL bits and Motion Program Block Numbers. The usage of these methods are:
•
Parameter Data – The Parameter data (P000-P255) are accessible from Local Logic, host
PLC, and Motion Programs. The Parameter data are similar to variables in a program. For
example, a motion program can DWELL a period of time that is determined by a parameter.
The Local Logic program or the host PLC can write the parameter that determines the DWELL
time in motion program.
•
CTL Bits – CTL Bits allow the Local Logic program or host PLC to signal the Motion
Program to start an event. For example CTL bits are used to control Motion Program flow
with the JUMP command.
•
Motion Program Block Numbers – The Motion Program (when block numbers are used
within the Motion Program) makes the current block number available to the Local Logic
program or host PLC. The current Block number can be used within the Local Logic program
or host PLC to make an action occur only during a specific Motion Program section.
The signaling constructs between programs (PLC, Motion, and Local Logic) allows them to
interact and perform operation between programs. These signaling constructs are important for the
programming examples that follow. For additional information on the PLC to motion program
communications and program interactions the reader should consult chapter 5 and Chapter 7.
Local Logic Programming Examples
The preceding sections introduced the base local logic language constructs. To illustrate these
concepts, the following sections contain program examples. These programs are for illustration
only and do not necessarily represent functional applications. Additional details concerning the
available local logic statements, variables and constructs are contained in Chapter 12 and Chapter
13.
GFK-1742A
Chapter 11 Local Logic Tutorial
11-5
11
Torque Limiting Program Example
The following example illustrates a method to use local logic in concert with a motion program to
perform torque limiting based upon a block number within a motion program. In the example, the
servo axis 1 applies a nut on the threaded shaft. At the beginning the axis moves a little backward
to improve the nut and shaft threads engagement. This motion has the torque limit set to the
maximum value. Next the nut is twisted until tight with the torque limited to 30% of the maximum
value. During this operation the motion command destination point usually is not reached and the
axis stops when the load friction is greater then the torque limit. Subsequently, to release all tension
in the mechanics, the torque is set to 0 and after 0.1 second the signal “screw operation done” is
turned “on”. When the “nut gripper released” signal is turned on by the PLC the axis moves to the
initial position with the full torque.
Torque Limiting Local logic program.
&21752/ %,7 $66,*10(176
&7/ VWDUW VFUHZ RSHUDWLRQ ± VLJQDO IURP WKH 3/&
&7/ ORRS WKH PRWLRQ SURJUDP &7/ QXW JULSSHU UHOHDVHG ± VLJQDO IURP WKH 3/&
&7/ VFUHZ RSHUDWLRQ GRQH ± VLJQDO WR WKH 3/&
3$5$0(7(5 '$7$ $66,*10(176
3
3
3
DFFHOHUDWLRQ RI WKH UHYHUVH PRWLRQ
YHORFLW\ RI WKH UHYHUVH PRWLRQ
GLVWDQFH RI WKH UHYHUVH PRWLRQ
3
3
3
3
DFFHOHUDWLRQ RI WKH QXW WZLVW PRWLRQ
YHORFLW\ RI WKH QXW WZLVW PRWLRQ
GLVWDQFH RI WKH QXW WZLVW PRWLRQ
FRXQWHU XVHG IRU WHQVLRQ UHOHDVH WLPHU
/2&$/ /2*,& &2'(
,) 3URJUDPB$FWLYHB
7+(1 D[LV PRWLRQ SURJUDP DFWLYH
,) %ORFNB
7+(1
PRWLRQ SURJ ZDLWV IRU VWDUW FRPPDQG
3 UHVHW FRXQWHU
&7/ FOHDU VFUHZ RSHUDWLRQ GRQH
7RUTXHB/LPLWB VHW WRUTXH OLPLW WR PD[LPXP YDOXH (1'B,)
,) %ORFNB 7+(1
PDLQ QXW WZLVW PRWLRQ
7RUTXHB/LPLWB VHW WRUTXH OLPLW WR (1'B,)
,) %ORFNB 7+(1
7RUTXHB/LPLWB 3 3 ,) 3 7+(1
&7/ (1'B,)
(1'B,)
PRW SURJ ZDLWV IRU UHOHDVHG VLJQDO
VHW WRUTXH OLPLW XSGDWH WLPHU FRXQWHU
PV HODSVHG
VHW VFUHZ RSHUDWLRQ GRQH
,) %ORFNB 7+(1
7RUTXHB/LPLWB VHW WRUTXH OLPLW WR PD[LPXP YDOXH (1'B,)
(1'B,)
11-6
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Tutorial
11
Torque Limiting Motion Program
7RUTXH /LPLWLQJ 0RWLRQ 3URJUDP 3URJUDP $;,6
:$,7 &7/
$&&(/ 3
9(/2& 3
3029(
$&&(/
9(/2&
&029(
:DLW IRU VWDUW FRPPDQG 6HW DFFHOHUDWLRQ RI WKH PRWLRQ 6HW YHORFLW\ RI WKH PRWLRQ 3,1&5/,1($5
%DFNZDUG PRWLRQ 3
6HW DFFHOHUDWLRQ RI WKH PRWLRQ 3
6HW YHORFLW\ RI WKH PRWLRQ 3,1&5/,1($5
0DLQ QXW WZLVW PRWLRQ :$,7 &7/
3029( $%6/,1($5
-803 &7/
:DLW IRU JULSSHU UHOHDVHG VLJQDO 0RYH WR WKH LQLWLDO SRVLWLRQ
-XPS WR EHJLQ LI ORRS SURJUDP (QG3URJ
GFK-1742A
Chapter 11 Local Logic Tutorial
11-7
11
Gain Scheduler Program Example
The following example illustrates a method to use local logic to implement a simple gainscheduling algorithm. Care should be taken whenever one implements an algorithm that
dynamically changes the control characteristics. In many situations, dynamically changing the
control characteristics can cause the controlled process to go unstable. Note that the
Velocity_Loop_Gain control variable may be written multiple times in the same sweep in the
following program. However, the final value written in a given sweep is the active value since
variables are updated at the conclusion of Local Logic execution. Refer to Chapters 12 and 13 for a
detailed description of the Local Logic control variables and outputs.
*DLQ 6FKHGXOHU /RFDO /RJLF 3URJUDP
7KLV H[DPSOH VKRZV D ZD\ WR LPSOHPHQW D UXGLPHQWDU\ JDLQ
VFKHGXOLQJ DOJRULWKP 7KH EDVH YHORFLW\ ORRS JDLQ LV
VHW WR +RZHYHU EDVHG XSRQ SRVLWLRQ DQG FRPPDQGHG
YHORFLW\ WKH YHORFLW\ ORRS JDLQ LV DGMXVWHG
9HORFLW\B/RRSB*DLQB ,) $FWXDOB3RVLWLRQB ! 7+(1
%DVH 9HORFLW\ /RRS *DLQ ,I $FWXDO 3RVLWLRQ $[LV ! ,) &RPPDQGHGB9HORFLW\B 9HORFLW\B/RRSB*DLQB (1'B,)
(1'B,)
,I &RPPDQGHG 9HORFLW\ $[LV 9HORFLW\ /RRS *DLQ $[LV ,) $FWXDOB3RVLWLRQB ! 7+(1 ,I $FWXDO 3RVLWLRQ $[LV ! ,) &RPPDQGHGB9HORFLW\B ,I &RPPDQGHG 9HORFLW\ $[LV 9HORFLW\B/RRSB*DLQB 9HORFLW\ /RRS *DLQ $[LV (1'B,)
(1'B,)
,) $FWXDOB3RVLWLRQB ! 7+(1 ,I $FWXDO 3RVLWLRQ $[LV ! ,) &RPPDQGHGB9HORFLW\B 7+(1 ,I &PG 9HORFLW\ $[LV 9HORFLW\B/RRSB*DLQB 9HO /RRS *DLQ $[LV (1'B,)
(1'B,)
11-8
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Tutorial
11
Programmable Limit Switch Program Example
The following example illustrates a method to use local logic to perform a programmable limit
switch function. This particular programmable limit switch turns on/off an output based upon the
current motor position and block within a motion program
Digital_O utput1_1
ON
O FF
Actual_Position_1
4000 4500
Figure 11-1. Programmable Limit Switch Example
Programmable Limit Switch Local Logic Program
7KLV H[DPSOH VKRZV D ZD\ WR FDXVH $[LV 'LJLWDO 2XWSXW WR
WXUQ RQ ZKHQ $[LV $FWXDO 3RVLWLRQ LV EHWZHHQ DQG EXW RQO\ ZKLOH WKH SURJUDP LV LQ %ORFN 7KLV GHPRQVWUDWHV
IXQFWLRQDOLW\ WKDW LV RIWHQ LPSOHPHQWHG XVLQJ D KLJK VSHHG FRXQWHU
+6& DQG 35(6(7
V 7KLV H[DPSOH ZLOO DFKLHYH D UHVROXWLRQ RI PV
'LJLWDOB2XWSXWB 'LJLWDO 2XWSXW $[LV LV 2II ,) %ORFNB
7+(1
,I FXUUHQW %ORFN QXPEHU IRU D[LV HTXDOV ,) $FWXDOB3RVLWLRQB ! 7+(1
,I $FW 3RV $[LV ! ,) $FWXDOB3RVLWLRQB 7+(1 ,I $FW 3RV $[LV 'LJLWDOB2XWSXWB 'LJLWDO 2XWSXW $[LV LV 2Q (1'B,)
(1'B,)
(1'B,)
The motion program segment corresponding with the above local logic program is shown below.
Programmable Limit Switch Example Motion Program Segment
3URJUDP $[LV
3URJUDP 1XPEHU IRU $[LV 3029($%6/,1($5
3029($%6/,1($5
3029($%6/,1($5
(QG3URJ
GFK-1742A
Chapter 11 Local Logic Tutorial
0RYH WR LQLWLDO SRVLWLRQ 0RYH WR SRVLWLRQ 0RYH WR SRVLWLRQ 11-9
11
Trigger Output Based Upon Position Program Example
The following example illustrates a method to use Local Logic to trigger a timed output based upon
the current motor position. The reader should note that the timer implementation uses a counter
within the program. The counter counts the number of times the program has been executed since
the counter was last reset. Since local logic programs are executed every position loop sample
period, the counter time period is based upon this period. For our example, we are using digital
servos, which have 2 mSec position loop sample periods. Therefore, the counter will count in 2
mSec increments. For other configurations, consult Chapter 1 for the position loop sample periods.
Additionally, Local Logic allows the program to write a variable multiple times within a program.
The last state that the variable is in at program completion is the one written to the output (refer to
Chapter 12, section on Local Logic Outputs/Commands). This is important in the following
program. The second IF-THEN-END_IF block turns the digital output for axis 1
(Digital_Output1_1) on when actual position for axis 1 (Actual_Position_1) is greater than 4000
regardless of the current timer value (P008). However, the last IF-THEN-END_IF block in the
program checks the current timer value (P008) and turns the digital output 1 for axis 1
(Digitial_Output_1) off if the timer exceeds 500. The application is shown pictorially in Figure 112.
500 m s
Digital_O utput1_1
ON
O FF
Actual_Position_1
4000
Figure 11-2. Timer Output Based Upon Position Example
Timer Output Based Upon Position Local Logic Program
7KLV H[DPSOH VKRZV D ZD\ WR WULJJHU D WLPHG RXWSXW EDVHG RQ
$[LV $FWXDO 3RVLWLRQ
:KHQ $FWXDOB3RVLWLRQB H[FHHGV WXUQ RQ 'LJLWDOB2XWSXWB
IRU PV
,) %ORFNB
3 7+(1
'LJLWDOB2XWSXWB 3 (1'B,)
%ORFN LQ WKH PRWLRQ SURJUDP UHVHWV WLPHU 5HVHW 7LPHU 3 PDNH VXUH WKH RXWSXW LV RII EHIRUH PRYH 3 WUDFNV WKH GLJLWDO RXWSXW VWDWH ,) %ORFNB 7+(1
,) $FWXDOB3RVLWLRQB ! 7+(1 $FWXDOB3RVLWLRQB H[FHHGV 'LJLWDOB2XWSXWB WXUQ WKH 'LJLWDOB2XWSXWB 21 3 11-10
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Tutorial
11
(1'B,)
(1'B,)
,) 3
7+(1
3 3 ZKHQHYHU 'LJLWDOB2XWSXWB LV 21 LQFUHPHQW WKH 7LPHU E\ PV ,) 3 ! 7+(1
ZKHQ WKH 7LPHU H[FHHGV PV 'LJLWDOB2XWSXWB WXUQ 'LJLWDOB2XWSXWB 2)) 3 UHPHPEHU RQO\ WKH ODVW ZULWH LQ D /RFDO /RJLF
VZHHS DFWXDOO\ RFFXUV IRU WKH GLJLWDO RXWSXW
(1'B,)
(1'B,)
The motion program segment corresponding with the above local logic program is shown below.
Timer Output Based Upon Position Example Motion Program Segment
3URJUDP $[LV
3URJUDP 1XPEHU IRU $[LV 3029( $%6/,1($5
0RYH WR LQLWLDO SRVLWLRQ 3029($%66&859( 0RYH WR SRVLWLRQ (QG3URJ
GFK-1742A
Chapter 11 Local Logic Tutorial
11-11
11
Windowing Strobes Program Example
The following example illustrates a method to use local logic to perform a windowing strobe
function. The example ignores the strobe command unless the current motor position is inside the
window (Actual Position > 4000 but less than 5000). If the motor position is inside the
aforementioned window, the first strobe occurrence causes the current motor position to be
captured within the strobe register. The application is shown pictorially in Figure 11-3.
Strob e
4380
Po sitio n C ap tu re R egister 0
4000 4380
5000
Actu al Position
Figure 11-3. Windowing Strobes Example
Windowing Strobes Local Logic Program
:LQGRZLQJ 6WUREHV /RFDO /RJLF ([DPSOH
3 LV WKH 6WUREH 3RVLWLRQ UHDG IURP 6WUREHB3RVLWLRQB &7/ LV XVHG DV WKH 6WUREH 2FFXUUHG )ODJ PXVW EH FRQILJXUHG
IRU /RFDO /RJLF &RQWURO LQ 9HUVD3UR +DUGZDUH &RQILJXUDWLRQ
,) %ORFNB
7+(1
3 ,QLWLDOL]H 3 WR &7/ UHVHW VWUREH RFFXUUHG IODJ (1'B,)
5HVHWB6WUREHB .HHS 5HVHW 6WUREH ELW RII E\ GHIDXOW ,) 6WUREHB)ODJB
7+(1 ,I VWUREH RFFXUV LQ ZLQGRZ UDQJH ,) $FWXDOB3RVLWLRQB ! 7+(1 VHW 3
VWUREH SRVLWLRQ ,) $FWXDOB3RVLWLRQB 7+(1
3 6WUREHB3RVLWLRQB
&7/ 6HW WKH 6WUREH 2FFXUUHG )ODJ 21 (1'B,)
(1'B,)
5HVHWB6WUREHB (1'B,)
,I D VWUREH RFFXUV VHW 5HVHW 6WUREH ELW The motion program segment corresponding with the above local logic program is shown below.
Windowing Strobes Example Motion Program Segment
3URJUDP $;,6
3URJUDP 1XPEHU IRU $[LV 3029($%6/,1($5
0RYH WR LQLWLDO SRVLWLRQ ':(//
3029($%66&859( 0RYH WR SRVLWLRQ EndProg
11-12
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Chapter
Local Logic Language Syntax
12
Introduction
This chapter describes the Local Logic programming language syntax, rules, and language
elements. The language uses free-format text based constructs derived from the IEC 1131
structured text standard. The sections that follow describe the available commands and the
command syntax.
Syntactic Elements
The local logic language syntax is described in the following sections. The syntax is easy to learn
and provides a rich feature set that allows the user to accomplish the programming task. Chapter
11 contains many examples that will further aid the reader in understanding the syntax and its
application. The first time user may also wish to consult the section on “Building Your First Local
Logic Program” program contained in chapter 10 and the sample programs in the Chapter 11
tutorial as additional aids.
Numeric Constants
The local logic programming language supports decimal, hexadecimal, and binary constants. The
DSM treats all constants as 32 bit signed twos-complement integer values. Single underline
characters (i.e. 16#7fff_ffff) may be inserted between digits to improve the readability of large
numbers.
Decimal constants must be in the range of –2147483648 to 2147483647. Only integer values are
supported, therefore constants do not have a decimal point. Thus, as in all integer-based systems
the decimal points are implied and the programmer must keep track of them if fractional math is
needed.
Examples:
523
Positive decimal constant
-1048
Negative decimal constant
1_745_245 Positive decimal constant with embedded underscores
Hexadecimal (base 16) constants are identified by a 16# prefix and must have a value that can be
represented in 32-bits (8 hexadecimal digits). Hexadecimal constants cannot have a sign (+/-)
prefix. Hexadecimal digits A-F are not case sensitive, upper or lower case may be used.
GFK-1742A
12-1
12
Examples:
16#FFFF
Hexadecimal constant
16#7fff_ffff Hexadecimal constant with embedded underscores
Binary (base 2) constants are identified by a 2# prefix and must have a value that can be
represented in 32-bits (32 binary digits). Binary constants cannot have a sign (+/-) prefix.
Examples:
2#1010
Binary constant
2#11111110_11101101_10111110_11101111
Binary constant with embedded underscores
A local logic program may have a maximum of 50 unique constants whose value is greater than
2047 or less than –2048. If a local logic program declares more than 50 unique constants, the build
process generates an error. Most programs use much less than 50 constants, so this is generally not
a constraint.
Local Logic Variables
The local logic language supports a number of predefined variables that allow access to the DSM
I/O data, CTL bits, and other status and control information. A detailed description of the local
logic variable set is contained in chapter 13 Each variable has two attributes, size and direction.
Local Logic variables range in size from 1 Bit (Bit Operands) to 64 bits.
All Local Logic parameter registers are one of the following types.
• Double integer variables hold signed 32 bit values (–2147483648 to 2147483647). There are
256 Parameter registers (P000-P255).
• Long integer variables hold signed 64 bit values (+/-9.22 x 1018). The long integer variables
are unique in that they may only be used for the result of a multiply or as the numerator in a
divide or modulus operation. There are 8 long integer registers (D00-D07).
All Local Logic variables have one of the following directional attributes.
• Read-only variables may not be used as the destination of an assignment operation.
• Write-only variable may only be used as the destination of an assignment statement.
• Read-write variables may be used as a source or destination.
Refer to Chapter 13 for a list of all the Local Logic variable size and direction attributes.
Local Logic Statements
The Local Logic language supports two kinds of statements: Assignment and Conditional. A Local
Logic program supports 150 statements. The Local Logic check block will generate an error
message when the 150 line limit is exceeded. Warnings are issued when the Local Logic program
exceeds 100 lines. The warning message can be turned off with the #pragma directive. Reference
the #pragma sections for additional details. Semicolons separate program statements.
Local Logic Assignment Statements
Assignment statements permit simple arithmetic and bitwise operations to be performed with the
result being assigned to a variable. An assignment statement has the following format.
<destination> := <expression>;
12-2
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Language Syntax 12
The <destination> operator may consist of any read-write or write-only variable. The
<expression> may be a simple constant or variable, a mathematical or bitwise logical operation on
two operands, an ABS function, or a bitwise NOT operation. Write-only variables can not be the
expression for an assignment operation.
Examples:
Í This construct is okay.
Í This construct is okay.
P001 := ABS(Analog_Input1_1);
Reset_Strobe1_1 := BWNOT Strobe1_Flag_1; Í This construct is okay.
Í This construct is okay.
P040 := 2#11111010_1011000;
Í This construct is ILLEGAL – too many operations.
P011 := 3 * Strobe1_Position_1 + 20;
P032 := Strobe1_Position_1 + 5000;
If complex operations are required, perform the operation using a series of steps that use parameter
registers to store intermediate results.
Examples:
To set Velocity_Loop_Gain_2 equal to (1+75000/Actual_Velocity_2), the programmer uses a
series of statements similar to the following...
P012 := 75000 / Actual_Velocity_2;
Velocity_Loop_Gain_2 := 1 + P012;
The build process will issue a warning if a Boolean variable is used as the destination for an
expression containing non-Boolean variables or a constant whose value is not zero or one. A
warning is generated because the DSM will assign the Boolean variable the value of the least
significant bit of the expression.
Local Logic Conditional Statements
Conditional statements permit conditional code execution based on simple relational and bitwise
logical operations. A conditional statement has the following format.
IF <expression> THEN
Local Logic Statements
END_IF;
The <expression> may consist of a constant, a variable, a relational or bitwise logical operation on
two variables, or a bitwise complement of a constant or variable. Write-only variables are not
allowed in the expression. If the relational expression is true, or if a bitwise operation, variable or
constant has a non-zero value, the Local Logic statements in the body of the IF statement are
executed. Any number of program statements may appear in the body of an IF statement (subject to
the total limit). Each IF-THEN statement must have an accompanying END_IF.
Examples:
IF P226 THEN
IF CTL_1_to_32 BWAND 2#1010 THEN
IF Strobe1_Level_1 = TRUE THEN
GFK-1742A
Chapter 12 Local Logic Language Syntax
Í This construct is okay.
Í This construct is okay.
Í This construct is okay.
12-3
12
IF BWNOT P100 THEN
IF BWNOT P001 <> P002 THEN
Í This construct is okay.
Í This construct is ILLEGAL – too many operations.
If statements may nest up to 8 levels deep. When counting the number of program statements, the
IF-THEN and END_IF statements count as two separate statements.
Table 12-1. Valid Operators
Statement Type
Conditional
Assignment
Relational
Bitwise Logical
Arithmetic
Bitwise Logical
Abs Function
Valid Operators
<, >, <=, >=, <>, =
BWAND, BWOR, BWXOR, BWNOT
+, -, /, *, MOD
BWAND, BWOR, BWXOR, BWNOT
ABS ()
Whitespace
Blanks, end-of-lines, and tabs are considered whitespace. Whitespace is ignored, except when used
to separate adjacent syntactic elements, and may be used to improve program readability by the use
of indention and blank lines.
Comments
Comments may be used to add information to the program that is ignored by the Local Logic
program execution engine. Two types of comments are supported.
The (* character pair introduce a normal comment, which terminates with the *) character pair.
These comments may appear anywhere whitespace can, for example within or following a local
logic statement, alone on a line, or spanning several lines. These comments do not nest.
The // character pair introduces a single line comment. All text following the // to the end of the
line is ignored by the Local Logic execution engine.
Note
The user needs to be aware that one can enter a local logic program and inadvertently comment out
the code that one wants to execute. The common scenario that causes this to happen is as follows:
(* This example shows a way to cause Axis 1 Digital Output # 1 to
*)
(* turn on when Axis 1 Actual Position is between 4000 and 4500,
*)
(* but only while the program is in Block #4. This demonstrates
*)
(* functionality that is often implemented using a high speed counter
*)
(* (HSC) and PRESET's. This example will achieve a resolution of 2 ms.
)
Digital_Output1_1 := 0;
IF Block_1 = 4 THEN
12-4
(* Digital Output Axis 1 is Off *)
(* If current Block number for axis 1 equals 1 *)
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Language Syntax 12
In the above code segment, the end comment structure, line shown in bold/italic for illustrative
purpose, is incorrect because the asterisk in the close comment structure is absent. The error causes
the following line to be considered a comment as well. Thus, the statement Digital_Output_1:=0 is
considered a comment and not executed. The color scheme within the Local Logic editor can be
very useful to help find these types of problems. The coloring scheme by default will color the
comments a different color than the programming statements. Thus, the user will have a visual
method to help find these errors. Please consult chapter 2 for information on how to change the
default color scheme for the editor.
PRAGMA Directive
The #pragma directive is used to configure the Local Logic parser. The directive is NOT required
for the parser to operate. However, if the user wishes to turn off warning messages the #pragma
directive allows this to occur. The #pragma directive MUST be the first line of the program.
Additionally, no white space should be present prior to the directive.
To turn ALL Local Logic warnings off, issue the following command:
#pragma errorsonly 1
or
#pragma errorsonly ON
To turn warning messages back ON either delete the directive or change the directive as follows:
#pragma errorsonly 0
or
#pragma errorsonly OFF
Local Logic Keywords and Operators
The following keywords and operators have special significance in the Local Logic programming
language. Keywords are case-sensitive and use only upper-case letters. These are discussed in
further detail in the following sections.
Table 12-2. Local Logic Keywords
GFK-1742A
ABS
TRUE
+
>
BWAND
FALSE
-
<
BWOR
IF
/
>=
BWXOR
THEN
*
<=
BWNOT
END_IF
16#
=
ON
MOD
2#
<>
OFF
;
:=
Chapter 12 Local Logic Language Syntax
12-5
12
Enabling and Disabling Local Logic
Local Logic execution is enabled using a PLC Q bit. For example if a DSM is configured with a
starting %Q reference of %Q0001 then the Local Logic enable bit is %Q0002 (beginning reference
+ offset of 1 ). The Local Logic program name must be specified in VersaPro Hardware
Configuration and the field for Local Logic Enabled/Disabled must be set to Enabled. Refer to
Chapter 10 for a detailed description of configuring Local Logic in Versapro Hardware
Configuration.
Local Logic executes only while the PLC is in RUN mode. If The PLC is switched to STOP mode
or if the enable Local Logic Q bit is turned off, Local Logic execution is halted and all Digital
Outputs, Control bits (Jog, Feedhold, Strobe Resets, Follower Enable) and CTL bits that are under
the control of Local Logic are disabled.
Attempting to execute Local Logic in the First PLC Sweep will result in an error being reported.
For example, switching from Stop Mode to Run Mode while the Local Logic Enable bit is on will
generate an error and the Local Logic program will not execute. Toggle the Enable Q bit to run the
Local Logic program.
Note
The Local Logic Engine will not run if any custom Local Logic functions are enabled via the
Advanced Parameters in VersaPro Hardware Configuration. The custom function will normally not
be available and is developed for application specific use only by GE Fanuc.
Local Logic Outputs/Commands
DSM command bit outputs (Jog, Feedhold, Follower Enable and Strobe Resets) are OR’ed
between the PLC command and the Local Logic command. Therefore, either the PLC or Local
Logic can control them i.e. the command bit output is active if either the PLC or Local Logic has
turned it on.
AQ commands are accepted on a last-write basis. For example, if both the PLC (%AQ) and Local
Logic issue a Follower Ratio command the last value written will be active.
DSM faceplate digital outputs (real outputs switched by the DSM) are individually configurable to
be either under Local Logic control or PLC control, but not both simultaneously. Refer to Chapter
14 for a detailed description on configuring the Digital Outputs.
Local Logic digital outputs, immediate commands and command bits are updated at the end of each
Local Logic Sweep (refer to Chapter 13 for a list of the command Variables and digital output
variables). Therefore if the Local Logic program writes to the same command variable or digital
output variable multiple times in the same sweep, the last value written will be the effective
command.
For example, the sample code below shows the Jog_Plus variable, the Strobe_Reset variable and
the Follower_Ratio being written multiple times within the same sweep. In all cases the final value
written is the active value.
12-6
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Language Syntax 12
Example:
Jog_Plus_1 := TRUE; (* Turn on Jog Plus for Axis 1 *)
Strobe_Reset1_3 := 0; (* Turn off the Strobe 1 reset bit for Axis 3 *)
(* Some more code here *)
Follower_Ratio_A_1 := 10; (* Set the Follower Ratio A for Axis 1 to 10 *)
Jog_Plus_1 := FALSE;
(* Turn off Jog Plus for Axis 1*)
Strobe_Reset1_3 := 1;
(* Turn on the Strobe 1 reset bit for Axis 3 *)
Follower_Ratio_A_1 := 20; (* Set the Follower Ratio A for Axis 1 to 20 *)
For each of the output commands shown above, the last value written is acted upon by the Logic
Engine at the end of each sweep. Thus Jog_Plus_1 is turned OFF, Strobe_Reset1_3 is turned ON
and Follower_Ratio_A_1 is set to 20.
GFK-1742A
Chapter 12 Local Logic Language Syntax
12-7
12
Local Logic Arithmetic Operators
The Local Logic language contains familiar constructs to perform basic signed integer arithmetic
computations. The language supports 32-bit arithmetic in the Local Logic program and limited use
of 64/32-bit arithmetic. All operations require two operands except for the ABS function, which
returns the absolute value of a variable or numeric constant.
Table 12-3. Arithmetic Operators
Operator
+
*
/
MOD
ABS
Meaning
Addition
Subtraction
Multiplication
Integer Division
Modulus
Absolute Value
Arithmetic expressions may only be used in assignment statements with one operation per
statement.
The arithmetic operations do not require data type conversion functions since the motion module
automatically does this operation.
Operator +
Adds source1 to source2 and stores the result in destination
Syntax
destination := source1 + source2;
The + operator syntax has these parts:
Part
Description
Destination
Any writeable local logic variable except Dxx registers.
source1
Any readable local logic variable/constant except Dxx registers.
source2
Any readable local logic variable/constant except Dxx registers.
Overflow – Set if the result of an addition is greater than 2,147,483,647 or less than
–2.147,483,648. The Module_Status_Code is set to a value of 16#0095, which is a
status-only error.
12-8
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Language Syntax 12
Operator Subtracts source2 from source1 and stores the result in destination
destination := source1 – source2;
The – operator syntax has these parts:
Part
Description
Destination
Any writeable local logic variable except Dxx registers.
source1
Any readable local logic variable/constant except Dxx registers.
source2
Any readable local logic variable/constant except Dxx registers.
Overflow – Set if the result of a subtraction is greater than 2,147,483,647 or less than
-2,147,483,648. The Module_Status_Code is set to a value of 16#0095, which is a statusonly error.
Remarks
The – operator may not be used as a unary operator except with a decimal (base 10)
constant (e.g. P001 := -P003; is illegal). To negate a variable, subtract it from zero, e.g.
P001 := 0 – P003;.
Operator *
Performs a signed multiply of source1 and source2 generating a signed 64-bit result. The
result may be stored to a 32-bit or 64-bit destination.
Syntax 1
destination := source1 * source2;
Syntax 2
double destination := source1 * source2;
The * operator syntax
Part
Destination
double destination
source1
source2
has these parts:
Description
Any writeable logic variable
Any of the 64-bit local logic parameter variables (Dxx registers).
Any readable local logic variable/constant except Dxx registers.
Any readable local logic variable/constant except Dxx registers.
Overflow – Never set.
Remarks
If the result is assigned to a 32-bit variable, the least significant 32-bits are stored. Any
excess is truncated.
The second syntax may be used for multiplication operations where the result will fall
outside the range of +/- 2 billion.
GFK-1742A
Chapter 12 Local Logic Language Syntax
12-9
12
Operator /
Performs signed integer division of source1 by source2 and returns the quotient in
destination. A double precision (64-bit) parameter register may be used as the numerator.
Syntax 1
destination := source1 / source2;
Syntax 2
destination := double source1 / source2;
The / operator syntax has these parts:
Part
Description
Destination
Any writeable local logic variable except Dxx registers.
source1
Any readable local logic variable or numeric constant.
double source1
Any of the 64-bit local logic parameter variables (Dxx registers).
source2
Any readable local logic variable/constant except Dxx registers.
Overflow – See remarks below.
Remarks
In case of a divide by zero, the Module_Status_Code is set to 16#2093. In case of a
divide overflow, the Module_Status_Code is set to 16#2094.
A divide overflow or divide by zero are Stop Fast errors. Local Logic is immediately
aborted and motion is aborted by setting the servo velocity command to zero.
A divide overflow occurs when the quotient of a divide operation cannot be correctly be
represented as a signed 32-bit value. This can only occur when using a double operand
(Dxx registers) as the numerator. A divide by zero occurs when the denominator of the
divide has a value of zero.
12-10
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Language Syntax 12
Operator MOD
The MOD operator returns the remainder resulting from the signed integer division of
source1 by source2. A double precision (64-bit) parameter register may be used as the
numerator.
Syntax 1
destination := source1 MOD source2;
Syntax 2
destination := double source1 MOD source2;
The MOD operator syntax has these parts:
Part
Description
Destination
Any writeable local logic variable except Dxx registers.
source1
Any readable local logic variable or numeric constant.
double source1
Any of the 64-bit local logic parameter variables (Dxx registers).
source2
Any readable local logic variable/constant except Dxx registers.
Overflow - See remarks below.
Remarks
In case of a divide by zero, the Module_Status_Code is set to 16#2093. In case of a
divide overflow, the Module_Status_Code is set to 16#2094.
The modulus (remainder) is calculated by performing an integer division, therefore the
MOD operator has the same error conditions as the divide operator.
A divide overflow occurs when the quotient of a divide operation cannot be correctly be
represented as a signed 32-bit value. This can only occur when using a double operand
as the numerator. A divide by zero occurs when the denominator of the divide has a
value of zero.
A divide overflow or divide by zero are Stop Fast errors. Local Logic is immediately
aborted and motion is aborted by setting the servo velocity command to zero.
GFK-1742A
Chapter 12 Local Logic Language Syntax
12-11
12
Function ABS
The ABS function returns the unsigned magnitude of the variable or constant parameter.
Syntax
destination := ABS(parameter);
The ABS operator syntax has these parts:
Part
Description
Destination
Any writeable local logic variable except Dxx registers.
Parameter
Any readable local logic variable/constant except Dxx registers.
Overflow – Set if the operand has a value of –2,147,483,648. The Module_Status_Code
is set to a value of 16#0096, which is a status-only error.
12-12
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Language Syntax 12
Local Logic Bitwise Logical Operators
All logical operations are performed on a bit-by-bit basis, for example the result of a BWAND
operation is composed of 32 and operations between each of the corresponding bits of the
operands. The logic operators are prefixed with ‘BW’ to highlight the fact that they are not
Boolean operators.
Table 12-4. Bitwise Logical Operators
Operator
BWAND
BWOR
BWXOR
BWNOT
Meaning
Bitwise Logical AND
Bitwise Logical OR
Bitwise Logical Exclusive OR
Bitwise Logical NOT (one’s-complement)
Expressions using bitwise logical operators may be used in assignment or conditional statements.
Only one bitwise logical operator may be used per expression.
Operator BWAND
Performs a bitwise and of source1 and source2.
Syntax 1
destination := source1 BWAND source2;
Syntax 2
IF source1 BWAND source2 THEN
The BWAND operator syntax has these parts:
Part
Description
Destination
Any writeable local logic variable except Dxx registers.
source1
Any readable local logic variable/constant except Dxx registers.
source2
Any readable local logic variable/constant except Dxx registers.
Remarks
Syntax 1 is used for assignment, syntax 2 is used in a conditional evaluation.
GFK-1742A
Chapter 12 Local Logic Language Syntax
12-13
12
Operator BWOR
The BWOR operator returns the bitwise or on source1 and source2.
Syntax 1
destination := source1 BWOR source2;
Syntax 2
IF source1 BWOR source2 THEN
The BWOR operator syntax has these parts:
Part
Description
Destination
Any writeable local logic variable except Dxx registers.
source1
Any readable local logic variable/constant except Dxx registers.
source2
Any readable local logic variable/constant except Dxx registers.
Remarks
Syntax 1 is used for assignment, syntax 2 is used in a conditional evaluation.
Operator BWXOR
The BWXOR operator returns the bitwise exclusive or of source1 and source2.
Syntax 1
destination := source1 BWXOR source2;
Syntax 2
IF source1 BWXOR source2 THEN
The BWXOR operator syntax has these parts:
Part
Description
Destination
Any writeable local logic variable except Dxx registers.
source1
Any readable local logic variable/constant except Dxx registers.
source2
Any readable local logic variable/constant except Dxx registers.
Remarks
Syntax 1 is used for assignment, syntax 2 is used in a conditional evaluation.
12-14
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Language Syntax 12
Operator BWNOT
The BWNOT operator returns the one’s complement of the source parameter.
Syntax 1
destination := BWNOT source;
Syntax 2
IF BWNOT source THEN
The BWNOT operator syntax has these parts:
Part
Description
Destination
Any writeable local logic variable except Dxx registers.
source1
Any readable local logic variable/constant except Dxx registers.
Remarks
Syntax 1 is used for assignment, syntax 2 is used in a conditional evaluation.
GFK-1742A
Chapter 12 Local Logic Language Syntax
12-15
12
Comparison Operators
The comparison operators form a relational assertion between two operands. The comparison
expression evaluates the conditional based on the operands signed integer value.
Table 12-5. Relational Operators
Operator
<
>
<=
>=
=
<>
Meaning
Less than
Greater than
Less than or equal to
Greater than or equal to
Equal to
Not Equal to
Comparison operators may only be used as expressions in conditional statements, and only one
comparison operator may be used per expression.
IF source1 ComparisonOp source2 THEN
Comparison operators have these parts:
Part
Description
source1
Any readable Boolean or 32-bit local logic variable or numeric
constant.
source2
Any readable Boolean or 32-bit local logic variable or numeric
constant.
ComparisonOp
Any relational operator / Logical operator.
Remarks
The following table contains a list of the comparison operators and the conditions that determine
whether the result evaluates to True or False:
Table 12-6. Local Logic Comparison Operators
Relational
Less than
Less than or equal to
Greater than
Greater than or equal to
Equality
Inequality
Null Operator (IF
Variable THEN….)
Bitwise Logical Operators
12-16
Operator
<
<=
>
>=
=
<>
N/A
BWAND,
BWOR,BWXOR,
BWNOT
True if
source1 < source2
source1 <= source2
source1 > source2
source1 >= source2
source1 = source2
source1 <> source2
Variable is Non-Zero
False if
source1 >= source2
source1 > source2
source1 <= source2
source1 < source2
source1 <> source2
source1 = source2
Variable is Zero
Result is Non-Zero
Result is Zero
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Language Syntax 12
Local Logic Runtime Errors
Overflow Status
Some arithmetic operations may have results that cannot be correctly represented as a signed 32-bit
value. An example is shown in the following code segment.
P001 := 16#7FFF_FFFF; // (1) P001
P003 := P001 + 1;
Í 2,147,483,647 (maximum positive 32 bit value)
// (2) ! Overflow !
In the first line, P001 is loaded with 2,147,483,647, the largest value that can be represented as a 32
bit signed two’s-complement value. In the second line, one is added to that value. The total,
represented in hexadecimal, is 16#8000_0000. This value, interpreted as a 32-bit signed two’s
complement number represents the negative value –2,147,483,648, not the positive value
2,147,483,648! In many situations, this result would be unexpected and have undesirable effects in
subsequent program statements.
Three variables are available to the Local Logic program to detect overflows. The Overflow
variable is a read-write Boolean variable available only to the local logic program (refer to Chapter
13, Section on “Local Logic System Variables”). When an overflow error occurs, and the
Overflow variable is not cleared before the end of the Local Logic sweep, the DSM’s Module
Status Code %AI word (local logic variable Module_Status_Code) is set. The error code indicates
the type of overflow and the Module Error Present %I bit (local logic variable
Module_Error_Present) is set. The Module Status Code %AI word and the Module Error Present
%I bit are not set until the current Local Logic sweep has finished executing. In contrast, the
Overflow variable is set immediately following an instruction which causes an overflow. The Local
Logic program may clear the Overflow variable by assigning it a value of zero. The Module Status
Code must be cleared by the PLC by setting the module’s Clear Error %Q bit.
Overflow and computation errors are Status Only errors with two exceptions. A divide by zero or
divide overflow (the quotient cannot be represented in 32 bits) are Stop Fast errors. In the case of
status only errors, Local Logic processing and path generation continue normally. A stop fast error
will cause Local Logic processing to be aborted before proceeding to the next instruction, and any
motion will be aborted by setting the servo velocity command to zero. Note: Clearing the
Overflow variable will have no effect on Stop Fast errors.
Refer to Table 12-10 for a listing of all Runtime Local Logic error codes.
Divide By Zero
The Logic Engine flags Divide By Zero operations as a Fast Stop Error, since the result of the
operation is undefined. Local Logic execution and servo motion is halted. An error code 16#2093
is reported in the module status code and 16#2x9A in the Per-Axis error codes if the drives were
enabled.
GFK-1742A
Chapter 12 Local Logic Language Syntax
12-17
12
Watchdog Timeout Warning / Error
Local Logic programs are constrained to complete execution within 300 microseconds in the Logic
Engine. This is to allow sufficient processing time in the module for Path Generation and other
tasks. Refer to Appendix E for a detailed listing of the execution times for all valid Local Logic
operations. The user can compute the execution time required for a given program using the data
tables supplied in Appendix E. The Logic Engine reports a warning (Status Only) error code if the
execution time takes more than 275 microseconds but less than 300 microseconds. A Fast Stop
error is generated if the program execution time exceeds 300 microseconds. Refer to Table 12-10
for a list of the runtime warnings and error codes.
Note
Local Logic execution is halted if there are any Local Logic Fast Stop errors (see Table 12-10) and
all Digital Outputs, Control bits (Jog, Feedhold, Strobe Resets, Follower Enable) and CTL bits that
are under the control of Local Logic are disabled. Local Logic execution resumes from the start
when the user clears the error (via the error clear %Q bit).
12-18
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Language Syntax 12
Local Logic Error Messages
Local Logic Build Error Messages
The local logic program build process communicates the build status through the local logic, editor
error log window. In the event an error occurs, the build process reports the error and attempts to
continue the build process.
Error messages generated by the local logic build process fall into three categories; syntax errors,
parse errors, and parse warnings.
Parser error messages have several common elements.
Filename (Line): [Severity] [error message]
Filename is the filename of the current file being built.
Line is the line number in the file that the error was detected on.
Severity describes error severity. Errors prevent a binary creation. Warnings are informational.
Error Message is a short, general description of the error
Local Logic Syntax Errors
The build process enforces the local logic syntax. If the source program fails to meet this criterion,
the build process reports a syntax error. The error message identifies the error as a syntax error.
The syntactic element type found followed one or more of the syntactic elements the parser was
expecting is contained within the error message. It is common for syntax errors to actually be
reported on a line following the line with the actual error. Missing semi-colons are a typical
example.
Example:
scratch.llp (3): Error :syntax error
actual: IF expecting: ;
In this case, line 2 is actually missing the semicolon. Since the semi-colon may actually follow on
another line, the parser does not report the error until it sees a meaningful syntactic element that
isn’t a semi-colon.
Because of their nature, a single syntax error can cause “cascading errors.” Correcting one syntax
error may eliminate several syntax error messages. To avoid confusion, when debugging Local
Logic programs with syntax errors, correct the first error and rebuild the program to refresh the list
of errors before proceeding.
GFK-1742A
Chapter 12 Local Logic Language Syntax
12-19
12
Local Logic Parse Errors
Parse errors occur when the program syntax is correct, but there is a semantic problem. For
example, it is invalid to assign a value to a double precision variable except as the result of a
multiplication operation.
Examples:
Error (P203) Invalid assignment to Double precision var: D00
In this case the error message is followed by a string which identifies the token that caused the
error. A list of Parse errors and typical causes follows:
Table 12-7. Local Logic Parse Errors
Error
Number
(P200)
Error Description
Undefined identifier
The program contains an unrecognized variable or keyword. Check spelling and command
syntax.
(P201)
Parameter register must be in range of P000 - P255
This error is generated when the program specifies an undefined parameter register, for
example P278.
(P202)
CTL variable must be in range CTL01 - CTL32
This error is generated when the program specifies an undefined CTL variable, for example
CTL35.
(P203)
Invalid assignment to Double precision var
The program has attempted an invalid usage of one of the double precision registers.
Double precision registers may only be assigned values as the result of a multiply operation.
(P204)
Invalid use of Double precision var
The program has attempted an invalid usage of one of the double precision registers.
Double precision registers in expressions may only be used as the divisor in a divide or
MOD operation.
(P205)
Assignment to read-only variable
The program has attempted to assign a value to a read-only variable.
(P206)
Attempt to read write-only variable
The program has attempted to use a write-only variable as one of operands in an arithmetic,
logic, or relational expression.
(P207)
Subscripted variables are not supported
Variables of the form Data_Table_Int[xx] are not supported. Data table operations require
the use of the Data_Table_Ptr variable.
(P208)
Identifier name exceeds 50 chars
The program has used attempted to reference a variable with an identifier length in excess of
50 characters.
(P209)
Double Precision register must be in range D00 - D07
This error is generated when the program specifies an undefined double precision register,
for example D08.
(P220)
Hexadecimal constants must be in range of 16#0 - 16#FFFFFFFF
The program has defined a hexadecimal constant that cannot be represented in 32 bits
12-20
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Language Syntax 12
Error
Number
(P221)
(P222)
(P223)
(P230)
(P231)
(P232)
(P233)
(P240)
(P241)
(P242)
(P260)
(P280)
(P290)
(P291)
(P292)
(P293)
298(P299)
(P300)
(P301)
GFK-1742A
Error Description
Binary constants must be in range of 0 to (2^32)-1
The program has defined a binary constant that cannot be represented in 32 bits
Integer constants must be in range of -2147483648 to 2147483647
The program has defined a decimal constant that cannot be represented in 32 bits
Constant table overflow
A program can contain a maximum of 50 unique constants greater than 2047 or less than –
2048 (i.e. numbers that cannot be represented in less than 12 bits). A program may contain
any number of constants in the range of –2048 to 2047.
IF nesting limit of 8 levels exceeded.
IF statements cannot nest more than 8 levels deep.
Illegal term in IF statement
The program has an arithmetic operator in an IF statement.
Missing END_IF statement
There is an IF statement that is missing a matching END_IF statement. This error is only
detected at the end of the program.
Unmatched END_IF encountered
An END_IF statement has been found that doesn’t have a corresponding IF statement.
Assignment to constant
The program has attempted to use a constant as the destination of an assignment statement.
Invalid operator, assignment expected
Another operator was encountered where the assignment operator (:=) was expected.
Relational operator not allowed in assignment statement
A comparison operation was attempted in an assignment statement. An assignment based
on a relational may be performed by assigning a Boolean value in an IF statement.
Invalid logic operator. Use BWAND, BWOR, BWXOR, or BWNOT - <operator>
The program has used AND, OR, XOR, or NOT keywords, rather than BWAND, BWOR,
BWXOR, or BWNOT, respectively.
Instruction limit exceeded, max 150
A local logic program may be a maximum length of 150 statements. This error is reported if
the program exceeds that length.
Address out of range in direct memory access reference
A direct memory variable has specified an invalid offset.
Invalid direct memory address variable
An invalid direct memory variable has been specified.
Direct memory access var requires subscript
The program has referenced a direct memory variable without specifying an offset
Maximum error count exceeded.
The Local Logic parser will report a maximum of 30 errors. When that limit has been
exceeded this message is displayed and no further errors are reported.
Internal Error. Contact GE Fanuc Technical Support.
If the parser reports error 298 or 299 for a user program, please notify GE Fanuc technical
support (1-800-GE FANUC). Provide a copy of the program and error log.
Parse directives must precede any executable statements.
#pragma directives must appear before any executable statements in the Local Logic
program block.
Invalid directive option
The specified #pragma directive is not recognized by the Local Logic Parser.
Chapter 12 Local Logic Language Syntax
12-21
12
Error
Number
Error Description
(P302)
Invalid directive parameter
An invalid argument to the #pragma errors only directive was specified. The argument must
be 1, ON, 0, or OFF.
Local Logic Parse Warnings
Parse warnings are generated for conditions that may have unexpected results or indicate a possible
oversight in the Local Logic Program.
Table 12-8. Local Logic Parse Warnings
Error
Number
(P400)
Error Description
Assignment to binary variable may result in loss of data
This message is generated when a Boolean variable is assigned from a non-Boolean variable
or constant, or an expression containing non-Boolean variables.
(P410)
Check instruction execution time
This warning is generated for programs exceeding 100 statements. While there is a
maximum instruction limit of 150 statements, it is possible to write a Local Logic program
that takes too long to execute. Refer to appendix A in the DSM 314 User Manual for
instruction times.
(P481)
Obsolete syntax: function parameter requires parentheses
The parameter of an ABS function call is not enclosed in parentheses.
(P482)
Unexpected end of program: unclosed comment
A comment initiated with the “(*” character pair was not closed when the end-of-program
was encountered.
(P483)
Nested comments
This warning is generated if a Local Logic program has defined comment text within another
comment.
(P490)
Program contains no executable statements
The program contains only white space and/or comments.
12-22
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Language Syntax 12
Local Logic Download Error Messages
The following errors may be reported in the Module Status Code when a Local Logic program is
downloaded into the module.
Table 12-9. Local Logic Configuration Error Codes
Error Code
(Hexadecimal)
Response
0A
System Error
Invalid Digital Output Configuration
Module
0B
System Error
Invalid CTL Bit Configuration
Module
Description
Error
Type
Note: Refer to Chapter 14 for a detailed description on configuring CTL bits and Digital
Outputs for Local Logic.
Table 12-10. Local Logic Preprocessing Error Codes
GFK-1742A
Error Code
(Hexadecimal)
Response
Description
Error
Type
F0A0
System Error
Local Logic Program Header Error
Module
F0A1
System Error
Local Logic Program Terminator Error
Module
F0A2
System Error
Local Logic Program Constant Header Error
Module
F0A3
System Error
Local Logic Program Constant Terminator Error
Module
F0A4
System Error
Local Logic Program Constant Pointer Error
Module
F0A5
System Error
Local Logic Program Compiled Code Limit Exceeded
Module
F0A6
System Error
Local Logic Program Unmatched IF_THEN Error
Module
F0A7
System Error
Local Logic Program Unmatched END_IF Error
Module
F0A8
System Error
Local Logic Program Nesting Limit Exceeded
Module
F0A9
System Error
Local Logic Program Scan Error
Module
F0AA
System Error
Local Logic Program Reserved Class Error
Module
F0AB
System Error
Local Logic Program Invalid Parameter Register
Module
F0AC
System Error
Local Logic Program Invalid Double Precision Register
Module
F0AD
System Error
Local Logic Program Digital Output Error
Module
F0AE
System Error
Local Logic Program CTL Bit Error
Module
F0B0
System Error
Local Logic Program Invalid Primary Operator
Module
F0B1
System Error
Local Logic Program Invalid Secondary Operator
Module
F0B2
System Error
Local Logic Program Invalid Secondary Source
Module
F0B3
System Error
Local Logic Program Invalid Primary Source
Module
F0B4
System Error
Local Logic Program Invalid Source
Module
F0B5
System Error
Local Logic Program Source Write Only Error
Module
F0B6
System Error
Local Logic Program Direct Memory Address Error
Module
F0B7
System Error
Local Logic Program Invalid Destination
Module
F0B8
System Error
Local Logic Program Destination Read Only
Module
Chapter 12 Local Logic Language Syntax
12-23
12
Local Logic Runtime Errors
The following errors and warnings may be reported when a Local Logic program is executed in the
module.
Table 12-11. Local Logic Runtime Error Codes
Error Code
(Hexadecimal)
12-24
Response
Description
Error Type
91
Fast Stop
Local Logic Program System Halt Commanded
Module
92
Fast Stop
Local Logic Execution Time Limit Exceeded
Module
93
Fast Stop
Local Logic Divide By Zero
Module
94
Fast Stop
Local Logic Divide Overflow
Module
95
Status Only
Local Logic Add/Subtract Overflow
Module
96
Status Only
Local Logic Absolute value (ABS) overflow
Module
97
Status Only
Local Logic Execution Time Limit Warning
Module
98
Status Only
Local Logic Execute on First Sweep Error
Module
99
Status Only
Local Logic Invalid Program Name or Not Enabled in
VersaPro Hardware Configuration
Module
9A
Fast Stop
Local Logic Stop Error
Per-Axis
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Chapter
Local Logic Variables
13
Local Logic Variable Types
Local Logic accesses the motion controller variables and parameter registers using pre-defined
variable names. Refer to Table 13-1 through Table 13-6 for a complete listing of all Local Logic
variables.
Examples:
IF Actual_Position_2 > 5000 THEN ...;
IF Strobe1_Level_2 = ON THEN ...;
Storing values to variables is performed by using the “:=” assignment operator:
Examples:
Torque_Limit_2 := 8500;
(* Set Torque Limit to 85% * )
Position_Loop_TC_1 := 2500 / Actual_Velocity_1;
Local Logic variables are broken down into two categories: Global Variables and Per-Axis
Variables. There are four sets of axis variables (Axis1 - Axis4). Each set of variables is subdivided
into Control variables, Status variables and Faceplate I/0 (refer to Table 13-1 through Table 136 ). A description of the terms used in the Variable Tables follows:
Variable Attribute
The attribute for each Local Logic variable is listed in Table 13-1 through Table 13-6. Variables
can be Read-Only, Write-Only or Read-Write. The Parser reports an error if the user attempts to
write to a Read-Only variable or read from a Write-Only variable.
Variable Size
Local Logic variables range in size from 1 bit (Bit Operands) to 64 Bits (for the Double Precision
Dxx registers). Refer to Table 13-1 through Table 13-6 for a listing of the size of each Local Logic
variable. Attempting to write a value larger than a given variable size will result in the value being
truncated. For example, if the result of a math operation is 32 bits long and is assigned to a 16-bit
variable only the low 16 bits will be stored. The Parser reports a warning if a Bit Operand is used
GFK-1742A
13-1
13
as the destination variable in a non-Boolean Math operation (only the least significant bit of the
result would be stored).
Note: The AQ command variables (Torque Limit, Velocity Loop Gain, Follower Ratio, Position
Increment and Position Loop Time Constant) may have an allowed range that is smaller than the
Local Logic variable size. The module reports a warning error code and rejects any invalid values if
the program attempts to write a value outside the valid range of an AQ command. Refer to Chapter
4 for a description of the allowed %AQ command ranges.
Variable Sign
Local Logic variables that are less than 32 bits long are either Signed or Unsigned (except Bit
Operands, which are always Unsigned). All Math/Logic operations in the Logic Engine are signed
32 bit operations (except the 64 bit signed Divide and Modulus operations). Signed variables that
are less than 32 bits long are automatically sign extended to 32 bits when they are loaded by the
Logic Engine. Unsigned variables are not sign extended. Thus the Logic Engine handles all data
conversion and limit checking automatically.
Local Logic System Variables
The First_Local_Logic_Sweep, Overflow and System_Halt variables are used exclusively in the
Logic engine and are described below.
First_Local_Logic_Sweep variable
The First_Local_Logic_Sweep variable is a Read-Only Bit Operand (refer to Table 13-5). It is set
by the Logic Engine during the first execution sweep when Local Logic is enabled and the PLC is
in RUN mode. It is reset to zero for subsequent sweeps. Thus it can be used in the Local Logic
program to initialize some variables. For example, the code below initializes some parameter
registers and Control variables in the first sweep using the First_Local_Logic_Sweep variable.
IF First_Local_Logic_Sweep THEN (* If it’s the First execution sweep then *)
P001 := 0;
(* Initialize P001 to 0 *)
P015 := 1000;
(* Initialize P015 to 1000 *)
Velocity_Loop_Gain_1 := 20;
(* Set the Velocity Loop Gain for Axis 1 to 20 *)
END_IF;
Overflow variable
The Overflow variable is a Read-Write Bit Operand (refer to Table 13-5). It is set by the Logic
Engine when an Addition, Subtraction or Absolute value (ABS) overflow occurs. A warning error
code is also reported in the Module Status Code if the Overflow flag is set and an overflow error
occurs (refer to Chapter 12). Note that the user can prevent Add/Subtract/ABS overflow warnings
from being reported by setting the Overflow variable to zero at the end of the Local Logic program.
Similarly the user can test for Overflow errors within the Local Logic program by reading the
Overflow variable and performing some appropriate action. The Overflow variable is cleared under
the following circumstances:
1) It’s automatically cleared when Local Logic starts running, before the first execution sweep.
2) It can be cleared by the user in the Local Logic program (by setting Overflow := 0; ).
13-2
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Variables 13
3) It’s cleared when the user toggles the error clear Q bit.
System_Halt variable
The System_Halt variable is a Write-Only Bit Operand (refer to Table 13-5). If the Local Logic
program writes a 1 to the System_Halt variable servo motion and Local Logic execution is halted.
An error code is also reported in the Module Status Code ( refer to Chapter 12). Thus the
System_Halt variable can be used to trap for fatal error conditions and perform error recovery. The
sample code below shows a possible scenario in which the System_Halt variable might be used:
IF Overflow THEN
System_Halt := TRUE;
END_IF;
(* Trap for an overflow *)
(* Halt Local Logic Execution and Servo Motion *)
Double Precision 64 Bit Registers
Local Logic provides 8 64-bit registers (D00-D07) in addition to the 255 32-bit registers (refer to
Table 13-5). This is to allow the user to store the result of multiplying two 32-bit numbers in a Dxx
register and then perform a Divide/Modulus operation on the result. Thus the 64 bit registers may
be used under the following circumstances:
1) As the Destination register for a multiply operation.
2) As the Dividend (numerator) in a Divide/Modulus operation.
The Parser will flag an error if it is used in other operations. Example code for the use of the Dxx
registers is shown below:
D01 := P001 * 2147483647; (* Perform a Multiply operation and store in a 64 bit register *)
P010 := D01 / 12500;
(* Divide the result and store in a 32 bit register *)
Note that the above scenario may result in a Divide Overflow, if the result does not fit in a 32-bit
register. A Divide Overflow will halt Local Logic execution and servo motion, since the result of
the operation is undefined (refer to Chapter 12). An error code will also be reported in the Module
Status Code.
Note
The contents of the 64-bit data registers (D00-D07) and 32-bit writeable data registers (P000-P255)
are not automatically initialized by Local Logic when it starts running. The user should initialize
any required variables using a separate Local Logic program or the First_Local_Logic_Sweep
variable or PLC ladder.
GFK-1742A
Chapter 13 Local Logic Variables
13-3
13
Local Logic User Data Table
Local Logic provides an 8192 Byte Circular Buffer which can be used to store and retrieve data
by the Local Logic program. Refer to Table 13-5 for a listing of the Data_Table variables. The data
table is accessed using indirect memory addressing. The Data_Table_Ptr variable (the “Pointer”) is
used to point to the correct Byte location in the 8192 Byte buffer. Therefore the Data_Table_Ptr
variable size is 13 bits (0-8191 allowed range). The Pointer is automatically incremented when a
value is read from or written to the Circular Buffer. The amount by which the pointer is
incremented depends on the size of the variable accessed. The Data_Table_Ptr is automatically
initialized to 0 when Local Logic starts, before the first execution sweep. Thus the Data Table
variables can be used to access a large pre-loaded block of data in the Local Logic program. The
following variables are used to access the Circular Buffer:
Data_Table_Ptr : Data Table Pointer- valid range 0-8191.
Data_Table_sint : Signed 8 Bits
Data_Table_usint : Unsigned 8 Bits
Data_Table_int : Signed 16 Bits
Data_Table_uint : Unsigned 16 Bits
Data_Table_dint : 32 Bits
(Pointer auto-incremented by 1 for Read/Write)
(Pointer auto-incremented by 1 for Read/Write)
(Pointer auto-incremented by 2 for Read/Write)
(Pointer auto-incremented by 2 for Read/Write)
(Pointer auto-incremented by 4 for Read/Write)
The sample code below shows how a specific memory location can be accessed in the circular
buffer:
Data_Table_Ptr := 100;
P001 := Data_Table_int;
Data_Table_sint := -120;
Data_Table_Ptr := 0;
(* Point to Byte offset 100 in the buffer *)
(* Read a signed 16 bit number from the buffer *)
(* The Data_Table_Ptr is auto-incremented to 102 *)
(* Write an 8 bit signed number to Byte 102 *)
(* Point to Byte offset 0 in the Buffer *)
Digital Outputs / CTL Variables
The 8 Digital Outputs in the module (2 per axis) are individually configurable to be either under
PLC Control (default) or under Local Logic (DSM) control. If the Local Logic program writes to a
particular Digital_Output variable (refer to Table 13-1 through Table 13-6) it must be configured
for DSM control. The DSM module will reject any Local Logic programs that are downloaded with
an incorrect Digital Output configuration. Refer to Chapter 14 for a detailed description on
configuring the Digital Outputs.
CTL01-CTL24 are also individually configurable to have different input sources. Refer to Chapter
14 for a detailed description of the configuration options. CTL25 through CTL32 are not
configurable and are always under Local Logic Control. The DSM module will reject any Local
Logic programs that are downloaded with an incorrect CTL configuration. For example, if the
Local Logic program has a statement that writes to CTL16 (e.g. CTL16 := 1;), then CTL16 must be
configured as “Local Logic Controlled” in VersaPro Hardware Configuration. CTL01 through
CTL32 and the Motion program Block Numbers (variables Block_1, Block_2, Block_3, Block_4 )
can be used to synchronize the Motion Program and the Local Logic program.
13-4
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Variables 13
Table 13-1. Axis 1 Variables
/RFDO /RJLF 9DULDEOH 1DPH
$WWULEXWH
FacePlate I/O
Strobe1_Level_1
Read Only
Strobe2_Level_1
Read Only
Positive_EOT_1
Read Only
Negative_EOT_1
Read Only
Home_Switch_1
Read Only
Digital_Output1_1 (1)
Write Only
Digital_Output3_1 (1)
Write Only
Analog_Input1_1
Read Only
Analog_Input2_1
Read Only
Control Variables
Velocity_Loop_Gain_1
Read/Write
Position_Loop_TC_1
Write Only
Torque_Limit_1
Write Only
Follower_Ratio_A_1
Write Only
Follower_Ratio_B_1
Write Only
Position_Increment_Cts_1 (2)
Write Only
Reset_Strobe1_1
Write Only
Reset_Strobe2_1
Write Only
Enable_Follower_1
Write Only
Jog_Plus_1
Write Only
Jog_Minus_1
Write Only
FeedHold_1
Write Only
Status Variables
Error_Code_1
Read Only
Block_1
Read Only
Actual_Position_1
Read Only
Commanded_Position_1
Read Only
Position_Error_1
Read Only
Strobe1_Position_1
Read Only
Strobe2_Position_1
Read Only
Actual_Velocity_1
Read Only
Commanded_Velocity_1
Read Only
Commanded_Torque_1
Read Only
User_Selected_Data1_1
Read Only
User_Selected_Data2_1
Read Only
UnAdjusted_Actual_Position_Cts_1
Read Only
UnAdjusted_Strobe1_Position_Cts_1
Read Only
UnAdjusted_Strobe2_Position_Cts_1
Read Only
Axis_OK_1
Read Only
Position_Valid_1
Read Only
Strobe1_Flag_1
Read Only
Strobe2_Flag_1
Read Only
Drive_Enabled_1
Read Only
Program_Active_1
Read Only
Moving_1
Read Only
In_Zone_1
Read Only
Position_Error_Limit_1
Read Only
Torque_Limited_1
Read Only
GFK-1742A
Chapter 13 Local Logic Variables
Size
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Signed 16 Bits
Signed 16 Bits
Unsigned 8 Bits
Unsigned 16 Bits
Unsigned 16 Bits
Signed 16 Bits
Signed 16 Bits
Signed 16 Bits
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Unsigned 16 Bits
Unsigned 16 Bits
32 Bits
32 Bits
32 Bits
32 Bits
32 Bits
32 Bits
32 Bits
32 Bits
32 Bits
32 Bits
32 Bits
32 Bits
32 Bits
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
13-5
13
Servo_Ready_1
Follower_Enabled_1
Follower_Velocity_Limit_1
Follower_Ramp_Active_1
Read Only
Read Only
Read Only
Read Only
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Notes:
(1) These Digital Outputs must be configured for Local Logic control in VersaPro Hardware Configuration in
order to be writeable by Local Logic.
(2) The Position_Increment_Cnts_n variable has a maximum range of r1023 counts.
Table 13-2. Axis 2 Variables
/RFDO /RJLF 9DULDEOH 1DPH
$WWULEXWH
FacePlate I/O
Strobe1_Level_2
Read Only
Strobe2_Level_2
Read Only
Positive_EOT_2
Read Only
Negative_EOT_2
Read Only
Home_Switch_2
Read Only
Digital_Output1_2 (1)
Write Only
Digital_Output3_2 (1)
Write Only
Analog_Input1_2
Read Only
Analog_Input2_2
Read Only
Control Variables
Velocity_Loop_Gain_2
Read/Write
Position_Loop_TC_2
Write Only
Torque_Limit_2
Write Only
Follower_Ratio_A_2
Write Only
Follower_Ratio_B_2
Write Only
Position_Increment_Cts_2 (2)
Write Only
Reset_Strobe1_2
Write Only
Reset_Strobe2_2
Write Only
Enable_Follower_2
Write Only
Jog_Plus_2
Write Only
Jog_Minus_2
Write Only
FeedHold_2
Write Only
Status Variables
Error_Code_2
Read Only
Block_2
Read Only
Actual_Position_2
Read Only
Commanded_Position_2
Read Only
Position_Error_2
Read Only
Strobe1_Position_2
Read Only
Strobe2_Position_2
Read Only
Actual_Velocity_2
Read Only
Commanded_Velocity_2
Read Only
Commanded_Torque_2
Read Only
User_Selected_Data1_2
Read Only
User_Selected_Data2_2
Read Only
UnAdjusted_Actual_Position_Cts_2
Read Only
UnAdjusted_Strobe1_Position_Cts_2
Read Only
UnAdjusted_Strobe2_Position_Cts_2
Read Only
Axis_OK_2
Read Only
Position_Valid_2
Read Only
13-6
Size
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Signed 16 Bits
Signed 16 Bits
Unsigned 8 Bits
Unsigned 16 Bits
Unsigned 16 Bits
Signed 16 Bits
Signed 16 Bits
Signed 16 Bits
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Unsigned 16 Bits
Unsigned 16 Bits
32 Bits
32 Bits
32 Bits
32 Bits
32 Bits
32 Bits
32 Bits
32 Bits
32 Bits
32 Bits
32 Bits
32 Bits
32 Bits
Bit Operand
Bit Operand
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Variables 13
Strobe1_Flag_2
Strobe2_Flag_2
Drive_Enabled_2
Program_Active_2
Moving_2
In_Zone_2
Position_Error_Limit_2
Torque_Limited_2
Servo_Ready_2
Follower_Enabled_2
Follower_Velocity_Limit_2
Follower_Ramp_Active_2
Read Only
Read Only
Read Only
Read Only
Read Only
Read Only
Read Only
Read Only
Read Only
Read Only
Read Only
Read Only
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Notes:
(1) These Digital Outputs must be configured for Local Logic control in VersaPro Hardware Configuration in
order to be writeable by Local Logic.
(2) The Position_Increment_Cnts_n variable has a maximum range of r1023 counts.
Table 13-3. Axis 3 Variables
Local Logic Variable Name
$WWULEXWH
Size
FacePlate I/O
Strobe1_Level_3
Read Only
Bit Operand
Strobe2_Level_3
Read Only
Bit Operand
Positive_EOT_3
Read Only
Bit Operand
Negative_EOT_3
Read Only
Bit Operand
Home_Switch_3
Read Only
Bit Operand
Digital_Output1_3 *
Write Only
Bit Operand
Digital_Output3_3 *
Write Only
Bit Operand
Analog_Input1_3
Read Only
Signed 16 Bits
Analog_Input2_3
Read Only
Signed 16 Bits
Control Variables
Reset_Strobe1_3
Write Only
Bit Operand
Reset_Strobe2_3
Write Only
Bit Operand
Status Variables
Error_Code_3
Read Only
Unsigned 16 Bits
Actual_Position_3
Read Only
32 Bits
Strobe1_Position_3
Read Only
32 Bits
Strobe2_Position_3
Read Only
32 Bits
Actual_Velocity_3
Read Only
32 Bits
Axis_OK_3
Read Only
Bit Operand
Position_Valid_3
Read Only
Bit Operand
Strobe1_Flag_3
Read Only
Bit Operand
Strobe2_Flag_3
Read Only
Bit Operand
*Note: These Digital Outputs must be configured for Local Logic control in VersaPro Hardware
Configuration in order to be writeable by Local Logic.
Note
For Axis 3, the DSM314 Version 2.0 only supports the variables in Table 13-3.
GFK-1742A
Chapter 13 Local Logic Variables
13-7
13
Table 13-4. Axis 4 Variables
Local Logic Variable Name
Strobe1_Level_4
Strobe2_Level_4
Positive_EOT_4
Negative_EOT_4
Home_Switch_4
Digital_Output1_4 *
Digital_Output3_4 *
Analog_Input1_4
Analog_Input2_4
$WWULEXWH
Size
FacePlate I/O
Read Only
Read Only
Read Only
Read Only
Read Only
Write Only
Write Only
Read Only
Read Only
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Signed 16 Bits
Signed 16 Bits
*Note: These Digital Outputs must be configured for Local Logic control in VersaPro Hardware
Configuration, in order to be writeable by Local Logic.
Note
For Axis 4, the DSM314 Version 2.0 only supports the variables in Table 13-4.
Table 13-5. Global Variables
/RFDO /RJLF 9DULDEOH 1DPH
Overflow (1)
System_Halt (1)
Data_Table_Ptr (2)
Data_Table_sint (2)
Data_Table_usint (2)
Data_Table_int (2)
Data_Table_uint (2)
Data_Table_dint (2)
Module_Error_Present
New_Configuration_Received
First_Local_Logic_Sweep (1)
Module_Status_Code
CTL_1_to_32 (3)
P000-P255
D00-D07 (4)
$WWULEXWH
6L]H
Read / Write
Write Only
Read / Write
Read / Write
Read / Write
Read / Write
Read/ Write
Read / Write
Read Only
Read Only
Read Only
Read Only
Read Only
Read / Write
Read / Write
Bit Operand
Bit Operand
13 Bits
Signed 8 Bits
Unsigned 8 Bits
Signed 16 Bits
Unsigned 16 Bits
32 Bits
Bit Operand
Bit Operand
Bit Operand
Unsigned 16 Bits
32 Bits
32 Bits
64 Bits
Notes:
(1)- Refer to the Section on “Local Logic System Variables”.
(2)- Refer to the Section on “Local Logic User Data Table”.
(3)- The CTL_1_to_32 variable can be used to read all 32 CTL bits into a register.
(4)- Refer to the Section on ”Double Precision 64 Bit Registers”.
13-8
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Variables 13
Table 13-6. CTL Bits
Local Logic Variable Name
CTL01 **
CTL02 **
CTL03 **
CTL04 **
CTL05 **
CTL06 **
CTL07 **
CTL08 **
CTL09 **
CTL10 **
CTL11 **
CTL12 **
CTL13 **
CTL14 **
CTL15 **
CTL16 **
CTL17 **
CTL18 **
CTL19 **
CTL20 **
CTL21 **
CTL22 **
CTL23 **
CTL24 **
CTL25
CTL26
CTL27
CTL28
CTL29
CTL30
CTL31
CTL32
$WWULEXWH
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Read / Write
Size
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
Bit Operand
**Note: CTL bits 1 through 24 are individually configurable in VersaPro Hardware Configuration
(refer to the Chapter 14 “Local Logic Configuration”). CTL01-24 can be written by Local Logic
only if configured as “Local Logic Controlled” in Hardware Configuration.
GFK-1742A
Chapter 13 Local Logic Variables
13-9
Chapter
Local Logic Configuration
14
CTL Bit Configuration
The VersaPro programming environment allows the user to configure the input source for CTL bits
(CTL01-CTL24) using the Hardware Configuration screen. From the Hardware Configuration
screen, select the DSM314 module you wish to configure. Reference chapter 10 for the correct
menu/toolbar button sequence to access Hardware configuration. The DSM314 configuration
screens contain a tab called CTL Bits. Selecting this tab results in a display similar to the one
shown in Figure 14-1.
Figure 14-1. CTL Bits Configuration Dialog Box
The configuration screen allows the user to select the CTL bit configuration that corresponds with
the Motion Program and Local Logic program. The sections that follow provide additional
information concerning the CTL bit configuration process.
GFK-1742A
14-1
14
New CTL bits CTL01-CTL32
•
CTL01 - CTL24 are configurable CTL bits.
•
CTL25-CTL32 are non-configurable CTL bits providing Local Logic read and Local
Logic write.
Table 14-1. CTL Bit Summary
Identifier
%I Bit
CTL01-CTL08
CTL09-CTL12
CTL13-CTL16
CTL17-CTL24
CTL25-CTL32
X
1
14-2
X
CTL01-CTL32 Bit Summary for DSM314
Faceplate %Q bit
Local Logic Local Logic
Inputs
Read
Write
Config
Config
X
Config
Config
Config
X
Config
Config
Config
X
Config
Config
Config
X
Config
X
X
FBSA1
Write
Config
Config
Config
Config
FBSA1
Read
X
FBSA stands for Fast Backplane Status Access. See GFK-0467L (or later version) for details.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
14
Local Logic Configuration
The figure below illustrates the sources that write to CTL bits and the destinations that read CTL
bits:
CTL01-CTL24 Source
Source for each bit
configurable as:
1.
2.
3.
4.
5.
CTL25-CTL32 Source
Faceplate Input
PLC %Q bit
Local Logic Write
Local Logic Active
FBSA Write bit
Source has fixed
assignment to Local
Logic Write
CTL01-CTL32
CTL01-CTL08
CTL09-CTL12
PLC %I Bits and
SNAP Read Bits
CTL13-CTL16
CTL17-CTL32
PLC %I Bits
Local Logic Read,
Follower Enable/Disable Trigger,
Motion Program Jump,
and Wait Control
Figure 14-2. CTL Bit Source/Destinations
GFK-1742A
Chapter 14 Local Logic Configuration
14-3
14
CTL01-CTL24 Bit Configuration Selections
Each of the bits CTL01-CTL24 are individually configurable. CTL17-CTL22 default to the %Q
digital output control bits for axis 1 - axis 3. CTL23-CTL24 default to Fast Backplane Status
Access (FBSA) write bits 1-2. The configuration choices are shown in the following table.
Table 14-2. CTL Bit Configuration Selections
CTL Bits
CTL01-CTL24
14-4
Allowed Configuration
Values for Bit Source
IN9_A
IN10_A
IN11_A
IN9_B
IN10_B
IN11_B
IN9_C
IN10_C
IN11_C
IN9_D
IN10_D
IN11_D
Strobe1 Level Axis1
Strobe2 Level Axis1
Strobe1 Level Axis2
Strobe2 Level Axis2
Strobe1 Level Axis3
Strobe2 Level Axis3
IN5_D
IN6_D
Local Logic Write
Local Logic Active Flag
FBSA Write Bit 1
FBSA Write Bit 2
FBSA Write Bit 3
FBSA Write Bit 4
%Q bit Offset 12
%Q bit Offset 13
%Q bit Offset 14
%Q bit Offset 15
%Q bit Offset 24
%Q bit Offset 25
%Q bit Offset 40
%Q bit Offset 41
%Q bit Offset 56
%Q bit Offset 57
Description
Overtravel (+) Axis 1
Overtravel (-) Axis 1
Home Switch Axis 1
Overtravel (+) Axis 2
Overtravel (-) Axis 2
Home Switch Axis 2
Faceplate 24v Input Axis 3
Faceplate 24v Input Axis 3
Home Switch Axis 3
Faceplate 24v Input Axis 4
Faceplate 24 v Input Axis 4
Faceplate 24 v Input Axis 4
Input Strobe1 Level Axis 1
Input Strobe 2 Level Axis 1
Input Strobe 1 Level Axis 2
Input Strobe 2 Level Axis2
Input Strobe 1 Level Axis 3
Input Strobe 2 Level Axis 3
Faceplate 5v Input Axis 4
Faceplate 5v Input Axis 4
CTL bit under Local Logic control
Local Logic Program Active
Serial Non-Acknowledge Protocol (FBSA) Bit 1
Serial Non-Acknowledge Protocol (FBSA) Bit 2
Serial Non-Acknowledge Protocol (FBSA) Bit 3
Serial Non-Acknowledge Protocol (FBSA) Bit 4
CTL09 Program Control
CTL10 Program Control
CTL11 Program Control
CTL12 Program Control
Faceplate 24v Output Control Axis 1 (OUT1_A)
Faceplate 5v Output Control Axis 1 (OUT3_A)
Faceplate 24v Output Control Axis 2 (OUT1_B)
Faceplate 5v Output Control Axis 2 (OUT3_B )
Faceplate 24v Output Control Axis 3 (OUT1_C)
Faceplate 5v Output Control Axis 3 (OUT3_C)
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
14
Local Logic Configuration
FBSA Function and CTL Bit Assignments
The backplane Fast Backplane Status Access (FBSA) function will write 4 bits to the DSM and
read 8 bits. The FBSA function is mapped as shown in the following table. For information on the
FBSA service request, refer to GFK-0467L (or later version), the Series 90-30/20/Micro PLC CPU
Instruction Set Reference Manual.
Table 14-3. FBSA Bit CTL Bit Assignments
GFK-1742A
FBSA Read
CTL01-CTL08
FBSA
Write
CTL01-CTL24
(Configurable)
FBSA Bit Assignments
CTL01-CTL08 will have an individually configurable source
which includes Local Logic or any DSM faceplate input. The
bits are always readable as PLC %I bits and FBSA inputs.
FBSA Write Bits 1-4 can be configured as the source for any
of the bits CTL01-CTL24.
FBSA Write Bits 1-2 are the default source for CTL23-24.
Chapter 14 Local Logic Configuration
14-5
14
Faceplate Output Bit Configuration
The VersaPro programming environment, through Hardware configuration, allows the user to
configure the DSM314 faceplate digital outputs for either Local Logic program control or PLC
program control. To access the Output Bits configuration screen, evoke Hardware configuration
from VersaPro. Once inside Hardware configuration, select the DSM314 module you wish to
configure. Reference GFK-1670 or the VersaPro 1.1 on-line help for the correct menu/toolbar
button sequence to access Hardware configuration. The DSM314 configuration screens contain a
tab (Output Bits). Selecting this tab results in a display similar to the one shown in Figure 14-3.
Figure 14-3. Output Bit Configuration
The following table describes the faceplate outputs that can be controlled from Local Logic or the
PLC.
Table 14-4. Faceplate Output Bit Description
Signal Name
OUT1_A
OUT3_A
OUT1_B
OUT3_B
OUT1_C
OUT3_C
OUT1_D
OUT3_D
14-6
Description
Faceplate 24v (SSR) Output Axis 1
Faceplate 5v Output Axis 1
Faceplate 24v (SSR) Output Axis 2
Faceplate 5v Output Axis 2
Faceplate 24v (SSR) Output Axis 3
Faceplate 5v Output Axis 3
Faceplate 24v (SSR) Output Axis 4
Faceplate 5v Output Axis 4
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Chapter
Using VersaPro with the DSM314
15
Getting Started
Note: VersaPro Version 1.1 or later is required for use with the DSM314. This document
discusses how to start the VersaPro software and use it to access the DSM314 configuration,
motion programming, and Local Logic programming screens. It does not tell you specifically
what values to configure, or what commands to use in motion or Local Logic programs. That
information is covered elsewhere in this manual. Additional VersaPro information can be found in
the VersaPro Programming Software User’s Guide, GFK-1670, as well as in VersaPro’s on-line
help screens.
Starting VersaPro
Double click the VersaPro icon on your Windows desktop to start the software running. VersaPro
will start with a blank screen called the “Workbench.”
Figure 15-1. VersaPro Startup “Workbench” Screen
GFK-1742A
15-1
15
•
Before creating a file, check the Workbench default settings to make sure that Series 90-30 is
the default PLC. To do this, click Tools on the Menu bar (see Figure 15-4), then click the
Options selection. The Options dialog box will appear, as shown next:
Figure 15-2. Checking the VersaPro Default Settings in the Tools/Options Dialog Box
•
Make sure Series 90-30 is shown in the Default Hardware Configuration box, then click the
OK button.
•
To open a folder, click File on the Menu bar, then either click Open Folder to open an existing
one, or click New Folder to create a new one. You can also import an existing Series 90-30
folder that was originally created in Logicmaster or Control. See the “Folder Operations”
section of Chapter 2 in the VersaPro User’s Guide for details. For this example, we’ll click
New Folder. A New Folder Wizard dialog box will appear as shown in the next figure.
Figure 15-3. The New Folder Wizard Dialog Box
•
15-2
Enter a name for your folder. Although you can use up to 255 characters to name the folder,
only the last 7 characters will be used as the folder name in the PLC. These last 7 characters of
the Folder Name are called the Folder Nickname. This being the case, you may wish to
carefully name your folder so that its nickname is meaningful. For example, if your Folder
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using VersaPro with the DSM314 15
Name is “Pumphouse_Number_1,” the Nickname stored to the PLC is “umber_1” which may
not convey the meaning you desire. Better names might be something like “PHouse1” or
“PH1.” Chapter 2 of the VersaPro user’s manual (GFK-1670) has a section that explains the
rules for creating Folder Names, including which characters are allowed.
•
You may also change the folder location path from the default path shown in the Location field
if you wish to store your folder in a different location. Also, there is a Description field that
allows you to enter up to 64 characters of description information. When finished entering
information in this dialog box, click the Finish button. (If you wanted to import a Logicmaster
or Control folder, you would click Next, which would give you another dialog box with the
import choices.) You will now see the Main LD (Ladder Diagram) screen.
Hardware Configuration Icon
Menu Bar
Tool Bars
Logic Editor
Window
Folder Browser
Window
Information
Window
Status Bar
Figure 15-4. VersaPro’s Main Ladder Diagram (LD) Screen
Changing a VersaPro Screen Layout
If a VersaPro screen layout is not to your liking, you have the option of changing it. For example,
some users prefer to have the Folder Browser window on the left side of the screen, or prefer the
Local Logic Editor window to be larger than the default size. There are two primary ways to
change a screen layout: moving and resizing.
Moving a window: Click just inside the window’s border with the left mouse button. A
rectangular box will appear on-screen. While holding the mouse button, drag the box to position it
where desired, then release the mouse button to place it there. Sometimes when a window is
moved its shape will change. If desired, you can resize it to a different shape as described next.
Resizing a window: Place the mouse pointer on the applicable border of the window you wish to
resize. The mouse pointer will change to a short double line with arrows:
Click and hold the left mouse button and drag to resize the window.
GFK-1742A
Chapter 15 Using VersaPro with the DSM314
15-3
15
Starting the Configuration Process
The configurator is actually a separate program that you can launch from the Main screen (shown
in the previous figure). To begin, double click the Hardware Configuration icon
to launch the HWC (Hardware Configuration) program. The HWC screen may
appear as a window in or on top of the VersaPro Workbench, as shown below. If so, click the
Expand button to expand it to full size. (You may also have to click the Expand Button in the
smaller window to expand it also.)
Expand Button
Figure 15-5. The Hardware Configuration (HWC) Startup Screen
The Configuration Window will expand to its full size:
Border
Figure 15-6. The Expanded Hardware Configuration Screen
15-4
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using VersaPro with the DSM314 15
•
If you are not able to read the module numbers clearly, you can enlarge the left window by
dragging its border (noted in the previous figure) to the right. After doing so, your screen
should look similar to the next figure:
Figure 15-7. Enlarged Hardware Configuration Screen
You are now ready to begin the configuration process, described in the next section “Configuring
the DSM314.”
GFK-1742A
Chapter 15 Using VersaPro with the DSM314
15-5
15
Configuring the DSM314
The following information disusses configuring the DSM314. For configuring other hardware,
please refer to the VersaPro User’s Guide, GFK-1670, and the VersaPro on-line help.
•
With the Configuration window open, as shown in the previous figure, double click the empty
slot where the DSM314 is to be installed. You will see a Module Catalog window appear with
a list of module categories:
Figure 15-8. Module Catalog Widow for Hardware Configuration
•
Click the Motion tab to access a list of motion module choices:
Figure 15-9. Motion Tab for Hardware Configuration
15-6
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using VersaPro with the DSM314 15
•
Double click the IC693DSM314, or highlight it as shown and click the OK button. The
DSM314 will be added to the on-screen rack, and its Configuration window will appear:
Figure 15-10. DSM314 Hardware Configuration Window
The figure above shows the DSM314 default configuration settings. Only 11 of the selection tabs
are displayed. Other tabs not shown will appear if their associated parameters are selected. For
details on individual configuration settings, refer to Chapter 4. Here is a summary of the tabs:
Table 15-1. DSM314 Hardware Configuration Window SelectionTabs
Tab Name
Description
Settings
Contains PLC Reference assignments and lengths, DSM Axis setup, and
other global data.
SNP Port
Setup for the DSM front panel SNP port (labeled COMM).
CTL Bits
Configuration for 24 Control bits used inside the DSM.
Output Bits
Configuration for the 8 DSM faceplate digital outputs.
Axis #1
Axis #2
Axis #3
Configuration of axis parameters such as Position Limits, Find Home
Velocity, and Jog Acceleration.
Axis #4
Tuning #1
Tuning #2
Tuning #3
Configuration of servo loop tuning items such as Motor Type, Position
Loop Time Constants, and Velocity Feedforward parameters.
Tuning #4
GFK-1742A
Advanced
Allows user entry of custom tuning parameters for any axis.
Power
Consumption
Lists DSM power consumption required from the backplane supply (4.0
watts plus encoder power).
Chapter 15 Using VersaPro with the DSM314
15-7
15
•
When finished configuring the module, click the DSM314 configuration window’s close
button (the button in the upper right corner of the configuration window with an X) to return to
the “Rack View.” At this point, your configuration settings are not yet saved to disk. They
only reside in your computer’s volatile RAM memory.
Saving Your Configuration Settings to Disk
15-8
•
Click File on the Menu bar, then click Save on the drop-down File menu. The configuration
settings will be written to the applicable file in your program folder. Once a file is saved, the
Save selection on the Menu file becomes inactive (it changes from black to a light green
color). If you make any further changes to the configuration, the Save selection on the File
menu will return to its active state (and its color will change back to black).
•
After saving your configuration file, click File on the Menu bar, then click Exit to return to the
Main LD screen.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using VersaPro with the DSM314 15
Connecting to and Storing Your Configuration to the PLC
Note
You cannot store your configuration file to the PLC from within the
configurator program. You must be on VersaPro’s Main LD screen in
order to store to the PLC.
Useful Tool Bar Icons
Several toolbar icons will be used in the next several steps to initiate such operations as Connect,
Stop the PLC, and Store. The following figure identifies these toolbar icons:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
Connect
Disconnect
Store to PLC
Load from PLC
1
Verify with PLC
Run PLC
Stop PLC
Toggle a Reference
Override a Reference
Write a Value to a Reference
View PLC Status
3
2
7
5
4
6
9
8
11
10
Figure 15-11. VersaPro Toolbar Icons
Connecting to the PLC
•
On the main VersaPro screen, click the Connect icon on the Toolbar. The Connect dialog box
will appear.
Figure 15-12. The Connect Dialog Box
GFK-1742A
Chapter 15 Using VersaPro with the DSM314
15-9
15
•
If connecting directly to the PLC programmer port from the COM1 serial port on your
computer, use the DEFAULT settings shown in the figure above.
•
Make sure your serial cable is connected between your computer and the serial port on the
PLC. Then click the Connect button on the Connect dialog box to begin connecting to the
PLC. The message bar at the bottom of the VersaPro screen will display a “Connecting”
message with a horizontal bar graph. Once the connection is made, the Status bar message will
change from Disconnected to Connected.
Stopping the PLC
•
The PLC must be stopped to store configuration files, so click the Stop icon on the Tool bar.
The Stop Execution dialog box will appear.
Figure 15-13. The Stop Execution Dialog Box
•
Click Yes to stop the PLC. The Status bar message at the bottom of the screen will change
from Run Enabled to Stop Disabled.
Store Operation
•
Click the Store to PLC icon on the Tool bar. The Store Folder to PLC dialog box will appear.
Figure 15-14. The Store Folder to PLC Dialog Box
•
15-10
Make sure the “Store hardware configuration and motion to PLC” item is checked as shown,
then click the OK button to store to the PLC. Once the store is complete, the message on the
Status bar at the bottom of the screen will change from Not Equal to Equal.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using VersaPro with the DSM314 15
Using the Motion Editor
Accessing the Motion Editor Screen
Both the Motion Editor and Local Logic Editor are accessed from the VersaPro Folder Browser
window. However, once created and saved, motion programs and Local Logic programs become
part of the PLC CPU Hardware Configuration and are Stored to the PLC with the other
configuration information.
•
On the Main LD screen, click File on the Menu bar, then select New Motion. Then, on the
side menu, click Motion Program (see next figure).
Figure 15-15. Creating a New Motion Program from the File Menu
•
The Create New Motion Program dialog box will appear.
Figure 15-16. The Create New Motion Program Dialog Box
•
GFK-1742A
Enter the motion program Name and Description, then click the OK button (leave the Motion
Module Type box set at its default DSM314 setting). A window for the new motion program
block will open. As shown in the next figure, the window title is based upon the folder name,
Chapter 15 Using VersaPro with the DSM314
15-11
15
Test102 in this case, and motion program name, Part1 in this case. Notice also in the next
figure that an icon for the new motion program, called “Part1 – MP” (Motion Program),
appears in the Folder Browser window.
Figure 15-17. A New Motion Editor Window
•
The text-based motion programs and subroutines are created in the Motion Editor window, as
shown in the following figure. Up to 10 motion programs and 40 subroutines, separated by
their identifying headers (such as “PROGRAM 1 MULTI-AXIS”), are programmed in the
same window and are stored in the same file. Details on motion program commands and
syntax are covered in Chapter 7.
Figure 15-18. Motion Editor Window with Programmed Code
15-12
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using VersaPro with the DSM314 15
Saving your Motion Program
•
When ready to save your motion program/subroutine file to your computer’s hard disk, either
click the Save icon on the tool bar (looks like a floppy diskette), or click File from the Menu
bar and click Save.
Storing your Motion Programs and Subroutines to the PLC
Since the Motion Program/Subroutine file is considered part of the Configuration file group, use
the procedure under the heading “Connecting to and Storing Your Configuration to the PLC,”
documented earlier in this write-up.
Printing a Hardcopy of your Motion Programs and Subroutines
There are two print selections on the File menu: Print and Print Report.
Print:
•
This item describes how to print your entire motion program file (block). While the Motion
Editor is active, click File on the Menu bar and select Print. The Printer dialog box will
display. Make any desired printer setup changes, then click the OK button.
Figure 15-19. Print Dialog Box
•
This item describes how to print just a selected portion of your motion program/subroutine
file. In the Motion Editor window, use your mouse to select the portion you wish to print,
click File on the Menu bar, then select Print. In the Print dialog box (shown above), make
sure the Selection radio button in the Print range section is selected (has a dot in the middle).
Click the OK button.
Print Report:
•
GFK-1742A
To print all motion program blocks (if you have more than one) as part of a report with the
other information in the folder, click File on the Menu bar and select Print Report. The Print
Report dialog box will appear. Click the Blocks checkbox on the Print Report dialog box.
Make sure the All radio button is selected. (You can also select other items and features for
the report such as Table of Contents, Cross References, Variables, etc.) Click the OK button
Chapter 15 Using VersaPro with the DSM314
15-13
15
to start printing. Motion program, Local Logic, and Ladder Diagram blocks will be printed
as part of this report.
•
To print only selected blocks, highlight them in the Folder Browser window. Click File on
the Menu bar and select Print Report. Click the Blocks checkbox, then choose the Selected
radio button. This limits the reports to only those blocks that you have highlighted in the
Folder Browser window. See the next figure for an example of this.
Highlighted
Motion
Program Block
“Selected”
Radio
Button
Folder
Browser
Window
Figure 15-20. The Print Report Dialog Box
15-14
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using VersaPro with the DSM314 15
Accessing the Local Logic Editor Screen
Both the Motion Editor and Local Logic Editor are accessed from VersaPro’s Folder Browser
window. However, once created and saved, motion programs and Local Logic programs become
part of the PLC CPU Hardware Configuration and are Stored to the PLC with the other
configuration information.
•
On the Main LD screen, click File on the Menu bar, then select New Motion. Then, on the
side menu, click Local Logic Program.
Figure 15-21. Creating a New Local Logic Program
The Create New Local Logic dialog box will appear.
Figure 15-22. Create New Local Logic Dialog Box
•
GFK-1742A
Type the Local Logic program Name and Description, then click the OK button (leave the
Motion Module Type box set at its default DSM314 setting). A window for the new Local
Logic program block will open. As shown in the next figure, the window title is based upon
both the folder name, Test102 in this case, and Local Logic program name, Part1LL in this
case. The Local Logic program in this example could not be called “Part1” because that name
had already been used as the Motion Program block name. Notice also in the next figure that
an icon for the new motion program, called “Part1LL – LL” (Local Logic), appears in the
Folder Browser window on the right side of the screen.
Chapter 15 Using VersaPro with the DSM314
15-15
15
Figure 15-23. New Local Logic Program Window
The text-based Local Logic program is created the left window (Local Logic Editor window).
Details on Local Logic commands and syntax are covered in Chapters 10 - 14.
Saving your Local Logic Program
When ready to save your Local Logic file to your computer’s hard disk, either click the Save icon
on the tool bar (looks like a floppy diskette), or click File from the Menu bar and click Save.
Storing your Local Logic Program to the PLC
Since the Local Logic file is considered part of the Configuration file group, use the procedure
under the heading “Connecting to and Storing Your Configuration to the PLC,” documented earlier
in this appendix.
15-16
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using VersaPro with the DSM314 15
Printing a Hardcopy of your Local Logic Program
There are two print selections on the File menu: Print and Print Report.
Print:
•
Printing your entire Local Logic file (block): While the Local Logic Editor is active, click
File on the Menu bar and select Print. The Printer dialog box will display. Make any desired
printer setup changes, then click the OK button.
Figure 15-24. Print Dialog Box
•
Printing just a selected portion of your Local Logic file: In the Local Logic Editor
window, use your mouse to select the portion you wish to print, click File on the Menu bar,
then select Print. In the Print dialog box (shown above), make sure the Selection radio
button in the Print range section is selected (has a dot in the middle). Click the OK button.
Print Report:
GFK-1742A
•
To print all Local Logic blocks as part of a report with the other information in the folder,
click File on the Menu bar and select Print Report. The Print Report dialog box will appear.
Click the Blocks checkbox on the Print Report dialog box. Make sure the All radio button is
selected. (You can also select other items and features for the report such as Table of
Contents, Cross References, Variables, etc.) Click the OK button to begin printing. Motion
program, Local Logic, and Ladder Diagram blocks will be printed as part of this report.
•
To print only selected Local Logic blocks as part of a report, highlight the desired Local
Logic blocks in the Folder Browser window. Click File on the Menu bar and select Print
Report. Click the Blocks checkbox, then choose the Selected radio button. This limits the
reports to only those blocks that you have highlighted in the Folder Browser window. See
the next figure for an example of this.
Chapter 15 Using VersaPro with the DSM314
15-17
15
Highlighted
Local Logic
Program Block
“Selected”
Radio
Button
Folder
Browser
Window
Figure 15-25. The Print Report Dialog Box
Viewing the Local Logic Variable Table
The Local Logic Variable Table appears in the Information Window area of the screen and contains
information on the variables used in your Local Logic program. To use this feature, a Local Logic
block must exist. If none exist, create a new one. To display the table, click View on the Menu
bar, and select Local Logic Variable Table from the drop-down menu, shown in the following
figure:
Figure 15-26. Selecting the Local Logic Variable Table from the View Menu
15-18
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using VersaPro with the DSM314 15
Once the Local Logic Variable Table appears near the bottom of the VersaPro screen, you can drag
its top border or column borders to size them to your preference. See the next figure.
Figure 15-27. View Showing Local Logic Variable Table near Bottom of Screen
This table is useful when creating a Local Logic program because it allows you to copy and paste
variable names, such as “Actual_Position_1,” into your program. This eliminates the need to
memorize the exact variable names, look them up in this manual, or key them in.
GFK-1742A
Chapter 15 Using VersaPro with the DSM314
15-19
Chapter
Using the Electronic CAM Feature
16
Section 1: Introduction
This chapter introduces the reader to the DSM314 release 2.0 electronic CAM function. An
electronic CAM is analogous to a mechanical CAM. In most cases, an electronic CAM not only
can replace the traditional mechanical CAM but performs many functions not achievable with its
mechanical counterpart. For example, an electronic CAM never mechanically wears out.
Electronic CAM Overview
Electronic CAMs are used in the machine industry to perform complex motions that require tight
coordination between axes. There are many examples of applications that fit these requirements.
Some examples are a simple rotary knife application shown in Figure 16-1 and Figure 16-2. In this
application, the conveyor belt position serves as the master position, while the cutting knife is the
slave. Since the knife position is linked to the master position, the knife always tracks the master
position even when the line is accelerating or decelerating.
(Xi, Yi)
Cut Zone:
Blade Velocity =
Web Velocity
Master Position
Figure 16-1. Rotary Knife Position to Position table
GFK-1742A
16-1
16
Cutter
Motor
Blade
Product
Master
Encoder
Figure 16-2. Rotary Knife Application
Another example application is a bottle filling line (reference Figure 16-3 and Figure 16-4). In this
case, the lift that raises and lowers the bottles serves as the CAM master. The slave is the plunger
that pushes the fluid into the bottle. In this example, the bottles have a curved shape. Thus the fill
rate must be varied to account for this shape
Top of
Fill Tank
Plunger
Position
(Slave)
Bottom of
Fill Tank
(Xi, Yi)
Slow Down
Near the Top
of the Bottle
Fill Quickly in
the Beginning
Return to
Position
Master
Encoder
Figure 16-3. Filling Application Position to Position Table
16-2
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using the Electronic CAM Feature
16
F ill T a n k
P lu n g e r A xis
(S la v e )
M a s te r
E n co d e r
Figure 16-4. Filling Application
GFK-1742A
Chapter 16 Using the Electronic CAM Feature
16-3
16
Basic Cam Shapes/Definition
Electronic Cams duplicate the behavior of their mechanical counterparts. The following figure
illustrates the elements of a basic mechanical cam system and shows the Slave Position for two
positions of the Master Cam. As the Master Shaft rotates, the Master Cam, which is fastened to the
Master Shaft, rotates as well. The Cam Follower (which is a ball bearing mounted to the Offset
Link Arm) rolls on the Master Cam as the Master Cam rotates. The Cam Follower either pushes up
or pulls down on the Offset Link Arm, depending on the position of the Master Cam. The Lever
Arm, which is coupled to the Offset Link Arm, moves up and down in turn, pivoting on the
Fulcrum as the Offset Link Arm moves. Besides the Master Cam shape, additional parameters that
affect slave motion are the Cam Phase value (the amount that the Master Cam position is offset
from the Master Shaft position), the Offset Length of the Offset Link Arm, and the Follower
Amplitude (based on the Fulcrum position). These mechanical parameters all have Electronic
Cam counterparts.
Offset
Link Arm
Offset
Length
Fulcrum
Lever Arm
Slave
Position
Cam
Follower
Follower
Amplitude
Master
Shaft
Cam
Phase
Master Cam
Offset
Link Arm
Offset
Length
Fulcrum
Lever Arm
Cam
Follower
Slave
Position
Follower
Amplitude
Master
Shaft
Master Cam
Cam
Phase
Figure 16-5. CAM Model
16-4
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
16
Using the Electronic CAM Feature
Section 2: Cam Syntax
This section covers some critical features of the CAM feature and introduces the CAM Motion
Program statements and error codes.
CAM Types
An important concept concerning the CAM function is the different CAM types available. The
CAM profiles can be one of the following types:
1) Non-Cyclic CAM
2) Linear Cyclic CAM
3) Circular Cyclic CAM
The following sections describe each of these CAM types.
Non-Cyclic CAM
A Non-Cyclic CAM has a unique non-repeating profile for the whole range of Master position
values. The CAM exits when either boundary of the CAM profile is reached. The CAM can also
exit if an external event is configured to trigger a conditional Jump. The User Units to Counts ratio
specified for the Master and Slave axes when configuring a Non-Cyclical CAM must match the
User Units : Counts ratio specified for the corresponding axes in Hardware Configuration. Also,
the maximum and minimum position values for the slave and master axes must lie within the
High/Low position limits specified for the corresponding axes in Hardware Configuration.
Linear Cyclic CAM
A Linear Cyclic CAM has a profile that keeps repeating until an event causes it to exit.
Furthermore, the numerical and physical end points of the CAM slave axis are the same as the
starting point of the cycle. A reciprocating crankshaft is an example of a Linear Cyclic CAM. The
User Units to Counts ratio specified for the master and slave axes when configuring a CAM profile
must match the User Units per Counts value for the corresponding axes in Hardware Configuration.
Figures 16-1 and 16-2 show an example of a Linear Cyclic CAM application.
Constraint: The first and last slave point must be the same for a Linear Cyclic CAM. The CAM
Editor will not display the option for “Linear Cyclic” in the “Cam Type” field unless this constraint
is satisfied by the data in the CAM table.
GFK-1742A
Chapter 16 Using the Electronic CAM Feature
16-5
16
Note
For any Cyclic CAM, the master High/Low Position limits in Hardware
Configuration must be set up according to the master rollover points in the
CAM profile. The master axis Low Limit must equal the first master position
in the profile. The master High Position Limit must be equal to the (Last
Master Position – 1) in user units. This is because a cyclic profile's first and
last point are the same on the physical device.
2.
For a Linear Cyclic CAM, the master axis rolls over at the profile's end
points but the slave axis does not. The maximum and minimum profile
values for the slave axis must lie within the High/Low limits specified for
the corresponding axis in Hardware Configuration.
Slave Axis ->
1.
1500
500
0o
180o
360o
Master Axis ->
Figure 16-6. Linear Cyclic CAM
Circular Cyclic CAM
A Circular Cyclic CAM has a profile that keeps repeating until an event causes it to exit.
Furthermore, a Circular Cyclic CAM has different numerical start and end slave axis positions (see
Figure 16-7). Both the master axis and the slave axis roll over at the profile end points. A rotary
knife is an example of a Circular Cyclic CAM.
Constraint: The entire slave profile (including interpolated values) must lie between the minimum
and maximum slave position limits, where the minimum and maximum slave limits are defined as
follows:
16-6
Minimum Slave Value
Maximum Slave Value
Condition
First Slave Point
Last Slave Point
Last Slave Point
First Slave Point
Last Point > First Point
Last Point < First Point
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using the Electronic CAM Feature
16
Note
1.
2.
3.
The Editor will not display “Circular Cyclic” as an option in the “CAM Type” field unless the
constraint described above is satisfied.
For Cyclic CAMs, the master High/Low Position limits in Hardware Configuration must be set
up according to the master rollover points in the CAM profile. The master axis Low Limit
must equal the first master position in the profile. The master High Position Limit must be
equal to the (Last Master Position – 1) in user units. This is because a cyclic profile's first and
last point are the same on the physical device. (for example, 0° and 360° on a circular knife).
For a Circular Cyclic CAM, both the master axis and the slave axis rolls over at the profile's
end points. The High and Low position limits for the slave axis are set (in Hardware Config.)
as follows:
•
If the minimum slave position is the profile's first point and the maximum slave position is
the last point, set the Low Position Limit to the first point's slave value and the High
Position limit to the (last point's slave value – 1).
•
If the minimum slave position is the profile's last point and the maximum slave position is
the first point, set the Low Position Limit to the (last point's slave value + 1) and the High
Position Limit to the first point's slave value.
Slave Axis ->
36 0 o
18 0 o
0o
18 0 o
36 0 o
M a ste r A xis ->
Figure 16-7. Circular Cyclic CAM
GFK-1742A
Chapter 16 Using the Electronic CAM Feature
16-7
16
Interpolation and Smoothing
One CAM key feature is the interpolation scheme used to define the CAM profiles. The following
is a reprint of a section from the CAM Editor help system. It is included in this section to not only
introduce these important concepts, but also to encourage you to explore the CAM Editor on-line
help for additional information.
The CAM editor employs spline polynomial interpolation to define regions of a profile that fall
between user-defined points. This approach reduces the memory required for profile storage on the
target motion module while providing accurate and smooth motion trajectories. Without this
interpolation scheme, a large number of data points, thus a large amount of memory, would be
needed to define each profile.
A CAM profile is defined with a minimum number of actual data points. After these points are
defined they are grouped into sectors; a profile is composed of one or more sectors. For each sector,
you specify the curve-fit order (1, 2 or 3). The higher the order the smoother the curve-fit. The
curve-fit order is the order of the polynomial curves used to define the regions of the sector not
specified by user-defined points. Unique curve-fit polynomial coefficients are generated for each
segment of a sector (that is, between each pair of user-defined points). The coefficients of the
polynomials are calculated to include the user-defined points and to match the slope of the profile
on either side of a user-defined point (except for 1st order sectors).
The polynomial curves for a position profile are described by the following function:
Y(X) = An-1(Xn-Xn-1)3 + Bn-1(Xn-Xn-1)2 + Cn-1(Xn-Xn-1) + Yn-1
Where:
Y = slave position value for a master position X.
Xn-1 = master position value at point n-1.
An-1, Bn-1, Cn-1 = curve-fit coefficients at point n-1.
Notes
•
•
16-8
For a given master position X, that lies between Xn-1 and Xn, the coefficients A, B and C
are selected for the point corresponding to Xn-1.
For a second order curve-fit, the A coefficient is always zero, and for a first order curvefit, both the A and B coefficients are always zero.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using the Electronic CAM Feature
16
Blending Sectors
The process applied to blend adjacent sectors depends on their curve-fit order. The following
descriptions cover the possible scenarios.
1st order to 1st order
No action is taken to smooth the transition between successive linear sectors (that is, with curve-fit
order of 1). The profile simply connects the end point of one sector to the start point of the next
with a straight line.
1st order to 2nd order
When a quadratic (2nd order) sector follows a linear (1st order) sector, the polynomial coefficients
for the first segment of the quadratic sector are calculated so that the slope of the profile is equal on
either side of the starting point of that sector. That is, the initial slope of the quadratic sector is
made equal to the final slope of the linear sector.
2nd order to 1st order
When a linear (1st order) sector follows a quadratic (2nd order) sector no action is taken to smooth
the transition. This type of transition is not recommended (if it is avoidable) as it may result in
drastic velocity or acceleration changes on the controlled servo.
2nd order to 2nd order
When a quadratic (2nd order) sector follows another quadratic (2nd order) sector the polynomial
coefficients for the first segment of the second quadratic sector are calculated so that the slope of
the profile is equal on either side of the starting point of that sector. That is, the initial slope of the
second quadratic sector is made equal to the final slope of the first quadratic sector.
2nd order to 3rd order
When a cubic (3rd order) sector follows a quadratic (2nd order) sector the polynomial coefficients
for the first segment of the cubic sector are calculated so that the slope of the profile is equal on
either side of the starting point of that sector. That is, the initial slope of the cubic sector is made
equal to the final slope of the quadratic sector.
3rd order to 2nd order
When a quadratic (2nd order) sector follows a cubic (3rd order) sector the polynomial coefficients
for the first segment of the quadratic sector are calculated so that the slope of the profile is equal on
either side of the starting point of that sector. That is, the initial slope of the quadratic sector is
made equal to the final slope of the cubic sector.
3rd order to 3rd order
When two cubic (3rd order) sectors are adjacent, the slopes of the profile before and after the point
they meet are made equal. Also, the 2nd derivatives of the profile before and after the point the
GFK-1742A
Chapter 16 Using the Electronic CAM Feature
16-9
16
sectors meet are made equal. The curve-fit polynomial coefficients for the two adjacent segments
are calculated simultaneously.
Boundary Conditions
For non-cyclic profiles it is necessary to define some condition at the start and end of a profile for
the purpose of calculating curve-fit polynomial coefficients. The start or end boundary condition
can be:
• The numerical value of the profile's 1st derivative (slope).
• The numerical value of the profile's 2nd derivative.
• Based on a default calculation.
The default calculations are as follows:
16-10
•
Start Boundary. The slope at the start point of the profile is calculated by temporarily
fitting a polynomial curve to the first three (2nd order sector) or four points (3rd order
sector) and calculating the slope of the temporary polynomial at the first point.
•
End Boundary. The slope at the end point of the profile is calculated by temporarily
fitting a polynomial curve to the last four points (3rd order sector) and calculating the slope
of the temporary polynomial at the end point.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using the Electronic CAM Feature
16
Interaction of Motion Programs with CAM
CAM motion shall be initiated in the DSM314 using instructions in the motion program. The
following new motion instructions are required to support CAM motion programming:
1) CAM: Used in the motion program to start CAM motion and specify exit conditions.
2) CAM-LOAD: Used to load a parameter register with the starting location for a CAM
slave axis. The PMOVE command can be used in conjunction with the CAM-LOAD
command to move a slave axis to the starting point.
3) CAM-PHASE: Used to specify a Phase for CAM commands. The phase value may be
specified either through a parameter register or as a constant.
The following sections describe the syntax and functionality of each of the above instructions in
more detail. The convention used to specify the command syntax is as follows:
‘<>’ brackets- indicates a required field.
‘[ ]’ brackets- indicates an optional field.
‘{}’ brackets- indicates a field that is required for multi-axis programs and subroutines but is illegal
for single axis programs and subroutines.
CAM Command
The CAM command is used to program a CAM move using the specified CAM profile.
Syntax:
CAM <”CAM Profile Name”>, <distance>, <master mode>, [Cyclic Exit Condition]
Parameter
<”CAM Profile Name”>
<distance>
<master mode>
[Cyclic Exit Condition]
GFK-1742A
Description
Name of the CAM Profile from the CAM Library (the profile must
be linked to the CAM Download block). This name is limited to 20
characters maximum (also, see Note 3 below). Note that the quotes
around the name are required.
Maximum distance the master axis can travel once the CAM is
active (in user units)
Distance can be a constant , a parameter or the keyword NONE.
Allowed Range: –MaxPosn …. (MaxPosn-1) uu/cts
Master mode can be declared as ABS (absolute) or INCR
(incremental); this indicates how the master position data is
interpreted.
In ABS mode, an absolute master axis position is used to determine
a slave value from the CAM table. In INCR mode, the master value
at the starting point of a CAM command is assumed to be equal to
the “CAM-phase” value, and the slave values calculated during
CAM motion are relative to this start master value.
Specifies an exit condition for Cyclical CAMs. The allowed range is
CTL01-CTL32. If the CTL bit evaluates to True, the Cam exits at
the end of the current cycle. Note that this parameter must not be
used for a Non-Cyclic CAM profile.
Chapter 16 Using the Electronic CAM Feature
16-11
16
Notes
1.
2.
3.
The CAM instruction is not permitted in a Multi-Axis motion program.
A CAM command counts as two instructions towards the 1000 instruction limit in a motion
program.
The Profile Names UDT_CAM_1, UDT_CAM_2, UDT_CAM_3 and UDT_CAM_4 are
reserved for future usage.
The <distance> argument in the CAM command is used to define the maximum distance the
master can travel through the profile before exiting. For Cyclic CAMs, the distance can be either
greater than or less than the length of the CAM table (defined as the absolute difference between
the first and last master positions in the CAM table). If the distance is less than the length of the
table, the CAM command exits once the distance has been traversed. If the distance is greater than
the length of the table, the CAM will cycle through the CAM table until the distance is reached.
Thus, the user may set up the number of times a Cyclic CAM should be executed. For example, a
distance of 2.5 times the length of the CAM Table Master Position will cause the CAM profile to
execute two and one-half times and then exit. For non-Cyclic CAMs, the specified distance cannot
exceed the length of the table.
The distance can also be specified as “NONE”. For a Cyclical CAM, this will result in continuous
CAM motion until a CTL bit triggers an exit or motion is aborted. For a non-cyclical CAM,
specifying “NONE” means the CAM will exit when it reaches either the minimum or maximum
master position of the profile.
The [master mode] is used to specify whether the master axis operates in Absolute or Incremental
mode. The master axis may be operated in absolute or incremental mode for both Cyclic and NonCyclic CAMs. In Absolute mode, the master positions in the table represent the absolute positions
of the master axis. In Incremental mode, the slave axis positions in the table are relative to the
master axis position when the CAM instruction is initiated.
The [Cyclic Exit Condition] is used to specify an exit condition for a Cyclic CAM profile. If the
CTL condition evaluates to TRUE, the CAM will exit at the end of the current cycle.
Bi-directional and Unidirectional CAMs can be defined by using the +Vlim and -Vlim master
axis velocity limit parameters. For Unidirectional operation, the appropriate velocity limit must be
set to zero for the direction in which motion is prohibited. For example, if motion in the negative
direction is prohibited, then –Vlim must be set to zero.
16-12
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using the Electronic CAM Feature
16
CAM-LOAD Command
The CAM-LOAD command is used to load the slave axis position into a parameter register. A
regular PMOVE command can then be used to move the slave axis to the loaded position. The
CAM-LOAD command uses the CAM profile name, actual master position and phase (specified
using the CAM-PHASE command) to determine the starting point for the slave axis.
Syntax:
CAM-LOAD <”CAM profile name”>, <Parameter Number>, <master mode>
Parameter
<”CAM Profile Name”>
<Parameter Number>
<master mode>
Description
Name of the CAM Profile from the CAM Library ( the profile must
be linked to the CAM Download block). This name is limited to a
maximum length of 20 characters (also, see Note 3 below). Note
that the quotes around the name are required.
Specifies the Parameter Number to load.
Master mode can be declared as ABS (absolute) or INCR
(incremental); this indicates how the master position data is
interpreted in the slave start position calculation.
In ABS mode the absolute master axis position is used to determine
the corresponding slave starting position value from the CAM
table. In INCR mode, the master value is assumed to be equal to
the CAM-Phase in the calculations.
NOTES:
1. A CAM-LOAD command counts as two instructions towards the 1000 instruction limit in a
motion program.
2. When a CAM-LOAD command is executed, the following sequence of actions is performed:
A. The current master position is read.
B. Using the master position, CAM-Phase value, the CAM profile table, and CAM
configuration table, the appropriate position of the slave axis is calculated and loaded into
the designated parameter register.
C. The motion program can use a PMOVE instruction to move the slave axis to the position
calculated in step B.
3.
GFK-1742A
The names UDT_CAM_1, UDT_CAM_2, UDT_CAM_3 and UDT_CAM_4 are reserved for
future use and cannot be used for CAM Profile Names.
Chapter 16 Using the Electronic CAM Feature
16-13
16
CAM-PHASE Command
The CAM-PHASE command is used to specify a phase for CAM commands. This command lets
you offset or shift the phase relationship between the master position and follower position. The
phase value may be specified either through a parameter register or as a constant. Note that a phase
value is active for all CAM instructions that follow it, until modified by another CAM-PHASE
command. The default Cam Phase value for a motion program is 0.
Syntax:
CAM-PHASE <Phase>
Parameter
<Phase>
Description
The CAM phase value specified as a constant or a Parameter Register.
Allowed Range for constant: –MaxPosn …. (MaxPosn-1)
CAM and MOVE Instructions
A series of CAM commands may execute without any dwells or interruptions. To obtain smooth
motion you must ensure that the starting point on each subsequent CAM profile is the same as the
ending point of the preceding CAM profile. This ensures a continuous position and velocity
trajectory. For a sequence of Non-Cyclic CAMs, the starting and ending points may be adjusted in
the CAM Editor to obtain smooth transitions. Transitions between CAM and MOVE commands
while the slave axis is moving are not permitted at this time. Consequently, the slave axis must
have a start velocity equal to 0 at the transition point between a CAM and MOVE command.
When a CAM command exits, if it is not immediately followed by another CAM command, the
axis will use the programmed acceleration rate to decelerate to a stop.
Time-Based CAM Motion
The implementation of a time-based CAM profile employs the same mechanism as a regular CAM
(position-based master). In order to program a time-based CAM profile, the CAM master source
should be configured as “Commanded Position” of Axis 3 in the DSM314 module hardware
configuration, with the Axis 3 mode set to “Auxiliary Axis.” A constant velocity command is then
initiated on Axis 3. The effective time scale of the CAM motion is determined by the scaling of the
master in the profile source file and the User Units-to-Counts conversion factor defined in
Hardware Configuration. A time-based CAM motion command can be executed simultaneously on
multiple axes.
CAM Scaling Editor and Hardware Configuration
The DSM module allows the user to scale the position feedback device resolution versus the
module programming units. For example suppose 1 motor revolution corresponded to 1 inch of
16-14
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using the Electronic CAM Feature
16
travel for the driven load. In our example, the motor connected to the driven load has an encoder
that produces 8,192 counts per motor revolution. Thus, 8,192 feedback counts equals 1 inch of
load travel. Some users would find it easier to program motion in inches rather than in feedback
counts. In our case, we could set up our scaling such that we can program motion in thousandths of
an inch. To obtain this result, we want our User Units to Counts ratio to be 1000 to 8192. The user
would specify this value in the DSM hardware configuration. Additional information on specifying
these values is located in Chapter 5.
The CAM feature also supports application-specific units. However, you are required to manually
transfer the values entered in hardware configuration to the appropriate area within the CAM
editor. Note: You must transfer these values for both Master and Slave axes. Building on our
prior example, suppose both the master and the slave axes had equivalent motors. Therefore, each
feedback device has the same 8,192 counts per revolution. However, for the master, one motor
revolution equals 1 inch of load travel, while for the slave, one motor revolution equals .5 inches of
load travel. To make our programs easier to understand, we want to program the master and slave
in the same units. In our case, we have chosen to program in units of 0.001 inch. To obtain this
result, we need to first determine the correct user units to counts ratios for the master and the slave.
To determine our ratio, we apply the following equation
1
User Units  Load Movement per Motor Rotation 
=
⋅
Counts
Desired
Resolution
Feedback
Counts
Per
Motor Revolution


For the master axis in the example we have




1
User Units  1 in 
⋅
=
1

 8192 Counts
Counts


 1000 
User Units  1000 
in
=
⋅
Counts
 8192  Counts
For the slave axis in the example we have




1
User Units  .5 in 
=
⋅
1


8192 Counts
Counts


 1000 
User Units  500 
in
=
⋅
Counts
 8192  Counts
You then need to enter these values in the appropriate locations in hardware configuration. In our
example, Axis #2 is the master and Axis #1 is the slave. Therefore, we enter the User Units and
Count values into hardware configuration for the slave as shown in Figure 16-8.
GFK-1742A
Chapter 16 Using the Electronic CAM Feature
16-15
16
Figure 16-8. Slave User Units/Counts Hardware Configuration
The Master User Units/Counts value would be entered as shown in Figure 16-9
Figure 16-9. Master User Units/Counts Hardware Configuration
This tells the module the correct scaling to use when it runs motion programs. However, the CAM
Editor also needs to know the correct scaling to perform the proper transformations from user units
to counts. For our example, we need to enter this data into any CAM profiles we plan to run on
these axes. An example is shown in Figure 16-10.
Figure 16-10. Slave and Master User Units/Counts CAM Editor
It is recommended that the scaling operations just discussed be performed prior to programming
any CAMs that do not have one-to-one scaling. The reason this is suggested is to avoid the need to
reenter data. The CAM editor displays the master/slave data in User Units. Therefore, if you do
not define your scaling and enter all the CAM data by default you have chosen 1 to 1 scaling.
16-16
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
16
Using the Electronic CAM Feature
When you finally correct this error and enter the correct scaling, you will note that all non-zero
numbers in the CAM data tables have changed to reflect the new User Units values.
The following section discusses how the CAM editor rounds values when the user is entering data.
This function is performed automatically and does not require the user to perform or configure the
editor in any special way. The section is offered only for completeness concerning the scaling
subject covered in the prior paragraphs.
Note that, internally, the DSM works in native feedback units and converts the native units to User
Units automatically for the user. The module performs this operation to take full advantage of all
the available feedback resolution. This includes when a user has chosen to program motion in units
that are not the full resolution of the feedback device. The CAM Editor also seeks to maintain all
the resolution that is available (without showing false resolution) for a given motor/feedback set.
Therefore, when you specify scaling within the CAM editor, the editor will, in some cases, add
decimal places to the data table. Additionally, it automatically rounds numbers to values that can
be represented as integer numbers of feedback unit counts. This is best illustrated with an example.
Building on our previous example, we look at a simple CAM table. Remembering that the CAM
Editor displays values in User Units, but always rounds them to an integer value in counts, we
begin our example. We want to specify the following Master and Slave values in the editor as
shown in Table 16-1
Master Position (Inches)
Slave Position (Inches)
0
0
.075
.075
.5
.25
1
.5
Table 16-1. CAM Example Data Scaled in Inches
The table above is shown in inches. We are programming the CAM in 1000th of an inch.
Therefore, we convert the values and enter the data into the CAM Editor as shown in Table 16-2.
Master Position (1000th of In)
Slave Position (1000th of In)
0 in =0 thousandth of in
0 in = 0 thousandth of in
.075 in = 75 thousandth of in
.075 in = 75 thousand of in
.5 in = 500 thousandth of in
.25 in = 250 thousandth of in
1 in = 1000 thousandth of in
.5 in = 500 thousandth of in
Table 16-2. CAM Example Data Scaled in .001 Inches
Once we enter the data into the CAM editor (reference Figure 16-11), we note that some values
were automatically changed by the CAM editor when they where entered.
GFK-1742A
Chapter 16 Using the Electronic CAM Feature
16-17
16
Figure 16-11. CAM Data Table User Units Example
The CAM Editor automatically changes the values to correspond with an integer number of
feedback counts. The Editor also rounds the displayed values to limit clutter within the table. Note
that the editor maintains the variable’s precision and it is only the display that is rounded. For
illustration, we will perform the functions that are automatically performed by the CAM editor
below. We first must determine the integer feedback counts that are the closest to our desired
values. Per our example, we see that only two numbers cannot be exactly represented. These are
the Master Position of 75 and the Slave Position of 75. The closest integer count value to these
values is 614 counts and 1,229 counts for the master and slave respectively. The relationship
between the Master Position and Slave Position with respect to User Units and Counts is shown in
Table 16-3.
Master Position
(User Units)
Master Position
(Counts)
Slave Position
(User Units)
Slave Position
(Counts)
0
0
0
0
74.951171875
614
75.01000000000001
1229
500
4096
250
4096
1000
8192
500
8192
Table 16-3 Relationship Between User Units and Counts in Scaling Example
This agrees with the functions that where automatically performed by the editor. Note that for the
Master Position of 74.951171875, the editor rounds to 75.0. For the Slave Position of
75.01000000000001, the editor rounds to 75.01.
16-18
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using the Electronic CAM Feature
16
Synchronization of CAM Motion with External Events
The following mechanisms allow the programmer to synchronize CAM motion with external
events:
GFK-1742A
•
The start of CAM motion can be synchronized with an external event by using the existing
WAIT command in a motion program.
•
A Cyclic CAM can be synchronized with a strobe using Local Logic variables. Refer to
Chapter 11-14 for additional information concerning Local Logic.
Chapter 16 Using the Electronic CAM Feature
16-19
16
CAM-Specific DSM Error Codes
Table 16-4. CAM Specific Error Codes
Cam Program Error Codes
Error
Code
(hex)
2A
Response
Description
Normal Stop
Cyclic CAM CTL Exit
condition specified for
Non-Cyclic CAM
Axis
2B
Normal Stop
CAM Phase out of range
Axis
Error
Type
Possible Cause
CTL exit conditions are permitted for
Cyclic CAMs only. The motion
program contains a non-cyclic CAM
instruction with a CTL exit condition.
The CAM PHASE value is outside
the axis position range.
CAM Configuration Error Codes
16-20
2D
Normal Stop
CAM Master Axis Config
Error – master profile
does not match master
axis configuration
Axis
2E
Normal Stop
CAM Slave Axis Config
Error – slave profile does
not match slave axis
configuration
Axis
2F
Normal Stop
CAM Slave Axis SW
EOT mode cannot be
enabled for Cyclic
Circular CAM
Axis
1) The User-Units:Counts ratio
specified for the master axis in
the Editor and Hardware Config
are not compatible and/or
2) The High/Low Position Limit
specified for the master axis in
Hardware Config is not
compatible with the profile.
Refer to the section on CAM
Types for a detailed description
on setting up the High/Low
Position Limits.
1) The User-Units : Counts ratio
specified for the slave axis in the
Editor and Hardware Config are
not compatible and/or
2) The High/Low Position Limit
specified for the slave axis in
Hardware Config is not
compatible with the profile.
Refer to the section on CAM
Types for a detailed description
on setting up the High/Low
Position Limits.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
16
Using the Electronic CAM Feature
Configuration Parameter Error Codes
Error
Code
(hex)
1D
Response
Description
Normal Stop
Attempt to use CAM,
CAM-Load, or CAMPhase commands with
Follower Mode
Error
Type
Possible Cause
Axis
1.
2.
If using CAM, ensure that
Follower Mode is not configured
(Follower Mode cannot be used
when using CAM).
If using Follower Mode, ensure
that CAM commands are not
present in motion program
(CAM cannot be used when
Follower Mode is configured).
CAM Execution Error Codes
GFK-1742A
66
Normal Stop
CAM Profile not found in
CAM Download Block
Axis
67
Normal Stop
CAM Exit Distance out of
range (Non-Cyclic CAMs)
Axis
68
Status Only
Axis
68
Normal Stop
6A
Normal Stop
6B
Status Only
6C
Normal Stop
6D
Normal Stop
6F
Fast Stop
(Correction Enabled)
Velocity Command
Limited due to Velocity
Limit violation or Position
Error Limit violation
(Correction Disabled)
CAM velocity command
above configured axis
velocity limit
CAM Position Error Limit
Violation (with Correction
Disabled)
CAM commanded position
at the exit different from
CAM profile value due to
position error or velocity
limit
CAM master value out of
profile master range for
Non-Cyclic profile (CAM
and CAM-LOAD
commands)
Absolute mode CAM after
incremental mode CAM in
the sequence
CAM trajectory calculation
error
Chapter 16 Using the Electronic CAM Feature
The Cam profile was not linked to
the CAM Download block in the
CAM Editor and/or the CAM
Download block name was not
specified in Hardware Config.
The exit distance for a Non-Cyclic
CAM was greater than the modulus
for the CAM.
Axis
Axis
Axis
Axis
Axis
Axis
Contact GE Fanuc Automation
16-21
16
Section 3: Electronic Cam Programming Basics
This section contains an introduction to the basic electronic CAM programming concepts. The
Local Logic function, and motion programming are not discussed in detail in this section, since
they are discussed in other chapters in this manual.
Requirements
The Local Logic, CAM Editors, and Motion Program editors are integrated within the VersaPro
version 1.5 or later software. Prior to beginning the “Introduction to Electronic CAM
Programming” section, the user needs to install VersaPro and the CAM Editor. Please reference
the VersaPro documentation for instructions on how to install this software. The DSM314 feature
set also requires 90-30 CPU release 10.0 or higher firmware. Please make sure your CPU
Hardware supports this firmware release and is at or above this revision level. Also, the DSM314
firmware release version must be 2.0 or later.
Introduction to Electronic CAM Programming
The electronic CAM function works in conjunction with the DSM314 motion program, DSM314
Local Logic program, and the PLC programming environment to yield a flexible programming
environment. Specifically, the electronic CAM function allows the user to specify precise positionto-position relationships between a master axis and a slave axis. This ability is critical to many
applications where very tight synchronization between axes is an absolute requirement.
The DSM electronic CAM function allows the user to specify these position-to-position
relationships using the integrated VersaPro based tool. The CAM Editor tool allows the user to
enter these relationships graphically, in tabular form or a combination of both. These CAM
profiles are then stored to the DSM module where they are accessed through the DSM motion
programs. The basic CAM concepts are simple and are best illustrated with a simple example.
Creating a CAM Application Example
Basic Steps
16-22
1.
Open the project folder or create a new one
2.
Create a CAM block
3.
Create a CAM profile
4.
Link the CAM profile to the CAM block
5.
Configure the CAM profile
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using the Electronic CAM Feature
6.
Specify the CAM Type
7.
Specify the Correction Property
8.
Save the CAM profile
9.
Generate motion and Local Logic programs
16
10. Set up hardware configuration in VersaPro
11. Execute (test) the application
Step 1: Create a New Folder
You should begin by opening VersaPro. The method required to do this is described in Chapter 15
of this manual, in the VersaPro on-line help, and in the VersaPro manual, GFK-1670. Once
VersaPro is open, you should create a new folder by opening the File menu choosing the New
Folder submenu. A dialog box will appear that allows you to create a new folder. For this
example, name the folder “CAMExample,” as shown in Figure 16-12.
Figure 16-12. New Folder Wizard page 1
Clicking the next button will cause VersaPro to prompt whether you wish to create the directory (if
it does not exist). Once the folder has been created, the following dialog box will appear that
offers several choices for the source for the new folder. In our case, we want to start with an empty
folder, which is the default (reference Figure 16-13).
GFK-1742A
Chapter 16 Using the Electronic CAM Feature
16-23
16
Figure 16-13. New Folder Wizard page 2
Clicking the finish button will cause VersaPro to create the folder and enter the main program.
Step 2: Create a CAM Block Using the CAM Editor
The CAM editor is integrated into the VersaPro environment. The editor allows you to easily
create, edit, store, and download CAM blocks. To create a CAM block, you must open or create a
new VersaPro folder (see Step 1). Refer to Chapter 15 for information on how to create or open a
folder. Once the VersaPro folder is open, select the File menu selection, then the New Motion
menu selection, followed by the CAM Program… menu selection. (Figure 16-14)
16-24
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using the Electronic CAM Feature
16
Figure 16-14. Create CAM Program
A “Create New Program” dialog box will now appear that allows you to give the CAM block a
name, a descriptive comment, and select the motion module type. At this time, the CAM feature is
only supported on the DSM314 (release 2.0). Therefore, the default selection for Motion Module
Type should not be changed. (Figure 16-15). The rules for naming a CAM block are:
GFK-1742A
•
Only the characters A-Z, a-z, 0-9, and _ (underscore symbol) are allowed. Consecutive
underscores are not allowed.
•
•
The block name must begin with a letter or underscore symbol.
A block cannot have the same name as another block that exists in an open folder.
•
A CAM block name may contain up to twenty characters.
Chapter 16 Using the Electronic CAM Feature
16-25
16
Figure 16-15. Create New CAM Program
Enter the data in the “Create New CAM Program” box, then click the OK button to create the
CAM Block. This will prompt VersaPro to launch the CAM editor program. (Figure 16-16)
Figure 16-16. Initial CAM Editor with InfoViewer Screen
The CAM Editor contains extensive on-line hypertext help. This manual only attempts to
introduce some of these concepts. It does not try to cover all the editor features, so it is strongly
suggested that you review the programming software’s on-line material.
16-26
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using the Electronic CAM Feature
16
Step 3: Create a CAM Profile
The next step is to create a simple CAM profile in the CAM editor. The CAM Editor has a CAM
profile library that is created by the user. The CAM profiles within the library are then linked to
the CAM blocks. Additional information on this interlinking is contained within the on-line help.
For our example we must first create a profile in the library. One method to perform this step is to
right-click the “CAM Profiles” icon in the Navigator window. The short-cut menu appears. Select
New Profile as shown in Figure 16-17.
Figure 16-17. Create New CAM Profile
This will insert a new profile into the library named “profile1” as seen in Figure 16-18.
GFK-1742A
Chapter 16 Using the Electronic CAM Feature
16-27
16
Figure 16-18. New Profile Creation
You can then rename this profile to a name more suitable to the application if desired. The naming
rules are:
• Any alpha-numeric character or the underscore ( _ ) symbol may be used.
• The first character in a profile name must be a letter.
• A profile name cannot be more than 20 characters long.
• A profile is referenced by name in a VersaPro motion program. NOTE: VersaPro is not
case-sensitive when referencing a profile name.
One method to rename the profile is to right-click the profile name in the Navigator window and
choose Rename Profile (Figure 16-19) from the short-cut menu. Type a name for the profile and
press ENTER to finish. The profile and any CAM profile links to it are renamed. For this
example, we will rename the profile to ExCamProfile. Reference the on-line help for additional
information.
16-28
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using the Electronic CAM Feature
16
Figure 16-19. Rename Profile
Step 4: Link the CAM Profile to the CAM Block
•
CAM Profiles must be linked to their associated CAM block. A CAM block can contain
numerous CAM profiles. The DSM has two limits that affect the number of profiles. The
maximum CAM block size is 50K, and the maximum number of linked profiles for an
individual block is 100. The CAM Profile library is only limited by available disk space
on the host computer. The CAM block is then linked to the DSM via the CAM Block
entry in Hardware configuration.
Although there is more than one way to link a CAM profile to a CAM block, the easiest
method is simply to click the desired CAM profile, then drag it and drop it on the
applicable CAM block. The result is shown in the next figure.
Note
VersaPro 1.50 limits the download block total size (Motion, Local Logic, and
CAM combined) to 32K.
GFK-1742A
Chapter 16 Using the Electronic CAM Feature
16-29
16
Figure 16-20. Linking a Profile to a CAM Block
Step 5: Configure CAM Profile Data Points
Once these operations are complete, you must configure the CAM profile. The CAM profile is a
relationship between the master position and the slave position. For this example, we are going to
configure a simple CAM profile. A CAM profile is composed of a series of Points. Each point is
defined by two coordinates. When viewing the graphical representation, the Master coordinate
represents the horizontal axis and the Slave coordinate represents the vertical axis, as shown in the
next figure.
Begin by double-clicking the profile to open it in the Profile Editor window (see next figure),
which has two editors:
•
TheTable Editor is similar to a spreadsheet. In the table, each point has its own row with
two columns, one for the Master position and one for the corresponding Slave position.
When a new profile is opened, there are, by default, only two points, a start point and an
end point. The start point is the top point of the table and the end point is at the bottom.
•
To edit points with the Graphical Editor, click the point on the graph and drag it to the
desire location. (NOTE: The point data in the table editor will update to the new
position.) To perform other tasks in the graphical editor, right-click in the graph and
select the applicable task from the short-cut menu.
The next step is to edit the end point (the bottom point in the table) for the Master and Slave. In the
Table Editor, click in the end point’s Master column and enter the value 50000; then click in the
end point’s Slave column and enter the value 0. (NOTE: As points are added or changed in the
Table Editor, the graph in the Graphical Editor will update accordingly.)
Next, insert an additional point into the Editor table. Right-click in the Master column of the end
point and choose Insert Point from the short-cut menu (shown it the next figure). A new row is
added above the end point row, specifying a new point with master and slave values, by default,
midway (25000 and 0, respectively) between the values of the two existing adjacent (above and
below) points. Change the values for this point to 47500 for the Master and 11000 for the Slave.
To change a point value, click it, type in the new number, then either press the Enter key, or click
outside of the table.
To change the Curve-Fit order, click the Curve-Fit column, then select the Curve-Fit Order in the
Property Inspector window. Also, a profile can be split into multiple sections or multiple sections
merged into one by right-clicking on the Curve-Fit display and choosing from the short-cut menu.
Note
A CAM profile is limited to 400 points if it contains second or third order
sectors. A CAM profile is limited to 5000 points if it only contains first order
sectors.
16-30
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using the Electronic CAM Feature
16
Short-Cut
Menu
Curve-Fit
Column
CAM
Profile
Graphical
Editor
CAM Profile
Table Editor
Figure 16-21. Inserting a Point in the Profile Editor Window
Since the Slave Position end point is the same value (0) as the initial Slave Position point, this
CAM meets the requirements for a Linear Cyclic CAM. (If desired, refer to Section 2 for more
information on the different CAM types.) Note that the CAM Editor has several “Smart” edit
fields that will ONLY display the choices that are valid for a given data set. For example, since a
requirement for a Linear Cyclic CAM is that the Slave Position start point and Slave Position end
point are the same, the editor only allows the Linear Cyclic CAM choice if this criteria is met.
Next, we are going to insert a new point into the profile and then edit the point. The point can be
edited either in the profile table or graphically on the plot. Insert the point as shown above and in
Figure 16-22 and Figure 16-23 by right-clicking the point below the insertion position and selecting
Insert Point from the menu. Then change the default values to 2500 for the Master and 10000 for
the Slave.
Figure 16-22. CAM Profile Table Data
GFK-1742A
Chapter 16 Using the Electronic CAM Feature
16-31
16
Selected Point
Coordinates of
Selected Point
.
Figure 16-23. CAM Editor Example
There are numerous other features in the editor. These include being able to define additional
sectors that each have a different curve fit method. These editor features are discussed in the
programming software’s on-line help. Please reference this source for additional information.
Step 6: Specify the CAM Type
The next item we want to specify is the CAM type. For this example, the CAM will be Linear
Cyclic, as discussed previously. Use the following procedure:
16-32
•
In the Project tab of the Navigator, right-click a CAM profile. The short-cut menu
appears.
•
From the short-cut menu, choose Properties. The Inspector opens showing the CAM
profile's properties.
•
In the Inspector, click the arrow in the CAM Type field. The CAM Type drop-down list
appears.
•
Choose ‘Linear Cyclic CAM’ from the list (Figure 16-24).
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
16
Using the Electronic CAM Feature
Curve-Fit
Order Number
Sector
Bracket
CAM Type
Drop-Down
Menu
Figure 16-24. CAM Editor CAM Type Selection
Step 7: Specify the Correction Property
The last item we need to specify for the simple example is the correction status. The Correction
property determines whether the motion module will permit an online correction for a specific
sector. A sector is a region of a CAM profile defined by at least two adjacent user-defined points.
The sector includes the user-defined points, the curve connecting them and also up to, but not
including, the first point defined for the next adjacent sector. The points included in a given sector
are denoted by the Sector Bracket, shown in the figure above. Each sector is assigned a curve-fit
order number, also shown in the figure above. The segments of the profile between user-defined
points are defined by polynomials of the curve-fit order specified. A unique polynomial is used to
interpolate between each pair of adjacent user-defined points. Although the actual polynomial
coefficients can be different for each segment, the curve-fit order is the same throughout the sector.
A sector is indicated in the CAM profile table as a bar spanning the user-defined Master Position
values included in the sector. Initially, all points defined in a profile are included in a single sector.
This single initial sector can be subdivided as required to facilitate smoothing a CAM profile.
When the Correction property is Enabled, the motion module reports a warning if there is a
velocity limit violation. When the Correction property is set to Disabled, the motion module
reports an error for these violations and stops the slave axis.
For our example, we want correction enabled. To enable correction, select the sector from the
CAM profile table by clicking it. This will cause the Inspector window to display the sector
properties and allow them to be edited. In our case, select the Correction drop down box and
choose Enabled (Figure 16-25).
GFK-1742A
Chapter 16 Using the Electronic CAM Feature
16-33
16
Figure 16-25. CAM Editor Correction Enable
Step 8: Save the CAM Profile
At this point, we have defined a simple CAM profile. Next, we will save the profile and return to
the main VersaPro program. To save the CAM blocks/profiles, select the File main menu item
followed by the Save Project submenu selection. You could also select Exit, which causes an
automatic save. The CAM editor has many more additional features and functionality. Refer to
the online documentation for a detailed description of these features.
Step 9: Generate Motion and Local Logic Programs
The next item we need to generate is a motion program and Local Logic program that will work
with this CAM profile. We plan to have this work with a DSM314 controlling two axes. Axis #1
will be the slave, and Axis #2 will be the master. Therefore, we will have two motion programs.
The Axis 1 program, for the slave, will do some base initialization, load the slave starting point for
the given CAM profile, and then execute the CAM command. The Axis 2 program, for the master
source, is a simple program that will initialize and then wait for the slave to be ready. It will then
execute a series of moves. The program stops at points described within the CAM master such that
it is easy to verify that the slave axis is correctly executing the CAM profile. We will also need to
have a Local Logic program for this example. In our example the Local Logic program serves a
supervisory role over the CAM slave and CAM master motion programs. Thus, the Local Logic
synchronizes the two programs.
This section does not attempt to explain the VersaPro motion editor, motion language, Local Logic
editor, or Local Logic language. Consult the applicable chapters in this manual for additional
details on these features. The motion program and Local Logic programs for this example are as
follows:
16-34
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
16
Using the Electronic CAM Feature
// Motion program for example CAM block
// Slave Axis
Program 1 AXIS1
VELOC 10000
ACCEL 10000
100: WAIT CTL01
110: CAM-LOAD "ExCamProfile", P006, ABS
120:
PMOVE P005, ABS, LINEAR
130:
140:
150:
CAM "ExCamProfile", 50000, ABS
PMOVE 0,ABS,S-CURVE
// Set Velocity
// Set Acceleration
// Wait For LL to Say Master is ready
// Load Param. Reg. with Slave Pnt that
corresponds to current Master Position
// Move Slave Axis to the Position that
corresponds to Start of Table
// Execute CAM Statement
// Move back to zero
ENDPROG
// Master Axis Program
Program 2 AXIS2
VELOC 10000
ACCEL 10000
200: PMOVE 0 ,ABS,S-Curve
210: WAIT CTL08
220: PMOVE 2500,ABS,LINEAR
230: DWELL 5000
240: PMOVE 47500,ABS,LINEAR
250: DWELL 5000
260: PMOVE 2500,INC,LINEAR
270:
280:
PMOVE 0,ABS,LINEAR
// Set Velocity
// Set Acceleration
// Start at zero
// Master Waits Until Slave in Position
// Move 1st Master Point in Table
// Wait 5 Sec
// Move to 2nd Point
// Wait 5 Sec
// Finish Distance Spec'd in CAM Cmd 1st CAM
Complete
// Move back to zero
ENDPROG
GFK-1742A
Chapter 16 Using the Electronic CAM Feature
16-35
16
// Local Logic Program for CAM Example
CTL01 := 0;
// Outputs written when logic completes initialize to
zero to allow toggle to true
// Outputs written when logic completes initialize to
CTL08 := 0;
zero to allow toggle to true
// Control Logic for Program 1 and 2
// Program 1 = Slave
// Program 2 = Master
IF PROGRAM_ACTIVE_2=1 THEN
// Make sure Program 2 is active
IF BLOCK_2=210 THEN
// Indicates Master is Ready to Start CAM
IF PROGRAM_ACTIVE_1=1 THEN // Check that Program on Axis 1 is active
IF BLOCK_1=100 THEN
// Block indicates Slave ready for CAM-Load
Sequence
CTL01:=1;
// Signal Slave to perform CAM Load sequence
END_IF;
IF BLOCK_1=130 THEN
// Block indicates Slave has completed initialization
and CAM-Load Sequence
CTL08:=1;
// Signal Master and Slave that both Axes are ready
to start CAM sequence
END_IF;
END_IF;
END_IF;
END_IF;
// End Control Logic for Program 1 & 2
After completing the program entry, the resulting VersaPro screen should look similar to the figure
shown below (Figure 16-26).
16-36
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using the Electronic CAM Feature
16
Figure 16-26. CAM Example VersaPro Screens
Step 10: Set up Hardware Configuration in VersaPro
Once a successful syntax check is completed for the local logic and motion programs, we need to
set up the hardware configuration that will allow the example program to be downloaded to the
DSM314 module. The sequence of steps in this example is not typical for most installations. Most
users will first set up their hardware configuration and then generate the programming statements.
However, the example is aimed at illustrating the CAM feature. Therefore, the order is reversed to
better illustrate the link between hardware configuration and the CAM block name in the DSM314
hardware configuration. The next step in our example is to start the hardware configuration. There
are multiple ways to do this. Two methods are presented here (consult VersaPro documentation for
additional details). To perform these steps either (1) access the View selection from the main menu
and then select Hardware Configuration or (2) click the Hardware Configuration toolbar icon. This
will launch the Hardware configuration tool. The default hardware configuration screens are for
the VersaMax product. Therefore, the first operation we need to perform is to select the Series 9030. To perform this action, select File from the main menu, Convert To from the File menu, and
Series 90-30 from the Convert To menu, as shown in Figure 16-27.
GFK-1742A
Chapter 16 Using the Electronic CAM Feature
16-37
16
Figure 16-27. Hardware Configuration Rack Selection
A dialog box will appear that warns that information will be deleted. The folder that we created for
the example is new; therefore, no information will be lost. If you have not created a new folder, be
aware that configuration information will be lost by performing this operation. It is recommended
that you use a new “scratch” folder for this example. Answer Yes to the dialog box, shown in
Figure 16-28.
Figure 16-28. Hardware Configuration Rack Convert Dialog Box
Once this operation is complete, we have a blank 90-30 rack that requires configuration. The
resulting Hardware Configuration screens are shown in Figure 16-29.
16-38
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using the Electronic CAM Feature
16
.
Figure 16-29. Hardware Configuration 90-30 rack with CPU
GFK-1742A
Chapter 16 Using the Electronic CAM Feature
16-39
16
Next, you must select the power supply and CPU that are appropriate for your installation. Note
that Local Logic requires that the CPU be equipped with firmware release 10.00 or higher. The
default “CPU351” CPU does not support release 10.00 firmware, but the “CPU363” CPU does;
therefore, we are going to change the CPU to the “CPU363” model. The steps are:
•
Right-click the CPU on the hardware configuration screen and select Replace CPU from the
short-cut menu. A module selection box will appear.
•
Click the IC693CPU363 item, then click the OK button
•
Two message boxes will appear warning that (1) replacing a CPU cannot be undone, and (2)
the SNP and other parameters are always carried over, etc. In both cases, click Yes to proceed.
•
The CPU363 configuration window will appear. Make any desired configuration edits, then
close the configuration window.
If necessary, consult the VersaPro documentation or on-line help for more details. The resulting
display will appear as shown in Figure 16-30.
Figure 16-30. Hardware Configuration 90-30 rack with CPU363
16-40
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
16
Using the Electronic CAM Feature
At this point, we need to add the DSM314 into the rack. To perform this step, select the rack slot
where the DSM314 is to be installed. In our example, we are going to install the DSM314 in slot
number 2. There are several ways to add modules to a rack slot. Two methods to add the module
are presented here (consult the VersaPro documentation for additional details and procedures).
•
You can either (1) double click the desired slot, in this case slot number 2, or (2) rightclick the desired slot (number 2) and then select Add Module.
•
At this point, a dialog box will be generated that allows you to select the module type. In
our case, we want to add a module of type “Motion.” Therefore, we need to select the
“Motion” tab from the dialog box.
•
Select the DSM314 module from the list. The resulting display is shown in Figure 16-31.
Figure 16-31. Hardware Configuration 90-30 rack DSM314 Selection
GFK-1742A
Chapter 16 Using the Electronic CAM Feature
16-41
16
This operation will add the DSM314 to the rack and bring up the DSM314 configuration screens.
This will allow you to customize the DSM314 to your particular application. Refer to Chapter 4
for details concerning the DSM314 configuration settings. For the example, we are going to
change the Local Logic Block name, Motion Program Block name, Cam Block name and “Local
Logic Mode:” These fields are contained on the “Settings” tab. In the field “Local Logic Mode”,
we want to set it to Enabled. To do this, double click the field and a dialog box will be displayed.
Select Enable and click OK. In the field “Local Logic Block Name:,” we want to type in the name
of our example program. Our example program is named “CamExLLPgm.” Thus, we type
“CamExLLPgm” into this field. We want to add the motion program and CAM block names as
well. Therefore, in the CAM Block name field we want to enter “CamBlk,” and in the Motion
Program Block name we want to enter “CamExMotPgm”.
Note
This method of linking the DSM314 to the program blocks and CAM blocks was chosen
to allow you to easily specify multiple DSM314 modules that use the same blocks. In
our example, we only have one DSM314. However, if we had multiple DSM314 that all
need to run the same Local Logic program, motion programs, or CAM Blocks, we
would simply indicate that in the configuration for the specific DSM314 that needed to
execute this program. This allows you to have one source file for multiple DSM314
modules. Note that this does not preclude DSM314s from executing different programs.
Thus, the DSM314 will execute the files (CAM, Local Logic, and Motion Program)
pointed to by the configuration. The resulting Hardware Configuration screens will be
as shown in Figure 16-32.
Figure 16-32. Hardware Configuration 90-30 rack DSM314 Settings Tab
16-42
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using the Electronic CAM Feature
16
In this example, the Local Logic program will control CTL01 and CTL08. CTL01 and CTL08 are
used to signal the Motion Programs; so, we need to configure these CTL bits to be under Local
Logic Control. To do this, access the CTL Bits tab in the VersaPro hardware configuration. Select
“CTL01 Config” and choose Local_Logic_Controlled. Repeat the procedure for CTL08. The
resulting Hardware Configuration screens are shown in Figure 16-33.
Figure 16-33. Hardware Configuration 90-30 rack DSM314 CTL Bits Tab
GFK-1742A
Chapter 16 Using the Electronic CAM Feature
16-43
16
Since we are using the Beta 0.5 digital servo for our example, we need to set Axis1 and Axis 2
Mode to Digital Servo.
The resulting Hardware Configuration screens are shown in Figure 16-34.
Figure 16-34. Hardware Configuration DSM314 Settings Tab
16-44
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Using the Electronic CAM Feature
16
We also need to indicate to Axis #1 that we want it to use the Axis #2 commanded position as its
CAM Master source. To do this select, the Axis #1 tab in hardware configuration. Go to the CAM
Master Source data entry field. From the drop-down box, select Cmd Position 2. This will
configure Axis #1 to use the Axis #2 commanded position as it’s CAM master source (Figure 1635). While in this tab, change the Home Mode: to Move + and OverTravel Switch to Disabled.
Figure 16-35. CAM Slave Master Source Selection
GFK-1742A
Chapter 16 Using the Electronic CAM Feature
16-45
16
We also need to indicate to Axis #2, the rollover points for the Master axis position reference. To
do this, select the Axis #2 tab in hardware configuration. Input 49,999 into the High Position Limit
and 0 into the Low Position Limit data entry fields (Figure 16-36). Note that since this is a Cyclic
CAM, the master source high limit, by definition, must be one less than the last point in the master
data table. In our example this is point 50,000. Thus, the high limit is equal to 49,999. One way to
envision this principle is to think of a Cyclic CAM Master as a continuous circular strip where the
first point on the strip is the same as the last point on the strip. Thus, for our example, 50,000 is the
same point as zero. While in this tab, change the Home Mode: to Move + and OverTravel Switch to
Disabled.
Figure 16-36. CAM Master Axis Scaling
16-46
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
16
Using the Electronic CAM Feature
To finish our configuration we need go to the Tuning#1 and Tuning #2 tabs and enter the following
data:
•
Motor Type: 13
•
Position Error Limit: 200 (Optional; see Configuration information for additional
information)
•
In Position Zone: 20 (Optional; see Configuration information for additional information)
•
Pos Loop Time Const: 200 (Note: Based upon application/mechanics reference Chapter 4 and
Appendix D)
•
Velocity FeedForward: 9000 (Note: Based upon application/mechanics reference Chapter 4
and Appendix D)
•
Vel Loop Gain: 32 (Note: Based upon inertia attached to motor. The typical Beta Demo case
has an indicator wheel attached that represents approximately this inertia to a Beta 0.5)
The resulting display should be similar to Figure 16-37.
Figure 16-37. Hardware Configuration Tuning#1 Tab
The Tuning tab for Axis #2 should also be set up as shown for Axis #1 in Figure 2-26.
At this point, we can close the module configuration dialog box and save our work. To save your
work, select File from the main menu, then select Save All from the file menu.
This completes the configuration changes necessary for the example. Close the Hardware
Configuration tool and save the folder by selecting File from the main menu, then selecting Save
All from the file menu.
The link between our example CAM Block, Motion program, Local Logic program, and the
DSM314 module is now complete. Create any required PLC ladder logic programming, then
perform a Check All on the programs and download them to the PLC. Additional information
concerning the download operation is shown in the VersaPro manual, GFK-1670, or the VersaPro
1.5 on-line help.
GFK-1742A
Chapter 16 Using the Electronic CAM Feature
16-47
16
Step 11: Execute (Test) Your CAM-Based Motion Program
Warning
Before testing your application on actual machinery, you must first verify
that it is safe to do so. This includes insuring that all devices are securely
mounted, all safety equipment is installed and operational, and personnel in
the area have been notified. Failure to address all safety-related issues could
result in injury to personnel and damage to equipment.
Once the download operation is complete, the module is ready to execute the CAM Blocks, motion
programs and Local Logic program. Use the following procedure:
1.
Place the PLC in run mode.
2.
Enable the servo drives. To enable Axis #1, toggle the %Q offset 18 bit. To enable Axis #2,
toggle The %Q offset 34 bit. Based upon the current module error status, you may also have to
initiate a clear error routine by toggling the %Q offset 0 bit.
3.
Have both axes perform a find home routine by toggling the %Q offset 19 bit (find home Axis
#1) and the %Q offset 35 bit (find home Axis #2). At this point, both axes will perform a find
home cycle. Wait until this completes for both axes and the Position Valid %I bits turn on.
The Position Valid %I bit for Axis 1 is the %I offset 17 bit (the 18th %I bit), and for Axis 2 is
the %I offset 33 bit (the 34th %I bit). The resulting display is shown in Figure 16-38.
Axis 2 Position
Valid Bit
Axis 1 Position
Valid Bit
Figure 16-38. RVTExample Screen
16-48
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
16
Using the Electronic CAM Feature
4.
Enable Local Logic by setting the %Q offset 1 bit from the PLC. If there are no errors, we can
then execute the motion programs.
5.
Execute Program 1 by toggling %Q offset 2 bit. The motor connected to Axis #1 should then
begin to execute Motion Program #1.
6.
Execute Program 2 by toggling %Q offset 3 bit. The motor connected to Axis #2 should begin
to execute Motion Program #2.
7.
The motors will execute the statements until they reach the first DWELL, where we can
visually verify that it followed the CAM profile correctly. The display should be similar to
Figure 16-39. Notice how the commanded position for Axis#2 equals 2500, while the
commanded position for the slave corresponds to the CAM table and has the value 10,000.
Axis 1 Actual
Position
Axis 1 Commanded
Position
Axis 2 Actual
Position
Axis 2 Commanded
Position
Figure 16-39. RVTExample Screen First Dwell
Once the dwell time is finished, the motors will continue executing the statements until they reach
the second DWELL where we can visually verify that it followed correctly. The display should be
similar to Figure 16-40. Notice how the commanded position for Axis#2 equals 47500, while the
slave commanded position corresponds to the CAM table and has the value 11,000.
GFK-1742A
Chapter 16 Using the Electronic CAM Feature
16-49
16
Axis 1 Actual
Position
Axis 1 Commanded
Position
Figure 16-40. RVTExample Screen Second Dwell
Axis 2 Actual
Position
Axis 2 Commanded
Position
When the master axis reaches 50000 (47500 +2500), the CAM command will exit, the slave axis
will decelerate at the programmed acceleration rate and come to a halt, and both axes will return to
zero.
Details on the DSM314’s %AI, %AQ, %I, and %Q memory are found in Chapter 5.
16-50
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Appendix Error Reporting
A
DSM314 Error Codes
The DSM314 reports error codes in these %AI Table locations:
%AI Table Location
00
04
24
44
64
Data Reported
Module Status Code
Axis 1 Error Code
Axis 2 Error Code
Axis 3 Error Code
Axis 4 Error Code
Usage
Errors not related to a specific axis
Errors related to Axis 1
Errors related to Axis 2
Errors related to Axis 3
Errors related to Axis 4
Each error code is a hexadecimal word which describes the error indicated when the Module Error
Present %I status bit is set.
Module Status Code Word
The Module Status Code %AI status word reports the following two categories of errors:
• Module errors that are not related to a specific axis. Examples of such errors would be a selftest detected hardware failure or a request to run an empty or invalid program. A new Module
Status Code will not replace a previous Module Status Code unless the new Module Status
Code has Fast Stop or System Error priority. These can be cleared with the %Q Clear Error
bit.
• System Status Errors. These are of the format Dxxx, Exxx, and Fxxx. If one of these codes is
present, the module will not operate and the %Q Clear Error bit will not clear the error. See
the section “System Status Errors” later in this appendix for details.
Axis Error Code Words
All axis-specific motion related errors are reported in the proper Axis Error Code %AI status word.
Whenever the Module Error Present %I status bit is set, all error words (including Module Status
Code) should be checked for a reported error. A new Axis Error Code will replace a previous Axis
Error Code if it has equal or higher priority (Warning, Normal Stop, Fast Stop) compared to the
previous Axis Error Code.
Error codes which stop the axis will clear the Axis OK %I bit for that axis. User logic that sends
%Q or %AQ commands to an axis should normally be qualified by the applicable %I Axis OK bit.
If Axis OK is off, the axis will not respond to any %Q bit or %AQ commands other than Clear
GFK-1742A
A-1
A
Error or Load Parameter. The %Q Clear Error bit will always clear the Axis Error Code; however,
if the condition that caused the error still exists, the error will immediately be reported again.
Note
The STAT LED on the faceplate of the module flashes slow (four times/second)
for Status Only errors and fast (eight times/second) for errors which cause the
servo to stop. In the case of a fatal hardware error being detected at power-up,
the STAT LED will flash an error code, which should be reported to GE Fanuc.
See section “LED Indicators” later in this chapter for more details.
Error Code Format
All error codes are represented as hexadecimal data with the following format:
High Byte
Low Byte
Bits 0-7
Bits 8-11
(low nibble)
Error Number (0-FFh)
Axis Number
0 - Axis Independent
1 - Axis 1
2 - Axis 2
3 - Axis 3
4 - Axis 4
Bits 12-15
(high nibble)
Response Method
0 - Status Only
1 - Stop Normal
2 - Stop Fast
D,E,F - System Error
Figure A-1. Status Code Organization
Response Methods
1.
Status Only Errors: Set the Module Error Present %I bit and Module Status Code or Axis Error
Code %AI word, but do not affect motion.
Note
2.
3.
Unless otherwise noted, any command which causes a Status
Only Error is ignored.
Stop Normal Errors: Perform an internal abort of any current motion using current Jog
Acceleration and Jog Acceleration Mode (LINEAR or S–CURVE). The Drive Enabled and
Axis Enabled %I bit are each turned OFF after the configured Drive Disable Delay.
Stop Fast Errors: Instantly abort all motion by setting the servo velocity command to zero. The
Drive Enabled and Axis Enabled %I bits are each turned OFF after the configured Drive
Disable Delay.
System Errors (displayed in Module Status Code only): The DSM is disabled and will not respond to
PLC control. System errors cannot be cleared until a new configuration is sent to the DSM.
A-2
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
A
Error Reporting
Table A-1. DSM314 Error Codes
Error
Code
(hex)
Response
00
None
Description
No Error
Error
Type
Possible Cause
All
Configuration Errors
02
Status Only
Scaled data too big, maximum value in range used
Axis
Check DSM axis configuration in HWCFG
03
Status Only
Home Position > Positive EOT, Positive EOT used
Axis
Check DSM axis configuration in HWCFG
04
Status Only
Home Position < Negative EOT, Negative EOT
used
Axis
Check DSM axis configuration in HWCFG
05
Status Only
Tuning parameter 1 invalid; data ignored
Axis
Check DSM tuning configuration in HWCFG Advanced Tab
06
Status Only
Tuning parameter 2 invalid; data ignored
Axis
Check DSM tuning configuration in HWCFG Advanced Tab
0A
System Error Output written by Local Logic is not configured for Module A Local Logic block name is specified in the configuration
Local Logic control
and the Hardware Configuration (Output Bits Tab) for the
module does not have the required output configured for Local
Logic control.
0B
System Error CTL bit written by Local Logic is not configured
for Local Logic control
Module A Local Logic block name is specified in the configuration
and the Hardware Configuration (CTL Bits Tab) for the
module does not have the required CTL bit configured for
Local Logic control.
Configuration Parameter Errors
17
Status Only
EOT Adjust Error
Axis
Software End of Travel is enabled in configuration and the
High or Low Software End of Travel values are set outside the
High or Low Count Limits. Configuration should be changed
by either disabling the Software End of Travel or setting the
End of Travel values within the Count Limits.
18
Status Only
(Aux only) Scaled rotary EOT count modulus is not
an integer
Axis
Check DSM axis configuration in HWCFG.
19
Status Only
Scaled rotary Hi/Lo limit count modulus is not an
integer
Axis
Check DSM axis configuration in HWCFG.
1D
Normal Stop Attempt to use CAM, CAM-Load, or CAM-Phase
commands with Follower Mode
Axis
If using CAM, ensure that Follower Mode is not configured
(Follower Mode cannot be used when using CAM).
If using Follower Mode, ensure that CAM commands are not
present in motion program (CAM cannot be used when
Follower Mode is configured).
1E
Status Only
Immediate command Jog Velocity out of range,
command ignored
Axis
The AQ immediate Jog Velocity command that was sent is too
large. Re-enter the command using a smaller value
1F
Status Only
Immediate command Jog Acceleration out of range,
command ignored
Axis
The AQ immediate Jog Acceleration command that was sent
is too large. Re-enter the command using a smaller value
20
Status Only
Program Acceleration overrange, acceleration set to
maximum value
Axis
The acceleration programmed in the motion program currently
executing is too large. Maximum value (1,073,741,823
cts/sec/sec at 1:1 scaling) is being used in the motion program.
21
Status Only
Program Acceleration too small, defaulted to 32
cts/sec/sec
Axis
The acceleration programmed in the motion program currently
executing is too small. Default value (32 cts/sec/sec) is being
used in the motion program
22
Status Only
Scaled Velocity greater than 1 million cts/sec, 1
million cts/sec is used
Axis
Check scaling in config, velocity in program
23
Status Only
Program Velocity is zero, set to minimum value of
1 count/sec.
Axis
The program velocity in the motion program currently
executing is zero. The minimum value ( 1 count/sec) is being
used
24
Status Only
Motion Program Velocity > Configured Velocity
Limit, limit value used
Axis
The programmed velocity in the currently executing program
is greater than the Velocity Limit set in axis configuration.
Program Errors
25
Reserved – not used in DSM314
Axis
26
Stop Normal Jump Mask error
Axis
27
Stop Normal Wait Mask error
Axis
Contact GE Fanuc Automation
28
Stop Normal Parameter Position too large
Axis
The position contained in the parameter referenced by the
current PMOVE or CMOVE was greater then the maximum
GFK-1742A
Appendix A Error Reporting
Contact GE Fanuc Automation
A-3
A
position range (-536,870,912 to +536,870,911 at 1:1 scaling)
29
Status Only
Dwell time greater than 60 seconds, 5 seconds used
Axis
The executing motion program encountered a DWELL
statement where the DWELL time is greater than 60 seconds.
This value is larger than allowed. The DWELL time used for
the program is 5 seconds. The user should open the motion
program and correct the DWELL time statement to be lees
than 60 seconds. If more DWELL time is needed, consider
multiple DWELL statements
2A
Normal Stop Cyclic CAM CTL Exit condition specified for NonCyclic CAM
Axis
CTL exit conditions are permitted for Cyclic CAMs only. The
motion program contains a non-cyclic CAM instruction with a
CTL exit condition.
2B
Normal Stop CAM Phase out of range
Axis
The CAM PHASE value is outside the axis position range.
Axis
Position Increment in AQ command must be in range –128 to
127 user units
1) The User-Units:Counts ratio specified for the master
axis in the Editor and Hardware Config are not
compatible and/or
2) The High/Low Position Limit specified for the master
axis in Hardware Config is not compatible with the
profile. Refer to the section on CAM Types for a
detailed description on setting up the High/Low Position
Limits.
1) The User-Units : Counts ratio specified for the slave axis
in the Editor and Hardware Config are not compatible
and/or
2) The High/Low Position Limit specified for the slave axis
in Hardware Config is not compatible with the profile.
Refer to the section on CAM Types for a detailed
description on setting up the High/Low Position Limits.
Position Increment Errors
2C
Status Only
2D
Normal Stop
2E
Normal Stop
CAM Slave Axis Config Error – slave profile does
not match slave axis configuration
2F
Normal Stop
CAM Slave Axis SW EOT mode cannot be enabled Axis
for Cyclic Circular CAM
30
Status Only
Find Home while Drive Not Enabled error
Axis
The Find Home command was executed when the Drive
Enable bit was not on. The user should enable the drive and
re-execute the command.
31
Status Only
Find Home while Program Selected error
Axis
The Find Home command was executed while a Motion
Program was selected for execution. The motion program
must be halted (Program Active I bit off) prior to executing
the Find Home command.
32
Status Only
Find Home while Force Digital Servo Velocity or
Force Analog Output
Axis
The Find Home command was executed while the user was
sending the Force Digital Servo Velocity (34h) or Force
Analog Output (24h) AQ command. The user needs to clear
this command prior to executing the Find Home command
33
Status Only
Find Home while Jog error
Axis
The user executed the Find Home command while the servo
was being jogged. The user must halt the Jog command prior
to executing the Find Home command.
34
Status Only
(1) Find Home while Move at Velocity error, or
(2) Find Home while another Find Home Cycle
is still active
Axis
User executed the Find Home command (1) while executing a
Move at Velocity (22h) AQ command or (2) while another
Find Home cycle was in progress. For (1), halt the Move at
Velocity operation (Moving I bit off) prior to executing the
Find Home command. For (2), verify that axis is In Zone and
not Moving before executing a Find Home command.
35
Status Only
Find Home While Follower Enabled
Axis
The user executed the Find Home command while the
follower function was enabled. The user must disable the
follower (Follower Enabled I bit off) prior to executing the
Find Home command
36
Status Only
Find Home while Abort bit set error
Axis
The user executed the Find Home command while the Abort
bit was set. The user must clear the Abort bit prior to
executing the Find Home command
37
Status Only
Find Home on first PLC sweep error
Axis
The Find Home Q bit was set during the first PLC sweep. The
PLC program must be corrected to prevent this command
from being sent on the first PLC sweep.
Position Increment Overrange error, increment
ignored
CAM Master Axis Config Error – master profile
does not match master axis configuration
Axis
Axis
Find Home Errors
A-4
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
A
Error Reporting
Move at Velocity Errors
38
Status Only
Move at Velocity on First PLC sweep error
Axis
The Move at Velocity command (22h) was sent during the
first PLC sweep. The PLC program must be corrected to
prevent this command from being sent on the first PLC sweep.
39
Status Only
Move at Velocity while Drive Not Enabled error
Axis
The Move at Velocity command (22h) was sent when the
Drive Enable bit was not on. The user should enable the drive
and re-execute the command.
3A
Status Only
Move at Velocity while Program Selected error
Axis
The Move at Velocity command (22h) was sent while a
Motion Program was selected for execution. The motion
program must be halted (Program Active I bit off) prior to
sending the Move at Velocity Command
3B
Status Only
Move at Velocity while Home Cycle active error
Axis
The Move at Velocity command (22h) was sent while the
module was executing a Home Cycle. The user needs to
either abort the Home Cycle or wait until the Home Cycle
completes prior to sending the Move at Velocity command
3C
Status Only
Move at Velocity while Jog error
Axis
The Move at Velocity command (22h) was sent while the Jog
Q bit was active. The user must halt the Jog command prior to
sending the Move at Velocity command
3D
Status Only
Move at Velocity while Abort All Moves bit is set
error
Axis
The Move at Velocity command (22h) was sent while the
Abort All Moves Q bit was set. The user must clear the Abort
bit prior to sending the Move at Velocity command
3E
Status Only
Move at Velocity Data greater than 8,388,607 user
units/sec
Axis
The user sent a Move at Velocity command (22h) where the
commanded Velocity was greater than 8,388,607 user
units/sec. The user needs to make the commanded Velocity
smaller prior to re-executing the command.
3F
Status Only
Move at Velocity Data greater than 1 million
cts/sec error
Axis
The user executed a Move at Velocity command (22h) where
the scaled commanded Velocity was greater than 1 million
cts/sec. The user needs to make the commanded Velocity
smaller prior to re-executing the command. Check scaling
40
Status Only
Jog while Find Home error
Axis
The user executed a Jog while the module was executing a
Find Home function. Either abort the Find home function or
wait until it completes prior to executing the Jog function
41
Status Only
Jog while Move at Velocity error
Axis
The user set a Jog Q bit while the module was executing a
Move at Velocity (22h) command. The Move at Velocity
action must be halted before executing a Jog.
42
Status Only
Jog while Force Digital Servo Velocity error
Axis
The user set a Jog Q bit while the module was executing a
Force Digital Velocity (34h) or Force Analog Output (24h)
AQ command. The AQ command must be removed before
executing a Jog.
43
Status Only
Jog while Program Selected and not Feedholding
error
Axis
If a program is running, the DSM can only Jog if the Feedhold
Q bit is set.
47
Status Only
Force Digital Servo Velocity or Force Analog
Output while Jog error
Axis
The user executed a Force Digital Servo Velocity (34h) or
Force Analog Output (24h) AQ command while the module is
executing a Jog function. The Jog function must be halted
prior to executing Force Digital Servo Velocity or Force
Analog Output.
48
Status Only
Force Digital Servo Velocity or Force Analog
Output while Move at Velocity error
Axis
The user executed a Force Digital Servo Velocity (34h) or
Force Analog Output (24h) AQ command while the module is
executing a Move at Velocity function. The Move at Velocity
command must be halted prior to executing Force Digital
Servo Velocity or Force Analog Output.
49
Status Only
Force Digital Servo Velocity or Force Analog
Output while Program Selected error
Axis
The user executed a Force Digital Servo Velocity (34h) or
Force Analog Output (24h) AQ command while the module is
executing a motion program. The motion program must be
halted (Program Active I bit off) prior to executing Force
Digital Servo Velocity or Force Analog Output.
4A
Status Only
Force Digital Servo Velocity or Force Analog
Output while Follower Enabled error
Axis
The user executed a Force Digital Servo Velocity (34h) or
Force Analog Output (24h) AQ command while the follower
was enabled. The follower must be disabled (Follower
Jog Errors
Force Digital Servo Velocity Errors
GFK-1742A
Appendix A Error Reporting
A-5
A
Enabled I bit off) prior to executing Force Digital Servo
Velocity or Force Analog Output.
Set Position Errors
50
Status Only
Set Position while Program Selected error
Axis
The user executed a Set Position command while a Motion
Program was selected to execute. The motion program must
be halted (Program Active I bit off) prior to executing the Set
Position command.
51
Status Only
Set Position Data overrange error
Axis
The user executed a Set Position command with a value
greater then the maximum position range (-536,870,912 to
+536,870,911 at 1:1 scaling)
52
Status Only
Set Position while Moving or Set Position while not
Moving, not In Zone and velocity > 100 cts/sec.
Axis
Set Position is not allowed if the Moving %I bit is on. If the
Moving bit is off and the In Zone %I bit is also off, the Actual
Velocity must be < 100 cts/second.
53
Status Only
Attempt to initialize position before digital encoder
passes reference point.
Axis
The absolute digital encoder was not rotated past the zero
reference point after the first application of power. The
encoder must be rotated past the reference point (up to 1
revolution) before Set Position is allowed in absolute mode.
54
Status Only
Digital encoder position invalid, must use Find
Home or Set Position.
Axis
1.
2.
3.
4.
5.
55
Status Only
Digital Encoder moved too far while power off
56
Status Only
57
Absolute encoder position has not been initialized since
first application of power
Configuration for Encoder mode has been changed from
incremental to absolute.
Configuration for Axis Direction (normal or reverse) has
been changed.
Encoder resolution (Set with Advanced configuration tab
parameter) has been changed.
Encoder alarm has occurred
Axis
The digital absolute encoder was moved more than 16,383
revolutions while power was off.
Commanded Position > Positive End of Travel or
High Count Limit
Axis
The user executed a command that resulted in the
Commanded Servo Position exceeding the Positive End of
Travel or High Count Limit. Either fix the command to be
less than these values or make the values higher in Hardware
Configuration.
Status Only
Commanded Position < Negative End of Travel or
Low Count Limit
Axis
The user executed a command that resulted in the
Commanded Servo Position exceeding the Negative End of
Travel or Low Count Limit. Either fix the command to be
greater than these values or make the values more negative in
Hardware Configuration
58
Status Only
Absolute Encoder Position > High Software EOT
Limit
Axis
This error is reported at power up or re-configuration if the
absolute digital encoder has been moved beyond the High
Software EOT Limit.
59
Status Only
Absolute Encoder Position < Low Software EOT
Limit
Axis
This error is reported at power up or re-configuration if the
absolute digital encoder has been moved beyond the Low
Software EOT Limit.
5B
Stop Normal Drive Disabled while Moving
Axis
The Enable Drive Q bit was turned off while the servo was
performing a Jog or Move at Velocity (Moving I bit set). The
PLC program should be corrected to prevent this error.
Consider using the Moving Bit in the logic that disables the
drive.
5C
Stop Normal Drive Disabled while Program Active
Axis
The Enable Drive Q bit was turned off while the servo was
executing a motion program (Program Active I bit set). The
PLC program should be corrected to prevent this error.
Consider using the Program Active Bit in the logic that
disables the drive.
End of Travel and Count Limit Errors
Drive Disable Errors
Software Errors
A-6
5F
Status Only
Software Error (Call GE Fanuc Field Service)
Axis
Contact GE Fanuc Automation
60
Status Only
Absolute Encoder Rotary Position Computation
error
Axis
Contact GE Fanuc Automation
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
A
Error Reporting
Program and Subroutine Errors
61
Stop Normal Invalid subroutine number
Axis
The Motion Program called a subroutine that was not
contained in the module program space. If the call instruction
references a parameter which contains the subroutine number,
confirm that the parameter data is correct.
62
Stop Normal Call Error (subroutine already active on axis)
Axis
A Motion Subroutine called itself or called another subroutine
which called the original subroutine.
63
Stop Normal Subroutine End command found in Program
Axis
The Motion Program contains an invalid Subroutine end
command within the main Motion Program (Program 1-10).
Modify the Motion Program to remove this statement.
64
Stop Normal Program End command found in Subroutine
Axis
The Motion Subroutine contains an invalid Program end
command within the Motion Subroutine (Subroutine 1-40) .
Modify the Subroutine to remove this statement
65
Stop Normal Sync subroutine encountered by non-sync program
Axis
66
Normal Stop
CAM Profile not found in CAM Download Block
Axis
67
Normal Stop
Axis
68
Status Only
69
Normal Stop
6A
Normal Stop
6B
Status Only
6C
Normal Stop
6D
Normal Stop
6F
Fast Stop
CAM Exit Distance out of range (Non-Cyclic
CAMs)
(Correction Enabled) Velocity Command Limited
due to Velocity Limit violation or Position Error
Limit violation
(Correction Disabled) CAM velocity command
above configured axis velocity limit
CAM Position Error Limit Violation (with
Correction Disabled)
CAM commanded position at the exit different
from CAM profile value due to position error or
velocity limit
CAM master value out of profile master range for
Non-Cyclic profile (CAM and CAM-LOAD
commands)
Absolute mode CAM after incremental mode CAM
in the sequence
CAM trajectory calculation error
The Motion Program encountered a Sync block in a program
that was not multi-axis and setup for sync blocks.
The Cam profile was not linked to the CAM Download block
in the CAM Editor and/or the CAM Download block name
was not specified in Hardware Config.
The exit distance for a Non-Cyclic CAM was greater than the
modulus for the CAM.
Axis
Axis
Axis
Axis
Axis
Axis
Axis
Contact GE Fanuc Automation
Program Execution Errors
70
Status Only
Execute Program on first PLC sweep
Module An Execute Program Q bit was set on the first PLC sweep.
The PLC program must be corrected to prevent these Q bits
from being set on the first sweep.
71
Status Only
Too many programs requested in same PLC sweep
Module The number of Execute Program Q bits which transitioned ON
in 1 sweep is greater than the configured number of axes.
72
Status Only
Execute Program for axis 1 or 2 with multi-axis
program active
Module An Execute Program Q bit was set for an axis 1 or axis 2
program when a multi-axis program was already active.
73
Status Only
Execute Program for axis configured as Limited
Aux axis
Module Motion Programs cannot be executed on an axis configured as
Limited Aux. A Limited Aux axis performs position feedback
processing only and does not have an internal motion path
generator.
75
Status Only
Empty or Invalid Program requested
76
Status Only
AQ Move Command Position Out of Range
Axis
The user sent an AQ Move command (27h) with a position
value greater then the maximum position range.
(-536,870,912 to +536,870,911 at 1:1 scaling)
77
Status Only
AQ move command on first PLC sweep
Axis
An AQ Move command (27h) was commanded on the first
PLC sweep. The PLC program must be corrected to prevent
AQ Move commands from being sent on the first sweep.
74
GFK-1742A
Reserved - not used in DSM314
Appendix A Error Reporting
Module An Execute Program Q bit was set for a program number not
defined in the configured motion program block. Check the
configuration for a correct motion program block name. Make
sure the requested program number is defined in the
configured program block.
A-7
A
Program Execution Conditions Errors
80
Status Only
Execute Program while Home Cycle active
Axis
The PLC set an Execute Program Q bit while the module was
executing a home cycle. The user either needs to wait until
the home cycle completes or abort the home cycle prior to
executing the Motion Program.
81
Status Only
Execute Program while Jog
Axis
The PLC set an Execute Program Q bit while the module was
performing a Jog operation. The Jog bits (from PLC or local
logic) must be turned off prior to executing a Motion
Program.
82
Status Only
Execute Program while Move at Velocity
Axis
The PLC set an Execute Program Q bit while the module was
executing a Move at Velocity (22h) command. The Move at
Velocity command must be halted prior to executing the
Motion Program.
83
Status Only
Execute Program while Force Digital Servo
Velocity or Force Analog Output
Axis
The PLC set an Execute Program Q bit while the module was
executing a Force Digital Velocity (34h) or Force Analog
Output (24h) command. The Force Digital Velocity or Force
Analog Output command must be removed prior to executing
the Motion Program.
84
Status Only
Execute Program while Program Active
Axis
The PLC set an Execute Program Q bit for an axis that was
already running a motion program. The current program must
be completed (Program Active I bit off) before executing
another program on the same axis.
85
Status Only
Execute Program while Abort All Moves bit set
Axis
The PLC set an Execute Program Q bit while the module was
executing an Abort All Moves. The Abort Q bit, the Moving I
bit and the Program Active I bit must all be off before
executing a program.
86
Status Only
Execute Program while Position Valid not set
Axis
The PLC set an Execute Program Q bit when the Position
Valid I bit was off. Position Valid must be set by a Find
Home cycle or Set Position command.
87
Status Only
Execute Program while Drive Enabled not set
Axis
The PLC set an Execute Program Q bit when the drive was
not enabled (Drive Enabled I bit off). The Enable Drive Q bit
must be set in order to enable the drive.
8C
Status Only
Sync Block Error during CMOVE
Axis
Program execution encountered a CMOVE identified by a
sync block even though the other axis had not yet reached the
sync block.
8D
Status Only
Sync Block Error during Jump
Axis
Program execution jumped to a CMOVE or PMOVE
identified by a sync block even though the other axis had not
yet reached the sync block.
90
Status Only
Flash EEPROM memory programming failure
Program Synchronous Block Errors
EEPROM Errors
Module Contact GE Fanuc Automation
Local Logic Errors
A-8
91
Stop Fast
Local Logic System Halt
Module The Local Logic program executed a statement that wrote to
the System_Halt variable (e.g. System_Halt := 1;)
92
Stop Fast
Local Logic Time-Out Error
Module The Local Logic Program exceeded the allocated execution
time of 300 Microseconds. Decrease the Local Logic
execution time by reducing the number of Local Logic
statements or by modifying the program structure. Consult
Appendix E for more information on local logic execution
time.
93
Stop Fast
Local Logic Divide By Zero Error
Module The Local Logic program performed a divide by zero or a
Modulus by zero. Check the Local Logic program divide
statements for error source. Parameter registers that contain
zero values are possible sources for this error.
94
Stop Fast
Local Logic Divide/Modulus Overflow Error
Module The Local Logic program performed a divide (or modulus) of
a 64 bit integer and the result could not fit in a 32 bit integer.
Check the Local Logic program divide statements for error
source.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
A
Error Reporting
95
Status Only
Local Logic Add/Subtract Overflow Warning
Module The Local Logic program added or subtracted numbers that
caused an overflow condition to occur. The allowable range is
–2,147,483,648 to +2,147,483,647. Change the local logic
program to prevent overflow or set the Overflow variable to 0
at the end of each local logic cycle.
96
Status Only
Local Logic Absolute(ABS) Overflow warning
Module The Local Logic program attempted to perform an ABS
operation on –2,147,483,648 resulting in an overflow.
97
Status Only
Local Logic Timeout Warning
Module The Local Logic program execution time is close (greater than
275 Microseconds) to the maximum allowable execution time
(300 Microseconds). Decrease the Local Logic execution time
by reducing the number of Local Logic statements or by
modifying the program structure. Consult Appendix E for
more information on local logic execution time.
98
Status Only
Local Logic Execute on First Sweep Error
Module The user attempted to execute Local Logic on the first PLC
sweep (e.g. if the Local Logic enable Q bit is on when the
PLC is switched from Stop to Run Mode).
99
Status Only
Local Logic Invalid Program Name or Not Enabled Module The Local Logic Program Name specified in Hardware
in Configuration
Configuration is not valid (or empty) or Local Logic is not
enabled in Hardware Configuration.
9A
Stop Fast
Local Logic Stop Error (Per-Axis)
Axis
A Local Logic Stop Fast Error occurred (error codes 91-94).
Hardware Limit Switch Errors
A0
Stop Fast
Limit Switch (+) error
Axis
The Positive Overtravel Limit Switch input is off. If
Overtravel Limit switches are not used, set the Overtravel
Limit Switch configuration to Disabled.
A1
Stop Fast
Limit Switch (–) error
Axis
The Negative Overtravel Limit Switch input is off. If
Overtravel Limit switches are not used, set the Overtravel
Limit Switch configuration to Disabled.
A8
Stop Fast
Out of Sync error
Axis
Position Error has exceeded the Position error limit. Possible
sources for this error are:
1.
Position error limit being set too low for the application.
2.
Feedback device being disconnected or slipping on
controlled device
3.
Incorrect Feedback device wiring. (i.e. positive rotation
indicated as negative by feedback device)
A9
Status Only
Loss of Position Feedback
Axis
A Quadrature Error has been detected on an incremental
quadrature encoder. Check the encoder wiring and ensure that
the encoder is not operated beyond its rated speed.
Hardware Errors
B0BE
GFK-1742A
See Table A-3
Appendix A Error Reporting
Digital Servo Alarms, documented in Table A-3
A-9
A
Encoder Alarms
C0
Stop Fast
Servo not ready
Axis
For analog servos, the Drive Ready faceplate input must be set
on (0 volts) within 1 second after turning on the Enable Drive
Q bit. If the Drive Ready input for analog servos is not used,
the input configuration must be set to Disabled.
For FANUC Digital servos, the amplifier E–Stop input may
be activated or an amplifier fault may have occurred.
C1
Status Only
C2
C3
Serial Encoder Battery Low
Axis
The Serial Encoder battery voltage is low. The battery must
be replaced or the encoder can be configured for Incremental
(instead of Absolute) operation.
Stop Normal Serial Encoder Battery Failed
Axis
The Serial Encoder battery has failed. The battery must be
replaced or the encoder can be configured for Incremental
(instead of Absolute) operation.
Stop Normal Servo Motor Over Temperature
Axis
The Servo Motor or Control Firmware has reported an over
temperature condition. The user needs to check the motion
program to make sure that the duty cycle rating for the motor
is not being exceeded. The user needs to also check the motor
mounting to make sure the heat sink for the motor is adequate
and ventilation for the motor is adequate
C4
N/A
Not used.
N/A
C5
Stop Fast
Loss of Encoder
Axis
The module is not communicating with the encoder. Make
sure the servo amplifier is on. Check encoder cabling to make
sure cable is connected. Additionally, check grounding to
ensure that grounding is correct.
C6
Stop Fast
Error in encoder pulse detection
Axis
The encoder pulse detection circuit has encountered an error.
Make sure that the motor is properly grounded. If error
persists consult factory.
C7
Stop Fast
Encoder counter error
Axis
The encoder counter circuit has encountered an error. Make
sure that the motor is properly grounded. If error persists
consult factory.
C8
Stop Fast
Encoder LED is disconnected
Axis
The encoder LED is disconnected. Consult factory.
C9
Stop Fast
Encoder CRC checksum failure
Axis
The encoder communications circuit has detected a CRC
error. Check the encoder cable grounding and the motor
grounding for possible error sources. Check for other
electrical noise sources in the area of the motor and encoder
cabling. Isolate these sources from motor/encoder cabling if
possible. If error persists consult factory
CA
Stop Fast
Unsupported encoder, linear or Type A
Axis
The motor encoder connected to the module is not supported.
Motor is either not supported by the DSM module or has an
incorrect encoder attached to the motor. Check motor label
and verify motor is a supported model. If problem persists
consult factory
CB
Stop Fast
Unsupported encoder, Type C
Axis
The motor encoder connected to the module is not supported.
Motor is either not supported by the DSM module or has an
incorrect encoder attached to the motor. Check motor label
and verify motor is a supported model. If problem persists
consult factory
Axis
Position data may be incorrect. Power-cycle motor and
amplifier. If problem persists consult factory.
Axis
The Motor Control firmware detected an over current
condition. Possible sources for this error include:
- Incorrect Motor Type selected in Hardware configuration
- Machine back driving motor excessively
- Over Duty cycle conditions
CC
Normal Stop Missed DZ pulse when DS transitioned from 1 to 0
DSP Alarms
A-10
D1
Stop Fast
D2
N/A
Over current Detected
Not Used
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Error Reporting
A
D3
Stop Fast
Over Acceleration Detected
Axis
The Motor Control firmware detected an acceleration value
that exceeded allowed values. This error is not encountered
under normal operating conditions. Possible error causes
include encoder failure, encoder slippage, incorrect position
reported from encoder. If error is not explained by physical
hardware consult factory.
D4
Stop Fast
Over Velocity Detected
Axis
The Motor Control firmware detected a velocity value that
exceeded allowed values. This error is not encountered under
normal operating conditions. Possible error causes include
encoder failure, encoder slippage, incorrect position reported
from encoder. If error is not explained by physical hardware
consult factory.
D5
Status Only
Velocity Loop Gain for Kp Too Large
Axis
The Proportional Gain for the Velocity Loop has exceeded
allowed values. Value limited to valid range. This error
should not be encountered during normal operation. Possible
error sources include incorrect motor type selected in
hardware configuration, or Velocity Loop Gain values that are
too large. If motor type is correct in hardware configuration,
then reduce velocity loop gain. If problem persists, or
velocity loop gain is too small for the application consult
factory.
D6
Status Only
Integrator Gain Too Large
Axis
The Integral Gain for the Velocity Loop has exceeded allowed
values. Value limited to valid range. This error should not be
encountered during normal operation. Possible error sources
include incorrect motor type selected in hardware
configuration, or Velocity Loop Gain values that are too large.
If motor type is correct in hardware configuration, then
reduce velocity loop gain. If problem persists, or velocity
loop gain is too small for the application consult factory.
D7
Status Only
Alpha Calculation Overflow G.S.
Axis
Internal Velocity Loop calculation has exceeded allowed
values. Value limited to valid range. This error should not
occur during normal operation. Reduce Velocity Loop Gain.
If problem persists consult factory
D8
Status Only
Integrator Gain Calculation Overflow
Axis
Integral Gain for the Current Loop has exceeded allowed
range. Calculation limited to valid range. This error should
not occur during normal operation. If error encountered
consult factory.
D9
Status Only
Kp Calculation Overflow
Axis
Proportional Gain for the Current Loop has exceeded allowed
range. Calculation limited to valid range. This error should
not occur during normal operation. If error encountered
consult factory.
DA
Stop Fast
FPGA Error Detected
Axis
An error was detected when the Field Programmable Gate
Array was initialized. This error should not be encountered
during normal operating conditions. If error encountered
consult factory.
E2
Stop Fast
DSP Interrupt failure
Special Purpose Errors
Module Contact GE Fanuc Automation
Follower Ramp Errors
E8
Status Only
Follower Registration Distance (from parameter
register) is out of allowed range - follower stops
using ramp acceleration.
EA
Status Only
EB
Stop Fast
E9
GFK-1742A
Axis
When Follower Disable Action = Incremental Position, the
incremental distance (registration distance) specified in the
associated parameter register must be greater than the
stopping distance. The stopping distance depends on the
present slave axis velocity and follower ramp acceleration.
Negative slave axis velocities require negative registration
distances.
Master velocity greater than 0.8*velocity limit-no
distance compensation
Axis
The master velocity when converted to slave axis units is
greater than 0.8 * the configured velocity limit. The velocity
limit must be increased or the master velocity must be
decreased.
Error in calculation during follower ramp-up
Axis
Contact GE Fanuc Automation
Reserved - not used in DSM314
Appendix A Error Reporting
A-11
A
EC
Status Only
Follower makeup time is not long enough
Axis
The configured Ramp Makeup Time is too small so that actual
makeup time is longer. The makeup time of follower ramp
acceleration should be increased.
ED
Status Only
Velocity limit violation during follower ramp
Axis
Follower ramp makeup requires a velocity greater than 0.8 *
the configured axis velocity limit, so that actual makeup time
is longer than the configured value. Increase the velocity limit,
makeup time or ramp acceleration.
EE
Status Only
Time limit violation during acceleration sector of
the follower distance correction
Axis
Ramp makeup required an acceleration time > 64000 position
loop sample times. The follower ramp acceleration must be
increased.
F1
Status Only
Follower Position Error Limit Encountered
Axis
The position error has reached the position error limit and the
follower loop is no longer position-locked to the master axis.
The position error limit must be increased or velocity
feedforward must be used.
F2
Status Only
Velocity Limit Condition Encountered
Axis
The sum of all command inputs (internal cmds + follower
master + local logic) to the position loop has exceeded the
configured velocity limit. The axis is no longer positionlocked to the commands. The command velocities must be
decreased or the velocity limit must be increased.
F3
Status Only
Follower Ratio B value = 0
Axis
Follower Ratio B values < 0 are not allowed.
F4
Status Only
Follower Ratio B value < 0
Axis
A Follower Ratio B value of 0 is not allowed.
F5
Status Only
Follower ratio A:B > 32:1 or < 1:10000
Axis
The Follower Ratio A / Ratio B values must represent an A/B
ratio in the range 32:1 to 1:10000.
FB
Status Only
Control Loop execution time > 500 microseconds
Axis
Contact GE Fanuc Automation
FC
Status Only
Control Loop execution > 400 microseconds, more
than 5 times in a row
Axis
Contact GE Fanuc Automation
FD
Stop Fast
System software error
Axis
Contact GE Fanuc Automation
FE
Stop Fast
Unrecognized encoder, not supported
Axis
Error can indicate defective encoder cable – check cable. If
cable checks out correctly, contact GE Fanuc Automation
Position Loop Errors
Internal Errors
A-12
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Error Reporting
A
System Error Codes
If the DSM encounters errors with either the VersaPro configuration, a motion program, or local
logic block, it will place a System Error code in the Module Status Code register (the first AI
word). When a System Error occurs, the DSM will not update any %I bits or %AI data and will not
respond to any %Q bit or %AQ commands.
So the %Q Clear Error bit has no effect on a System Error. A System Error can only be cleared by
sending a new configuration to the DSM
The following system error codes indicate that the user has entered an invalid DSM configuration
in VersaPro. If one of these errors occurs, the user must change the configuration in VersaPro and
store the new configuration to the PLC. Any other errors of the format Dxxx, Exxx or Fxxx not
documented in the table below are unexpected and should be reported to GE Fanuc Automation.
Table A-2. System Error Codes
Error Code (hex)
GFK-1742A
(x = axis number)
System
Error
Type
D008
Module
Axis 4 not disabled when Axis 1,2 = Digital Servo
Dx65
Axis
Feedback Source is invalid or not supported
Dx68
Axis
Follower Disable action is not supported
Dx69
Axis
Follower Ramp Makeup Mode is not supported
Dx71
Axis
Invalid digital servo motor type
Dx81
Axis
Analog Servo Cmd mode (Torque mode) not supported
Appendix A Error Reporting
Description
A-13
A
DSM Digital Servo Alarms (B0–BE)
GE Fanuc α and βdigital servo systems have built in detection and safety shut down circuitry
for many potentially dangerous conditions. The table below reflects that three different models
of servo amplifiers may be used with the DSM, the β Series, the α Series SVU and the α
Series SVM. The following table indicates alarms supported by a particular servo amplifier
and the corresponding DSM error code. Table entries that are blank in the amplifier columns
indicate amplifier alarms not supported by the particular amplifier series. To clear a servo
alarm, amplifier power cycle reset is required. Additionally, a “Clear Error “ %Q discrete
command is required to clear the DSM Error Code. Amplifier alarms not cleared by power
cycle of the amplifier will continue to be reported to the DSM module. A brief trouble
shooting section for servo alarms appears at the end of the error alarm tables.
Table A-3. DSM Digital Servo Alarms
Amplifier Alarm Display
Error
Number
(Hexadecimal)
Servo
Alarm
Name
B0
HV
LV
DBRLY
B1
B2
B3
B4
B5
LVDC
OH
FAL
B6
B7
B9
BA
BB
BD
BE
†
A-14
DCSW
DCOH
LV5V
IPML
IPMM
IPMN
IPMLM
IPMMN
IPMNL
IPMLMN
LVDC
FAL
HCL
HCM
HCN
HCLM
HCMN
HCNL
HCLMN
Description
Over- Voltage DC LINK
Low Voltage Control Power
Dynamic Brake Circuit Failure
†
SVM PSM DC LINK Low Charge
Low Voltage DC LINK
Amplifier Over Heat
Cooling Fan Failure
†
SVM PSM IPM Alarm or Over Current
Regenerative Circuit – Failure Alarm
Regenerative Circuit – Discharge Alarm
SVM Servo Module +5 V Low
IPM Over Current, High Temp or Low Volt
(L axis, M axis, N axis, L & M axes, M & N
axes, N & L axes or L & M & N axes)
SVM Servo Module Low DC LINK
SVM Servo Module Fan Failure
Abnormally High Motor Current
(L axis, M axis, N axis, L & M axes, M & N
axes, N & L axes or L & M & N axes)
SVM
7 SEG
SVU
7 SEG
β
ALM
LED
07†
06†
1
2
7
ON
3
ON
ON
ON
4
5
ON
05†
04†
03†
02†
01†
08†
2
8.
9.
A.
b.
C.
d.
E.
5
1
8
9
A
b
C
d
E
8.
9.
A.
b.
C.
d.
E.
8
9
A
b
C
d
E
ON
The two segment display on the SVM power supply module (PSM) indicates power supply alarms.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
A
Error Reporting
Troubleshooting Digital Servo Alarms:
The guidelines below are intended to assist in isolating problems associated with various servo
alarms. If the items below do not fit the case or resolve the alarm, replace the servo amplifier, or
call GE Fanuc Hotline for support. The appropriate amplifier and motor, Maintenance Manual or
Description Manual, will include more detailed trouble shooting procedures.
HV (High-voltage) Alarm: This alarm occurs if the high voltage DC level (DC LINK) is
abnormally high.
1. The AC voltage supplied to the amplifier may be higher than the rated input voltage. The β
Series amplifier, three-phase supply voltage should be between 200 VAC to 240 VAC.
2. The external regeneration resistor may be wired incorrectly. Carefully check the connections
of the regeneration resistor to the amplifier. Check that the resistance of the regeneration
resistor is within 20% of the rated value. Replace the regeneration unit if the resistance is out
of tolerance.
3. The regeneration resistor may not be capable of dissipating excess generated voltage.
Review the calculations for selecting the regenerative discharge unit and replace with a
resistor of higher wattage rating as needed. Reducing acceleration values and position loop
gains (larger value Position Loop Time Constant) will additionally reduce regenerated
voltage levels.
LVDC (Low Voltage DC Link: This alarm occurs if the high voltage DC level (DC LINK)
voltage is abnormally low.
1. The AC voltage supplied to the amplifier may be missing or lower in value than the rated
input voltage. The β Series amplifier, three-phase supply voltage should be between 200
VAC to 240 VAC. Verify that the proper level of AC voltage is supplied to the line input
(L1, L2 and L3) connections of the amplifier.
DCOH or DCSW (Regeneration Alarm): The DCOH alarm occurs if the temperature of the
regeneration resistors is too high. The DCSW alarm indicates problems in the switching portion
of the regeneration circuitry.
1. If the external regeneration resistor is not used check that the temperature sensor input to the
amplifier is shorted or jumped. The β Series amplifier jumper T604 should be installed on
connector CX11-6.
2. The external regeneration resistor may be wired incorrectly. Carefully check the connections
of the regeneration resistor to the amplifier. Check that the resistance of the regeneration
resistor temperature sensor is near zero ohms at room temperature. Replace the regeneration
resistor if the temperature sensor indicates an open condition.
3. The regeneration resistor may not be capable of dissipating excess generated voltage.
Review the calculations for selecting the regenerative discharge unit and replace with a
resistor of higher wattage rating as needed. Reducing acceleration values and position loop
gains (larger value Position Loop Time Constant) will additionally reduce regenerated
voltage levels.
OH (Over-heat Alarm): The temperature of the amplifier heat sink is too high or motor
temperature is excessive.
1. Ambient temperature may be too high, consider a cooling fan for the servomotor. GE Fanuc
supplies fan kits for most FANUC motors.
GFK-1742A
Appendix A Error Reporting
A-15
A
2.
3.
4.
The motor may be operating in violation of duty cycle restrictions. Calculate the amount of
cooling time needed based on the duty cycle curves published for the particular motor.
The motor may be over loaded. Check for excessive friction or binding in the machine.
For all the above problems, allow ten minutes cooling of the amplifier with minimum or no
motor loading then cycle amplifier power to reset.
FAL (Fan Alarm): The cooling fan has failed.
1. Check the fan for obstructions or debris. With amplifier power removed attempt to manually
rotate the fan.
2. For SVM type amplifier systems the power supply module (PSM) and the servo amplifier
module each include a cooling fan. The alarm code will indicate which unit failed.
3. Some amplifiers have field replaceable fan units. If a replacement fan unit is not available,
replace the amplifier.
HC, HCL, etc. (High Current Alarm): Motor current is excessive. For α Series amplifiers the
suffix (L, M, N, etc.) indicates which axis is in alarm
1. Motor power wiring (U, V and W) may be shorted to ground or connected with improper
phase connections. Check the wiring and connections. Check the servomotor for shorts to
motor frame. Replace the motor if shorted.
2. Improper motor type code may be configured or excessive values for tuning parameters.
Confirm that the proper motor is configured and lower gain values.
3. The amplifier maintenance manual will describe the procedure for monitoring motor current
signals (IR and IS). If the waveforms are abnormal replace the amplifier. If excessive noise is
observed check grounds and especially the cable shield grounds for the command cable (K1)
to the amplifier.
4. The motor may be operating in violation of duty cycle restrictions. Calculate the amount of
cooling time needed based on the duty cycle curves published for the particular motor.
5. The motor may be over loaded. Check for excessive friction or binding in the machine.
6. For all the above problems, allow ten minutes cooling of the amplifier with minimum or no
motor loading then cycle amplifier power to reset.
LV (Low Voltage Control Power Alarm): The control voltage used to operate the low-voltage
circuitry in the amplifier is too low.
1. α Series SVU type amplifiers will be shipped with default jumpers to use a single phase of
the 220 VAC power to the amplifier. Optionally the user may remove the jumpers and
connect 220 VAC control power separately. Check that a minimum 200VAC is available on
terminals L1C and L2C for default installation or on connector CX3 (Y Key) for separate
control power.
2. Check the amplifier fuse. If the fuse is open replace with a new fuse after checking control
power voltage. If the second fuse blows open, replace the amplifier.
DBRLY (Dynamic Brake Relay Failure): This alarm indicates that the contacts of the braking
relay are welded together. Replace amplifier immediately.
IPML, IPMM, etc. (IPM Alarm): The Intelligent Power Module (IPM) is the high current
switching device in the amplifier. The IPM can detect over-current, over-heat or low-voltage
conditions in the power switching circuitry. The suffix (L, M, N, etc.) indicates which axis is in
alarm
A-16
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Error Reporting
1
2
3
4
5
6
A
Motor power wiring (U, V and W) may be shorted to ground or connected with improper
phase connections. Check the wiring and connections. Check the servomotor for shorts to
motor frame. Replace the motor if shorted.
Improper motor type code may be configured or excessive values for tuning parameters.
Confirm that the proper motor is configured and lower gain values.
The amplifier maintenance manual will describe the procedure for monitoring motor current
signals (IR and IS). If the waveforms are abnormal replace the amplifier. If excessive noise is
observed check grounds and especially the cable shield grounds for the command cable (K1)
to the amplifier.
The motor may be operating in violation of duty cycle restrictions. Calculate the amount of
cooling time needed based on the duty cycle curves published for the particular motor.
The motor may be over loaded. Check for excessive friction or binding in the machine.
For all the above problems, allow ten minutes cooling of the amplifier with minimum or no
motor loading then cycle amplifier power to reset.
LED Indicators
There are seven LEDs on the DSM314 module which provide status indications. These LEDs are
described below.
Normally ON. FLASHES to provide an indication of operational errors. Flashes slow
STAT
(four times/second) for Status-Only errors. Flashes fast (eight times/second) for errors
which cause the servo to stop.
When the LED is steady ON, the DSM314 is functioning properly. Normally,
ON:
this LED should always be ON.
When the LED is OFF, the DSM314 is not functioning. This is the result of a
OFF:
hardware or software malfunction that will not allow the module to power up.
Flashing: When the LED is FLASHING, an error condition is being signaled.
Constant Rate, CFG LED ON:
The LED flashes slow (four times / second) for Status Only errors and fast (eight
times / second) for errors which cause the servo to stop. The Module Error
Present %I status bit will be ON. An error code (hex format) will be placed in
the Module Status Code %AI word or one of the Axis Error Code %AI words.
Constant Rate, CFG LED Flashing:
If the STAT and CFG LEDs both flash together at a constant rate, the DSM314
module is in boot mode waiting for a new firmware download. If the STAT and
CFG LEDs both flash alternately at a constant rate, the DSM314 firmware has
detected a software watchdog timeout due to a hardware or software malfunction.
Irregular Rate, CFG LED OFF:
If this occurs immediately at power-up, then hardware or software malfunction
has been detected. The module will blink the STAT LED to display two error
numbers separated by a brief delay. The numbers are determined by counting the
blinks in both sequences. Record the numbers and contact GE Fanuc for
information on correcting the problem.
The OK LED indicates the current status of the DSM314 module.
OK
When the LED is steady ON, the DSM314 is functioning properly. Normally,
ON:
this LED should always be ON.
When the LED is OFF, the DSM314 is not functioning. This is the result of a
OFF:
hardware or software malfunction that will not allow the module to power up.
GFK-1742A
Appendix A Error Reporting
A-17
A
CFG
EN1
EN2
EN3
EN4
A-18
This LED is ON when a module configuration has been received from
the PLC.
When this LED is ON, the Axis 1 Drive Enable relay output is active..
When this LED is ON, the Axis 2 Drive Enable relay output is active.
When this LED is ON, the Axis 3 Drive Enable relay output is active.
When this LED is ON, the Axis 4 Drive Enable relay output is active.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Appendix DSM314 Communications Request Instructions
B
This appendix describes two types of Communications Request (abbreviated COMM REQ in this
appendix) ladder instructions used with the DSM314:
•
Parameter Load Type: Used to load DSM Parameter Memory. An advantage of the
COMM REQ instruction is that each one can load up to 16 parameters, and multiple COMM
REQ instructions may be used in one PLC sweep. By comparison, each Load Parameter
Immediate Command can load only one parameter per PLC sweep, with from one to four
Load Parameter Immediate commands allowed per PLC sweep, depending upon the number
of %AQ words configured (which, in turn, depends upon the number of axes configured - see
Table 5-8). Therefore, the COMM REQ is most useful for loading several or many
parameters, and the Load Parameter Immediate Command is most useful if you only need to
load a few (one to four).
•
User Data Table (UDT) Type: Used to access the DSM314’s Local Logic User Data Table.
The User Data Table is an 8192-byte memory area that Local Logic programs can use for
data storage and retrieval. The UDT COMM REQ can copy data either from PLC word
memory to the UDT or from the UDT to PLC word memory.
In general, a COMM REQ is used in a Series 90-30 PLC ladder program to communicate with a
variety of intelligent modules. This appendix first discusses the COMM REQ instruction in
general in Sections 1 and 2, then in Sections 3 – 5, discusses how it specifically applies to the
DSM314 module. This appendix is divided into the following sections:
GFK-1742A
•
Section 1: Communications Request Overview
•
Section 2: The COMM REQ Ladder Instruction
•
Section 3: The User Data Table (UDT) COMM REQ
•
Section 4: The Parameter Load COMM REQ
•
Section 5: COMM REQ Ladder Logic Example (uses Parameter Load COMM REQ)
B-1
B
Section 1: Communications Request Overview
The Communications Request uses the parameters of the COMM REQ Ladder Instruction and an
associated Command Block to define the characteristics of the request. An associated Status Word
reports the results of each request.
Structure of the Communications Request
The Communications Request is made up of three main parts:
•
The COMM REQ Ladder Instruction
•
The Command Block, which is a block of PLC memory (usually %R memory) that contains
instructions and data for the COMM REQ.
•
The Status Word, which is one word of memory that status/error codes are written to.
The figure below illustrates the relationship of these parts:
a44916
COMREQ
INSTRUCTION
INPUTS
AND
OUTPUTS
FOR COMREQ
INSTRUCTION
COMMAND
BLOCK
POINTER
COMMAND
BLOCK
DETAILS
OF THE
REQUEST
STATUS
WORD
POINTER
STATUS
WORD
ERROR
CODES
Figure B-1. Structure of the COMM REQ
The COMM REQ Ladder Instruction: The COMM REQ Ladder Instruction is the main structure
used to enter specific information about a communications request. This information includes the
rack and slot location of the DSM module associated with the request, and a parameter that points
to the starting address of the Command Block. Note that in programming this instruction, the
command block data should be initialized in the ladder program before the rung containing the
COMM REQ instruction is executed.
B-2
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
DSM314 COMM REQ B
The Command Block: The Command Block consists of several words of PLC memory that contain
additional information about the communications request. This information includes timing
parameters, a pointer to the Status Word, a Data Block, memory types and sizes, and a specific
command code. The Data Block specifies the direction of the data transfer (via the Command
Code) and location and type of data to be transferred.
The Status Word: The Status Word is a single location in PLC data memory where the CPU
reports the result of the communications request. The Status Word address is specified in the
Command Block by the user. The following table lists the status codes reported in the Status
Word:
GFK-1742A
Appendix B DSM314 Communications Request Instructions
B-3
B
Table B-1. DSM COMM REQ Status Word Codes
DSM COMM REQ Status Word Codes
Code Name
Code
#
Description
Possible Corrective Action
IOB_SUCCESS
1
All communications proceeded
normally.
None required.
IOB_PARITY_ERR
-1
A parity error occurred while
communicating with an
expansion rack.
Retry. Check hardware –
expansion cables, DSM
module, etc.
IOB_NOT_COMPL
-2
After the communication was
over, the module did not
indicate that it was complete.
Retry. Verify the COMM REQ
parameters.
IOB_MOD_ABORT
-3
The module aborted the
communication.
Retry. Verify the COMM REQ
parameters.
IOB_MOD_SYNTAX
-4
The module indicated that the
data sent was not in the correct
sequence.
Verify the COMM REQ
parameters.
IOB_NOT_RDY
-5
The RDY bit in the module’s
status was not active.
Retry. Check DSM module.
IOB_TIMEOUT
-6
The maximum response time
elapsed without receiving a
response from the module.
Check DSM module. Verify
the COMM REQ parameters.
IOB_BAD_PARAM
-7
One of the parameters passed
was invalid.
Verify the COMM REQ
parameters.
IOB_BAD_CSUM
-8
The checksum received from the
DMA protocol module did not
match the data received.
Retry. Check installation for
proper grounding, shielding,
noise suppression, etc.
IOB_OUT_LEN_CHGD
-9
The output length for the
module was changed, so normal
processing of the reply record
should not be performed.
Verify the COMM REQ
parameters.
Corrective Action
The type of corrective action to take depends upon the application. If an error occurs during the
startup or debugging stage of ladder development, the advice to “Verify the COMM REQ
parameters” is appropriate. The same is true if an error occurs right after a program is modified.
But, if an error occurs in a proven application that has been running successfully, the problem is
more likely to be hardware-related. The PLC fault tables should be checked for possible
additional information when troubleshooting Status Word errors.
B-4
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
DSM314 COMM REQ B
Monitoring the Status Word
Error Detection and Handling
As shown in the table above, a value of 1 is returned to the Status Word if communications
proceed normally, but if any error condition is detected, a negative value is returned. If you
require error detection in your ladder program, you can use a Less Than (LT) compare instruction
to determine if the value in the Status Word is negative (less than zero). An example of this is
shown in the following figure. If an error occurs, the Less Than’s output (Q) will go high. A coil
driven by the output can be used to enable fault handling or error reporting logic.
STATUS
LT
INT
I1
+00000
FAULT
Q
I2
The FT output of the COMM REQ, described later in this appendix, goes high for certain faults
and can be used for fault detection also. Additionally, the Status Word can be monitored by error
message logic for display on an Operator Interface device, in which case, Status Word codes
would correspond to appropriate error messages that would display on the operator screen. For
example, if a –1 was detected in the Status Word, a message could be displayed that says
something like “Error communicating with the DSM module in an expansion rack.”
To dynamically check the Status Word, write a non-significant positive number (0 or 99 are
typically used) into the Status Word each time before its associated COMM REQ is executed.
Then, if the instruction executes successfully, the CPU will write the number 1 there. This
method lets you know that if the number 1 is present, the last COMM REQ definitely executed
successfully, and that the 1 was not just “left over” from a previous execution. In the example
presented at the end of this appendix, the number 99 is moved into the Status Word (%R0195) in
a rung prior to the rung that contains the COMM REQ instruction.
When multiple DSM COMM REQs are used, it is recommended that each be verified for
successful communications before the next is enabled. Monitoring the Status Word is one way to
accomplish this.
Verifying that the DSM Received Correct Data
For critical applications, it may be advisable to verify that certain parameter values were
communicated correctly to the DSM module before operation is allowed to continue. To
accomplish this, first program the Select Return Data %AQ Immediate Command to specify a
DSM parameter number to be read into the applicable User Selected Data %AI double word
(there is one User Selected Data %AI double word for each axis). Note that at least three PLC
sweeps or 20 milliseconds, which ever represents more time, must elapse before the new User
Selected Data is available in the PLC. This requires programming some time delay logic to
ensure that this requirement is met. Then, program a Double Integer type Equal instruction to
compare the value returned in the User Selected Data double word with the value sent. Section 5
of this appendix shows an example of this. Also, refer to Chapter 5 for more information on the
User Selected Data word and the Select Return Data command.
GFK-1742A
Appendix B DSM314 Communications Request Instructions
B-5
B
Operation of the Communications Request
The figure below illustrates the flow of information from the PLC CPU to the DSM module:
DSM
MODULE
PLC CPU
a44917a.cvs
BACKPLANE
LADDER
PROGRAM
COMREQ
CPU
MEMORY
DATA
STATUS
WORD
COMMAND
DATA
FIRMWARE
INSTRUCTIONS
ON-BOARD
MEMORY
STATUS
Figure B-2. Operation of the DSM Communications Request
A Communications Request is initiated when a COMM REQ ladder instruction is activated
during the PLC scan. At this time, details of the Communications Request, consisting of
command and data, are sent from the PLC CPU to the DSM module.
•
In the case of a Parameter Load COMM REQ, the command data specifies that data is to be
read from PLC memory and copied into specific DSM parameter memory locations.
•
In the case of a UDT COMM REQ, the command data either specifies that data is to be read
from PLC memory and copied into a specific UDT memory Segment, or read from a
specific UDT memory Segment and copied into PLC memory.
The order in which these instructions are sent is critical, so the Command Block for each type of
COMM REQ should be programmed exactly as instructed later in this appendix. In the figure
above, the DSM module is shown in the CPU rack and communications occur over the PLC
backplane. If the DSM module is located in an expansion or remote rack, the commands and data
are sent over the CPU rack’s backplane, through the expansion or remote cable to the rack
containing the DSM module, and across that rack’s backplane to the DSM.
At the conclusion of every request, the PLC CPU reports the status of the request to the Status
Word, which is a location in PLC memory that is designated by the Status Word Pointer in the
Command Block.
B-6
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
DSM314 COMM REQ B
Section 2: The COMM REQ Ladder Instruction
This section discusses the COMM REQ instruction in general. More information is available in
the Series 90-30/20/Micro PLC CPU Instruction Set Reference Manual, GFK-0467L or later.
The Communications Request begins when the COMM REQ Ladder Instruction is activated. The
COMM REQ ladder instruction has four inputs and one output:
Enable Input --
COMM_
REQ
Command Block Pointer
???????
-
IN
Rack/Slot Location
???????
-
SYSID
Port Number
???????
-
TASK
FT - Fault Output
Figure B-3. COMM REQ Ladder Instruction
Each of the inputs and outputs is discussed in detail below. It is important to understand that the
Command Block Pointer points to another location in memory where you must enter additional
information about the Communications Request.
Enable Input: Must be Logic 1 to enable the COMM REQ Instruction. It is recommended that the
enabling logic be a contact from a transition (“one-shot”) coil.
IN: The memory location of the first word of the Command Block. It can be any valid address in
word-type memory (%R, %AI, or %AQ).
SYSID: A hexadecimal value that gives the rack and slot location of the module that the COMM
REQ is targeting. The high byte (first two digits of the hex number) contains the rack number,
and the low byte contains the slot number. The table below shows some examples of this:
SYSID Examples
Rack
Slot
Hex Word Value
0
4
0004h
3
4
0304h
2
9
0209h
TASK: The number 0 should always be entered here for a DSM module.
FT Output: The function’s FT (fault) output can provide an output to optional logic that can verify
successful completion of the Communications Request. The FT output can have these states:
GFK-1742A
Appendix B DSM314 Communications Request Instructions
B-7
B
Table B-2. COMM REQ Instruction FT Output Truth Table
FT Output
Enable Input Does an Error
Status
Exist?
Active
Active
Not active
•
No
Yes
No execution
FT output
Low
High
Low
The FT output will be set High if:
•
The specified target address is not present (for example, specifying Rack 1 when the
system only uses Rack 0).
•
The specified task number is not valid for the device (the TASK number should
always be 0 for the DSM).
•
Data length is set to 0.
DSM COMM REQ Programming Requirements and Recommendations
B-8
•
It is recommended that DSM COMM REQ instructions be enabled with a contact from a
transition coil.
•
If using more than one DSM COMM REQ in a ladder program, verify that a previous
COMM REQ executed successfully before executing another one. This can be done by
checking the Status Word and the FT (Fault) output, explained earlier in this appendix under
the heading “Monitoring the Status Word.”
•
As seen in the table above, the FT output will be held False if the Enable Input is not active.
This means that if the COMM REQ is enabled by a transitional (one-shot) contact and a fault
occurs, the FT output will only be High for one PLC scan. Therefore, to “capture” the fault,
you can program the fault output as a Set coil, which would not be automatically reset at the
end of a scan. Additional logic would then be needed to reset the fault output coil after the
fault is acknowledged.
•
Programming a device, such as a Set Coil, on the FT output of the COMM REQ is optional.
•
Note that the Series 90-30 COMM REQ (unlike many of the other Series 90-30 PLC
instructions) does not have an OK output.
•
It is necessary to initialize the data in the Command Block prior to executing the COMM
REQ instruction. Since the normal PLC sweep order is from top to bottom, initializing the
Command Block in an earlier rung (or rungs) than the rung that contains the COMM REQ
will facilitate this requirement. See the example at the end of this appendix.
•
Recommendation: If you use MOVE instructions to load values into Command Block
registers, use a Word-type MOVE to load a hexadecimal number, and an Integer-type MOVE
to load a decimal number. You will see this applied in the example at the end of this
appendix for a Parameter Load COMM REQ, where the E501h code is loaded via a Wordtype MOVE instruction, and the remaining decimal values are loaded via Integer-type
MOVEs.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
DSM314 COMM REQ B
Section 3: The User Data Table (UDT) COMM REQ
The DSM314 has an 8192-byte memory area called the User Data Table (UDT) that is designated
for use with Local Logic (LL) programs. LL Programs can access all or part of this memory to
store and retrieve data. The UDT is useful for storing and retrieving large amounts of data such
as large batches of setup data.
The PLC CPU can write to or read from the UDT via a User Data Table Communications Request
(UDT COMM REQ) instruction in the PLC ladder program. A single UDT COMM REQ reads or
writes 2048 bytes of memory at a time. Therefore, the UDT is logically divided into four 2048
byte segments, called Segments 1-4, that can be accessed individually by a UDT COMM REQ.
There is a unique Read and a unique Write command for each of the four Segments, for a total of
8 possible UDT COMM REQ commands.
User Data Table COMM REQ Features and Usage Information
GFK-1742A
•
Reads or Writes 2 K (2048) bytes at a time to the Local Logic User Data Table. No other
value is permitted.
•
Only works with the DSM314 module (will not work with the DSM302)
•
Cannot be used to download parameter data to the DSM314
•
This instruction adds about 15 ms to PLC scan (sweep) time for one scan if the PLC
Communication Window Sweep Control parameter is set to COMPLETE (Run to
Completion). If the PLC Communication Window Sweep Control parameter is set to
LIMITED, the COMM REQ will be executed over several scans, with a smaller impact on
scan time. However, the COMM REQ probably will not be executed repeatedly – it will
only be executed when there is a need to change data. Therefore, if it was sent on the First
Scan, or during a job setup, it would not have an impact while the application is running.
•
To avoid memory access conflicts, it is recommended that a Periodic Subroutine not be used
during the time this COMM REQ is active.
•
This COMM REQ does not support discrete memory for its PLC Data Type.
Appendix B DSM314 Communications Request Instructions
B-9
B
The UDT COMM REQ Command Block
Table B-3. User Data Table Command Block
User Data TableCOMM REQ Command Block for DSM314 Module
Description
Address Offset Word No. and Value
Data Block Header Length
Address + 0
Word 1, always set to 4
WAIT/NOWAIT Flag
Address + 1
Word 2, always set to 0
Status Word Memory Type (see
Status Word Memory Type Codes
table below)
Address + 2
Word 3, chosen by user (see
Memory Type Codes table,
below)
Status Pointer Offset
Address + 3
Word 4, chosen by user
Idle Timeout Value
Address + 4
Word 5, always set to 0
Maximum Communication Time
Address + 5
Word 6, always set to 0
Command Code
Address + 6
Word 7, see Command Code
Table
Parameter Data Size, in bytes
Address + 7
Word 8, always 2048.
Memory Type for PLC Data
Address + 8
Word 9, chosen by user (see
Memory Type Codes table, below)
Start of PLC Data (Data Offset)
Address + 9
Word 10, chosen by user
Data Block Length (Word 1): The length of the Data Block header portion of the Command Block.
It should be set to 4. The Data Block header is stored in Words 7 through 10 of the Command
Block
WAIT/NOWAIT Flag (Word 2): This must always be set to logic zero for the DSM.
Status Word Memory Type (Word 3): This word specifies the memory type that will be used for the
Status Word. Each memory type has its own specific code number, shown in the Memory Type
Codes table below. So, for example, if you want to use %R memory for the Status Word, you
would put either the decimal code number 8 or the hexadecimal code number 08h in this word.
Note that if you select a discrete memory type (%I or %Q), 16 consecutive bits will be assigned to
the Status Word, beginning at the address specified in the Status Word Pointer Offset word,
described below.
Table B-4. Status Word Memory Type Codes
COMM REQ Status Word Memory Type Codes
Code Number to Enter
Memory Type
Memory Type
Abbreviation
Decimal
Hexadecimal
%I
%Q
%R
%AI
%AQ
B-10
Discrete input table
Discrete output table
Register memory
Analog input table
Analog output table
70
72
8
10
12
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
46h
48h
08h
0Ah
0Ch
GFK-1742A
DSM314 COMM REQ B
Status Word Pointer Offset (Word 4): This word contains the offset within the memory type
selected. Note: The Status Word Pointer Offset is a zero-based number. In practical terms, this
means that you should subtract one from the address number that you wish to specify. For
example, to select %R0001, enter a zero (1 – 1 = 0). Or, if you want to specify %R0100, enter a
99 (100 – 1 = 99). Note that the memory type, %R in this example, is specified by the previous
word (see the “Status Word Pointer Memory Type” explanation above).
Idle Timeout Value (Word 5): Since the DSM always uses the NOWAIT mode (WAIT/NOWAIT
flag always set to zero), this Idle Timeout Value parameter is not used for the DSM. Set it to zero.
Maximum Communication Time (Word 6): Since the DSM always uses the NOWAIT mode
(WAIT/NOWAIT flag always set to zero), this Maximum Communication Time parameter is not
used for the DSM. Set it to zero.
Command Code (Word 7): Use one of the eight Command Codes from the table below. The
Command Codes are given as hexadecimal numbers.
Table B-5. UDT COMM REQ Command Codes
User Data Table (UDT) COMM REQ Commands
Command Code
Command Description
D001h
Write to UDT Segment 1
D101h
Write to UDT Segment 2
D201h
Write to UDT Segment 3
D301h
Write to UDT Segment 4
D804h
Read from UDT Segment 1
D904h
Read from UDT Segment 2
DA04h
Read from UDT Segment 3
DB04h
Read from UDT Segment 4
UDT Segment Data Size (Word 8): Specifies the memory size, in bytes, of the UTP Segment to
be accessed. This value should always be 2048 bytes (800h for hexadecimal).
PLC Data Memory Type (Word 9): This word specifies the memory type that will be used for
PLC Data. Each memory type has a unique code number, shown in the Memory Type Codes table
below. So, for example, to specify %R memory, you would put either the decimal code number 8
or the hexadecimal code number 08h in this word.
Note
The UDT COMM REQ does not support discrete memory (%I or %Q) for
the PLC Data Memory Type.
Table B-6. PLC Data Memory Type Codes for UDT COMM REQ
UDT COMM REQ PLC Data Memory Type Codes
Code Number to Enter
Memory Type
Memory Type
Abbreviation
Decimal
Hexadecimal
%R
%AI
%AQ
GFK-1742A
Register memory
Analog input table
Analog output table
Appendix B DSM314 Communications Request Instructions
8
10
12
08h
0Ah
0Ch
B-11
B
PLC Data Start Pointer Offset (Word 10): This word contains the offset within the memory
type selected in the PLC Data Memory Type word (Word 9). Note: The PLC Data Start Pointer
Offset is a zero-based number. In practical terms, this means that you should subtract one from
the address number that you wish to specify. For example, to select %R0001 as the PLC Data
Start location, enter zero (1 – 1 = 0). Or, to select %R0100, enter 99 (100 – 1 = 99). Note that
the memory type, %R in this example, is specified in the previous word. The starting address
designated by this word will be the first of 1024 contiguous words of PLC memory used in the
COMM REQ.
User Data Table COMM REQ Example
In this example, the following specifications are given:
•
The DSM314 module is mounted in Rack 0, Slot 7 of the PLC.
•
The Command Block’s starting address is %R0196.
•
The Status Word is located at %R0195.
•
The COMM REQ’s FT (fault) output drives a Set Coil.
•
Segment 1 of the DSM314 User Data Table is to be Written to. This is specified by the
Command Code D001 in Word 7 of the Command Block.
•
The data in a 1024 word (2048 byte) portion of PLC register memory, %R0301 through
%R1324, is copied and written into Segment 1 (2048 bytes) of the User Data Table. (Note
that each %R word is two bytes in length.) This transfer of data is illustrated in the next
figure:
DSM314 User Data
Table (UDT)
PLC CPU
Register Memory
%R0000
%R0301
1024 Words
(2048 Bytes)
DATA
%R1324
Segment 1
(2048 Bytes)
Byte 0000
Byte 2048
Segment 2
(2048 Bytes)
Byte 4096
Segment 3
(2048 Bytes)
Byte 6144
Segment 4
(2048 Bytes)
Byte 8192
Figure B-4. Data Transfer for Command Code D001 (Write to Segment 1)
B-12
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
DSM314 COMM REQ B
User Data Table COMM REQ Example
MSWD-TWM
SEND
%T0001
ENABLE
%T0001
COMM_
REQ
FAULT
%M0295
(Command Block pointer)
Fault output
%R196
IN
0007
FT
S
SYSID
00000
TASK
(Always 0 for DSM)
(0007 = Rack 0, Slot 7)
Series 90-30 PLC, Rack 0
Power
Supply
CPU
Slot No:
1
DSM
2
3
4
5
6
7
8
9
10
Command Block for DSM COMM_REQ
Memory
Address
%R196
%R197
%R198
%R199
%R200
%R201
Value
Description
4
0
8
Length, in words, of Data Block Header (always 4)
WAIT/NOWAIT Flag. Always 0 for DSM
8 = Register memory (%R) for Status Word
address
Specifies register 195 for Status Word address
Always 0 for DSM
Always 0 for DSM
194
0
0
%R195: Status
Word Register
(Start of “Data Block Header” section)
%R202
%R203
%R204
D001h Write to DSM314’s User Data Table Segment 1
2048 UDT Segment Size, always 2048 bytes
8
8 = Register memory (%R) for PLC Memory
%R205
300
Data Block
Header
(4 words)
Specifies register 301 for start of PLC data
Figure B-5. DSM314 UDT COMM REQ Example
GFK-1742A
Appendix B DSM314 Communications Request Instructions
B-13
B
Section 4: The Parameter Load COMM REQ
The Command Block
The Command Block contains the details of a Communications Request. The first address of the
Command Block is specified by the IN input of the COMM REQ Ladder Instruction. This
address can be in any word-oriented area of memory (%R, %AI, or %AQ). The Command Block
structure can be placed in the designated memory area using an appropriate programming
instruction (the BLOCK MOVE instruction is recommended). The DSM Command Block has the
following structure:
Table B-7. DSM Parameter Load COMM REQ Command Block
Parameter Load COMM REQ Command Block for DSM Module
Description
Data
Block
Header
Parameter
Specifier
Words
Parameter
Data
Address + Offset
Word No. and Value
Data Block Header Length
Address + 0
Word 1, always set to 4
WAIT/NOWAIT Flag
Address + 1
Word 2, always set to 0
Status Pointer Memory Type (see
Memory Type Codes table, below)
Address + 2
Word 3, chosen by user (see
Memory Type Codes table)
Status Pointer Offset
Address + 3
Word 4, chosen by user
Idle Timeout Value
Address + 4
Word 5, always set to 0
Maximum Communication Time
Address + 5
Word 6, always set to 0
Command Code
Address + 6
Word 7, always E501(hex.)
Parameter Data Block Size, in bytes
(must include 4 bytes for Parameter
Specifier Words)*
Address + 7
Word 8 (Size depends on the
value in Word 12)
Parameter Data Memory Type (for
Word 11)
Address + 8
Word 9, chosen by user (see
Memory Type Codes table)
Parameter Data Offset (for Word 11)
Address + 9
Word 10, chosen by user
Starting parameter number (0 - 255)
Address xyz
Word 11, chosen by user
(Address specified in
Words 9 and 10)
Number of parameters to load
Address xyz + 1
Word 12, chosen by user
1st parameter data
Address xyz+ 2/3
Word 13 and Word 14
2nd parameter data
Address xyz + 4/5
Word 15 and Word 16**
...
Address xyz + …
16th parameter data (4 bytes)
Specify
Status
Word
Address
Specify
Word 11
Address
Parameter
Data
Block
...**
Address xyz + 32/33 Word 43 and Word 44**
* Parameter Data Block size must equal 4 bytes for the Parameter Specifier Words plus 4 bytes for each
Parameter
** Use of these words depends on the value in Word 12
B-14
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
DSM314 COMM REQ B
Data Block Length (Word 1): The length of the Data Block header portion of the Command Block.
It should be set to 4 for the DSM. The Data Block header is stored in Words 7 through 10 of the
Command Block
WAIT/NOWAIT Flag (Word 2): This must always be set to logic zero for the DSM.
Status Word Pointer Memory Type (Word 3): This word specifies the memory type that will be used
for the Status Word. Each memory type has its own specific code number, shown in the Memory
Type Codes table below. So, for example, if you want to use %R memory for the Status Word, you
would put either the decimal code number 8 or the hexadecimal code number 08h in this word.
Note that if you select a discrete memory type (%I or %Q), 16 consecutive bits will be assigned to
the Status Word, beginning at the address specified in the Status Word Pointer Offset word,
described below.
Status Word Pointer Offset (Word 4): This word contains the offset within the memory type
selected. Note: The Status Word Pointer Offset is a zero-based number. In practical terms, this
means that you should subtract one from the address number that you wish to specify. For
example, to select %R0001, enter a zero (1 – 1 = 0). Or, if you want to specify %R0100, enter a
99 (100 – 1 = 99). Note that the memory type, %R in this example, is specified by the previous
word (see the “Status Word Pointer Memory Type” explanation above).
Idle Timeout Value (Word 5): Since the DSM always uses the NOWAIT mode (WAIT/NOWAIT
flag always set to zero), this Idle Timeout Value parameter is not used for the DSM. Set it to zero.
Maximum Communication Time (Word 6): Since the DSM always uses the NOWAIT mode
(WAIT/NOWAIT flag always set to zero), this Maximum Communication Time parameter is not
used for the DSM. Set it to zero.
Command Code (Word 7): This is always E501(hexadecimal) for the DSM. To enter this value
directly as a hexadecimal value, use a Word-type MOVE instruction. Also, since this value is
58,625 in decimal, an Integer-type MOVE instruction (limited to a maximum decimal value of
32,767 because bit 16 is used for the sign) does not have the capacity to contain it. A Word-type
MOVE instruction can hold a decimal number up to 65,535 (FFFF in hex.).
Parameter Data Size (Word 8): Specifies the Parameter Data size in bytes. This value depends
on the value in Word 12, which specifies the number of parameters to be loaded. This value may
be between 8 and 68. It is equal to 4 bytes (for the first two words of the Parameter Data section)
plus 4 additional bytes for each parameter loaded. For example, if you wish to load 16 parameters
(the maximum per COMM REQ), multiply 4 times 16 to arrive at 64. Add 4 to 64 for a total of
68 bytes.
Parameter Data Memory Type (Word 9): This word specifies the memory type that will be used
for Parameter Data. Each memory type has a unique code number, shown in the Memory Type
Codes table below. So, for example, to specify %R memory, you would put either the decimal
code number 8 or the hexadecimal code number 08h in this word.
Note that if you select a discrete memory type (%I or %Q), a group of 32 consecutive bits will be
required for each parameter, and a group of 16 consecutive bits each will be required for Words 11
and 12.
Parameter Data Start Pointer Offset (Word 10): This word contains the offset within the
memory type selected in the Parameter Data Memory Type parameter. Note: The Parameter
Data Pointer Offset is a zero-based number. In practical terms, this means that you should
subtract one from the address number that you wish to specify. For example, to select %R0001 as
GFK-1742A
Appendix B DSM314 Communications Request Instructions
B-15
B
the Parameter Data Start location, enter zero (1 – 1 = 0). Or, to select %R0100, enter 99 (100 – 1
= 99). Note that the memory type, %R in this example, is specified in the previous word.
Starting Parameter Number (Word 11): Specifies the number of the first parameter to be
loaded. Valid values are 0 – 255. However, this number must take into account the value in
Word 12. For example, if Word 12 specifies that 10 parameters are to be loaded, the Starting
Parameter Number must be less than 247; otherwise, the number of the last parameter to be
loaded would be out of range (would be greater than 255).
Number of Parameters to Send (Word 12): Specifies how many parameters will be loaded.
Valid values are 1 – 16. The value in this word impacts the value of Word 8.
Parameter Data (Words 13 -44): The size of this Parameter Data area depends on the value in
Word 12 (Number of Parameters to Send). Two words (4 bytes) of data are required for each
parameter. Since the valid number of Double Integer parameters is 1 through 16, the Parameter
Data area can be between 2 and 32 words.
COMM REQ Memory Type Codes: The codes in the following table are used in Word 3 (Status
Word Pointer Memory Type), and Word 9 (Parameter Data Memory Type).
Table B-8. Parameter Load COMM REQ Memory Type Codes
Parameter Load COMM REQ Memory Type Codes
Code Number to Enter
Memory Type
Memory Type
Abbreviation
Decimal
Hexadecimal
%I
%Q
%R
%AI
%AQ
B-16
Discrete input table
Discrete output table
Register memory
Analog input table
Analog output table
70
72
8
10
12
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
46h
48h
08h
0Ah
0Ch
GFK-1742A
DSM314 COMM REQ B
DSM Parameter Load COMM REQ Example
This example is used as the basis for the following section, “Section 5: COMM REQ Ladder Logic
Example.” In this example, the following specifications are given:
•
The DSM module is mounted in Rack 0, Slot 7 of the PLC.
•
The Command Block’s starting address is %R0196.
•
The Status Word is located at %R0195.
•
16 parameters are to be sent.
•
The COMM REQ’s FT (fault) output drives a Set Coil.
•
DSM Parameter 1 is considered critical in this example application. The last two rungs of the
“COMM REQ Ladder Logic Example” (see Section 5) verify that Parameter 1 received the
correct value via the COMM REQ.
•
The data in 32 words (16 double words) of PLC memory, %R0208 through %R0239, are
copied to 16 double word parameter registers, P001 through P016, in DSM314 parameter
memory. This transfer of data is illustrated in the next figure:
PLC CPU
Register Memory
DSM314 Parameter
Memory
%R0000
%R0208
32 Words
(16 Double
words)
DATA
(16 Double
Words)
P001
P016
%R0239
P255
Figure B-6. Data Transfer for Parameter Load COMM REQ Example
GFK-1742A
Appendix B DSM314 Communications Request Instructions
B-17
B
SEND
%T0001
MSWD-TWM
ENABLE
%T0001
COMM_
REQ
FAULT
%M0295
(Command Block pointer)
Fault output
%R196
IN
0007
FT
S
SYSID
00000
TASK
(Always 0 for DSM)
(0007 = Rack 0, Slot 7)
Series 90-30 PLC, Rack 0
Power
Supply
CPU
Slot No:
1
DSM
2
3
4
5
6
7
8
9
10
Command Block for DSM COMM_REQ
Memory
Address
%R196
%R197
%R198
%R199
%R200
%R201
Value
Description
4
0
8
Length, in words, of Data Block header (always 4)
WAIT/NOWAIT Flag. Always 0 for DSM
8 = Register memory (%R) for Status Word
address
Specifies register 195 for Status Word address
Always 0 for DSM
Always 0 for DSM
194
0
0
%R195: Status
Word Register
(Start of “Data Block” section of Command Block)
%R202
%R203
%R204
E501
68
8
%R205
205
Always E501 for DSM
Parameter Data size, in bytes
8 = Register memory (%R) for Data Block
Parameter Data
Specifies register 206 for start of Parameter Data
Data Block
Header
(4 words)
(Start of “Parameter Data” section of Data Block)
%R206
%R207
%R208 %R239
1
16
xxxxx
Starting Parameter Number
Number of Parameters to send
Parameter data for 16 contiguous double word
parameters.
Data Block
Parameter Data
(68 bytes)
Figure B-7. Overview of the Parameter Load COMM REQ Example
B-18
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
DSM314 COMM REQ B
Section 5: COMM REQ Ladder Logic Example
The following ladder logic example is based upon the Parameter Load COMM REQ example in
the previous section. Refer to the table on the previous page for the Command Block listing.
Setting up the COMM REQ Command Block Values
The next two rungs load the appropriate values into the first seven words of the COMM REQ’s
Command Block.
%R00195 – Status Word pointer = 99
%R00196 – Data Block header = 4
%R00197 – Wait/No Wait flag = 0
%R00198 – Memory type (%R) = 8
%R00199 – Status Word register = 194
%R00200 – Always zero = 0
%R00201 – Always zero = 0
In the following two rungs, the remainder of the Command Block data is loaded. This data
is listed next:
%R00202 – Command. For DSM, it’s always = E501 (hex)
%R00203 – Parameter data size, in bytes = 68
%R00204 – Memory type code for %R memory = 8
%R00205 – Starting register for Parameter Data (offset by one) = 205
%R00206 – Starting Parameter Number = 1
%R00207 – Number of Parameters to send = 16
%R00208 - %R00239 – Parameter data to be sent
GFK-1742A
Appendix B DSM314 Communications Request Instructions
B-19
B
Locic for Parameter Data (not Shown)
Additional logic will be required to load your data into registers %R00208 - %R00239 so that it
can be sent to the DSM314 parameters. (The value in double word %R00208/%R00209 will be
sent to Parameter 1, the value in %R00210/%R00211 will be sent to Parameter 2, and so on, until
finally, the value in %R00238/%R00239 will be sent to Parameter 16.) The method to be used for
loading the data into these registers depends upon your application. If the data values will not
change, constants can be moved into the registers using Block Move and/or Move instructions. If
the values are to change, they could be moved into the registers from an operator interface device.
Handling Double Integer Parameter Values and Input Value Scaling
The data in our single precision registers (16 bits) needs to be converted to double-integer (32
bits) form since the DSM’s parameters are double-integer size. A convenient way to do this is to
use a Double Integer Multiply (MUL DINT) instruction to move input data into the PLC registers
whose contents will be sent to the DSM. There are two possible advantages to this approach:
•
This is an easy way to convert single integer registers to double-integer form.
•
It lets you easily scale the input values if you should need to. The term scaling refers to
multiplying and/or dividing a value to create a new value that is proportional to the original
value. For example, multiplying an input value by two, then dividing it by 3 would result in
an output value that is always 2/3 the size of the input value. Scaling is often required in a
servo system to match the actual distance moved to the distance commanded. It doing so, it
provides the function of an “electronic gearbox.” It can be used to allow for gear ratio,
ballscrew pitch, encoder resolution, and customer input value preference.
In the example below, the integer value from an Operator Input device (a 4-digit BCD
thumbwheel switch) will be multiplied by a factor of 1000, then placed into the double-integer
word %R00208/%R00209 (for Parameter 1).
B-20
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
DSM314 COMM REQ B
In the example above, when switch %I00001 is closed, the Binary Coded Decimal (BCD) value in
BCDINP (%I00017-%I00032) from a BCD Operator Input device is converted to an integer value
(by the BDC4 TO INT instruction), and the integer value is placed in register %R00150. Next,
%R00151 is cleared to zero by the BLK CLR instruction. Note that on the output of the BCD4
TO INT instruction, %R00150 is a single integer value. However, when %R00150 is used as an
input (IN1) for the double integer Multiply instruction (MUL DINT), the CPU automatically
combines it with the next %R address (%R00151) to form a double-integer value. Word
%R00150 becomes the Least Significant Word, and %R00151 becomes the Most Significant
Word in this double-integer word. The MUL DINT instruction multiplies the value in
%R00150/%R00151 by 1000, and places the result in double word %R00208/%R00209
(DBL_WRD).
When used this way, %R00151 is called an “implied address” since it is not shown on the screen.
Be aware that you must not use %R00151 for any other purpose (it should be held to a value of
zero); otherwise, the value placed into %R00150 from the BDC4 to INT instruction would be
altered. The same principle applies in the case of double word %R00208/R00209. Here, the use
of %R00209 is implied by the fact that %R00208 is displayed as the output of the Double Integer
Multiply (MUL DINT) instruction. So %R00209 should be reserved for this use only.
In this rung, the MUL DINT instruction performs two functions: (1) it converts the value in
%R00150 from single integer form to double integer form, and (2) it scales the value in
%R00150/%R00151 by multiplying it by 1000. If scaling had not been desired, a value of 1
would be used instead of 1000 at IN2 of the MUL DINT instruction; this would provide
conversion to double integer without changing (scaling) the value.
The Communications Request Instruction
The next figure shows the Communications Request (COMM REQ) instruction. The IN input
contains the address of the first word of the command block. The SYSID input contains the rack
and slot number (rack 00, slot 07) of the DSM314 targeted by this COMM REQ. The TASK
input is always zero for the DSM314. The FT output connects to a coil (%M00295) that will be
energized if a fault is detected.
GFK-1742A
Appendix B DSM314 Communications Request Instructions
B-21
B
Verifying the Data Sent to Parameter 1
In this example, we’ll assume that the value in DSM Parameter 1 is critical because it specifies a
move distance that, if incorrect, could result in machine damage. So, the logic in the following
two rungs verifies that Parameter 1 received the correct value. If the value is not correct, contacts
(not shown) from output coil “VERIFY” in the second rung will prevent the DSM from producing
motion.
First Rung: The MOVE WORD instruction moves hexadecimal number 1840 into %AQ00001,
the first word of the Immediate Command. The low byte value (40) of this number specifies the
Select Return Data Immediate Command. The high byte value (18) specifies the Mode selection
for Parameter Data.
The MOVE INT instruction moves a decimal value of 1, indicating Parameter 1, into
%AQ00002. This commands that the value in DSM Parameter 1 be written to the User Selected
Data double word for Axis 1, %AI00021/AI00022 in this example. Note: The actual %AI
addresses used for any DSM module are specified when the module is configured.
The TMR THOUS (thousandths) timer instruction produces a 45-millisecond time delay after the
Select Return Data Immediate Command is sent. This is required because User Selected Data is
not available in the ladder until at least 3 sweeps or 20 milliseconds (which ever is greater)
elapses after the Select Return Data Immediate Command is sent. Since the sweep time in this
example is 14 milliseconds, this 45-millisecond delay ensures that the Parameter 1 data will be
present in the User Selected Data double word before the Equal instruction in the next rung
executes. Note that contact %M00200 must stay ON long enough for the TMR timer to time out
and enable the second rung.
Second Rung: After the 45-millisecond delay in the previous rung elapses, contact %M00202
closes and enables this rung. In this rung, a double integer EQUAL instruction compares the
value in %R00208/R00209 (the source of the value sent by the COMM REQ to DSM Parameter 1)
with the value returned from Parameter 1 in %AI00021/AI00022. If the values are equal, coil
“Verify” will turn on.
B-22
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Appendix Position Feedback Devices
C
There are four GE Fanuc α and β Series Digital serial encoder models that will function with the
DSM314:
Table C-1. Digital Serial Encoder Resolutions
8K
(8,192 cts/rev)
- No longer available on new motors
32K
(32,768 cts / rev)
- Standard on β Series motors
64K
(65,536 cts/rev)
- Standard on α Series motors
1000K
(1,048,576 cts/rev)
- Optional on α Series motors
Note
The older “A” or “C” Series million count serial encoder will not operate with
the DSM314. An error will be reported if this encoder is connected.
For position control purposes, by default, the DSM314 treats all encoders as 8192 counts/rev. The
additional resolution of 32K, 64K and 1000K encoders will still be used in the digital servo
velocity controller to provide smooth operation at low speeds. To use the increased position feed
back resolution, refer to the Tuning Parameter section of the Configuration Chapter.
Digital Serial Encoder Modes
The GE Fanuc Digital serial encoders can be operated in either Incremental mode or Absolute
mode. The mode is configured using the Feedback Mode selection in the configuration software.
Proper operation of the Absolute mode requires an external battery pack that must be connected to
the servo amplifier. Refer to the appropriate amplifier manual for selection and installation of the
battery pack.
Incremental Encoder Mode Considerations
The digital serial encoder can be used as an incremental encoder returning 8192 counts per shaft
revolution, with no revolution counts retained through a power cycle. The equivalent of a marker
pulse will occur once each motor shaft revolution. All Home Modes (Home Switch, Move+,
Move–) and Set Position %AQ commands reference the axis, and set the Position Valid %I bit
upon successful completion. The configured High Position Limit and Low Position Limit are
GFK-1742A
C-1
C
valid and the Actual Position %AI status word as reported by the DSM314 will wrap from high to
low count or from low to high count values. This is an excellent mode for continuous applications
that will always operate via incremental moves, in the same direction. Home Offset and Home
Position configuration items allow simple referencing to the desired location.
Absolute Encoder Mode Considerations
The GE Fanuc Digital serial encoder can be used as an absolute type encoder by adding a battery
pack to retain servo position while system power is off. A Find Home cycle or Set Position %AQ
command must be performed initially or whenever encoder battery power is lost with the servo
amplifier also in a powered down state. Feedback Mode set to ABSOLUTE must be selected in
the configuration software for proper operation with a battery pack.
Absolute Encoder - First Time Use or Use After Loss of Encoder Battery Power
The absolute encoder temporarily provides incremental data during the first use or after restoring
encoder battery power. The incremental data is lost when motor shaft rotation causes the encoder
to pass a reference point (similar to a marker signal) within one revolution of the motor shaft.
The Digital Absolute serial encoder must be rotated up to one full revolution after the absolute
mode battery has been reattached to the amplifier. The encoder will reference itself within one
revolution and report a referenced status to the DSM314.
Absolute Encoder Mode - Position Initialization
When a system is first powered up in Absolute Encoder mode, a position offset for the encoder
must be established. Using the %Q Find Home cycle or the Set Position % AQ command can
accomplish this.
Find Home Cycle - Absolute Encoder Mode
The Find Home Mode can be configured for Move (+), Move (–) or Home Switch operation.
Refer to Chapter 4 for additional details of Home Cycle operation. The Home Offset and Home
Position configuration items function the same as in Incremental Encoder mode. At the
completion of the Home Cycle, the Actual Position %AI status word is set to the configured Home
Position value. The DSM314 internally calculates the encoder Absolute Feedback Offset needed
to produce the configured Home Position at the completion of the Home Cycle. This Absolute
Feedback Offset is immediately saved in the DSM314 non-volatile (capacitor backup) memory.
Once an absolute position is established by successful completion of a Find Home cycle, the
DSM314 will automatically initialize the Actual Position %AI status word after a power cycle and
set the Position Valid %I bit.
Note
If the Position Valid %I bit is set before initiating a Home Cycle, the Home Cycle
clears Position Valid and then sets Position Valid again when the cycle completes. If
the Home cycle is halted by an Abort All Moves %Q bit command, Position Valid will
remain off. However cycling power will cause a valid Actual Position to be restored
and Position Valid will be automatically set.
C-2
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Postion Feedback Devices C
Set Position Command - Absolute Encoder Mode
The Set Position %AQ command functions the same way as in incremental encoder mode. At the
completion of the Set Position operation, Actual Position is set to the Set Position value. The
DSM314 internally calculates the encoder Absolute Feedback Offset needed to produce the
commanded Set Position value. This Absolute Feedback Offset is immediately saved in the
DSM314 non-volatile (capacitor backup) memory.
If a Set Position AQ command is received before the encoder has been referenced, Error Code
53(hex) “Attempt to initialize position before digital encoder passes reference point” will be
reported. This error code is only reported if the Feedback Mode is set to Absolute. Serial
Encoders configured for Incremental mode do not have this restriction.
Once an absolute position is established by a Set Position command, the DSM314 will
automatically initialize Actual Position after a power cycle and set the Position Valid %I bit.
Absolute Encoder Mode - DSM314 Power-Up
The battery pack attached to the servo subsystem will maintain power to the encoder counter logic.
Once the encoder has referenced through first time start up, the actual position is automatically
maintained by the encoder, even if the axis is moved during servo power loss. The encoder will
monitor the status of the battery pack, and report loss of battery power or low battery power to the
DSM314.
The DSM314 will complete a power-on diagnostic, and when configured for absolute encoder
mode, interrogate the referenced status of the Digital serial encoder. A valid referenced status
from the encoder will signal the DSM314 to read the encoder absolute position. The DSM314
will report the Actual Position %AI status as the sum of the encoder position and the Absolute
Feedback Offset established by the initial Find Home cycle or Set Position %AQ command.
Incremental Quadrature Encoder
Incremental Quadrature Encoders provide three output signals to the DSM314: Channel A,
Channel B, and Marker. The Channel A and Channel B signals transition as the encoder turns,
allowing the DSM314 to count the number of signal transitions and calculate the latest encoder
position change and direction of rotation.
Incremental Quadrature Encoders are incremental feedback devices; they do not provide a
continuous indication of absolute shaft angle as the input shaft rotates. For this reason, the
DSM314’s Actual Position %AI status word must be initialized with a known physical position
before positioning control is allowed. This position alignment can be accomplished using the Set
Position %AQ Immediate command or the %Q Find Home cycle . The home cycle makes use of
the encoder marker channel, which is a once per revolution pulse produced at a known encoder
shaft angle. Successful completion of the %Q Find Home cycle or a Set Position %AQ command
causes the DSM314 to set the axis Position Valid %I bit. Position Valid must be set before motion
programs will be allowed to execute. Position Valid is only cleared by an encoder Quadrature
Error (Channel A and Channel B switching at the same time) or by turning on the Find Home and
Abort %Q bits simultaneously.
Note
In Digital Mode, only incremental quadrature encoders are supported for the
Follower mode master axis.
GFK-1742A
Appendix C Position Feedback Devices
C-3
Appendix Start-Up and Tuning GE Fanuc Digital and
D
Analog Servo Systems
This appendix provides a procedure for starting up and tuning a GE Fanuc Digital or Analog
servo system. For Digital servos systems, there are two control loops in the DSM314 that require
tuning, the velocity loop and the position loop. Always begin with module configuration then
proceed to the velocity loop setting and finally the position loop. For Analog servo systems, there
are a series of Start-Up Procedures to follow.
GE Fanuc Start-Up and Tuning Information for DIGITAL Servo
Systems
There are three major sections covered:
•
Validating Home Switch, Over Travel Inputs and Motor direction.
•
Tuning the Velocity Loop.
•
Tuning the Position Loop.
Validating Home Switch, Over Travel Inputs and Motor direction
GFK-1742A
1.
Connect the motor, amplifier and DSM314 module following the procedures in Chapter 2.
2.
If Over travel Limit switches are used (Overtravel Limit Switch = Enabled in configuration),
wire them to the correct 24V terminal board points (refer to Chapter 3). The overtravel
inputs are operated in the fail-safe mode i.e. a normally closed or PNP type switching device
should be used. Current must be sourced to the input to maintain a logic level 1 on the input
while the axis is NOT at the overtravel position or an alarm condition (Error A9) will be
returned. Otherwise the Overtravel Limit Switch configuration must be set to Disabled using
the VersaPro configuration software.
3.
If a Home switch is used (Home Mode = Home Switch in configuration), wire it to the correct
24V terminal board points (refer to Chapter 3). The Home switch must be wired and actuated
so that it is ALWAYS ON (closed) when the axis is on the negative side of home and
ALWAYS OFF (open) when the axis is on the positive side of home. Typically the Home
D-1
D
switch is mounted at or near one end of the axis travel. It is important to verify the operation
of the home switch prior to attempting a home cycle. It may be necessary to reverse the motor
direction (Motor1 or Motor2 Dir = POS/NEG) in the module configuration.
4.
Use the configuration software to set the desired user scaling factors and other configurable
parameters. The following items MUST be changed from the default configuration settings:
Configuration Item
Axis 1 Mode
Motor Type:
Position Loop Time Constant:
Velocity Loop Gain:
User Units : Counts
(Standard Mode Only)
Position Error Limit:
Setting
Digital Servo
Select from Table in Chapter 4
60 ms
(Load Inertia / Motor Inertia) * 16
See Chapter 3
30000 x User Units / Counts
Set the configuration parameters in the order shown above.
5.
Store the configuration to the PLC.
6.
Clear the program from the PLC, turn off all DSM314 %Q bits and place the PLC in RUN
mode. Monitor the %I CTL bits for Home Switch, (+) Overtravel and (-) Overtravel and
confirm that each bit responds to the correct switch (Refer to Chapter 5 for %I bit
definitions).
7.
Turn on the Enable Drive %Q bit and confirm that the servo amplifier is enabled. If a brake
is used on the servomotor it should be released at this time.
8.
Send the %AQ command code for Force Digital Servo Velocity 100 (rpm). Confirm that the
motor moves in the desired POSITIVE direction and the Actual Velocity reported in the %AI
table is POSITIVE. If the motor moves in the wrong direction, use the Axis Direction
parameter in the configuration software to swap the positive and negative axis directions.
9.
Remove the Force Digital Servo Velocity command from the %AQ table. Use a low Jog
Velocity and Jog Acceleration in the configuration, values may be increased later. Turn on
the Jog Plus %Q bit. Confirm that the servo moves in the proper direction and that the
Actual Velocity reported by the DSM314 in the %AI table matches the configured Jog
Velocity. If Motion Programs will use an acceleration higher than the Jog Acceleration, it
may be necessary to increase Jog Acceleration so that Abort All Moves and Normal Stop
actions will operate as expected.
10. Use a low value for Find Home Velocity and Final Home Velocity in the module
configuration, values may be increased later. Check for proper operation of the Find Home
cycle by momentarily turning on the Find Home %Q bit (the Drive Enabled %Q bit must also
be maintained on). The axis should move towards the Home Switch at the configured Find
Home Velocity, then seek the Encoder Reference point at the configured Final Home
Velocity. If necessary, adjust the configured velocities and the location of the Home Switch
for consistent operation. The final Home Switch MUST transition at least 10 milliseconds
before the encoder reference point is encountered. The physical location of Home Position
can be adjusted by changing the Home Offset value with the configuration software.
D-2
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Startup and Tuning D
11. Monitor servo performance and use the Jog Plus and Jog Minus %Q bits to move the
servomotor in each direction. Placing the correct command code in the % AQ table can
temporarily modify the Position Loop Time Constant. For most systems the Position Loop
Time Constant can be reduced until some servo instability is noted, then increased to a value
approximately 50% higher. Once the correct time constant is determined, the DSM314
configuration should be updated using the configuration software. Velocity Feedforward can
also be set to a non-zero value (typically 90 – 100 %) for optimum servo response. Refer to
Tuning a GE Fanuc Digital Servo for information on setting the digital servo Velocity Loop
Gain.
12. If Follower mode is used with an Incremental Quadrature Encoder, confirm that Actual
Position (Aux Axis 3) represents the encoder position. Make sure the desired Follower axis
slave : master ratio has been programmed as the A:B ratio using the configuration
software.
Digital Servo System Startup Troubleshooting Hints
1.
The DSM314 requires PLC firmware release 10.0 or greater and VersaPro software release
1.10 or greater.
2.
The default DSM314 configuration for the Overtravel Limit Switch inputs is ENABLED.
Therefore, 24 vdc must be applied to the Overtravel inputs or the DSM314 will not operate.
If Overtravel inputs are not used, the DSM314 configuration should be set to Overtravel
Limit Switch inputs DISABLED.
If the Axis Enabled %I bit is OFF, the axis will not respond to any %Q bits or %AQ
commands. When a servomotor is not used with a Servo Axis, the Motor Type must be set to
0 or Axis Enabled will stay OFF. A Motor Type of 0 disables the axis servo loop processing
and sets Axis Enabled ON, allowing the axis to accept commands such as Load Parameter
Immediate and Set Analog Output Mode.
GFK-1742A
3.
The Enable Drive %Q control bit must be set continuously to ON or no motion other
than Jogs will be allowed. If no STOP errors have occurred, the Drive Enabled %I status bit
will mirror the state of the Enable Drive %Q bit. A STOP error will turn off Drive Enabled
even though Enable Drive is still ON. The error condition must be corrected and the Clear
Error %Q control bit turned ON for one PLC sweep to re-enable the drive.
4.
If the Module Error Present %I status bit is ON and the Axis Enabled and Drive Enabled %I
status bits are OFF, then a STOP error has occurred (Status LED flashing fast). In this state,
the Servo Axis will not respond to any %Q bits or %AQ commands other than the Clear
Error %Q bit.
5.
The Clear Error %Q control bit uses one-shot action. Each time an error is generated, the bit
must be set OFF then ON for at least one PLC sweep to clear the error.
6.
The CFG OK LED must be ON or the DSM314 will not respond to PLC commands. If the
LED is OFF then a valid DSM314 configuration has not been received from the PLC, or there
may be a recognized configuration error. Check the %AI error code words for Dxxx errors,
which are documented in the “System Error Codes” section of Appendix A. Also check the
PLC fault tables for reported configuration errors.
Appendix D Tuning GE Fanuc Digital and Analog Servo Systems
D-3
D
Tuning a GE Fanuc Digital Servo Drive
The following pages provide you with an introduction to the basics required for tuning a GE
Fanuc Digital servo drive. This introduction shows one method for tuning a servo drive. The
method will not work in all applications, and you should modify the approach based on the
application. In order to display and measure the necessary signal waveforms, the DSM314 analog
outputs must be connected to an oscilloscope. Without an oscilloscope to measure the signals,
tuning the servo drive with the following approach will not be possible. The Select Analog
Output Mode %AQ command (47h) is used to select the data that is sent to the analog outputs
during servo tuning. Refer to Chapter 5 for a discussion of this %AQ command.
Tuning Requirements
The module has three main parameters that are adjusted during tuning. The parameters are the
Position Loop Time Constant, Velocity Feed Forward Gain, and Velocity Loop Gain. The
Position Loop Integrator Time Constant gives the position loop an additional degree of freedom
but in typical applications is not required.
The approach to tuning the control loops is to tune the inner control loops first. In this example,
the inner control loop that requires tuning is the velocity loop. As shown in the figure below, the
position loop is the outer loop and sends velocity commands to the velocity loop.
Position
Command
Path
Planning
Position
Control
Velocity
Command
Velocity
Control
Torque
Command
Torque/
Flux
Controller
Servo
Amp
Position
to
Velocity
Motor
Encoder
Interface
Figure D-1. Control Loops Block Diagram
D-4
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Startup and Tuning D
Tuning the Velocity Loop
The proper method to tune the velocity loop is to separate the velocity loop from the position loop.
To achieve this separation, a method must be used to directly send velocity commands without
using the position loop control. The DSM module has several modes that will allow the user to
send a velocity command directly to the velocity loop. Two methods are as follows:
Method #1:
The Force Digital Servo Velocity %AQ immediate command (34h) will send a velocity command
directly to the velocity loop. This command is different from the Move at Velocity Command,
which uses the position loop to generate the command. This is important since we do not want
the position loop interacting with the velocity loop at this point in our tuning process. The Force
Digital Servo Velocity %AQ command allows the user to generate a step change in the velocity.
The velocity command step is then used to generate the velocity loop step response. The user
should note that when a velocity command step change is performed the acceleration is limited
only by the bandwidth of the velocity loop. In some applications this can cause damage to the
controlled device due to the high acceleration rate.
Method #2:
In some applications, method #1 introduces too large a shock to the device under control. In these
cases, another method to generate a velocity command is needed. The method requires that the
user set the position loop to an open loop configuration. The position loop is set to open loop by
setting the Position Loop Time Constant to zero and the Velocity Feedforward Gain to 100
percent. You can then use the Move at Velocity Command or a motion program to generate
velocity commands to the servo drive. The first parameter that needs to be adjusted is the Velocity
Loop Gain. The parameter adjusts the velocity loop bandwidth. As a starting point use the
following formula (also reference the Velocity Loop Gain Section):
Equation 1
Velocity Loop Gain =
Jl
⋅ 16
Jm
Where:
J l = Load Inertia
J m = Motor Inertia
The Velocity Loop Gain calculated in equation 1 in many cases will not need to be altered.
However, due to the application (for example, machine resonance) the value may need to be
adjusted. To tune the Velocity Loop Gain the following procedure can be used:
1.
GFK-1742A
Choose the method to introduce velocity command to the velocity loop. Method #1 and
Method #2 (above) are examples of methods to perform this task.
Appendix D Tuning GE Fanuc Digital and Analog Servo Systems
D-5
D
2.
Connect an oscilloscope to the analog outputs for Motor Velocity feedback and Torque
Command. See Section 4.25 of Chapter 5 for analog output configuration instructions.
3.
Set the Velocity Loop Gain to zero. This is a conservative approach. If the application is
known to not have resonant frequencies from zero to approximately 250 Hz, you can start
with a higher value, but do not exceed the value calculated in equation 1 at this point.
4.
Generate a velocity command step change. At this point the step change should be relatively
small compared to the full speed of the machine. Ten to 20 % of the rated machine speed is a
good start.
5.
Observe the Motor Velocity and Torque Command on the oscilloscope. The objective is to
obtain a critically damped velocity loop response. Pay particular attention to any oscillations
that are occurring in the velocity feedback signal.
6.
Increase the Velocity Loop Gain in small steps and repeat 4 and 5 until instability in the
Motor Velocity feedback signal is observed. Once this point is reached, decrease the Velocity
Loop Gain by at least 15 %. As a general rule, the lower the Velocity Loop Gain value that
meets the system requirements the more robust the control. You should carefully observe the
velocity feedback signal. In some applications, running the Velocity Loop Gain high enough
to create instability can cause machine damage. If in doubt, adjust the Velocity Loop Gain to
be no greater than the value calculated in equation 1. If oscillations are observed in the
Motor Velocity feedback signal prior to this point, decrease the Velocity Loop Gain and
continue with step 7 below.
7.
The velocity loop is tuned at this point. However, the robustness of the loop must be checked.
To perform this test, introduce velocity command steps in increments of 20% Rated Machine
Speed, 40% Rated Machine Speed, 60% Rated Machine Speed, 80% Machine Rated Speed,
and 100% Rated Machine Speed. Observe the Motor Velocity and Torque Command signals
for any instability. If an instability or resonance is observed, reduce the Velocity Loop Gain
and repeat the test.
Note
For Digital servos, the %AQ Force Analog Output command can provide
Torque Command or Commanded Motor Velocity. (Velocity = 750 rpm/volt
and %TqCmd = (100/1.111111 Volt)*X Volt or Torque Cmd = 100%
Torque Command = 1.111 Volts, 100%TqCmd = MaxCur Amplifier. For
instance: Beta 0.5 MaxCurAmp = 12 amps => 1.111111Volt = 12 amps.
Sample Velocity Loop Tuning Session
A sample velocity loop tuning session is shown in the plots that follow.
D-6
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Startup and Tuning D
Figure D-2. Velocity Loop Step Response Velocity vs. Time VLGN = 0
Figure D-3. Velocity Loop Step Response Torque Command vs. Time VLGN = 0
Note that in Figures D-2 and D-3 the system does not have enough damping. In this case the
controller does not have the required bandwidth and the Velocity Loop Gain must be increased.
GFK-1742A
Appendix D Tuning GE Fanuc Digital and Analog Servo Systems
D-7
D
Figure D-4. Velocity Loop Step Response Velocity vs. Time VLGN = 24
Figure D-5. Velocity Loop Step Response Torque Command vs. Time VLGN = 24
Note that in Figures D-4 and D-5, the system is beginning to look acceptable. The only problem
is the velocity overshoot.
D-8
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Startup and Tuning D
Figure D-6. Velocity Loop Step Response Velocity vs. Time VLGN = 48
Figure D-7. Velocity Loop Step Response Torque Command vs. Time VLGN = 48
The response shown in Figures D-6 and D-7 is good.
GFK-1742A
Appendix D Tuning GE Fanuc Digital and Analog Servo Systems
D-9
D
Figure D-8. Velocity Loop Step Response Velocity vs. Time VLGN = 64
Figure D-9. Velocity Loop Step Response Torque Command vs. Time VLGN = 64
The response shown in Figures D-8 and D-9 is acceptable.
D-10
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Startup and Tuning D
Figure D-10. Velocity Loop Step Response Velocity vs. Time VLGN = 208
Figure D-11. Velocity Loop Step Response Torque Command vs. Time VLGN = 208
The response shown in Figures D-10 and D-11 is marginally stable and would be unacceptable in
many applications. The plots are shown for reference only.
GFK-1742A
Appendix D Tuning GE Fanuc Digital and Analog Servo Systems
D-11
D
Tuning the Position Loop
The very first step in adjusting the tuning for the position loop is to insure that the velocity loop is
stable and has response suitable to the application. Refer to the previous section for methods of
setting the velocity loop.
Preliminary Position Loop Settings for Tuning Session.
1. If using Standard Mode control loop settings, set the User Unit and Counts configuration to
values appropriate to the mechanical configuration for the axis. See the discussion and
examples in the configuration chapter for details.
2. Set the Velocity at 10 Volt value as described in the configuration chapter.
3. Set the Integrator Mode selection to “OFF”.
4. Set the Feed Forward % to zero.
5. Set the Position Error Limit to near maximum value. The maximum is 60,000 (User Units /
Counts).
Setting the Position Loop Gain
The position control loop is primarily a “PI” (Proportional, Integral) algorithm with optional Feed
Forward. We begin tuning the position loop by setting the proportional gain (Pos Loop TC) to
provide a stable response with sufficient gain (bandwidth) to meet the motion profile
requirements. By setting the Integrator Mode to “OFF” as requested in the previous section, we
create a proportional-only control loop. There are two suggested methods of setting the
proportional gain (Pos Loop TC).
Position Loop Proportional Gain Method 1
Calculating the position loop proportional gain assumes that the mechanical design of the
machine will have sufficient bandwidth to remain stable and that any resonant frequencies are
higher than the bandwidth required by the motion profile.
Terminology
A large mismatch between the load and motor inertia can cause a RESONANCE in the
system. Resonance is oscillatory behavior caused by mechanical limitations and
aggravated by gearing backlash or torsion windup of mechanical members like couplings
or shafts. Resonance is eliminated by improving the mechanics, reducing load/motor
inertia mismatch or reducing servo gains (reduce performance).
BANDWIDTH is a figure of merit used to compare control system or mechanical
performance. As the frequency of command increases, the system response will begin to
lag. The bandwidth is defined as the frequency range over which system response (gain)
is at least 70% (-3 decibels) of the desired command.
High Bandwidth
•
•
D-12
Allows the servo to more accurately reproduce the desired motion
Allows accurate following of sharp corners in motion paths and high machine cycle
rates
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Startup and Tuning D
•
•
Rejects torque disturbances from mechanics or outside influences improving system
accuracy
Can expose machine resonance, which occur at frequencies near or below the
bandwidth
The response of a proportional only system, which is what we set up by setting Integrator Mode to
“OFF”, is an exponential rise. A time constant for an exponential curve represents 68% of the
remaining rise. For instance, starting at zero velocity, the response of the position loop to a
change in command will require one time constant to reach 68% of the commanded velocity. The
second time constant will reduce 68% of the remaining command. Subsequent time constants will
reduce 68% of remaining command. For example 100% - 68% (one time constant) = 32%,
32%(68%)=21.8%, 68% (first time constant) + 21.8% (second time constant) = 89.8%. We see
that two time constants eliminate 89.8% of the command necessary. Three time constants will
account for 96.7% of the rise in command. Four time constants account for 98.9% of the rise.
Typically three time constants are sufficient for most motion applications.
We can use our knowledge of time constants to predict the required system response. For instance
if we know that the fastest acceleration required in our motion profiles must occur within 200
mSec. The 200 mSec response to the change in command will be 98.9% complete in three time
constants. Simply dividing the 200 mSec by 3 tells us that a time constant will be about 67 mSec.
The Pos Loop TC configuration field represents one time constant in mSec. In the example
above one time constant is 67msec.
Position Loop Proportional Gain Method 2
Similar to the Velocity loop tuning method above. Use an oscilloscope and gradually lower the
Pos Loop TC value (increasing gain). Monitor the Motor Velocity analog output for performance
characteristics are appropriate.
GFK-1742A
Appendix D Tuning GE Fanuc Digital and Analog Servo Systems
D-13
D
GE Fanuc Start-Up and Tuning Information for Analog Servo
Systems
There are two major sections covered;
•
Validating Home Switch, Over Travel Inputs, and Motor direction.
•
Velocity at Max Cmd, Position Loop Time Constant, and Velocity Feedforward determination
Analog Mode System Startup Procedures
Startup Procedures
1.
Connect the analog motor to the servo amplifier according to the manufacturer’s
recommendations.
2.
Connect the DSM314 Drive Enable Relay and Velocity Command outputs to the servo
amplifier. Connect the position feedback device (Incremental Quadrature Encoder) to the
Motion Mate DSM314 encoder inputs.
Note
If these connections are incorrect or there is slippage in the coupling to the
Feedback Device, an Out of Sync error condition can occur when motion is
commanded.
D-14
3.
Connect the servo amplifier Ready output (if available) to the DSM314 Drive Ready input
(IN_4). This signal must switch to 0v when the amplifier is ready to control the servo. The
DSM starts checking the Drive Ready input one second after the Drive Enable relay
turns on in response to the Enable Drive %Q bit. If the servo amplifier does not provide a
suitable Ready output, this input to the DSM314 must be connected to 0v or the Drive Ready
input can be disabled in the module configuration. If a Home switch is used (24 Vdc), wire it
to the correct DSM314 input. The Home switch must be wired so that it is ALWAYS ON
when the axis is on the negative side of home and ALWAYS OFF when the axis is on the
positive side of home.
4.
Use the VersaPro Configuration Software to set the desired configurable parameters. Store the
configuration to the PLC.
5.
Turn on the %Q Enable Drive bit and place the command code for Force D/A Output equal
to 0 in the %AQ table. Confirm that the servo amplifier is enabled (the motor should exhibit
holding torque). If the motor moves, adjust the amplifier command offset adjustment until
the motor stops moving. Note: The %Q Enable Drive bit must be maintained ON in order for
the Force D/A Output command to function.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Startup and Tuning D
6.
Send the command code for Force D/A Output equal to +3200 (+1.0v). Confirm that the
motor moves in the desired POSITIVE direction (based on the Axis Direction configuration
parameter setting) and the Actual Velocity reported in the DSM314 %AI table is POSITIVE.
If the motor moves in the wrong direction, consult the servo amplifier manufacturer's
instructions for corrective action. The Axis Direction parameter in the Configuration
Software can also be used to swap the positive and negative axis directions. If the motor
moves in the POSITIVE direction but the DSM314 reports that Actual Velocity is
NEGATIVE, then the encoder channel A and channel B inputs must be swapped.
7.
Record the actual motor velocity reported by the Motion Mate DSM314 with a 1.0 volt
velocity command. Multiply this velocity by 10 and update the Velocity at Max Cmd entry in
the DSM314 configuration, if necessary. Initially set the Pos Loop Time Constant (0.1 ms)
configuration parameter to a high value (typically 100 ms or a value of 1000 in the
configuration).
8.
Turn on the %Q Jog Plus bit. Confirm that the servo moves in the proper direction and that
the Actual Velocity reported by the Motion Mate DSM314 in the %AI table matches the
configured Jog Velocity. If Motion Programs will use an acceleration higher than the Jog
Acceleration, it may be necessary to increase Jog Acceleration so that Abort All Moves and
Normal Stop actions will operate as expected.
9.
With the Drive Enabled %Q bit ON and no servo motion commanded, adjust the servo drive
command offset adjustment for zero Position Error. The integrator should be OFF during
this process.
10. Check for proper operation of the Find Home cycle by momentarily turning on the %Q Find
Home bit (the Drive Enabled %Q bit must also be maintained ON). The axis should move
towards the Home Switch at the configured Find Home Velocity, then seek the Encoder
Marker at the configured Final Home Velocity. If necessary, adjust the configured velocities
and the location of the Home Switch for consistent operation. The final Home Switch
transition MUST occur at least 10 ms before the Encoder Marker Pulse is encountered. The
physical location of Home Position can then be adjusted by changing the Home Offset value
in the Configuration Software.
11. Monitor servo performance and use the %Q Jog Plus and Jog Minus bits to move the analog
servo motor in each direction. The Position Loop Time Constant can be temporarily
modified by placing the correct command code in the %AQ table. For most systems the
Position Loop Time Constant can be reduced until some servo instability is noted, then
increased to a value approximately 50% higher. Once the correct time constant is determined,
the DSM314 configuration should be updated using the Configuration Software. Velocity
Feedforward can also be set to a non-zero value (typically 90-100 %) for optimum servo
response.
Note
For proper servo operation, the Configuration entry for Velocity at Max Cmd
MUST be set to the actual servo velocity (in User Units/sec) caused by a 10 Volt
Velocity command to the amplifier.
GFK-1742A
Appendix D Tuning GE Fanuc Digital and Analog Servo Systems
D-15
D
System Troubleshooting Hints (Analog Mode)
D-16
1.
The DSM314 requires PLC firmware release 10.0 or greater and VersaPro software release
1.10 or greater.
2.
If the Drive Ready input is enabled in the module configuration, the input must be connected
to 0v within 1 second after the Drive Enable relay turns on or the Motion Mate DSM314 will
not operate. Incorrect Drive Ready configuration or wiring will cause Error Code C0h to be
reported in the Axis Error Code %AI data.
3.
The ENABLE DRIVE %Q control bit must be set continuously to 1 or no motion other than
Jog moves will be allowed. If no STOP errors (see Appendix A for error codes) have
occurred, the DRIVE ENABLED %I status bit will mirror the state of the ENABLE DRIVE
%Q bit. A STOP error will turn off the DRIVE ENABLED output bit even though ENABLE
DRIVE input bit is still a 1. The error condition must be corrected and the CLEAR ERROR
%Q control bit turned on for one PLC sweep to re-enable the drive.
4.
If the ERROR %I status bit is 1 and the AXIS ENABLED and DRIVE ENABLED %I status
bits are 0, then a STOP error has occurred (Status LED flashing fast). In this state, the
DSM314 will not respond to any commands other than the CLEAR ERROR %Q control bit.
5.
The CLEAR ERROR %Q control bit uses one-shot action. Each time an error is generated,
the bit must be set to 0 then set to 1 for at least one PLC sweep to clear the error.
6.
The CFG OK LED must be ON or the DSM314 will not respond to PLC commands. If the
LED is OFF then a valid DSM314 configuration has not been received from the PLC, or there
may be a recognized configuration error. Check the %AI error code words for Dxxx errors,
which are documented in the “System Error Codes” section of Appendix A. Also check the
PLC fault tables for reported configuration errors.
7.
PLC logic should not send the following %Q bit commands to the DSM314 on the first PLC
sweep: Find Home, Execute Motion Program, Execute Local Logic. If these commands are
sent on the first PLC sweep, an error will be reported and the action will not be performed.
8.
PLC logic should not send the following %AQ commands to the DSM314 on the first PLC
sweep: Move at Velocity, Move Command. If these commands are sent on the first PLC
sweep, an error will be reported and the action will not be performed.
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Appendix Local Logic Execution Time
E
This appendix contains information necessary to determine a local logic program’s execution time.
Local Logic Execution Timing Data
Local Logic program in the DSM is constrained to complete execution within 300 Microseconds.
Exceeding the execution time limit will result in a watchdog timeout and an error being reported.
The watchdog timeout error will stop axes motion and Local Logic execution. The timing data
supplied in the tables below allows the programmer to compute the worst case execution time for a
program. Note that the data below represents execution times, not response times. For example, the
execution time required to write a value to the follower ratio variables is 0.30 microseconds,
however the time required to observe the resulting change in the axes motion would be in the order
of 2 to 5 milliseconds. Similarly for the digital inputs the hardware filter delays must be taken into
account when computing the response time. Note: If the program execution time is between 300
and 350 microseconds a watchdog timeout may not occur, depending on the task loading in the
module. The user should keep his program execution time within 300 microseconds to ensure that
it runs without any timeouts.
The tables below can be used to compute the worst case execution times and therefore
predetermine that a program will not cause a watchdog timeout. The examples below
illustrate the computation of execution times for a program.
Example 1
3 3 ,) 3 ! 7+(1
7RUTXHB/LPLWB -RJB3OXVB 6WUREHB/HYHOB
(1'B,)
GFK-1742A
,QVWUXFWLRQ /LQH ,QVWUXFWLRQ
,QVWUXFWLRQ
,QVWUXFWLRQ
,QVWUXFWLRQ
/LQH
/LQH
/LQH
/LQH
E-1
E
Execution Time for Instruction Line 1=>
(Time to Load P002) + (Time to load Constant) + (Time to perform Addition) + (Time to write
P001)
=> 0.60 (from Table E-7) + 0.50 (from Table E-7) + 0.90 (from Table E-1) + 0.60 (from Table E-7)
=> 2.60 microseconds
Execution Time for Instruction Line 2 =>
(Time to Load P001) + (Time to load Constant) + (Time to perform > Conditional)
=> 0.60 (from Table E-7) + 0.50 (from Table E-7) + 2.50 (from Table E-2)
=> 3.60 microseconds
Execution Time for Instruction Line 3 (assuming Conditional evaluates to TRUE)=>
(Time to load Constant) + (Time to write Torque_Limit_1)
=> 0.50 (from Table E-7) + 0.30 (from Table E-3)
=> 0.80 microseconds
Execution Time for Instruction Line 4 (assuming Conditional evaluates to TRUE)=>
(Time to load Strobe1_Level_1 ) + (Time to write Jog_Plus_1)
=> 1.40 (from Table E-3) + 1.70 (from Table E-3)
=> 3.10 microseconds
Execution Time for Instruction Line 5 => 0.0 microseconds (from Table E-2)
Total Execution Time => 2.60 + 3.60 + 0.80 + 3.10 +0.0 = 10.10 Microseconds
E-2
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
E
Local Logic Execution Time
Example 2
' 3 3 ' ,QVWUXFWLRQ /LQH ,QVWUXFWLRQ /LQH (QDEOHB)ROORZHUB &7/ %:$1' &7/
)ROORZHUB5DWLRB$B 3
,QVWUXFWLRQ /LQH ,QVWUXFWLRQ /LQH Execution Time for Instruction Line 1 =>
(Time to Load P100) + (Time to Load Constant) + (Time to Multiply) +(Time to write D00)
=> 0.60 (from Table E-7) + 0.50 (from Table E-7) + 1.30 (from Table E-1) + 0.70 (from Table E-7)
=> 3.10 microseconds
Execution Time for Instruction Line 2 =>
(Time to Load D00) + (Time to load constant) + (Time to perform divide) + (Time to write P101)
=> 0.70 (from Table E-7) + 0.50 (from Table E-7) + 2.90 (from Table E-1) + 0.60 (from Table E-7
)
=> 4.70 microseconds
Execution Time for Instruction Line 3 =>
(Time to Load CTL01) + (Time to load CTL02) + (Time to perform BWAND) + (Time to store
Enable_Follower_1)
=> 1.40 (from Table E-7) + 1.40 (from Table E-7) + 0.20 (from Table E-1) + 1.70 (from Table E-3)
=> 4.70 microseconds
Execution Time for Instruction Line 4 =>
(Time to Load P101) + (Time to write Follower_Ratio_A_1)
=> 0.60 (from Table E-7) + 0.30 (from Table E-3)
=> 0.90 microseconds
Total Execution Time => 3.10 + 4.70 + 4.70 + 0.90 = 13.40 Microseconds
GFK-1742A
Appendix E Local Logic Execution Time
E-3
E
Table E-1. Local Logic Math/Logical Operation execution times
Local Logic Math and
Logical Operations
(Assignment, := )
Local Logic Execution
Time
(In Microseconds)
Add (+)
Subtract (-)
Multiply (*)
Divide (/)
Modulus (MOD)
Absolute (ABS)
BWAND
BWOR
BWXOR
BWNOT
0.90**
0.90**
1.30
2.90
2.90
1.70**
0.20
0.30
0.20
0.50
**Note
Execution times for Addition, Subtraction and Absolute value (ABS) assume there
are no computation overflows.
Table E-2. Local Logic Conditional Operation Execution Times
Local Logic Conditional
Operations (IF…THEN)
Greater Than (>)
Less Than (<)
Greater/Equal (>=)
Less/Equal (<=)
Equal (=)
Not Equal (<>)
BWAND
BWOR
BWXOR
BWNOT
Null operator (IF var THEN)
END_IF
Local Logic Execution
Time
(In Microseconds)
2.50
2.50
2.50
2.50
2.30
2.30
1.40
1.40
1.40
1.60
1.10
0.00
Note
The execution time for the conditionals is for the case where the IF…THEN
operation evaluates to FALSE. This represents the worst case execution
time, since the execution time required to evaluate a conditional that is
TRUE is less. Note that the END_IF instruction does not require any
execution time.
E-4
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Execution Time
E
Table E-3. Axis 1 Local Logic Variable Execution Times
X- Not Applicable.
Local Logic Execution Time (In Microseconds)
Local Logic Variable Name
Strobe1_Level_1
Strobe2_Level_1
Positive_EOT_1
Negative_EOT_1
Home_Switch_1
Digital_Output1_1
Digital_Output3_1
Analog_Input1_1
Analog_Input2_1
Position_Loop_TC_1
Follower_Ratio_A_1
Follower_Ratio_B_1
Torque_Limit_1
Position_Increment_Cts_1
Velocity_Loop_Gain_1
Reset_Strobe1_1
Reset_Strobe2_1
Enable_Follower_1
Jog_Plus_1
Jog_Minus_1
FeedHold_1
Error_Code_1
Actual_Position_1
Strobe1_Position_1
Strobe2_Position_1
Actual_Velocity_1
Block_1
Commanded_Position_1
Position_Error_1
Commanded_Velocity_1
User_Selected_Data1_1
User_Selected_Data2_1
UnAdjusted_Actual_Position_Cts_1
UnAdjusted_Strobe1_Position_Cts_1
UnAdjusted_Strobe2_Position_Cts_1
Commanded_Torque_1
Axis_OK_1
Position_Valid_1
Strobe1_Flag_1
Strobe2_Flag_1
Drive_Enabled_1
Program_Active_1
Moving_1
In_Zone_1
Position_Error_Limit_1
Torque_Limited_1
Servo_Ready_1
Follower_Enabled_1
Follower_Ramp_Active_1
Follower_Velocity_Limit_1
GFK-1742A
Appendix E Local Logic Execution Time
Read
Write
1.40
1.40
1.40
1.40
1.40
X
X
0.80
0.80
X
X
X
X
X
0.80
X
X
X
X
X
X
0.80
0.70
0.80
0.80
0.80
0.90
0.60
0.60
0.60
0.60
0.60
0.80
0.80
0.80
0.80
1.40
1.40
1.40
1.40
1.40
1.40
1.40
1.40
1.40
1.40
1.40
1.40
1.40
1.40
X
X
X
X
X
1.80
1.80
X
X
0.30
0.30
0.30
0.30
0.30
0.20
1.70
1.70
1.70
1.70
1.70
1.70
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
E-5
E
Table E-4. Axis 2 Local Logic Variable Execution Times
X- Not Applicable.
Local Logic Execution Time (In Microseconds)
Local Logic Variable Name
Strobe1_Level_2
Strobe2_Level_2
Positive_EOT_2
Negative_EOT_2
Home_Switch_2
Digital_Output1_2
Digital_Output3_2
Analog_Input1_2
Analog_Input2_2
Position_Loop_TC_2
Follower_Ratio_A_2
Follower_Ratio_B_2
Torque_Limit_2
Position_Increment_Cts_2
Velocity_Loop_Gain_2
Reset_Strobe1_2
Reset_Strobe2_2
Enable_Follower_2
Jog_Plus_2
Jog_Minus_2
FeedHold_2
Error_Code_2
Actual_Position_2
Strobe1_Position_2
Strobe2_Position_2
Actual_Velocity_2
Block_2
Commanded_Position_2
Position_Error_2
Commanded_Velocity_2
User_Selected_Data1_2
User_Selected_Data2_2
UnAdjusted_Actual_Position_Cts_2
UnAdjusted_Strobe1_Position_Cts_2
UnAdjusted_Strobe2_Position_Cts_2
Commanded_Torque_2
Axis_OK_2
Position_Valid_2
Strobe1_Flag_2
Strobe2_Flag_2
Drive_Enabled_2
Program_Active_2
Moving_2
In_Zone_2
Position_Error_Limit_2
Torque_Limited_2
Servo_Ready_2
Follower_Enabled_2
Follower_Ramp_Active_2
Follower_Velocity_Limit_2
E-6
Read
Write
1.40
1.40
1.40
1.40
1.40
X
X
0.80
0.80
X
X
X
X
X
0.80
X
X
X
X
X
X
0.80
0.70
0.80
0.80
0.80
0.90
0.60
0.60
0.60
0.60
0.60
0.80
0.80
0.80
0.80
1.40
1.40
1.40
1.40
1.40
1.40
1.40
1.40
1.40
1.40
1.40
1.40
1.40
1.40
X
X
X
X
X
1.80
1.80
X
X
0.30
0.30
0.30
0.30
0.30
0.20
1.70
1.70
1.70
1.70
1.70
1.70
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Local Logic Execution Time
E
Table E-5. Axis 3 Local Logic Variable Execution Times
X- Not Applicable.
Local Logic Execution Time (In Microseconds)
Local Logic Variable Name
Strobe1_Level_3
Strobe2_Level_3
Positive_EOT_3
Negative_EOT_3
Home_Switch_3
Digital_Output1_3
Digital_Output3_3
Analog_Input1_3
Analog_Input2_3
Reset_Strobe1_3
Reset_Strobe2_3
Error_Code_3
Actual_Position_3
Strobe1_Position_3
Strobe2_Position_3
Actual_Velocity_3
Axis_OK_3
Position_Valid_3
Strobe1_Flag_3
Strobe2_Flag_3
Read
Write
1.40
1.40
1.40
1.40
1.40
X
X
0.80
0.80
X
X
0.80
0.70
0.80
0.80
0.80
1.40
1.40
1.40
1.40
X
X
X
X
X
1.80
1.80
X
X
1.70
1.70
X
X
X
X
X
X
X
X
X
Table E-6. Axis 4 Local Logic Variable Execution Times
X- Not Applicable.
Local Logic Execution Time (In Microseconds)
Local Logic Variable Name
GFK-1742A
Read
Write
Strobe1_Level_4
Strobe2_Level_4
Positive_EOT_4
1.40
1.40
1.40
X
X
X
Negative_EOT_4
Home_Switch_4
Digital_Output1_4
Digital_Output3_4
Analog_Input1_4
Analog_Input2_4
1.40
1.40
X
X
0.80
0.80
X
X
1.80
1.80
X
X
Appendix E Local Logic Execution Time
E-7
E
Table E-7. Global Local Logic Variable Execution Times
X- Not Applicable.
Local Logic Execution Time (In Microseconds)
Local Logic Variable Name
Local Logic Program Constants
Overflow
System_Halt
Data_Table_Ptr
Data_Table_sint
Data_Table_usint
Data_Table_int
Data_Table_uint
Data_Table_dint
Module_Error_Present
New_Configuration_Received
First_Local_Logic_Sweep
Module_Status_Code
CTL_1_to_32
P000-P255
D00-D07
CTL01-CTL32
E-8
Read
Write
0.50
2.40
X
0.60
2.10
1.80
2.30
2.30
3.80
1.40
1.40
1.40
0.50
0.50
0.60
0.70
1.40
X
1.30
1.80
0.70
1.70
1.70
2.20
2.20
4.00
X
X
X
X
X
0.60
0.70
1.80
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Appendix Updating Firmware in the DSM314
F
The DSM314 operating firmware is stored in on-board FLASH memory. The firmware
update is provided on a floppy disk. The PC Loader utility controls downloading the new
firmware from the floppy to the DSM314 FLASH memory and is a DOS-based program.
For Windows, Winloader is also available. PC Loader requires an IBM AT/PC
compatible computer with at least 640K ram, one floppy drive, MS-DOS 3.3 (or
higher),and one RS-232 serial port. In order to run this utility within an MS-DOS box
under Windows 3.1, Windows 95 or Windows NT, the processor should be at least a
Pentium 133. If not, the computer should be rebooted into MS-DOS mode. PC Loader
functions optimally with a hard drive with at least 1 MB available space. The Winloader
update utility requires Windows 95, Windows NT, or Windows 98. The hardware
required to run these operating systems should suffice to also run Winloader. Winloader
requires about 500Kbytes of hard disk space.
Warning
The user MUST determine that the PC is connected to a DSM (and not a
PLC CPU or other module that supports FLASH firmware upgrades) before
entering Boot mode. Failure to do so can cause loss of PLC CPU Program
and Configuration.
To Install the New Firmware, Perform the Following Steps:
1.
2.
3.
4.
Save or back up any programs or data resident in the module before performing the update
function.
Place the PLC in STOP/NOIO Mode. (Clear any faults.)
Ensure that the module’s SNP serial port baud rate is set to 19200 baud.
Using a Station Manager to PC cable, IC693CBL316, connect the appropriate serial port of
your computer (master) to the DSM302 module to be updated (slave).
DOS Update
Note: This section only applies to those running the DOS Loader update program from DOS.
For those using Windows software, refer to the next section “Windows Update.”
5. (DOS)
6. (DOS)
GFK-1742A
Insert a labeled floppy disk in drive A: or B:. Ensure that the floppy is not write
protected. Run the self-extracting archive specifying drive A: or B: as the destination
when prompted with “Unzip to folder:”.
At the C:\> prompt, type A:install (or B:install if your floppy drive is B:). The install
program will copy several files to the hard drive then invoke the PC Loader. Install
can also be run from the floppy drive directly if there is no hard drive or not enough
F-1
F
7. (DOS)
8. (DOS)
9. (DOS)
10. (DOS)
11. (DOS)
12. (DOS)
13. (DOS)
space on the hard drive. To run from the floppy, type install at the A:\> or B:\>
prompt.
From the main menu, press the F3 key to configure the correct serial port if the cable
is not connected to COM1. Press the TAB key to toggle through the options, and
ENTER to accept the displayed choice.
From the main menu, press the F1 key to attach to the DSM302 slave device.
Once the slave device is attached, the boot mode menu will appear - press F1 to enter
BOOT MODE and press the ‘Y’ key to confirm the operation. The STAT and CFG
LED’s on the front of the module should now be flashing in unison.
Once in boot mode, press the F1 key to download the new firmware.
Press the Y key to confirm the operation. The download should take about 4
minutes. If the download fails, refer below to Restarting An Interrupted Firmware
Upgrade.
When the download is complete , the PC loader will instruct you to power cycle your
module. At this time, power cycle the module. If the module is installed in an
expansion or remote rack, it is necessary to also power-cycle the main rack.
Label the unit with the installed firmware version. If the firmware is Beta or an
Engineering Release, indicate so on the label.
Windows Update (For Windows 95/NT/98, NOT Windows 3.1)
Note: This section only applies to those using the Winloader update software with
Windows 95, NT, or 98. If using the DOS operating system, see the section “DOS
Update.”
5. (WIN) Insert a labeled floppy disk in drive A: or B:. Ensure that the floppy is not
write protected. Run the self-extracting archive specifying drive A: or B: as
the destination when prompted with "Unzip to folder".
6. (WIN) Invoke the Winloader software package by double clicking on its icon located
in drive A: or B: (depending on the drive designation for the 3.5” floppy disk)
in Windows Explorer or simply execute it by going to the start menu and
selecting RUN. In the RUN window type A(or B):winloader.exe.
7. (WIN) Begin storing firmware by single clicking the “Update” button.
8. (WIN) Upon completion of the update a window will “pop up” indicating the status of
the update. If the update was successful, power cycle the PLC and indicate
that another device is NOT to be updated by left clicking on “No”. If not
successful, try changing the Settings/Update Baud rate from 38400 to 19200
and repeat the procedure.
Restarting an Interrupted Firmware Upgrade
A. Connect all cables as described in step 4 of the procedure above.
B. Power cycle the rack containing the module. If a partial or erroneous download was
performed, the module will power up with the STAT and CFG LED’s on the module
flashing in unison.
C. If you are still running the PC Loader or Winloader program on your PC, skip to step
D below; otherwise, follow steps 5 and 6 above.
D. Follow step 7 above. Note that you will automatically be placed in BOOT MODE.
E. Follow steps 9 through 12 above.
F. If the update still fails, repeat the process with a lower baud rate.
G. Label your unit with the installed firmware version.
MS-MS-DOS, Windows, and Windows NT are registered trademarks of Microsoft Corporation; Pentium is a trademark of
Intel Corporation; IBM-AT and IBM-PC are registered trademarks of International Business Machines Corporation.
F-2
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Appendix Strobe Accuracy Calculations
G
In general the accuracy of the strobe position value can be expressed as +/- 2 counts with
an additional variance of 10 microseconds. However, the actual accuracy of the strobe
position value may be better than that depending upon axis configuration, motor
acceleration during a strobe event, and the number of counts per revolution of the encoder
used. The first consideration is whether the axis configuration is Digital or Analog.
Analog Mode:
In Analog mode, when a strobe event occurs, the quadrature counter value is latched into a
holding register immediately. This means that the position capture inaccuracies are based
primarily on the input filtering and sampling delay for the strobe input which can total up
to 10 microseconds (or the number of counts that can occur in 10 microseconds). Note
that the value may be one count off based on when the strobe event occurred in relation to
when the count value changed.
Digital Mode:
In Digital mode the encoder is read as serial data. Because this data is only acquired once
every 250 microseconds, latching the position value read from the encoder will only allow
an accuracy of 250 microseconds. To overcome this limitation, the strobe event is time
stamped in relation to the last encoder position reading that occurred within the DSM314.
This value is used to estimate the axis position at the instant that the strobe event occurred
based on the actual servo axis velocity at the time of the strobe. The velocity used for the
calculation is derived from the difference in the two encoder position readings around the
strobe event (see the formula below).
Velocity = (Position Sample after Strobe) - (Position Sample before Strobe)
250 microseconds
Therefore, changes in velocity (i.e. acceleration or deceleration of the motor) between
position samples are not taken into account thus causing inaccuracies in the captured
strobe position value. For strobe events that occur during when velocity is constant during
the sampling period, the interpolation algorithm will be accurate to within one count and
the position capture inaccuracy will be primarily determined by the filtering and sampling
delays.
The following example can be used to calculate the worst case inaccuracies due to
acceleration given a particular servo motor:
Given the following values/constant for this example:
Encoder Resolution = 8192 cnts/rev
GFK-1742A
G-1
G
A = Acceleration/deceleration during the strobe event which is 250,000,000
cnts/sec2 (assumed to be constant over the entire 250µs period; Larger
acceleration values will increase the amount of error in the calculation)
Tp = Position sampling period which is 250 microseconds
VI = Initial velocity just before the strobe event which will be 0 for this example.
The change in the number of encoder counts (Cnts) for a given amount of time (t) can be
calculated using the following formula:
Pact = VI t + ½ A t2
Therefore the total number of counts to occur during the sampling period for this example
is approximately 8 counts (actual calculated values is 7.8125) or 0.343 degrees of motor
rotation.
The average velocity for the sample period given the change in position would be as
follows:
Vavg = Change in counts = 7.8125 cnts = 31250 cnts/sec
Sampling Period
250 µsec
The following formula can be used to estimate the strobe position using the velocity
derived above:
Pest = VI t + Vavg t
Therefore, the error between the estimated strobe position and the actual strobe position is
as follows:
Error = Pact - Pest
The graph below contains plots of the actual position, the estimated position, and the
resulting strobe position count error for the 250 microsecond sample period. From the
graph, it is evident that the greatest count error occurs in the middle (i.e. at 125
microseconds) of the time period.
G-2
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
G
Strobe Accuracy Calculations
0.4
0.3
Estimated assuming
constant velocity
0.2
Position (deg)
Actual
0.1
0
0
6.25 10
5
-0.1
1.25 10
4
1.875 10
4
2.5 10
4
Error
-0.2
Time (sec)
Figure G-1: Example axis position capture error due to acceleration
Since the initial velocity is equal to 0, the formula for calculating Pact can be manipulated
to determine the time that the count actually occurred at (Tact) as follows:
Tact =
2Pact
A
Likewise, the formula for estimating the strobe position (Pest ) can be solved for time (Test)
as well (assuming that the initial velocity is 0):
Test = Pest / Vavg
Using these formulas, the difference in time between when the strobe occurred and when
the reported count occurred (i.e. the effective delay) can be calculated as follows:
Effective Delay = Test - Tact
The effective delay for the maximum strobe position error (i.e. at 125 microseconds) is
equal to -62.5 microsecond. This value is negative because the estimated/reported strobe
position occurred prior to the actual position when the strobe event happened. The graph
GFK-1742A
Appendix G Strobe Accuracy Calculations
G-3
G
below represents the effective delay that would be seen across the change in position for
the sampling period in this example.
1.25 10
2.5 10
5
5
Time (sec)
3.75 10
5 10
6.25 10
5
5
5
0.05
0.1
0.15
0.2
0.25
0.3
0.35
0.4
Position (deg)
Figure G-2: Effective response time delay
Therefore, in the example above, the worst case error due to acceleration/deceleration can be
expressed as +/- 0.086 degrees (approximately 2 counts) of position or as 62.5 microseconds of
delay (given that the initial velocity is 0). Note that the DSM can not deal with fractional
units and therefor the error will be rounded to the nearest count or user unit.
The formulas for determining the strobe error due to acceleration/deceleration on a Digital axis
are as follows:
Counts_of_error =
ATp2
8
Tp(VI + A Tp)
Effective_delay =
4(2 VI + A Tp)
Where:
A = Acceleration/deceleration during the strobe event
Tp = Position sampling period which is 250 microseconds
VI = Velocity just before the strobe
G-4
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Strobe Accuracy Calculations
G
Note that the formulas above assume constant acceleration throughout the sampling period.
The formulas for determining the error for the cases where acceleration is not constant during
the sampling period are too complex for the context of this manual.
Note that an additional error as much as 10 microseconds (or the number of degrees or position
counts that can occur in 10 microseconds) may also be seen due to input filtering/sampling
delays in the hardware.
Warning
Note that user wiring and the type of device used for the strobe input may
also cause inaccuracies in the strobe value.
GFK-1742A
Appendix G Strobe Accuracy Calculations
G-5
Index
Clear Error, 5-11
CTL09 - CTL12 Output Controls, 5-11
Enable Drive / MCON, 5-12
Enable Follower, 5-13
Execute Motion Program 0 - 10, 5-11
Feed Hold (Off Transition), 5-11
Feed Hold (On Transition), 5-11
Find Home, 5-12
Jog Minus, 5-12
Jog Plus, 5-12
Reset Strobe 1, 2 Flags, 5-12
Select Follower Internal Master, 5-14
#
α Series
amplifiers, 1-12, 1-14
motor table, 1-15
motors, 1-13, 1-15
servos, 1-12, 1-14
α Series C12
motor, 1-15
%
%Q Output Bit
5 Volt Output, 5-12, 5-13
%AI Status Words
Actual Position, 5-8
Actual Velocity, 5-9
Axis 1, 2, Follower Master Error Code, 5-8
Command Block Number, 5-8
Commanded Position, 5-8
Commanded Velocity, 5-9
Module Status Code, 5-8
Strobe 1, 2 Position, 5-8
User Selected Data, 5-9
%AQ Immediate Commands
Follower Ramp Distance Make-up Time, 5-26
Force D/A Output, 5-19, 5-24, 6-6
In Position Zone, 5-21
Jog Acceleration, 5-22
Jog Velocity, 5-22
Load Parameter Immediate, 5-30
Move, 5-21
Move At Velocity, 5-18
Null, 5-18
Position Increment, 5-18
Position Increment With Position Update, 5-21
Position Loop Time Constant, 5-22
Rate Override, 5-18
Select Return Data, 4-19, 5-24
Set Configuration Complete, 5-30
Set Position, 5-19
Velocity Feedforward, 5-23
Velocity Loop Gain, 5-23
%I Status Bit
Axis Enabled, 5-4
Drive Enabled, 5-5
Drive OK (Input 4), 5-6
In Zone, 5-5
Module Error Present, 5-3
New Configuration Received, 5-3
PLC Control Active, 5-3
Position Error Limit, 5-5
Position Valid, 5-4
Program Active, 5-5
Torque Limit, 5-6
%I Status Bits
Follower Enabled, 5-6
Position Strobe 1, 2, 5-5
%Q Discrete Commands
Abort All Moves, 5-11
GFK-1742A
1
1st order to 1st order, 16-9
1st order to 2nd order, 16-9
2
nd
2 order to 1st order, 16-9
2nd order to 2nd order, 16-9
2nd order to 3rd order, 16-9
3
3rd order to 2nd order, 16-9
3rd order to 3rd order, 16-9
5
5 Volt Output %Q Output Bit, 5-12, 5-13
A
A:B Ratio, 8-3
Abort All Moves %Q Discrete Command, 5-11
Absolute Encoder
First Time Use, C-2
Use After Loss of Encoder Battery Power, C-2
Absolute Encoder Mode
Motion Mate DSM314 Power-Up, C-3
Absolute Encoder Mode, Considerations, C-2
Find Home Cycle, C-2
Position Initialization, C-2
Set Position Command, C-3
Absolute positioning, 7-21
AC Line Filter, 2-11, 2-16
ACCEL command
motion programming, 7-8
Acceleration, 7-2
Linear, 7-22
Ramp Control, Follower Axis, 8-7
S-Curve, 7-22
Time, Maximum, 7-38
Index-1
Index
Types of, 7-22
Acceleration values
calculating, 7-46
Actual Position %AI Status Word, 5-8
Actual Velocity %AI Status Word, 5-9
Amplifier
SVU digital, 1-12
Amplifiers
digital, 1-14
Appendix B
DSM302 Error Codes, A-1
Error Reporting, A-1
Appendix D
Position Feedback Devices, C-1
Appendix F
Tuning a GE Fanuc Digital Servo System, D-1
Arithmetic Operators, 11-3, 12-8
Assignment Statements, 12-2
Automatic Data Transfers
Input Status Data, 5-1
Output Command Data, 5-1
Auxiliary Terminal Board, 3-15
Assembly Drawings, 3-16
Components, 3-16
description and mounting dimensions, 3-15
Side View, 3-17
Axes
number of, table, 4-4
Axis 1 Local Logic Variable Execution Times,
E-5
Axis 1 Variables, 13-5
Axis 1, 2, Follower Master Error Code %AI
Status Word, 5-8
Axis 2 Local Logic Variable Execution Times,
E-6
Axis 2 Variables, 13-6
Axis 3 Local Logic Variable Execution Times,
E-7
Axis 3 Variables, 13-7
Axis 4 Local Logic Variable Execution Times,
E-7
Axis 4 Variables, 13-8
Axis Configuration Data, 4-10, 4-31, 4-32
Find Home Vel, 4-19
Fnl Home Vel, 4-19
FollwrEnInp, 4-21
Home Mode, 4-19
Home Offset, 4-19
Home Positn, 4-19
Intgr Mode, 4-29
Intgr TC, 4-29
MkupTime, 8-8
Neg EOT, 4-16
Overtravel Limit Switch, 4-14
Pos EOT, 4-15
Pos Err Lim, 4-27
Index-2
Pos Loop TC, 4-28
Vel Lp Gain, 4-30
Velocity at 10 Volts, 4-29
Velocity FF%, 4-29
Axis Connector Pin Assignments, 3-24
Axis Enabled %I Status Bit, 5-4
Axis Terminal Board, 3-10
Assembly Drawings, 3-13
Components, 3-13
Side View, 3-14
B
Bandwidth
defined, D-12
Basic CAM Shapes/Definition, 16-4
Bitwise Logical Operators, 11-4, 12-13
Blending Sectors, 16-9
Block #, 7-2
Block number command
motion programming, 7-9
Block Numbers and Jumps, 7-28
Boundary Conditions, 16-10
Building Your First Local Logic Program,
2-26, 10-22
C
Cable K1
α Series Connection, 2-5, 2-13
Cable K12
24 VDC to Servo Amplifier, 2-18
Cable K2
α Series Connection, 2-10, 2-16
Cable K3
220 VAC Power to β Series Amplifier, 2-16
Cable K4
Motor Power to α Series, 2-8
Cable K8
External Regeneration Resistor or Jumper, β
Series, 2-19
Cables for DSM302, 3-18
CALL command
motion programming, 7-9
Call Subroutine, 7-2
CAM and MOVE Instructions, 16-14
CAM Command, 16-11
CAM Scaling Editor and Hardware
Configuration, 16-14
CAM Specific DSM Error Codes, 16-20
CAM Types, 16-5
CAM-LOAD Command, 16-13
CAM-PHASE Command, 16-14
Catalog Numbers
Motor Encoder Cables for β Series, 2-16
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Index
Motor Power Cables, α Series, 2-8, 2-15
CFG LED, 3-2, A-18
Circular Cyclic CAM, 16-6
Clamping, Velocity, 8-5
Clear Error %Q Discrete Command, 5-11
CMOVE, 7-23
CMOVE command
motion programming, 7-10
Comm, 10-15
COMM_REQ
error detection and handling, B-5
Command Block, B-14
compared to Load Param. Immediate, B-1
example, B-17
FT (fault) output, B-7
memory code table, B-16
Status Word codes, B-4
Status Word monitoring, B-5
UDT, B-9
verifying, B-5
verifying example, B-22
COMM_REQ example
UDT, B-12
COMM_REQ memory table
Parameter Load type, B-16
Command Block Number %AI Status Word,
5-8
Command types
motion program, 7-2
Command, Dwell, 7-27
Command, Force D/A, 6-6
Command, motion
usage examples, 7-21
Command, Velocity, 6-5
Command, Wait, 7-28
Commanded Position %AI Status Word, 5-8
Commanded Velocity %AI Status Word, 5-9
Commands
Motion program, 7-8
Commands, Position Increment, 6-7
Comments, 11-2, 12-4
COMMREQ Command Block, B-2, B-14
COMMREQ Ladder Instruction, B-2, B-7
Communications Request. See COMM_REQ
Communications Request (COMMREQ), B-2
Conditional Jumps, 7-29
Conditional Statements, 12-3
Conditions Which Stop a Motion Program, 7-4
Configuration
DSM314 module), 4-1
Configuration Parameters, 4-2
Configuring the Motion Mate DSM314, 4-2
Configuring the Rack/Slot, 4-1
Connecting Motor to Servo Amplifier Terminal
Strip
GFK-1742A
Index
α Series, 2-9, 2-15
Connecting the Local Logic Editor to the
DSM, 2-25, 10-21
Connections, User, 3-28
Connector
CX11, 2-19
CX4, 2-11
Hirose 20-pin PCR, 2-18
JF1, 2-10
JS1B, 2-5, 2-13
JX5, 2-18
K12, β Series, 2-18
Considerations, Absolute Encoder Mode
Position Initialization, C-2
Considerations, Incremental Encoder Mode,
C-1
Considerations. Absolute Encoder Mode, C-2
Find Home Cycle, C-2
Set Position Command, C-3
Continuous Move, 7-2
Continuous Move (CMOVE), 7-23
Control Sequence, 9-5
CTL Bit Configuration, 14-1
CTL01-CTL24 Bit Configuration Selections,
14-4
CTL09 - CTL12 Output Controls %Q Discrete
Command, 5-11
CX4 Connector, 2-11
D
D/A Command, Force, 6-6
Data limit variables
computing, 4-30
Digital Outputs / CTL Variables, 13-4
Digital Servo Motors, list of, 4-24
Divide By Zero, 12-17
Double Precision 64 Bit Registers, 13-3
Downloading Your First Local Logic Program,
10-39
Drive Enabled %I Status Bit, 5-5
Drive OK (Input 4) %I Status Bit, 5-6
Drive Ready Input
enable/disable parameter, 4-15
DSM302 Hardware Description, 3-1
DSM302 Module
Installation, 3-5
DSM302 Module per System, 3-5
Dwell, 7-2
Dwell Command, 7-27
DWELL command
motion programming, 7-10
Index-3
Index
E
Electronic CAM Overview, 16-1
EN1 LED, 3-2, A-18
EN2 LED, 3-2, A-18
EN3 LED, 3-2, A-18
EN4 LED, 3-2, A-18
Enable Drive / MCON %Q Discrete
Command, 5-12
Enable Follower %Q Discrete Command, 5-13
Enabling and Disabling Local Logic, 12-6
Enabling Follower with External Input, 8-6,
8-7
Encoder 3
Master Input, 8-2
Encoder, Incremental Quadrature, C-3
End of Program, 7-2
ENDPROG command
motion programming, 7-11
ENDSUB command
motion programming, 7-11
Error Code Format, A-2, A-13
Error messages
Motion Editor, 7-49
Error messages, Motion
troubleshooting, 7-53
E-STOP
α Series Connection, 2-11, 2-17
Example, Follower Combined with Jog, 9-1
Example, Follower Motion
Changing the A B Ratio, 8-5
Following Encoder 3 Master Input, 8-2
Following the Internal Master, 8-3
Sample A B Ratios, 8-4
Unidirectional Operation, 8-6
Velocity Clamping, 8-5
Example, Follower Motion Combined with
Motion Program, 9-5
Example, Standard mode
Changing the Acceleration Mode During a
Profile, 7-26
Combining PMOVEs and CMOVEs, 7-25
Dwell, 7-27
Feedhold, 7-40
Feedrate Override, 7-41
Hanging the Motion Mate DSM314 When the
Distance Runs Out, 7-26
Jump Followed by PMOVE, 7-35
Jump Stop, 7-34
Jump Testing, 7-31
JUMP Without Stopping, 7-33
Maximum Acceleration Time, 7-38
Multiaxis Programming, 7-42
Normal Stop before JUMP, 7-32
Not Enough Distance to Reach Programmed
Velocity, 7-26
Index-4
S-Curve, Jumping After the Midpoint of
Acceleration or Deceleration, 7-35
S-Curve, Jumping Before the Midpoint of
Acceleration or Deceleration, 7-36
S-Curve, Jumping to a Higher Velocity While
Accelerating or Jumping to a Lower Velocity
While Decelerating, 7-37
Unconditional Jump, 7-29
Execute Motion Program 0 - 10 %Q Discrete
Command, 5-11
Executing Your CAM Based Motion Program,
16-49
Executing Your First Local Logic Program,
10-42, 10-54
External Input for Enabling the Follower, 8-6,
8-7
F
Faceplate Output Bit Configuration, 14-6
FAX-Back System, 2-39
Features of the DSM302, 1-1
Easy to Use, 1-1
High Performance, 1-1
Versatile I/O, 1-2
Feed Hold (Off Transition) %Q Discrete
Command, 5-11
Feed Hold (On Transition) %Q Discrete
Command, 5-11
Feedback Devices, Types of
Incremental Quadrature Encoder, C-3
Feedhold with the Motion Mate DSM314, 7-40
Feedrate Override, 7-41
Field Wiring Connections, 3-28
File, 10-10
Find Home %Q Discrete Command, 5-12
Find Home Cycle, C-2
Find Home routine, 6-2
Find Home Vel (Find Home Velocity), 4-19
Firmware upgrade
cable IC693CBL316, 4-7
First Time Use, Absolute Encoder, C-2
Fnl Home Vel (Final Home Velocity), 4-19
Follower
Axis Acceleration Ramp Control, 8-7
Ramp Distance Make-up Time %AQ Immediate
Command, 5-26
Follower Enabled %I Status Bit, 5-6
Follower Motion Combined with Motion
Programs, 9-2
Follower Ramp
distance make-up time, 8-8
FollwrEnInp (Follower Enable Input), 4-21
Force D/A Command, 6-6
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Index
Force D/A Output %AQ Immediate Command,
5-19, 5-24, 6-6
Function ABS, 12-12
Functional Block Diagrams for the 2-Axis
DSM302
Axis 1 Master Source Encoder 3/Internal
Master, 1-11
Axis 2 Master Source Analog Input, 1-11
G
Gain Scheduler Program Example, 11-8
Global Local Logic Variable Execution Times,
E-8
Global Variables, 13-8, 13-9
Ground Connection, Faceplate Shield, 3-4
Grounding
DSM314 system, 2-22
I/O Cable, 3-21
Shield Ground Clamp, 3-23
Grounding Systems
Frame Ground, 2-23
System Ground, 2-23
H
Hardware Description, 3-1
Help, 10-18
GE Fanuc FAX-back system, 2-39
GE Fanuc Web site, 2-39
Help Numbers
telephone number table, 2-39
Hints, System Troubleshooting, D-16
Hirose
20-pin PRC connector, 2-18
Home Cycle, 6-1
Home Mode (Find Home Mode), 4-19
Home Positn (Home Position Offset), 4-19
Home Positn (Home Position), 4-19
Home switch
startup validation, D-1
Home Switch Mode, 6-1
Hot Line
telephone help numbers, 2-39
I
I/O Cable Grounding, 3-21
I/O Circuit Function and Pin Assignments, 324
I/O Circuit Identifiers and Signal Names, 3-24
I/O Circuit Types, 3-8
I/O Connectors, 3-3
I/O Specifications, 3-36
24v DC Optically Isolated Output, 3-42
GFK-1742A
Index
5v Differential Outputs, 3-41
5v Power, 3-46
Differential +/- 10v Analog Inputs, 3-44
Differential Single-Ended 5v Inputs, 3-37
Optically Isolated 24v Source/Sink Inputs, 3-39
Optically Isolated Enable Relay Output, 3-43
Single Ended +/- 10v Analog Output, 3-45
Single-Ended 5v Inputs/Outputs, 3-40
Single-Ended 5v Sink input, 3-38
IC693ACC335
terminal board, 3-10
IC693ACC336
aux. axis terminal board, 3-15
IC693CBL316
cable for firmware upgrade, 4-7
IC800CBL001/002
cable connections, 3-30
Illustration of the DSM302 Module, 1-1
Immediate Commands Using the 6Byte
Format, 5-17, 5-18
In Position Zone %AQ Immediate Command,
5-21
In Zone %I Status Bit, 5-5
Incremental Encoder Mode Considerations,
C-1
Incremental positioning, 7-21
Incremental Quadrature Encoder, C-3
Indicators, LEDs, A-17
Installing the Motion Mate DSM302
Recommended Procedure, 3-5
Interaction of Motion Programs with CAM,
16-11
Interface
machine, 1-8
operator, 1-7
Internal Master Velocity Generator, 8-3
Interpolation and Smoothing, 16-8
Intgr Mode (Integrator Mode), 4-29
Intgr TC (Integrator Time Constant), 4-29
Introduction to Electronic CAM Programming,
16-22
J
Jerk Limited Acceleration Equations, 7-48
JF1 Connector, 2-10
Jog
example, 2-38
Jog Acceleration %AQ Immediate Command,
5-22
Jog Minus %Q Discrete Command, 5-12
Jog Plus %Q Discrete Command, 5-12
Jog Velocity %AQ Immediate Command, 5-22
Jogging with the DSM302, 6-5
JS1B Connector, 2-5, 2-13
Index-5
Index
Jump, 7-2
JUMP command
motion programming, 7-11
Jump Stop, 7-34
Jump Testing, 7-31
Jumping Without Stopping, 7-33
Jumps and Block Numbers, 7-28
Jumps, Conditional, 7-29
Jumps, S-CURVES, 7-35, 7-36, 7-37
Jumps, Unconditional, 7-29
JX5 Connector, 2-18
K
K1 Cable to DSM314
α Series Connection, 2-5, 2-13
K12 Cable
β Series, 24 VDC to Servo Amplifier, 2-18
K2 Cable
α Series Connection, 2-10, 2-16
Prefabricated Cable Part Numbers, 2-16
K3 Cable
β Series Connection, 2-16
K4 Cable, Motor Power
α Series Connection, 2-8, 2-15
Part Numbers, 2-15
K8 Cable
External Regeneration Resistor or Jumper to β
Series, 2-19
Keywords and Operators, 12-5
Kinematic equations, 7-46
L
Layout
changing screen, 10-20, 15-3
LED Indicators
DSM302 Module, A-17
Line Filter, AC, 2-11, 2-16
Linear Acceleration, 7-22
Linear Cyclic CAM, 16-5
LOAD command
motion programming, 7-12
Load Parameter, 7-2
Load Parameter Immediate %AQ Immediate
Command, 5-30
Local Logic Conditional Operation Execution
Times, E-4
Local Logic Editor Window Layout, 10-20
Local Logic Execution Timing Data, E-1
Local Logic Math/Logical Operation execution
times, E-4
Local Logic Outputs/Commands, 12-6
Local Logic Programming Examples, 11-5
Index-6
Local Logic Runtime Errors, 12-17
Local Logic System Variables, 13-2
Local Logic User Data Table, 13-4
Local Logic Variable Types, 13-1
Logic Program, 10-13
Logicmaster 90-30 Configuration
of Controller Module, 4-1
Loss of Encoder Battery Power, C-2
M
Machine Control, 2-1
Machine Emergency Stop, 2-11
Main Window Menus, 10-10
Master
Sources, 8-2
Master Axis Source, 4-21
MaxAccUu
calculating, 5-16
Maximum Acceleration Time, 7-38
MaxPosnUu
calculating, 5-16
MaxVelUu
calculating, 5-16
MkupTime (Makeup Time), 8-8
Mode
absolute encoder, C-2
analog wiring, 2-21
digital series encoder, C-1
follower, 1-9, 1-11
incremental encoder, C-1
standard, 1-9, 1-10
Mode, Home Switch, 6-1
Modes, Move + and Move –, 6-3
Modes, Serial Encoders, C-1
Module Configuration
DSM314, 4-1
Module Configuration Data
DSM314, 4-3
Module ErrorPresent %I Status Bit, 5-3
Module Status Code %AI Status Word, 5-8
Modules per System, Restrictions, 3-5
Motion Mate DSM302
Features of, 1-1
Illustration of, 1-1
Motion Mate DSM314
Power-Up, C-3
Motion Mate DSM314 Configuration Data
Motor Model, 2-34
Motion Mate DSM314 System
Controller Module, 2-4
HMI (Human Machine Interface), 2-1
I/O, 2-1
Illustration of, 2-2
Motors, 2-1
Recommendations, 2-40
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Index
Servo Amplifiers, 2-1
Turning Power On, 2-24
Motion program
command types, 7-2
commands, 7-8
format, 7-5
key words, 7-6
structure, 7-17
syntax and commands, 7-6
variables, 7-7
Motion Program, Conditions Which Stop, 7-4
Motion programs
multi-axis, 7-2
single-axis, 7-1
Motion subroutine
structure, 7-17
Motor direction
startup validation, D-1
Motor Power Cable
Prefabricated, Part Numbers
to α Series, 2-8, 2-15
Motors
α Series, 1-13
β Series, 1-15
Move %AQ Immediate Command, 5-21
Move At Velocity %AQ Immediate Command,
5-18
Move at Velocity Command, 6-5
Move, Continuous (CMOVE), 7-23
Move, Positioning (PMOVE), 7-23
Move+ and Move – Modes, 6-3
Moves, Programmed, 7-25
MultiAxis Programming, 7-42
N
Neg EOT (Negative Software End of Travel),
4-16
New Configuration Received %I Status Bit,
5-3
New CTL bits CTL17-CTL32, 14-2
Non-Cyclic CAM, 16-5
Normal Stop Before JUMP, 7-32
Null %AQ Immediate Command, 5-18
Numeric Constants, 12-1
O
OK LED, 3-2, A-17
Operation, Unidirectional, 8-6
Operator -, 12-9
Operator *, 12-9
Operator /, 12-10
Operator +, 12-8
Operator BWAND, 12-13
GFK-1742A
Index
Operator BWNOT, 12-15
Operator BWOR, 12-14
Operator BWXOR, 12-14
Operator MOD, 12-11
Operators, 11-3
Other Considerations, 6-7
Out of Sync, 4-27
Overflow Status, 12-17
Override, Feedrate, 7-41
Overtravel inputs
startup validation, D-1
Overtravel Limit Switch parameter, 4-14
P
Parameters in the Motion Mate DSM314, 7-44
Parse Errors, 12-20
Parse Warnings, 12-22
Pin Assignments
Servo Axis 1 and 2, 3-25, 3-26
Terminal Board Assemblies, 3-11
Pin Assignments for Axis Connectors, 3-24
PLC Control Active %I Status Bit, 5-3
PMOVE, 7-23
PMOVE command
motion programming, 7-12
Pos EOT (Positive Software End of Travel),
4-15
Pos Err Lim (Position Error Limit), 4-27
Pos Loop TC (Position Loop Time Constant),
4-28
Position Error Limit %I Status Bit, 5-5
Position Increment %AQ Immediate
Command, 5-18, 5-21
Position Increment Command, 6-7
Position Initialization, C-2
Position Loop Time Constant %AQ Immediate
Command, 5-22
Position Strobe 1, 2 %I Status Bits, 5-5
Position Valid %I Status Bit, 5-4
Position values
calculating, 7-46
Positioning Move, 7-2
Positioning Move (PMOVE), 7-23
Positioning, Absolute, 7-21
Positioning, Incremental, 7-21
Power On Check List, 2-24
Power On Sequence, 2-24
Prerequisites for Programmed Motion, 7-4
Program Active %I Status Bit, 5-5
PROGRAM command
motion programming, 7-13
Program Motion Commands
Type 1
Index-7
Index
Call Subroutine, 7-2
Jump, 7-2
Type 2
Acceleration, 7-2
Block #, 7-2
Null, 7-2
Velocity, 7-2
Type 2
Load Parameter, 7-2
Type 3
Continuous Move, 7-2
Dwell, 7-2
End of program, 7-2
Positioning Move, 7-2
Wait, 7-2
Program, motion
structure, 7-17
Programmable Limit Switch Program
Example, 11-9
Programmed Moves, 7-25
Programming, multiaxis, 7-42
R
Rack/Slot Configuration, 4-1
Rate Override %AQ Immediate Command,
5-18
Ratio
A:B, 8-3
Relational Operators, 11-4, 12-16
Requirements, 16-22
Reset Strobe 1, 2 Flags %Q Discrete
Command, 5-12
Resonance
defined, D-12
Response Methods, A-2
S
Scaling
example, 4-12
Scan time
contribution, 1-6
Schematics, Simplified, 3-36
Screen
changing layout, 10-20, 15-3
S-Curve Acceleration, 7-22
S-Curve Acceleration Equations, 7-48
S-CURVE Jumps, 7-35, 7-36, 7-37
Select Follower Internal Master %Q Discrete
Command, 5-14
Select Return Data %AQ Immediate
Command, 4-19, 5-24
Serial Communications Connector, 3-3
Index-8
Serial Communications Port Configuration
Data, 4-6
Serial Encoder Modes, C-1
Servo Amplifier, α Series
Connecting 220 VAC 3 Phase Power, 2-11, 2-16
Connecting 24 VDC, 2-18
Connecting External Regeneration Resistor or
Jumper, 2-19
Connecting Machine Emergency Stop, 2-11
Connecting the E-STOP, 2-17
Connecting the Motor Encoder, 2-10
Connecting to Line Filter, 2-17
Connecting to Machine Emergency Stop, 2-17
Connection to Motion Mate DSM314, 2-13
Connection to Motor Encoder, 2-16
Connection to Motor Power Cable, 2-8
Servo Axis 1 and 2 Pin Assignments, 3-25,
3-26
Servo Control, 2-1
Servo Motors, Digital, 4-24
Set Configuration Complete %AQ Immediate
Command, 5-30
Set Position %AQ Immediate Command, 5-19
Set Position Command, C-3
Setting the Configuration Parameters, 4-2
Settings, 10-14
Shield Ground Clamp, 3-23
Shield Ground Connection, 3-4
Signal Names, 3-24
SL Series
servos, 1-16
SNAP Function and CTL Bit Assignments,
14-5
Sources, Master, 8-2
Specifications, I/O, 3-36
Startup
analog servo system, D-14
troubleshooting, D-3
Statements, 11-1, 12-2
Status LED, 3-2, A-17
Status Word codes
table of codes, B-4
Stop Before JUMP, Normal, 7-32
Strobe 1, 2 Position %AI Status Word, 5-8
SUBROUTINE command
motion programming, 7-14
Subroutine, motion
structure, 7-17
Subroutines, 7-28
single-axis, 7-1
Sub-routines
multi-axis, 7-2
SVU amplifier, 1-12
SYNC block command
motion programming, 7-15
Motion Mate™ DSM314 for Series 90™-30 PLCs User's Manual – January 2001
GFK-1742A
Index
Sync, Out of, 4-27
Synchronization of CAM with External Events,
16-19
Syntax Errors, 12-19
System Requirements, 10-5
System Troubleshooting Hints, D-16
System_Halt variable, 13-3
T
Terminal board
quick selection table, 3-9
Terminal Board and Cable Connections
Illustration of, 3-19
Terminal Board Assemblies
Update time
servo loop, 1-5
User Connections, 3-28
User Selected Data %AI Status Word, 5-9
Using the Local Logic Editor, 10-7, 10-43
V
Variables, 11-2, 12-2
Vel Lp Gain (Velocity Loop Gain), 4-30
VELOC command
motion programming, 7-15
Velocity, 7-2
Clamping, 8-5
Generator, Internal Master, 8-3
Terminal Board Assemblies, Servo Auxiliary
Terminal Board, 3-15
Terminal Board Pin Assignments, 3-11
Terminal Board, Auxiliary, 3-15
Terminal Board, Axis, 3-10
Terminal Boards, 3-8
Terminal Strip, Servo Amplifier
Velocity at 10 Volts, 4-29
Velocity Command, Move at, 6-5
Velocity Feedforward %AQ Immediate
Command, 5-23
Velocity FF% (Velocity Feed Forward Gain),
4-29
Velocity Loop Gain %AQ Immediate
Command, 5-23
Velocity values
Terminology, Definitions of
VersaPro
Converting From DIN Rail to Panel Mounting,
3-13, 3-16
α Series, 2-9, 2-16
Actual Position, 1-10
Actual Velocity, 1-10
Commanded Position, 1-10
Commanded Velocity, 1-10
Position Error, 1-10
Testing, Jump, 7-31
Time-Based CAM motion, 16-14
Toolbars, 10-18
Torque Limit %I Status Bit, 5-6
Torque Limiting Program Example, 11-6
Trapezoidal velocity profile calculations, 7-47
Triangular Velocity Profile Equations, 7-48
Trigger Output Based Upon Position Program
Example, 11-10
Troubleshooting Hints, System, D-16
Tuning
analog servo, D-14
digital servo, D-1, D-4
response curves, D-6
calculating, 7-46
version requirements, 4-1
View, 10-12
W
Wait, 7-2
Wait Command, 7-28
WAIT command
motion programming, 7-16
Warning messages
Motion Editor, 7-49
Warning messages, Motion
troubleshooting, 7-53
Watchdog Timeout Warning / Error, 12-18
Whitespace, 12-4
Window, 10-17
Windowing Strobes Program Example, 11-12
Wiring Connections, 3-28
Tuning a GE Fanuc Digital Servo System, D-4
Tuning Procedure for a Digital Servo, D-5
Types of Acceleration, 7-22
U
UDT COMM_REQ, B-9
example, B-12
Unconditional Jumps, 7-29
Unidirectional Operation, 8-6
GFK-1742A
Index
Index-9

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

Download PDF

advertisement