Compumotor Division Parker Hannifin Corporation
Compumotor Division Parker Hannifin Corporation
-----------------------------------------------------------~
o
-II-
o
o
Compumotor Division
Parker Hannifin Corporation
PIN 88-010473-01 B
CONTENTS
TABLE OF CONTENTS
TABLE OF C:ONTENTS ............................................................................ 1
List Of Figures ................................................................"." ........... ;..........................~
List Of '"ables ...........................................................................................................",
How To Use This Manual ............................................................................................v
Assumptions ....................................................... "........................................v
Contents of This Manual. ....................................... "......................................v
Installation Process Overview .....................................................................................vi
Developing Your Application ........................................................................~
Conventions ....................................................................."......................................VI
Using Commands ..........................................................".............................vi
Highlighted Text ..........................................................................................vi
Related Publications ................................................................... ".............................vi
CHAPTER 1. INTRODUCTION .................................... " .......................... 1
Product Description .................................................................................................1
Product Features ............................................................... "....................................1
Theory of Operation ................................................................................................1
CHAPTER 2. GETTING STARTED ............................... " .......................... 5
What You Should Have ...........................................................................................5
Decoder Resolution .....................................................................................5
Configuring the System ...............................................................................6
Decoder.................................................................................................................6
Decoder DIP Switch and Jumper Locations ..................................................7
Decoder Default Settings ............................................................................9
Description of DIP Switch Functions.............................................................9
Decoder RS-232C Interlace ...... ".................................................................11
Decoder RS-42214S5 Interlace ....................................................................13
Decoder AX-A Indexer/Drive Interlace ..........................................................14
Decoder JSI Controller Interface ..................................................................1 5
-1 Decoder ................................................................................................16
Decoder .......................................... ".................... "....................................17
CHAPTER 3. INSTALLATION ............................................................... 19
Environmental Considerations ................. "...............................................................19
Mounting ................................................................................................................19
Panel Layout Guidelines ..............................................................................19
Decoder Mounting ......................................................................................20
Encoder Mounting .......................................................................................21
System Connections ..................................................... "........................................21
Wiring Guidelines .........................................................................................21
- Cabling ............................................................."........................................22
Power Supply .......... :·...............................................................................................22
CHAPTER 4. APPLICATION DESIGN ..................................................... 23
Interlace Modes .................... _.................................................................................23
Application Considerations ...........................................................................24
AL Operation with a PLC .......................... "..............................................................24
Parallel Output Control ................. "................................................................24
Explanation of Parallel Output Examples ...................................................................25
S-Bit Data Output .......................................................................................................26
Interpreting 8-Bit BCD Output......................................................................28
Interpreting 8-Bit Binary Output ....................................................................29
16-Bit Data OUtput ...................................................................................................3 0
Interpreting 16-Bit BCD Output. .....................................................................31
Interpreting 16-Bit Binary Output .................................................................32
- II AL ENCODER USER GUIDE
lNDEX ....................................................................... 81
11 • • • • • • • • • • • • • • • • • • • • • • • • • • •
CONTENTS 1\1
LIST OF FIGURES
Figure 1·1. Absolute Encoding Disk .................,.......................................................2
Figure 1-2. Cross·Section Sensing Circuit .,..............................................................2
Figure 1-4. Encoder Block Diagram ................. ".......................................................3
LIST OF T'ABLES
Table 2-1. Decoder Box Power &Options Summary ...................................................5
Table 2-2. Ship Kit list (-1 Decoder box) ....... ,...........................................................6
Table 2-3. Decoder Box Default DIP Switch Settings ................................................9
Table 2-4. Special Configuration DIP Switch Settings .........................................:......1 0
How To Use This The manualls deSigned to help you InStall. develop. and
maintain your system. Each chapter begLns with a list of
Manual specific objectiVes that should be met after you have read the
chapter. nus section is Intended to help you find and use the
in!onnation in this manual.
Assumptions 1bJs user guide assumes that you have the sk111S or
fundamental understanding of the following in!ormatton.
• IBM (or IBM-Compatible) computer experience
• Programmable logic controller (PLC) experience
• The d.J.fferences between BCD and binary output
• Basic electrOniCS concepts (voltage. switches. current. etc.)
With thiS bastc level of understanding. you wU1 be able to
effectiVely use this manual to Install. develop. and maintain
your system.
Contents of This This user gUide contains t.he fonowing in!ormaUon.
Manual
Chapter 1: TIlis chapter provides a descr1ptlon of the product and a brief
Introduction account of Its specific features.
Chapter 2: 1b1s chapter contains a detailed 11st of the items you should
Getting Started have received with your AL shipment It will help you to
become familiar with the system and ensure that each
component functions properly. You will learn how to
configure the system properly in thiS chapter.
Ct1lapter 3: ThiS chapter prov1des InStrucUons for you to properly mount
Installation the system and make all electrical connecUons. Upon
completion of this chapter. your system should be completely
installed and ready to perform basic operations.
Chapter 4: 1b1s chapter will help you custOmize the system to meet your
Application application needs. Important application considerations are
Ollslgn discussed. Sample applications are provided.
Chapter 5. This chapter discusses the X SerIes commands that an:
Software applicable to the AL. It Is dMded into two sections. The first
Reference secUon explains command syntax and parameters that affect
command usage. The second section contains an alphabetical
lJst.lng of all commands. with a syntax and command
description for each cozmnand. Examples are provided for
each command.
Chapter 6: This chapter contaJns in!ormaUon on system spec1flcations
Hardware (dimensions and perfonnance). Th.ls chapter may be used as a
Refbrence quick-reference tool for proper switch settings and I/O
connections.
Chapter 7: 1'h1s chapter describes Compumotor's recommended system
Maintenance & maintenance procedures. It also provides methods for
Troubleshooting Isolating and resolving hardware and software problems. A
lJst of diagnostic codes 15 Included In this chapter.
CONTENTS vII
Conventions To help you understand and! use this user guide effectively. the
conventions used throughout this manual are explained in
thiS section.
Using Whenever you enter a command on your keyboard. you must
Commands enter a carnage return (cr] to prompt the system to process the
command. If you are using an IBM computer. an IBM-
compatible computer. or a terminal. you can send a carriage
return by pressing the Enter key. This will activate
processing. In this user guide. you will not be reminded to
enter the carriage return. Generally. aU system responses
provide a fer} and Une feed [lfl. The system only recognizes
upper-case charocters.
Highlighted Text Italics are to be llsed to set off important material. Refer to the
example below.
Example: Outputs 1 and 2 are user programmable. Do not use
outputs 3 and 4.
CHAPTER 1. INTRODUCTION
Chapter Objectives The informatlon in this chapter will enable you to:
• Understand the product's bastc functions and features
• Understand lbasic motion control concepts and apply
them to your application
• Programmable resolutions
• Multiple encoders may be multi-dropped via RS-422/485
• Microprocessor monttolr8 for errors and sensor failure
• Compatible with AX-A microstepp1ng indexerI drive (only
when used With a !ow-l1esolution -1 EncoderJ
Theory of The AL linear encoder 15 a. l'Otary absolute encoder that has Its
Operation shaft replaced with a pinion and rides on a rack. The output
data is obtained when Ught shines through a disk and is
detected by a photo-transistor. Figure I-lis a top view ofthJs
disk (whe1":' the IJght sou.rces will be atmed). The disk is
constructed of metal and is arranged in concentrtc tracks.
Each track has an independent LED. and photo-transistor
parallel to the disk. ThiS encoder disk has each track phased
in a binary ratio to the next. The inside tracks are coarser.
and the outs1de track has the finest resolution.
2 .AL ENCODER USER GUIDE
Shaft
....__ Encoder
Disk
Encoder Head --
.... Decoder Interface
.....----,--
•• 1 Decoding
.1
SerIal
Scaling R8-232C
• 1 Error Check RS-4221485
Data Latch Parallel
. 1 Multiply Binary
BCD
16 Bit
8 Bit
Chapter Objectives The informatiOn in this chapter w1l1 enable you to:
• Verify that each component of your system has been
delivered safely
• Become familiar with system components and their
interrelationships
• Ensure that each component functions properly by bench
testing
• Configure the system properly
What You Should You should inspect your /U., System upon receipt for obvious
Have damage to its shipping container. Report any such damage to
the shipping company as soon as possible. Parker
Compumotor cannot be held responsible for damage Incurred
in shipment.
(120VAC) 1. RS·232C
2. RS·422/485
3. AX·A Indexer/Drive
4. Digital Servo Controller (JSI)
5. 8·Bit Parallel
6. 16·Bit Parallel
-
Table 2-1. Decoder Box Power & Options Summary
Decoder The decoder box (refer to FIgure 2-1) provides several features.
• Two programmable outputs
• Switch-selectable options
• General status LEDs
The folloWIng items should be present and In good condition.
Part/Quantity Description
- Part •
AL Encoder Head wllntegral Pinion This head will include a 10' armored cable if you 72-00S1 78-1 0
(1 ) are using a rack under 64-. A 20' armored cable n-OOS178-20
will be included if you are using a rack greater
than 64-. This cable M,iff already be installed
into the pinion head.
COMPUMOTOR
ABSOLUTE ENCO E
015 UNE
014 NEUT
013 GNO
012
011
010
DI
RX
Tx ~
;en
08
07
De
GND W
Tx·
Tx+ ~
..
05 Rx· :.
04
D3
•
Rx+ CJI
A+
02 .. A·
. 01 B+
B-
" . A1
DO
AO
DR
DV
DE
o POWER
OUT1
OUT2
o STATUS
:i OPTo-
:: ANLG
. GND
o
ENCODER
INPUT
I Parkeij
Decoder DIP To properly configure the decoder Cor your appUcatlon. you
Swll'ch and must set the DIP switches andJumpers correctly. To gain
access to the DIP switches and Jumpers Collow the steps
Jumper described In Figure 2-2 •
Locations
",. ~8_~A.;.;;L~E~N..;...CO..;...D.;..-E_R_U;.....S_E_R-.;G_U_ID_E_ _ __
Remove four screws from the sides of front panel. Remove two screws from the back of the unit.
1 2
COMPUMOTOR
1 --I.~ ABSO-l1TE e..c:ODEFIL .....1 - - - 2
1-+-II-~ ..
A
V
0·· ·
..
3----.... I
J
....
..1 - - 4
Gently pull the front panel and the attached boards Fac;ng the front pan.', tho DIP sw;tche,
3 from the encoder housing. 4 are to the left and the jumpers to the right.
COMPUMOTOR
Front Panel DIP Swltche. ABSO..lJ'TE E/ICOO Jumpers
Decoder Housing
~ .t.
/
-:;:.:
o
o
I
Side VIew
Decoder Default Refer to DIP switches marked 53 on the board (near the top of
Settings ~e board).
Switch II OFF ON
--
51 RS·232C* RS-4221485
52 Full Duplex* Half Duplex
53 CCW IDlrectlon* CW Direction
54 a-Bit Parallel 18·81t Parall.l·
S5 Blna,y (Hex)* BCD (Decimal)
S6 AL Encode'-
S7 Blnlry Mod.- Mode Select
sa Blnl'y Mod.- Mod. Select·
Switch 1 This sWitch allows you to select one of the two forms of serial
communication available with this product-RS·232C (OFF)
or RS-422/485 (ON). These fonns of communication are
ElectrOniC Industry Association (EW standards for
eqUipment that employs serial binary data exchange. For
more infonnation on the standards associated with these
modes of communication. contact:
ElA Eng1neering Department
Standard Sales
2001 Eye Street N.W.
Washtngton. D.C. 20006
(202) 457-4966
• Switch 2 'Ib1s switch allows you to select full duplex (OFF) or half-
duplex (ON) transmission (ThLs switch should be ON only if
you are usilng RS-422/485 convnwticattons or AX·A mode).
BaH Duplez mode allows you to transmit and receive data. but
not Simultaneously In both dJrecUons. This mode of
transm1ss1on 15 performed over two Wires and 15 often
referred to as two-way alternate transmission.
Switch 3 nus switch allows you to detenn1ne the encoder's dIrecUon.
When the switch is OFF. the encoder count increases when the
encoder head moves In the CCW direction while you are facing
the pln1on. When the SWItch is ON. the encoder count
increases when the encoder head moves In the CW d1recUon
while you are facing the pinion. This swttch does not affect
incremental encoder output. U you change this switch setting.
you wUl change (complemertt) t11e output encoder posttlon.
10 AL ENCODER USER GUIDE
SwItch 4 This switch allows you to seXect one of the two fonns of
parallel cornmunJcation available with this product-8-blt
(OFF) or IS-btt (ON).
Switch 5 This switch allows you to select the form of your output data-
binary (OFF) or BCD (ON) for the parallel1nterface.
For the serJallnterface. you may select the Hexadecimal
output format If'you turn 55 OFF. You may select the Decimal
output format by tumJng 55 ON. If S5 Is OFF (with a sertal
interface). you may also select Decimal output with the SP
(Define Data Output) command. This command overrtdes the
DIP Switch setting. With a ser1al1nterface. DIP Switch 55 Is
only operable when the SP command Is set to g. Table 6-2
(Chapter 6. Hardware Reference) shows the relationships
between decimal,. BCD. binary. and hexadecimal numbers.
Switch 6 ThIs SWitch Is set for you (at 1the factory) to match the type of
encoder that you purchased. For AL Encoder. this switch must
always be on.
Switches 7 & 8 These Switches allow you to operate your system 1n a special
confJgurauon (AX-A Drive and JSI Controller compatibUlty).
Refer to Table 2-4 Cor the appropriate DIP switch settings to
make your system compatible with these products.
S7 Si8 Function
.]
JU4
o.scrlptlon of symbol.:
,. • ·1
Jumper IFll"S
Host Computer
-1 Decoder or Terminal
Pin" Function
,, .....
~
32 AX TX
33 1)( AX
34 GND GND
..... ··... ...•...•...... ....
~ ~ ~
SHIELD
51 52 53 S5 56 S7 58
x z z z I x x
Z = Switch setting based on configuratIon, refer to Table 2-3.
Host Computer
·1 Decoder or Terminal
Pin" Fundion
.......'"
35 TX-
36 TX+
..........
.-
,,-
o
0
0
0
0
•
,,-
37 AX- ,,- ~ - .......... TX-
38 RX+ ,,-
·: ..·· - ,,-
~. TX+
. . . . . . . . . . ,................................ ill' . . . . . . . . . . .
SHIELD I
51 52 53 54 55 S6 57 58
z--
I~ z I - I
x
::FI x z z x x
Z = Switch setting based on configuration, refe' to Table 2-3.
AX-A Encoder
-1 Decoder Connector
Pin , Function ......
· . Function Pin'
34 GND - '
.......... ·· ., Common 2
35 TX-
-
5EI- 10
-'
~ __
36 TX+ ....,-~-----~~----,--<: 5EI+ 9
·· ·· -
,
39 A..· ..........
-'
~ ---<: CHA+ 3
,
· --<-
···,, ···,
40 fir
..........
.- CHAo 4
,,- CHB+
41 B+ -' ·· ·· ; - 5
42 S-
-' ·· ···· .......... CHB- 6
·~ ... Lumuuummmu<
.· SHIELD 11
DIP Switch S3 Configuration
51 52 53 54 55 56 57 58
::J Z
x x x
I Iz x
x
I Ix
=Switch setting based on configuration, refer to Table 2-3.
x
Decoder JSI The AL encoder can interface with Compumotor's JSI Digital
Controller Servo Controller. The Interface between these units Is
Interface performed Ulrough the 8-bit parallel mode. The 14-wtre
interconnect and proper DIP Switch settings are shown In
Figure 2-7. Jwnper settings do not affect this conJiguralJDn.
16 AL ENCODER USER GUIDE
17 A1
18 A0
19 DR
20 DV
21 DE
2-4· OPTQ- ,,
,
, .... ....... -........... .
~~
1~Pln D Connector
JSI Verification Before proceeding. be sure that power Is not appUed to the
system. Remove the decode-I box cover and set the switches as
shown In Figure 2-7. After settlng the switches. put the cover
back on the decoder. To veJ1fy that the AL and the JSI are
operaUng properly together. follow the test procedures
provided in the JSI User Guide.
Decoder 8·Blt 1bJs TIl.. lnterface allows you to transfer data at a higher rate
Parallel of speed than the sertal1nterface options (RS-232C and RS-
Interface 422/485). The 14-Wlre Interconnect and proper DIP Switch
setUngs are shown In Figure 2-8. Maintain tllefactory default
jwnper settlngs.,
CHAPTER 2. GETIING STARTED 17
··
INPUT 7
····
9 07 .JI' ..........
10 06 - ........ INPUT 6
.JI'
··· ·,,
11 05
12 04
13 03
--
..........
.......
.JI'
,
··,,,
,
·,
··
- ~
...........
........
.JI'
INPUTS
INPUT 4
INPUT 3
14 02
.JI'
·· ..........
.JI'
- :·
........ INPUT 2
--'
",-
15 01 ........ INPUT 1
16 D0 .JI'
··,,, - --'
....... INPUT 0
,,
17 A1 .JI'
.........
··· :
"
- --'OUTPUT 1
18 A0 , <:OUTPUT0
19 DR
.JI'
·,, ,"
" .JI' OUTPUT 2
-' ,, ,
20 OV · ",-
INPUT 8
21 DE .JI'
· ,
, .JI' OUTPUT 3
:
·
24 OPTQ- > ~....j............~ GNO
5HIELO
I
DIP Switch S3 Configuration
51 52 53 54 55 56 57 58
8.. Blt Parallel Before proceeding, be sure that power Is not appUed to the
Verification system. Remove the decoder box cover and set the switches as
shown In Figure 2-8. After settlng the switches, put the cover
back on the decoder. To vertfy that the 8-Bit parallel Interface
is operattng properly, refer to Chapter 4, ApplJcaUon Design.
Decoder 16-8/t nus TIt. interface allows you to transfer data at a hJgher rate
Parallel of speed than the 8-bit parallel Interface. More Interface
Interface wires are requlred for this Interface. The 21-w1re
Interconnect and proper DIP Switch settings are shown In
Figure 2-9. Maintain theJactory defaultJwnper settings.
18 AL ENCODER USER GUIDE
···
.........
3 013 ........
. ~
,·, ~
INPUT 13
····,
4 012
·, INPUT 12
-
...",
5 011
......... " ,,-
........ INPUT 11
6 010
··· ~
···
, ........ INPUT 10
7 D9
~
......... ·,, , .",
INPUT 9
8 as
...",
........
.-
·· ,,
~
91 07 ··
,
,,
,
- ~
........ INPUT 8
··
INPUT 7
101 D6
~
· ",
INPUT 6
11 05
~
· ··, ........
",
.- , ·, INPUTS
12 D4
......... ",
INPUT 4
...",
·· ,, .........
1:3: D3 ",
......... ·· ·, - ",
...",
INPUT 3
14 02
15 01
~
......... ·· ·,, ",
INPUT 2
INPUT 1
·· ,
~
,,
.........
16 00 -- INPUT 0
·,,· ···
.r ~
11 A1
.........
.-
......... ·, ··,,
, - ~ OUTPUT 0
···· ·,
19 DR ~
" , OUTPUT 1
200V ~
" , INPUT 16
21 DE .- ·,, ·, ~ OUTPUT2
· ,, ·
24 OPTQ- > ;:
1. ...
-
J.......................
<---GN-O-",
<>-S-H-I-E-LO
.......- - ,
::,1 z z z
x]
I z Ir.',,,- I x x
Z. Switch setting based on configuration, to Tabl. 2-3.
16-811 Paralle' Before proceeding. be sure that power Is not appUed to the
Verification system. Remove the decoder box cover and set the switches as
shown In Figure 2-9. After setting the swttches. put the cover
back on the decoder. To verifY that the 16-bit parallel
interface Is operatlng properly. refer to Chapter 4,
Application Design.
CHAPTER 3. INSTALLATION 19
Chapter 3. INSTALLATION
Chapter Objectives The information in th1s chapter will enable you to:
• Mount all system components properly
• Connect all electrical system inputs and outputs properly
• Ensure that the complete system is tnstalled properly
You must complete the steps fn Chapter 2. Oetting Started that
pertain to your appUcaum before you perform the steps in
this chapter.
Environmental FlUid should not penetrate llnto the unit through the shaft.
Considerations You should prevent direct fluid flow onto the unit by altering
the flow of flUids. You can accompUsh this with a splash
guard or some other protective device.
Mounting cabinet
(Front View )
--
Cabling The cable from the encoder head to the decoder box is
constructed of 15 conductor #28 gauge flat wire. These wires
are nottwtsted. but they are shielded. The shield is terminated
at the decoder box end and is not connected at the encoder end.
The standard lengths are 10' and 20'. The maximum length
the decoders is 20'.
If you mount the AL In an environment that contaInS fluids,
always route the cable down from the encoder. This prevents
fluid flow on the cable from penetrating Into the encoder
hoUSing. The same precaution should be used at the decoder
box end. For further encoder mounttng InStructions. refer to
the AL/IL MOWlt:tn.g Guide.
If the requirements of YOW' applicatlon prohibit you from
routing the cable downward, loop the cable to prevent any
direct fluid flow. You may have to order a longer cable.
Any modifICations to the cable will void the warranty! Please
consult Compumotor prior to making any changes.
Power Supply For most appUcatlons. the JPOWer supply ground should be
allowed to float with reference to earth (no connection to
earth ground). Refer to Chapter 6, Hardware reference for
further deta.1ls.
CHAPTER 4. APPLICATION DESIGN 23
Chapter Objectives The information In this chapter will enable you to:
• Recognize and understand Important considerations that
you must address before you bnplement your appUcation
Interface Modes There are two Interface modes that allow you to obtain the
encoder's position-serial and parallel. The serial Interface
Includes RS-232C and RS-422/485. The parallel Interface
Includes 8-bit and 1S-bit output. Prior to uSing either
interface, you must define certain parameters within the unit
for the application.
These parameters configure the fonnat of the information to
be provided to the control system. You must define all of the
commands that are available for configuration with the
serial Interface. These commands Include configuration for
the follOwing functions:
• Report fonnat
• POSition scaling
• Position offset
• Output interface
Factory default values. which should be suitable for most
appUcations. are provided These default values. as well as
the conflguration command descriptions. are provided In
Chapter 5, Software Reference.
ACteryou configure the encoder, you must save an parameters
In non-volaUle memory. This chapter provides detailed
procedures for using the Interface modes that are appUcable to
the decoder box. The lnformatlon Is dMded Into two modes of
operation: PLC (paralleU and host-computer (serial)
operation.
, 24 AL ENCODER USER GUIDE
AL Operation with a
PLC
Parallel Output This interface can output eight (00-07) bUs, or sixteen (DO-
Control 015) bits of data. The full-position output of the AL Encoder 15
32 bits. ThJs data is read tn segments.
I T__T_'_=:~:rLSBI
01 42. 67 89
....
- - - - - - - = - : B y t . 3 (MSB)
Byte.
rn
Bits 111111111111111111
To use the data provided from the encoder. you must convert
the decoder's output Into position information. Tables 4-1
and 4-2 illustrate the mathematical relationship of each byte
being read Un BJna.ry and BCD;). The tables also provide the
ratio for 8-bit and 16-bit output. The control system should
read each byte shown In the tables and perfonn the math
functions shown for accurate and meaningful position data.
Binary Output
Ul1 16-BIt
BYTE Representation WORD Representation
1st (lSB)
-
0-255 units x 1165,535 1st (LSW) 0-65,535 units x 1/65,535
BCD Output
U!1 16-BIt
BYTE Representation WORD Representation
-
1st (LSB) 0-99 units x 0.0001 1st (LSW) 0-9,999 units x 0.0001
2nd 0-99 units x 0.01 2nd (MSW) 0-999 units x 1
3rd 0-99 units x 1 (mask error code &
sign bit)
4th (MSB) 0-9 units x 100
a-Bit Data Output This section explains the process of reading a position In 8-bit
segments. Wire and configure your decoder (DIP switches and
jumpers) as described in Chapter 2. Getting Started (8-Bit
Parallel Interface). Use DIP Switch 55 to select the binary
(OFF) or BCD (ON) output fCllmat. To read a pOSition (4 bytes)
from the AL Encoder. refer to Figure 4-3 and follow the steps
below.
CHAPTER 4. A~PLlCATION DESIGN 27
, i ,
i ..........Jr-
~ ~
DE l~
-
j
(
!
t I
A1
DV
High
00·07
Impedance
If you are using only one AlL Encoder. ground the Device
Enable (DE) input. The Device Enable function controls when
the output goes in or out of a hlgh-unpedance state. mus
input must be grounded to allow you to read output data from
the devtce.) If you multiplex: more than one unit. the Device
Enable input will select which outPut the system w1ll read.
The Data Request (DR) output must remain active durtng the
enUre data transfer (all four bytes). Al and AD select which
segment to read. The Data Valid (DV) output provides a signal
to you when the data 15 stable or ready.
Step 2 Wait for the Data Valid (DV) output to go low. nus usually
takes approxtmately 1 ~s.
Step 3 Read the 8rst byte.
Step 4 Request the second byte. Leave the DR and DE outputs
grounded Leave Address Select AD high and ground AI.
Step 5 Wait for the Data Valid (DV) output to go low.
Step 6 Read the second byte.
Step 7 Request the third byte. Leave the DR and DE outputs grounded.
Leave address select Al grounded and ground AD.
Step 8 Wait for the Data Valid (DV) output to go low.
28 AL ENCODER USER GUIDE
.~~~--------------~--~~~~----------, ------------------------
Step 9 Read the third byte.
Step 10 Request the fourth byte (most significant byte-M5B). Leave
.the DR and DE outputs grounded. Leave address select AO
grounded and bring AD high .
Step 11 Walt for the Data Valid (DVJ output to go low_
Step 12 Read the fourth byte_
Step 13 Bring all of the Inputs high.
The last three most stgn!flcant bits (M5B) of the fourth byte
contain error code Information. Refer to Chapter 7.
Maintenance lit TroubleshooUng for a description of the error
codes.
71Je 4th Byte must always be read. Thts contains not only the
error code. but also the direction fndtcatton. Thts byte will be
frozen as long as the data request is active.
If you are using a SIngle-tum encoder. only the first and
second bytes contain the encoder's actual position. You must
read the third and fourth bytes to obtain error codes.
Interpreting 8-Bit Tum DIP SWitch 5 (55) on t.o select the BCD output fonnat
BCD Output After the system reads each byte. refer to Table 4-2 (SCD
Output) for the mathematic table that corresponds to each
byte for the control system.
When you read BCD or b1nary parallel output. the serial
Interface will be disabled. You must complete the parallel read
cycle (4 bytes) before you can establish the ser1allnterface. In
this appUcation. you must complete the read cycle and bring
the DR. DE. AI. and AO mputs to the 5 VDC level before
establishmg the seriallnted-ace .
The value above w1l1 be frozen unUl the Data Request Input
returns to its hlgh or off'state. Notfce that D4 15 used for the
=.).
Sfgn bit (0 :: +, 1 Also, 110 blts are used for the decimal
polnt. The location of this pOlnt 15 tmaglnary and should be
sfgnlfied within the device that Is reading the encoder data.
Interpreting 8-Blt Tum DIP switch 5 (55) ofT to select the blnaIy output format.
Binary Output Refer to Table 4·1 for the multipUcatlon table to establish
corresponding data.
Binary Value
I
0 1 1 1
Tlrmlnal Number. "
07 06 05 D4 03 "D2 " "D001
Binary Valut
I
0
Tlrmlnal Numb.r. "
07 ID6
1
05 " " "
D4 03 D2
1
01
1
D0
3AD BYTE Po.ltlon Iyte Value 49
Binary Vllut 10 1 1
I
Tlrmlna' Number. "
D7 ID6 05 D4 " "D2 "
03 01
1
D0
4TH BYTE (MSB) POlltlon Iyte Valul +0
Blnlry Value 10
I
Termlnll Number. "
D7 ID6 " " " " " "
05 D4 [Q D2 01 D0
!'»~ ~~. 35 58
The value above w1ll be frozen until the Data Request Input
" returns to Its high or off state. Notice that D4 15 used for the
= =
sign bit (0 +. 1 -J. Also. IlO bits are used for the declmal
POint. The location of thls polnt Is Jrnaglnary and should be
sJgn1fled within the device that Is reading the encoder data.
16-Bit Data Output nus sectJon explainS the process of readlng a position In 16-
bit segments. Wire and configure your decoder (DIP switches
and Jumpers) as described In Chapter 2. Getting Started
(Decoder 16·BU Parallel Interface). Use DIP switch S5 to
select the blnaIy (OFF) or BCD (ON) output fonnat. To read a
position (two two-byte segments-also referred to as a word)
from the AL. refer to Figure 4-·4 and follow the steps below.
DR
DE
DV
100~s 1~s
00·015
If you are ustng only one AL Encoder. you can tie the Device
Enable Input low. The Device Enable function controls when
the output goes In or out ofa htgh-Jmpedance state. If you
multiplex more than one unJIt. the DevIce Enable Input w1ll
select which output the system w1ll read. The Data Request
output must remain active durtng the enUre data transfer (all
four bytes). Al selects which word to read. The Data VaI1d
(DV) output Indicates when the data Is stable or ready.
CHAPTER 4. APPLICATION DESIGN 31
Step 2 Wait for the Data Valid (DV) C)utput to go low. nus usually
takes approxtmately J OOs,ts.
1st Word 5 -~ 8 0 2
I0 I I I
" " " " " "" ""
1 1
BCD Value
Terminal " 1
01S 014 013 012
1
011 010 09 08 07 06 05 04 03 D2 01 "
00
2nd Word
.
No error - 0 5 4
BCD Value
I I I I 1 1
I
0 0 0
Terminal " 1
D1S 014 013 012 "011 010
" 09"
0
08 "
07
1
DEi "
05 04 "
D3 D2 "01 00
..0 49 • 35 56
Interpreting 16· Tum DIP switch 5 (55) oIT to select the binary output fonnat.
Bit Binary Output After the system reads each byte. refer to Table 4-1 (Binary)
for the multiplication table that corresponds to the data.
Assuming the encoder position at the time of the read 15
-54.5802 inches. the process to read the position is as
follows:
St:ep 1 Read both words, (MSW and LSWJ.
Step 2 Interpret each word as follows.
1st Word
- -'
5802
Binary Vllue 0 0 0 1 0 1 1
I
0 1 0 1 0 1 0 1 0
Terminal 015 014 013 012 011 010 09 OS 07 06 05 04 03 D2 01 00
~5~. 5802
~--------~2ndWo~(MSYij
Host Computer If you use the AL encoder with a host computer. two Interface
options are available. The decoder provides a DIP switch
Operation selectable Interface for either RS-232C or RS-422/48S.
Operating the The host must be a dumb terminal.. or have software that
Serial Interface allows the computer to emulate a dumb terminal (such as Pro-
CommTM). Before proceeding. enable the host computer for the
following protocol:
Using Multiple If you Intend to use more than one decoder (i.e., a daisy chain
Units on an RS- configuration). verify that each unit IS communicating
232C Interface properly (as spedfied in Chapter 2. Getting Started). Ensure
proper communications with each unit before you configure
your daisy chatn.
RS-232C Interface ,
'.
Rx
Tx
GNO GNO
Daisy Chaining To perfonn this example. you must have three decoders. You
Three Decoders will wire the units to the single RS-232C tnterface one at a
time to assign unique device addresses for each unit. At the
conclusion of this procedure, you will be able to complete the
daisy chain configuration.
Step 1 After ver1fy1ng that each decoder is functioning properly. wire
one of the units to the host computer (as per the tnstruct10ns
tn Chapter 2. Getung Started) apply power to the all of the
units. Enter the following command on your keyboard to the
decoder box.
0SN1
This command changes the: device address of this unit to 1.
1SS
This unit now has a unique device of 1. Remove power from
the system. D1scormect this unit from the RS-232C interface
and wire another one of the units to the interface. Re-apply
power.
eSN2
nus command changes the device address of this unit to 2.
Step. To save this unique address setttng to non-volatJIe memory.
enter the following command:
2SS
This unit now has a unique device of 2. Remove power from
the lyatem. D1scormect the unit from the RS-232C interface.
At this POint. all three of the decoders have a unique devtce
address (0. 1. and 2--the decoderuou did not cIlcJnQe mtdntafns
the dPJault address settInQ q/.
CHAPTER 4. APPLICATION DESIGN 35
Step 5 Refer to Figure 4-7 and wire 1the daisy chain configuration as
shown.
Step 6 Apply power to the three decoders and the computer/tennJnal.
Press the space bar on your keyboard.. If the cursor on the
screen moves, you are receiving an echo. This indicates that
the RS-232C communication Un}( is working properly (from
computer/terminal to decoder and from decoder back to
computer/termJnal). If yow' cursor does not move when you
press the space key. check: your wtrtng connections (refer to
Figure 4-7 and repeat this step. If the problem persists, refer
to Chapter 7, MaJntenance & Troubleshootlng.
Step 7 After you have successfully received an echo. enter the
following commands (you wtll receive a response after each
command):
"PR
1PR
2PR
The PR (Position Report) command provides a position
report. You should receive a position report for each decoder
with these commands. If you do not receive the position
reports. check your wir1ng.
Step 8 Manually move the encoder shaft position of the encoder with
the unique deviCe address of 0. To see the change in position.
type the following commandl:
"PR
The position report for this unit's pOSition should differ from
the position report you receIVed for this unit in Step 7.
Step 9 Manually move the encoder shaft position of the encoder with
the unique device address of 1. To see the change in position.
type the following command:
1PR
The position report for this unit's position should ditIer from
the pOSition report you rece:lved for this unit in Step 7.
Step 10 Manually move 1the encoder shaft position of the encoder with
the unique devtce address of 2. To see the change in pos1tJon.
type the following command:
2PR
The position report for th.ts unit's position should dJffer from
the position report you received for this unit In Step 7.
The successful completion of these steps ver1fy that all of the
decoders configured on your daiSy chaJn are operating
properly. If you encounter problems, check your wtnng and
tIy this procedure agaJn (from Step 1). or refer to Chapter 7.
Maintenance & Troubleshooting.
i.36 AL ENCODER USER. GUIDE' .
Using Multiple Jfyou use more than one decoder (lee. multi-drop). verify that
Units on an RS- each unit is communicating properly (see Chapter 2. Getting
Started). Ensure that each unit is communicating properly
422/485 before you conflgure your multt·drop system.
Interface
When you use multiple units with the RS-422/485tnterface.
you can multi-drop up to 16 units to one host sertal port. Each
decoder wired on a multt-drop corifiouratton must have a
unique deutce address. You can assign a unique device address
with the SN' (Define Device Address) command. The factory
default address IS 0. Refer to Chapter 5. Software Reference
for more 1nIonnation on the SN command. This section
provides a step-by-step procedure for assigning unique device
addresses for your decoders. Do not attempt to assign device
addresses at this ttme. Refer to Figure 4-6 for an example of
proper multi-drop W1r1ng.
-1 Decoders
Unit #1
1000* 1000*
1000· 1000*
x+ mllllllllllllllll!ll!ll
~~~ -
---.... ----------......--........-..-.........--- ...
---------------- ~t,lo
Unit #2
Host Interface
Rx-
Rx+
x-
x+
•
•••
•••
.. ••
I:~ ~ III
Unit 11' •
fX'x+
Multi-Dropping To perform this ex:ample" you must have three decoders. You
Three Decoders will wire the units to the single RS-422/485 interface one at a
time to assign unlque device addresses for each unit. At the
conclusion of this proceciure. you will be able to complete the
multi-drop configuration.
Step 1 After vertfytng that each decoder 15 functioning properly, WIre
one of the units tOI the host computer (as per the instructions
in Chapter 2, Getting Started) apply power to the all of the
units. Enter the following comrrumd on your keyboard to the
decoder box:.
"SN1
ThJs command changes the device address of this unit to 1.
"SN2
This command changes the device address of this unit to 2_
Step 4 To save this unique address setting to non-volatlle memory.
enter the following command:
2SS
•
38 AL ENCODER USER GUIDE
0PR
1PR
2PR
The PR (Position Report) command provides a position
report. You should receive a position report for each decoder
with these commands. If you do not receive the position
reports, check your WU1ng.
Step 8 Manually move the encoder shaft pOSition of the encoder with
the unique dev1CC~ addn::ss of 0. To see the change in pOSition,
type the follow1lng command:
0PR
The position report for this unit's pOSition should differ from
the position report you received for this unit in Step 7.
Step 9 Manually move the enc:oder shaft pOSition of the encoder with
the unique device addn-..ss of 1. 1"'0 see the change in poSition,
type the following command:
1PR
The position report for this unit's posttion should differ from
the position report you received for this unit in Step 7.
Step 10 Manually move the encoder shaft pOSition of the encoder with
the unique device addn$S of 2. To see the change in poSition,
type the follOwing command:
2PR
The posU1on report for this unit's position should differ from
the position report you received for this unit in Step 7.
The successful completion of these steps verify that all of the
decoders c:onfigured on youI"' multi-drop configuration are
operating prope:rly. If you encounter problems, check your
wtrtng and try this procedure again (from Step 1), or refer to
Chapter 7. Maintenance & Troubleshooting.
Using Multiple If you intend to use more than one decoder in parallel output
Units In Parallel mode (8-btt or 16-bitJ, you can rnultiplex the parallel outputs.
Multiplexing allows you to share common data and control
Output Mode s1gnals between decoders. ThJs reduces the number of inputs
and outputs that your lPLC uses. You may multiplex as many
units as your PLC can handIe. For example, tryour PLC has 16
available inputs (DevIce Enable) and outputs (Data Valid), you
can multiplex 16 units:. You are l1m1ted only by the capability
ofyourPLC.
You can read only one decoder at a time. Each decoder must
have its own distinct input and output on the PLC. Refer to
your PLC's user gUide for spect1lc information on I/O
capabilities and progranuning.
CHAPTER 4. APPLICATION DESIGN 39
..-
-
~
..........
- N
~
D
This is not a camplete drawing of the board. The important infc)rmation is the location of resistor packs
RN8 and RN 11 (the shaded areas in this diagram). Do not fflmOve or manipulate My other oomponents
on this board.
Encoder.1
CONTROL
BUS
Encodert2
Encoder 13
fII'BiZI.I Represents thl parallel outputs (8-bl1ts or 16-blts) from the decoder
_ Represents thl controllnputa and olutputa tCiI the decoder
The decoder also has a Data VaUd (DV) !Output. The PLC can handshake with the decoder
using the DV output and the Device Enable (DE) Input of the decoder.
CHAPTER 5. SOFTWARE REFERENCE 41
Chapter Objectives The information in this chapter will enable you to:
• Use this chapter as a reference for the function, range.
default. and sample use of each command
Command The AI.. allows you to communiCate over the sertal interface
with several software commands.
Descriptions
-
050 (!)Oefine Offset P1osition 0VALID
0set-up Software Version
@RESPONSE TO aSOnnnnnnnn IS NI A
- -
1. Mnemonic This box: contains the command's mnemonic code and the
Code command ~e. l'11e command types are described below.
2. Type This portion of the box: l:ontaJlns the command's type. The
four command types are listed below.
StltU. Status commands respond (report back) with information.
Set-Up Setup commands, def1n.~ setup conditions for the application.
Setup commands, 1ncluc1e the following types of commands:
• HOm1ng (Go home acceleration and velocity. etc.)
• Input/Output (Ltm1ts. scan time. in-position time. etc.)
• Tuning (Servo or position tracking)
• General (Set sw1tch~:s. retum to factory settlngs. etc.)
Programming Programming ccmmands affect programming and program
flow. For example. trigger. output. all sequence commands.
quote. time delay.9, pause and continue. enable and front-
panel loop and end loop. line feed. carnage return. and
backspace.
5. Syntax The proper syntax. for the command lS shown here. The
specific parametel"S associated with the command are also
shown. Definitions of the parameters are described below.
7. Range This is the range of valid values that you can specify for n (or
any other parameter specified).
8. Default The default setting for the cOlll11lB1Ild is shown in thlS box. A
command will perform Us function with the default setting if
you do not provide a value.
The lower portion of the: box explains how you can save the
command-Independently Saved or Never Saved
10. Execution The execution ttme is the span of tlme that passes from the
Time moment you issu.e a command to the moment the system
begins to execute it.
11. See Also Commands that are related or sfm1lar to the command
described are Jisted here.
Command listing
- --
AR Automatic Position Report VALID
I Status Software Version Y
i
-
PB Binary Position Repo'rt VALID
Status
SYNTAX
aPBn
UNITS
revolutions
RANGE
N/A
I DEFAULT
N/A
Software Version Y
ATTRIBUTES
Immediate
Never Saved
SYNTAX
aRP
UNITS
N/A
RANGE
N/A
I DEFAULT
N/A
Software Version Y
ATTRIBUTES
Immediate
Never Saved
EXECUTION TIME <2 m.s 1s~~ ALSO
-
N/A
-
RV Revision Level VALID
Status Software Version Y
I
SYNTAX UNITS RANGE DEFAULT ATTRIBUTES
=!F'"~,-: r:~ n - 0.001 00001 - 29999 5000 Immediate
Never Saved
SYNTAX
aSNn
UNITS
n - device
RANGE
0 to 9, A - F
~0
ATTRIBUTES
Immediate
address Independently Saved
-
SO Define Position Offset VALID
Set up
SYNTAX
aSOnnnnnnn n a
UNITS
position
offset
0
RANGE
- 255, A
I DEFAULT
0
Software Version Y
ATTRIBUTES
Immediate
Independently Saved
Description
-
This command has an imaginary dectmal point after the
third digit. It allows you to establish an absolute zero pomt
without turning the shaft. until position zero is present. The
system compares the value that you enter to the actual
position before you entl~red the command. The difference
between the two represents the offset. If you enter A after the
command. the offset will be reset to 0. The offset value that
you enter after IBSO becomes the new encoder position
corresponcUng to the present mechaniCal encoder position.
The offset value that you enter cannot be greater than the
current encoder lnlue or 2.550.000. Values beyond this range
wtU elicit tnualUi data .from the system.
Example Command ~Jigtign
IZISOIZl Defines present position as zero
'48 AL ENCODER USER GUIDE.
- --
SP Define Position Offset VALID
Set-Up Software Version Y
-
S8 Save Parameters VALID
Set-Up Software Version Y
SYNTAX
aSS
UNITS
N/A
RAN~
N/A
DEfAULT
N/A
ATTRIBUTES
Immediate
Never Saved
-
Z Software Reset VALID
Set-Up Software Version Y
SYNTAX UNITS
-
RANGE DEFAULT ATTRIBUTES
z N/A N/A N/A Immediate
Never Saved
Chapter Objectives The infonnatlon in this chapter will enable you to:
• Use this chapter as il quick-reference tool for most system
specificatlons (dimensions & performance)
• Use this chapter as a quick-rt>Ierence tool for switch
settings and proper 11/0 connectlons
Mechanical
Resolution 0.0005"-2,000 steps pelr inch or 0.0001"-10,000 steps per inch
(if you are read1nl~ data in BCD fannat)
2.048 (0.00048") or 32,7'68 (0,00003" positions/inch. Ufyou
are reading data in binary fonnat)
Accuracy ±O.OOI (25 microns) bidtrecUonalindependent of length
Reputability ±O.OOOI (2.5 microns)
Starting Force 8.0 ozs. (225gms.]1
(Assumes preload of 1 - 2 Ibs for pinion)
Inertia 0.0005 OZ-in2 (0.5487 gJn-cm)1
Speed
SIIW Spied 50 ipS
Maximum WipS .
Operating Speed If you run the WIU at hiQher speeds, you wtIl not be able to read
the least stgnt/kant bit
Electrical
Cable Length 10' standard from the encoder head to the decoder box
(Compumotor supplled fbr Models AL8 - AL64)
20' max1mwn from the encoder head to the decoder box
'(Compumotor supplied for Models ALBO - AL144)
Maximum cab[e length ts 4.000' using RS-422
Environment
Op.ratln"
Temperature
Stora"e
Temper.ture
COMPUMOTOR
ABSOLUTE EN CO ER
/; UNE
iE~
(MSB) Bit 15 --+I
Bit 14 :1:NEUT 20'1 AC Input Power
Bit 13 ~1 GNDI
Bit 12
Bit 11 ~l: . ='---+~: g:~~::::~
Bit 10
Bitt
Blta
BIt7
BItS
Hr
:.'. 01
D6
---+RS-232C R.celv.
- - - + RS-232C Tran.mlt
- - + RS-232C R.f.rence
---+-RS-4221485 Transmit-
---+.RS-4221485 Transmit.
BItS
BIU
BIU
BIU
Bit 1
05
04
D3
02
01
.Channel A.
'Channel A·
---+·Channel B.
I
---+·R5-4221485 Rec.lve-
---+.R5-4221485 Rec.lve.
Increm.ntal Outputs
Parkeij
AL Dimensional
Drawing
'.00
UOS.2) I
r--- . .
l __ _
".,' "'. 0
0'"
oN
5/11 Dli. T.... I.I
C'Bare 15/12
1. SO
(31.10)
1 0-
I
::: I l1li-32 lhru (2)
,..
2.00
(50 .• )
I. JT
(5 ... 10)
..-
....
D-
VI
.,.0
Decoder Box
Dimensions
16.22 Raduis
('1" mounting screws)
4 Places
0.47 (11.94)
COMPUMOTOR
ABSOLUTE ENCODER
UNE
:./lil:
NEUT
GND
ill!!;·
..
:iiL
..
RX
Tx
GND
Tx-
;
:f. TI+
...
. .
.:.
Rx-
;:::::.
Rx+
A+
I
~
':::' A-
~:::: :: B+
B- 9.50
(241.30)
10.44
(256.18)
o POWER
o Sl'ATUS
o
ENCODER
INPUT
[]parker II
2.13
(54.10)
2.80
...
(71.12)
·Dimensions in bold text represent inches
··Dimensions in parentheses represent rnillimeters
11..22 Raduis
(.10 mounting screws)
4 Places
0.47 (11.94)
.
J:u
.·1---,--....
2.131 1
(54.10)
4.5~
(114.30)
Decoder
Schematics
·1 Decoder
R31
~ ':~o
~~ ________,~l____~
10 Q
1
•
CONN18
18 PIN PHOENIX
MCS4!540&
,V1'....
.& I3 C.
-12 ..,.... C29
"\7 .1uF
OPTO·
S
"Ne
Ji
I
•• 0 un8
.~I
~~!
ILoa
.... w II~~ •
,..
ILlla
""I
•• 0 U23C
.~
ILoa
-c
RH6 U23C
••0
ILoa
'~e
•
•......., ~
'\DV(
IRy
: ?:C "Jt
."IWI_
uaaB FlH3
111Il0l4
•
··e
1"V'V'--
11( ~50
O~JT 1
OuT2 7.
OPTC-(
I I(- 'r
.......
"tiC PTO
-
·L~
.
... ~r·
~~
~~
•• 0
-( .."'.' '
-( '~fI
1 .. J
•
__.J-( I~:' .•
--I-,VH C .. I
- L .IIMo I.
_~J ee a.!,
--&..l-
-L' -(
•1
-J~"'~ ••
...
...
:::=f -(
Ie
J~~I
I - .
- ( JLs~ I
ID I CONN 26
HI
"i7
Ie :1 1..
,-
.[
I§
I~:' I .......
--,-"" 7, ,. I
-a.J• •(
7C
:~~I
I
-L~ "
....LJ-r( I~~I C
~'=:-' se
.....L.J.'[ IL'.' I
-'-~
~,.
.,~• I~:' .oo
,.j,...ua. I I.
_".J- . r( :~!'
c
~;'(
....
.......,
, ,. (
I~:'
II ~
I~II .
I
• I
S1 RS·232C- R~485
S2 FIllII Duplu- Half Duplex
S3 CCW Direction- CW Direction
S4 8·Bit Parallel 11·81t Parallel-
SS Ilnlry (Hex)- BCD (0ec:imaI)
S6 Siftgletum Multi-tum
S7 Ilnlry Mode- Mode Select
sa 81nlry Mod.- Mode Select-
·Flctory-d.faun HUlng
-
Table 6-1. Decoder Box Default DIP Switch SeWngs
I.·,.,
JU4
....I'-
o.ecrlpt/on of aymboI8:
..
Jumper (JUt)
~:!1 Pins
Numbering Code Decimal Digit BCD Code Binary Code Hexadecimal Code
Table
0 0000 0000 0
1 00011 0001 1
2 001 C2' 0010 2
3 0011 0011 3
4 0100 0100 4
5 0101 0101 5
6 011 C2l1 0110 6
7 0111 0111 7
8 1000 1000 8
9 1001 1001 9
10 10000 1010 A
11 1 0001 1011 B
12 10010 1100 C
13 1 0011 1101 0
14 1 0100 1110 E
15 1 0101 1111 F
Chapter Objectives The information in this chapter w1ll enable you to:
• Ma1ntaln the system's components to ensure smooth.
efficient operation
• Isolate and resolve system hardware problems
6. Cable lengths should not exceed 20 ft. unless you are using
, some fonn of Jine drnrer, optical coupler, or shield. As
with any control signal, be sure to shield the cable to earth
ground at one end onlly.
7. To test your tenninal or terminal emulation software for
proper three-wire communicatJon, unhook your
peripheral device and. transmit a character. You should
not receIVe an echoed character. If you do, you are m half
duplex mode. ICOIUlec:t the host's transm1t and receive
lines and send another charact.er. You should receive the
echoed character. If ][1ot, consult the manufacturer of the
host's serial Snterface for proper pm outs.
If the computer is looking for handshaking signals. you may
need to install jumper wires at the: terminal end to disable
this function. Since the pm-out from various computers are
different. refer to your computer's operator's manual for
instructions on how to disable the handshaking function.
Most computers. however. use the pins shown in Figure 7-1 to
install jumpers. For more detaUed information on this topIc,
refer to RS-232C Made Easy. published by Prentice -Hall, Inc.
After you have checked your computer, enter [cr] QJRP. The
system should respond with set-ulP parameters. The reason
for entering a [cr] before the command is to clear the buffer
before you enter the command.
CHAPTER 7. MAINTENANCE &TROUBLESHOOTING 65
COMPUMOTOR
ABSOLUTE ENCO ER HOlt Computer
Connector
Parke~
RS·4221485 lCyou are using a decoder. verify that the DIP switches are
Communications properly set (as shown In Chapter 2. Getting Started). Double
. check the system connections· (review Chapter 3.
Installation). 1)pe the following command:
SRP
The response to tlhis command will help you to detenn1ne if
set-up parameters are reported. If no data is reported. there
may be a compatibility problem with the Interface circuit that
you are us1ng. Since there 15 no ec~ho with RS-422/485. the
next: step is to verify that the Interface ctrcu1t Is operating
With the following parameters:
• Baud Rate:: g.6CX)
• Data Bits: 8
• Start/Stop Blt(s): 1
• Partly: None
if you receive echoed characters. but no parameters are
reported. the address preceding the RP command may be
something other than 0. The only way to.find the proper
address ts to try all of tJfte numbers in range l0RP - FRP).
Recommended Some customers have made speCial Interface boards that were
RS·4221485 not compatible wtth RS-422/4S5 standards. A lJstJng of
Interface Interface product'S that have been used successfully by a
variety of AL users 15 plrovided below.
Devices
l. RS422/485 to RS232C converter·B & B model 422CON.
Phone number: (S15) 434-0846.
2. IBM RS422/485 Inlterface board - guo-Tech model DS
2fJlfDS.2fJ2. Pholll: number: (216) 434-3154.
AI::: i ~ -
E:D F::CI ~
1. Can be saved for For DC circ:uit only Can be used for
beth AC and DC both AC and DC
circuits circuits
2. Us. 500·1000
onm forRand
0.1 • 0.2 mictaF
@200V
Error Code
Descriptions
Error Description
- Cours. of Action
Coe:,
"
1
No error present. System is
functionino orooerlv.
Not ready for read. Reset Check your AC power Une and ensure that it
must have OCCU rred. Is clean. If the power Rne is O.K., apply power
and try readina the oosition aaain.
- 2 EEPROM failure. Under Try saving the parameters using the SS
this condition, the AL win COlnmand. Cycle power after you complete
automatically default to factory thet save and the error should not re-appear.
parameters. If parameters If the problem persists, you may have a
cannot be saved with the SS EEPROM problem. call the factory.
command, the EEPROM has
3
failed.
Data error. Positional read - Check for noise in the encoder. (Refer to the
will need to be repeated. " noise reQJction procedures explained In this
this persists, noise or a bad chapter).,
com nent ma~ be the cause._
5 Fine resolution data erroli'. Tf)' to read the position again. If you receive
Position read will need to be tI'1s error on at regular basis, caD the factory.
repeated. This usually occurs
when the electronics are not
tuned to the encoder head.
-
Table 7-1. Error Code Descriptions
APPENDICES 73
APPENDICES
,------------------------------
Command
Summary
All parameters must be saved wuh the ss command or tJ1ey will be lost after power is cycled.
APPENDICES 77
GLOSSARY
Absolute Positioning Binary Coded Decimal is an A range of input signals (steps) for
A positioning coordinate reference encoding technique used to which there is no system response
wherein all positions are specified describe the numbel'S; 0 thro~lgh 9 or correction. •
relative to some reference, or with four digital (on en off) siglnal
-tlome- position. This is different line.. Popular in machine toCl~
from ina-emental programming, equipment. Detent Torque
where distances are specified The minimal torque present in an un-
relative to the current position. Bit energized motor. The detent torque
Abbreviation of Binary Digit, Ithe of a Compumotor or step motor is
Absolute Programming smallest unit of memory equal to 1 typically about onl percent of its
Refers to a motion control system or 0. static energized torque.
employing position feedback
devices (absolute encoders) to Block Diagram DTE
maintain a given mechanical A simplified schematic representing Data Communications Equipment
location. components and signal flow Ithrough transmits charaders on pin two and
a system. receives on pin three of a 25 pin 0
Acceleration connector.
The change in velocity as a function Byte
of time. Acceleration usually refers A group of 8 bits treated as a. whole, Duty Cycle
to increasing velocity and with 256 possible combinations of For a repetitive cycle, the ratio of on
deceleration describes decreasing ones and zeros, each combination time to total cycle time.
velocity. representing a unique piece of Duty Cycle- On Time +
information. Charaders are stored (On Time + Off Time)
Accuracy as bytes.
A measure of the difference Efficiency
between expected position and Closed Loop The ratio of power output to power
actual position of a motor or A broadly applied term relating to input.
mechanical system. Motor any system where the output is
accuracy is usually specified as an measured and compared to thl Encoder
angle representing the maximum input. The output is then adjusted A device which translates
deviation from expected position. to reach thl desired condition. In mechanical motion into electronic
motion control, the term is used to signals used for monitoring position
Addr .. s describe a system "wherein II or velocity.
Multiple devices,. each with a velocity or position (or both)
separate address or unit number, transducer is used to generate Friction
can be controlled on the same bus. correction signals by compa.rison to ';\ resistance to motion caused by
The address allows the host to desired parametenl. surfaces rubbing together. Friction
communicate individually to each can be constant with varying speed
device. Daisy-Chain (Coulomb friction) or proportional to
A term used to describe the linking speed (viscous friction).
AmbIent Temperature of several RS-232C devices In
The temperature of the cooling sequence such that a single data Full Dupll.
medium, usually air, immediately stream flows through onl device The terminal wm display only
surrounding the motor or another and on to the next Dalsy-chained received or echoed characters.
device. device. usually ar.. distinguished
by device address••, which .erve Half Duplex '
ASCII to indicate thl desired de.tination In half duplex mode, a terminal wiD -
American Standard Code for for data In the strealn. display every character
Information Interchange. This code transmitted. • may also display the
assigns a number to each numeral Data Bit. received character, resulling in
and letter of the alphabet. In this Since thl ASCII ch8l'lCt1f 1« double character displays.
manner, information can be consists of 128 characters,
transmitted between machines as a computers may transrnl only lIVen Hind Shaking Slgnll.
series of binary numbers. bils of data. However, most RST: Request To Send
computer. support an eight bit (;TS: Clear To Send
Saud Rate extended ASCII character NL OSR: Data Set Ready
The number of bits transmitted per DTA: Data Terminal Ready
second. Typical rates include 300, DCE lOB: Input Data Buffer
600,1200,2400,4800,9600, Data Communications Equipment OOB: Output Data Buffe,
19,200. This means at 9600 transmits on pin throe and receive.
baud, one character ( -10 bits) can on pin two of .25 pin 0 conMCtor. Holding Torque
be sent nearly every millisecond. Sometime. called static torque, _
Diad Band specifies the maximum extemal
SCD force or torque thai can be applied
•
without causing thl' rotor to rotatl Th. frequ.ncy of the step pulses
continuously. Multi-Dropping applied to a motor driver. The pulse
A method or linking sevilral RS- r.1 multiplied by the resolution of
Hom. 4221485 devices in parallel fashion. thil motor/drive combination (in
A reference position in a motion The data still flows ono bit at a tim., steps per revolution) yields the
control system, usually derived but it is tast.r than RS·232C rotational speed In revolutions per
from a mechanical datum. Often because the information r.aches all lllcond,
designated as the '"zero· position. d.vices at the sam. tim.. Mu":i-
dropped device. must have unique Ramping
Hyatereala device addresses. Thue The lCCellration and deceleration
The difference in response of a eddresses are used in softwarll of a motor. May also refer to the
system to an increasing or a command syntax to sand data to dlange in frequency of the applied
decreasing input signal. specific units. step pulse train.
Transistor-Transistor loogic.
Oescribes a common digitallegic
device family that is used in most
Slew modern digital electronics. m
In motion control, the portion of a signals have two distinct statals
move made at a constant non-zero that are described with a vottage-a
velocity. logical -Zero· or -Jaw· ill represented
by • voltage of less than 0.8 \lOrts
Sp .. d and a logical ·one· or "igh- is
Used to describe the linear or represented by a voltage from 2.5
rotational velocity of a motor or to 5 volts.
other object in motion.
XON/XOFF
Start Bit. Two ASCII characters supported in
RS-232C character transmissions some serial communlc:ation
begin with a bit which signals the programs. If supported, the
receiver that data is now being receiving device transmits an XOFF
transmitted. character to the host when its
character buffer is full. The XOFF
Static Torqu. character directs the host to stop
The maximum torque available at transmitting characters to the
zero speed. device. Once the buffer empties
the device will transmit an XON
Step Angl. character to signal U1e host to
The angle the sha.ft rotates upon resume transmission.
receipt of a single step command.
Stlffne . .
The ability to resist movement
induced by an applied torque. Is
often specified as a torque
displacement curve, indicating the
amount a motor shaft wilt rotate
upon application of a known
external force when stopped.
Stop Bit.
When using RS-232C, one or two
bits are added to every character to
signal the end of a character.
Synchronism
A motor rotating at a speed
correctly corresponding to the
applied step pulse frequency is said
to be in synchronism. Load torques
in excess_of the motor', capacity
(rated torque) will cause a loss of
synchronism. This condition is not
damaging to a step motor.
Text/Echo (OfflOn)
This setup allows received
characters to be re-transmitted
back to the Original sending device.
Echoing characte,.. can be used to
verify or ·close the loop· on •
transmission.
Torque
Force tending to produce rotation.
APPENDICES 81
INDEX
fluid flow 19
Full Duplex 9
Ground Loops 70
Ground signal 70
Half Duplex 9
hexadecimal 49
inputs 25
interface modes 23
Isolate remote signals 71
JSI Controller 10
Jumper Default Settings 11