Untitled - Hidroair
Datalogic Automation S.r.l.
Via Lavino, 265
40050 - Monte S. Pietro
Bologna - Italy
© 2014 Datalogic Automation S.r.l. TUTTI I DIRITTI RISERVATI. Protetto nei limiti massimi consentiti dalla legge
degli Stati Uniti d'America e internazionale. Sono vietate la copia o le modifiche di questo documento senza la previa
autorizzazione scritta da parte di Datalogic Automation S.r.l.
Datalogic and the Datalogic logo are registered trademarks di Datalogic S.p.A. in many countries, including the U.S.A.
and the E.U.
Tutti i marchi e i nomi di prodotti qui citati servono al solo scopo di identificazione e possono essere marchi o marchi
registrati dei propri rispettivi proprietari.
Datalogic non risponde di eventuali errori tecnici o tipografici o di omissioni qui contenuti, né di danni accidentali o
conseguenti dall'uso di questo materiale.
13/05/14
INDEX
1 - Safety summary ...........................................................................................................1
2 - Identification ................................................................................................................ 3
3 - Mounting instructions ................................................................................................... 4
3.1 Solid shaft encoders ................................................................................................ 4
3.1.1 Customary installation ........................................................................................ 4
3.1.2 Installation using fixing clamps (optional kit code ST-58-KIT) ............................ 4
3.1.3 Installation using a flange (code ST-58-FLNG) .................................................. 5
3.2 Hollow shaft encoders.............................................................................................. 6
3.2.1 AMT58-H15........................................................................................................ 6
4 - Electrical connections .................................................................................................. 7
4.1 Cable and connectors connections + I2C serial interface ........................................ 7
4.3 M23 12-pin connector specifications ........................................................................ 8
4.4 M12 12-pin connector specifications ........................................................................ 8
4.5 Connection of the shield .......................................................................................... 8
4.6 Ground connection................................................................................................... 9
4.7 A, B, 0 output channels ............................................................................................ 9
4.8 Index pulse setting input .......................................................................................... 9
4.9 Counting direction input ......................................................................................... 10
4.10 Diagnostic LEDs (Figure 1) .................................................................................. 11
4.11 Index pulse setting external button (Figure 1) ...................................................... 12
4.12 I2C (Inter Integrated Circuit) serial connection ..................................................... 13
4.12.1 Installing the KIT ENC58 USB drivers ............................................................ 14
5 - Programming interface .............................................................................................. 15
5.1 Configuring the encoder using the software tool .................................................... 15
5.2 Starting the program .............................................................................................. 16
5.3 Connection with the encoder ................................................................................. 18
5.4 Setting the parameters ........................................................................................... 20
5.4.1 Loading the encoder configuration from a file .................................................. 27
5.4.2 Saving the encoder configuration to a file ........................................................ 27
5.4.3 Saving the parameters on EEPROM ............................................................... 28
5.5 Error messages...................................................................................................... 29
6 - Default parameters list ............................................................................................... 32
Typographic and iconographic conventions
In this guide, to make it easier to understand and read the text the following typographic
and iconographic conventions are used:



parameters and objects both of the device and the interface are coloured in
ORANGE;
alarms are coloured in RED;
states are coloured in FUCSIA.
When scrolling through the text some icons can be found on the side of the page: they are
expressly designed to highlight the parts of the text which are of great interest and
significance for the user. Sometimes they are used to warn against dangers or potential
sources of danger arising from the use of the device. You are advised to follow strictly the
instructions given in this guide in order to guarantee the safety of the user and ensure the
performance of the device. In this guide the following symbols are used:
This icon, followed by the word WARNING, is meant to highlight the parts of
the text where information of great significance for the user can be found: user
must pay the greatest attention to them! Instructions must be followed strictly
in order to guarantee the safety of the user and a correct use of the device.
Failure to heed a warning or comply with instructions could lead to personal
injury and/or damage to the unit or other equipment.
This icon, followed by the word NOTE, is meant to highlight the parts of the
text where important notes needful for a correct and reliable use of the device
can be found. User must pay attention to them! Failure to comply with
instructions could cause the equipment to be set wrongly: hence a faulty and
improper working of the device could be the consequence.
This icon is meant to highlight the parts of the text where suggestions useful
for making it easier to set the device and optimize performance and reliability
can be found. Sometimes this symbol is followed by the word EXAMPLE when
instructions for setting parameters are accompanied by examples to clarify the
explanation.
Preliminary information
This guide is designed to provide the most complete and exhaustive information the
operator needs to correctly and safely install and operate the ENC58 programmable
incremental encoder.
ENC58 programmable encoder from Datalogic Automation is designed to maximize
customization and versatility and really allows the operator to get, along with the position
information, a complete parametrization and the better configuration that perfectly suit
specific needs in a good many applications and machines.
The operator in fact can not only configure the desired resolution in the range between 1
and 65536 or set the point in the revolution at which the 0 signal is output, but also choose
for instance the voltage level of A, B and 0 output channels between the options 5V and
encoder power supply voltage level.
The parametrization and set up of the ENC58 programmable encoder is achieved through
a software expressly developed and released by Datalogic Automation.
The program is supplied for free and can be installed in any PC fitted with a Windows
operating system (Windows XP or later). It allows the operator to set the working
parameters of the device and monitor whether the device is running properly.
The connection between the encoder and the PC is established by using the USB
connection cable provided by Datalogic Automation.
To make it easier to read and understand the text, this guide is divided into two main
sections.
In the first section some general information concerning the safety, the mechanical
installation and the electrical connection as well as tips for setting up and running properly
and efficiently the unit are provided.
In the second section, entitled Programming Interface, both general and specific
information is given on the programming interface.
In this section the software tool features and the parameters implemented in the unit are
fully described.
ENC58 PROG
1 - Safety summary






Safety
Always adhere to the professional safety and accident prevention
regulations applicable to your country during device installation
and operation;
installation and maintenance operations have to be carried out by
qualified personnel only, with power supply disconnected and
stationary mechanical parts;
device must be used only for the purpose appropriate to its design:
use for purposes other than those for which it has been designed
could result in serious personal and/or the environment damage;
high current, voltage and moving mechanical parts can cause
serious or fatal injury;
failure to comply with these precautions or with specific warnings
elsewhere in this manual violates safety standards of design,
manufacture, and intended use of the equipment;
Datalogic Automation S.r.l. assumes no liability for the customer's
failure to comply with these requirements.
Electrical safety
 Turn off power supply before connecting the device;
 connect according to explanation in section “4 –
Electrical connections”.
 in compliance with the 2004/108/EC norm on
electromagnetic compatibility, following precautions must be
taken:
- before handling and installing, discharge electrical charge from
your body and tools which may come in touch with the device;
- power supply must be stabilized without noise, install EMC filters
on device power supply if needed;
- always use shielded cables (twisted pair cables whenever
possible);
- avoid cables runs longer than necessary;
- avoid running the signal cable near high voltage power cables;
- mount the device as far as possible from any capacitive or
inductive noise source, shield the device from noise source if
needed;
- to guarantee a correct working of the device, avoid using strong
magnets on or near by the unit;
- minimize noise by connecting the shield and/or the frame to
ground. Make sure that ground is not affected by noise.
The connection point to ground can be situated both on the device
side and on user’s side. The best solution to minimize the
interference must be carried out by the user.
1
ENC58 PROG








2
Mechanical safety
Install the device following strictly the information in the section “3
– Mounting instructions”.
mechanical installation has to be carried out with stationary
mechanical parts;
do not disassemble the encoder;
do not tool the encoder or its shaft;
delicate electronic equipment: handle with care; do not subject the
device and the shaft to knocks or shocks;
respect the environmental characteristics declared by
manufacturer;
unit with solid shaft: in order to guarantee maximum reliability over
time of mechanical parts, we recommend a flexible coupling to be
installed to connect the encoder and user's shaft; make sure the
misalignment tolerances of the flexible coupling are respected;
unit with hollow shaft: the encoder can be mounted directly on a
shaft whose diameter has to respect the technical characteristics
specified in the purchase order and clamped by means of the
collar and, when requested, the anti-rotation pin.
ENC58 PROG
2 - Identification
Device can be identified through the ordering code and the serial
number printed on the label applied to its body.
Information is listed in the delivery document too.
Please always quote the ordering code and the serial number when
reaching Datalogic Automation s.r.l. for purchasing spare parts or
needing assistance.
For any information on the technical characteristics of the product
refer to the technical catalogue.
3
ENC58 PROG
3 - Mounting instructions
WARNING
Installation has to be carried out by qualified personnel only, with
power supply disconnected and mechanical parts compulsorily in
stop.
3.1 Solid shaft encoders
 Mount the flexible coupling 1 on the encoder shaft;
 fix the encoder to the flange 2 (or to the mounting bell) by means
of screws 3;
 secure the flange 2 to the support (or the mounting bell to the
motor);
 mount the flexible coupling 1 on the motor shaft;
 make sure the misalignment tolerances of the flexible coupling 1
are respected.
3.1.1 Customary installation
ENC58
a [mm] b [mm] c [mm] d [mm]
36 H7
48
-
3.1.2 Installation using fixing clamps (optional kit code ST-58-KIT)
ENC58
4
a [mm] b [mm] c [mm] d [mm]
36 H7
67
-
ENC58 PROG
3.1.3 Installation using a flange (code ST-58-FLNG)
5
ENC58 PROG
3.2 Hollow shaft encoders
3.2.1 AMT58-H15
 Mount the encoder on the motor shaft using the reducing sleeve 8
(if supplied). Avoid forcing the encoder shaft;
 fasten the fixing plate 4 to the rear of the motor using two M3
cylindrical head screws 5;
 fix the collar 3 to the encoder shaft (apply threadlocker to screw 3).
6
ENC58 PROG
4 - Electrical connections
WARNING
Electrical connection has to be carried out by qualified personnel
only, with power supply disconnected and mechanical parts
compulsorily in stop.
Never force the rotation of the shaft manually, it could cause
irreparable damage!
WARNING
If wires of unused signals come in contact, irreparable damage could
be caused to the device. Please insulate them singularly
4.1 Cable and connectors connections + I2C serial interface
Function
A
/A
B
/B
0
/0
+5VDC +30VDC
0VDC
Index pulse setting
Counting direction
SDA
SCL
Shield
M23 12-pin
1
2
3
4
5
6
7
8
9
10
11
12
Case
M12 12-pin
3
4
5
6
9
10
2
1
7
8
11
12
Case
7
ENC58 PROG
4.3 M23 12-pin connector specifications
M23 12-pin connector
Male
Clockwise
4.4 M12 12-pin connector specifications
Male
Frontal side
A coding
4.5 Connection of the shield
For signals transmission always use shielded cables.
The cable shielding must be connected properly to the metal ring nut
3 of the connector in order to ensure a good earthing through the
frame of the device. To do this disentangle and shorten the shielding
1 and then bend it over the part 2; finally place the ring nut 3 of the
connector. Be sure that the shielding 1 is in tight contact with the ring
nut 3.
8
ENC58 PROG
4.6 Ground connection
Minimize noise by connecting the shield and/or the connector
housing and/or the frame to ground.
Make sure that ground is not affected by noise.
The connection point to ground can be situated both on the device
side and on user’s side.
The best solution to minimize the interference must be carried out by
the user. You are advised to provide the ground connection as close
as possible to the encoder.
4.7 A, B, 0 output channels
4.8 Index pulse setting input
This encoder provides the zero signal (Index pulse) once per
revolution as relative positioning reference (home position, see the
Figure here above). In this way a unique position can be identified at
a well-known point in the 360° revolution of the encoder shaft.
This input allows to set the point in the revolution at which the 0
pulse will be output. This function is useful, for example, when you
want the zero position of the encoder and the zero mechanical
position of the axis to match.
When you want to set the position of the 0 signal in the revolution
you must send a command via PLC or other controller to the encoder
through the dedicated input. Connect the Index pulse setting input to
0VDC if not used. To set the zero position, connect the Index pulse
setting input to +VDC for 100 µs at least, then disconnect +VDC.
Normally voltage must be at 0VDC or floating.
We suggest moving the axis to the desired position, then activate the
Index pulse setting function while the encoder and the mechanical
assembly are in stop.
9
ENC58 PROG
WARNING
Please check the position of the 0 pulse and set it if necessary
whenever you set a new resolution next to the Resolution parameter
or reverse the counting direction.
NOTE
The width of the 0 pulse can be set next to the Z pulse width
parameter.
Two options are available: 90° and 180°.
Please note that the 0 pulse having a width of 90 electrical degrees
is synchronised with A and B pulses, while the 0 pulse having a width
of 180 electrical degrees is synchronised with A pulse.
For further information please refer to page 20.
NOTE
It is possible to set the 0 pulse position also by either pressing the
external button located in the rear side of the encoder enclosure -see
the section “ 4.11 Index pulse setting external button (Figure 1)” on
page 12-; or by pressing the PRESET button available in the
programming interface -see the Preset parameter on page 23.
4.9 Counting direction input
By default the phase relationship between A and B channels is so
that the rising edge of A channel leads the rising edge of B channel
when the encoder is rotating in a clockwise direction (see the Figure
in the previous page).
Thus the counter in the subsequent electronics will get a count up.
This input allows to have a count up also when the encoder is
rotating in a counter-clockwise direction (otherwise a count down
when the encoder is rotating in a clockwise direction). Connect the
Counting direction input to 0VDC if not used. Connect the Counting
direction input to 0VDC to have an increasing count when the
encoder is turning clockwise; connect the Counting direction input to
+VDC to have an increasing count when the encoder is turning
counter-clockwise. Clockwise and counter-clockwise directions are
viewed from the shaft side.
WARNING
The counting direction can be set also through the programming tool.
The Direction parameter implies that the Counting direction input is
set to 0VDC. Otherwise the resulting will be contrary to what is
expected or intended. The Direction parameter allows the operator to
choose between the options UP and DOWN. When the counting
direction is set to UP -Direction = UP-, if the Counting direction input
has LOW logic level (0VDC) the encoder will provide the increasing
count when the shaft is turning clockwise (and the decreasing count
when the shaft is turning counter-clockwise); on the contrary if the
counting direction input has HIGH logic level (+VDC) the encoder will
provide the increasing count when the shaft is turning counter-
10
ENC58 PROG
clockwise (and the decreasing count when the shaft is turning
clockwise).
When the option DOWN is set -Direction = DOWN-, if the Counting
direction input has LOW logic level (0VDC) the encoder will provide
the increasing count when the shaft is turning counter-clockwise (and
the decreasing count when the shaft is turning clockwise); on the
contrary if the Counting direction input has HIGH logic level (+VDC)
the encoder will provide the increasing count when the shaft is
turning clockwise (and the decreasing count when the shaft is turning
counter- clockwise).
WARNING
After having set the new counting direction it is necessary to set also
the Index pulse.
4.10 Diagnostic LEDs (Figure 1)
Two LEDs located in the rear side of the encoder enclosure are
intended to show visually the work status of the device as explained
in the following table.
GREEN LED
(status)
ON
OFF
Description
The encoder is supplied and running
An error occurred in the ASIC
while reading the disk
RED LED
Description
(microcontroller error)
It warns of the presence of an error:
1 SPI communication error between the
microcontroller and the ASIC designed
to read the disk
ON
2 An error occurred at power on while
uploading the configuration data
from the EEPROM
3 An error occurred while reading the
encoder position immediately after
starting the encoder or after setting either
the resolution or the counting direction
4 Communication error between the
encoder and the PC
11
ENC58 PROG
4.11 Index pulse setting external button (Figure 1)
This encoder provides the zero signal (Index pulse) once per
revolution as relative positioning reference (home position, see the
Figure on page 9).
In this way a unique position can be identified at a well-known point
in the 360° revolution of the encoder shaft. The external button
located in the rear side of the encoder enclosure allows to set the
point in the revolution at which the 0 pulse will be output. This
function is useful, for example, when you want the zero position of
the encoder and the zero mechanical position of the axis to match.
When you want to set the position of the 0 signal in the revolution
you must move the axis to the desired position, then press the Index
pulse setting button while the encoder and the mechanical assembly
are in stop.
WARNING
Please do not press the Index pulse setting external button when the
encoder configuration interface program is running.
WARNING
Please check the position of the 0 pulse and set it if necessary
whenever you set a new resolution next to the Resolution parameter
or reverse the counting direction.
NOTE
The width of the 0 pulse can be set next to the Z pulse width
parameter. Two options are available: 90° and 180°. Please note that
the 0 pulse having a width of 90 electrical degrees is synchronised
with A and B pulses, while the 0 pulse having a width of 180
electrical degrees is synchronised with A pulse.
For further information please refer to page 20.
NOTE
It is possible to set the 0 pulse position also by either sending a
signal via PLC or other controller through the dedicated input -see
the section “4.8 Index pulse setting input” on page 9-; or by pressing
the PRESET button available in the programming interface -see the
Preset parameter on page 20.
12
ENC58 PROG
Figure 1 - Diagnostic LEDs and Index pulse setting button
4.12 I2C (Inter Integrated Circuit) serial connection
The ENC58 programmable encoder is equipped with a serial
interface for the parametrization and set-up of the device.
The serial interface is a I2C (Inter Integrated Circuit) type interface.
To communicate with the encoder, you must connect the device to
the personal computer through a USB port using the specific
connection cable supplied by Datalogic Automation upon request.
The connection cable code is KIT ENC58.
It is provided with a M23 12-pin female connector for the devices
having ZCZ output circuit code; a M12 12-pin female connector for
the devices having ZCM output circuit code; and a terminal for
connecting the cable of the devices having ZCU output circuit code.
13
ENC58 PROG
WARNING
Please make sure that only one encoder is connected to the KIT
ENC58 when you activate the USB connection !
NOTE
Before configuring the encoder by means of the programming
interface, you must connect it to the personal computer through the
KIT ENC58 connection cable. You are required to install the drivers
of the USB Serial Converter and the USB Serial Port first.
The drivers are available for download at the following address
www.datalogic.com.
4.12.1 Installing the KIT ENC58 USB drivers
Please follow the steps in the documents listed below to install the
drivers of both the USB Serial Converter and the USB Serial Port of
the KIT ENC58.
The drivers package and the relevant documents are found inside
the EXC_USB4_driver folder. As stated, the drivers are available for
download at the following address www.datalogic.com.
If you need to install the drivers under the Microsoft Windows XP
operating system, please refer to the following document:
Installation_Guide_for_WindowsXP.pdf.
If you need to install the drivers under the Microsoft Windows Vista
operating system, please refer to the following document:
Installation_Guide_for_VISTA.pdf.
If you need to install the drivers under the Microsoft Windows 7
operating system, please refer to the following document:
Installation_Guide_for_Windows7.pdf.
As a preliminary operation please:
1. connect the KIT ENC58 cable to the encoder through the M23 12pin connector or the M12 12-pin connector or the provided
terminal (for the cable connection scheme please refer to the table
in the previous page); you do not need to power the encoder by
means of an external power pack as the device gets the power
from USB;
2. connect the cable fitted with the USB connector to a USB port of
your PC; after a few seconds a message will appear in the
notification area of the Windows taskbar and the USB Serial
Converter drivers installation wizard will start. Then follow the
instructions in the above mentioned pdf documents.
After installation you can launch the executable file and open the
encoder programming interface; to know more refer to the section
“Programming interface” on page 15.
14
ENC58 PROG
5 - Programming interface
5.1 Configuring the encoder using the software tool
ENC58 programmable incremental encoder is supplied with a
software expressly developed and released by Datalogic Automation
in order to easily programme and configure the device. It allows the
operator to set the working parameters of the device and monitor
whether the device is running properly. The program is supplied for
free and can be installed in any PC fitted with a Windows operating
system (Windows XP or later).
The
name
of
the
program
executable
file
is
ENC58_Rx_x_Datalogic_ENGLISH.exe where Rx_x is the release
version of the file.
The program is available for download at the following address
www.datalogic.com.
It is designed to be installed simply by copying the executable file to
the desired location and there is no installation process.
To launch it just double-click the file icon.
To close the program press the EXIT button in the title bar.
WARNING
Please be aware that the following compatibilities between the
hardware- software version of the device and the software version of
the executable file have to be respected compulsorily.
Compatibility
HW-SW
EXE FILE
1-1
Up to ...
NOTE
Before starting the program and establishing a communication with
the device, it is necessary to connect it to the personal computer.
The interface is a I 2C (Inter Integrated Circuit) serial interface. To
communicate with the encoder, you must connect the device to the
personal computer through a USB port using the specific connection
cable order code KIT ENC58 supplied by Datalogic.
For any further information please refer to the section “ 4.12 I2C
(Inter Integrated Circuit) serial connection” on page 13.
WARNING
Please make sure that only one encoder is connected to the KIT
ENC58 when you activate the USB connection !
15
ENC58 PROG
5.2 Starting the program
To
launch
the
program
just
double-click
the
ENC58_Rx_x_Datalogic_ENGLISH.exe executable file.
Inside
the
same
folder
you
can
find
the
ENC58_Rx_x_Datalogic_ITALIANO.exe executable file to use the
interface program with messages in Italian language, if needed.
Press the OK button in the LICENSE page to go on.
In this way you also agree with the terms and conditions of use of the
software.
16
ENC58 PROG
The main page of the configuration interface will appear. It consists
of a single page where all parameters and the complete diagnostic
information concerning the connected encoder are available.
Three sections can be found in the page:
1. a top left section where the parameters to program the encoder
can be found;
2. a top right section where the complete diagnostic information
(diagnostic LEDs) can be found; furthermore the following buttons
are available in this section: the DISCONNECTED / CONNECTED
button which is used to activate / deactivate the connection
between the PC and the encoder; two buttons needful to load from
a file (Load config) and save to a file (Save config) the encoder
configuration; the Write EEPROM button which has to be pressed
to save the configuration data on the EEPROM permanently;
3. the Messages section in the bottom of the page where some
information on the sent commands is shown; to delete the list of
the messages press the CLEAR button on the left of the panel.
To establish a communication connection between the PC and the
encoder press the DISCONNECTED button in the top centre of the
page.
17
ENC58 PROG
5.3 Connection with the encoder
If the PC and the encoder have been connected properly using the
KIT ENC58 connection cable, as soon
as you press the
DISCONNECTED button the parameters in the interface are
initialized to the values which are stored on the encoder memory.
A proper connection is shown by the button turning green and
changing its label into CONNECTED.
Furthermore all the diagnostic LEDs in the top right section of the
page light green.
18
ENC58 PROG
If the encoder is not connected properly and the software tool is not
able to establish a USB connection, then the USB to I2C not found:
check connections!!! warning message appears on the screen.
In such occurrence please check that the USB cable is connected
properly to the USB port and the USB port is working correctly.
It may happen that the interface establishes a proper USB
connection, but it is not able to communicate with the encoder.
In this case the following warning messages appear one after the
other: Reading error of parameters from encoder!!!
Connect again (Disconnected button) and Encoder disconnected!!!
Check encoder connections. When this happens, please check either
the M23 / M12 connectors or the cable wiring in the terminal.
If the software tool is able to connect to the encoder and
communicate properly, but internal errors or faults are found, they will
be indicated by their LEDs lighting red in the diagnostic section of the
page.
Errors are also shown by means of the LEDs in the enclosure of the
encoder; please refer to the section “4.10 Diagnostic LEDs (Figure
1)” on page 11.
19
ENC58 PROG
5.4 Setting the parameters
WARNING
Please always be aware that the parameters set in the interface are
not permanent, they are only stored temporarily in the RAM of the
encoder. For instance, should you disconnect the USB cable and so
cut off the power supply, data which has been set previously would
be lost!
To save the data on the EEPROM permanently, after having entered
the new values you must press the Write EEPROM button in the
bottom right of the page.
NOTE
If you try to send a command while the encoder is not connected yet,
the Device not connected!!!!! Click on 'Disconnected' button warning
message will appear on the screen. Press the DISCONNECTED
button to activate the communication and start programming the
encoder.
Resolution
This parameter allows the operator to set a custom number of pulses
the encoder will output per each revolution (PPR). Please enter the
desired value, if needed select the maximum rotation speed the
encoder is allowed to reach (see the note below), finally press the
SET button to confirm. Please always consider the pulse
multiplication factor (x 1, x 2 or x 4) of your subsequent electronics
before entering a new resolution value.
Default = 1024 (min. value = 1; max. value = 65536)
NOTE
Depending on the set resolution, it is possible to select the maximum
rotational speed the encoder is allowed to reach; since the maximum
speed and the resolution are strictly correlated, some options may be
disabled as you enter increasing resolutions. If several options are
available (Speed < 2250 RPM; Speed < 4500 RPM; Speed < 9000
RPM), you must be aware that you will attain lower measurement
accuracy as the rotational speed increases more and more.
Select the speed value option that best suits your specific
application!
20
ENC58 PROG
NOTE
Please note that the maximum counting frequency of an encoder,
expressed in kHz, results from the number of revolutions per minute
(RPM) -i.e. its rotational speed- and the number of pulses per
revolution (PPR) -i.e. its resolution.
It can be calculated by using the following algorithm:
RPM * PPR
Maximum counting frequency (kHz) =
60 * 1000
It follows that the higher the maximum rotational speed of the encoder and
its resolution, the higher the counting frequency. This has to be
considered carefully when you program the encoder, in particular referring
to the maximum counting frequency of the encoder as stated in the
technical specifications, to the following electronic equipment and to the
length of the cables.
If you reverse the formula you can easily calculate the maximum number
of revolutions starting from the value of the counting frequency (as
allowed by the encoder, permitted by the subsequent electronics and
accepted by the cable run) and the desired number of pulses per
revolution:
Maximum counting frequency (kHz) * 60 * 1000
RPM =
PPR
The reversed formula can be very useful -for instance- when you
know the maximum counting frequency that is applicable to the
system (because of the encoder, the following electronics and the
cable length) and you need to calculate the maximum rotational
speed the encoder is allowed to reach at the desired resolution.
EXAMPLES
Here are some examples useful to better understand the application
field of the programmable resolution. We assume that the pulse
multiplication factor in the following electronics is x 1.
21
ENC58 PROG
Example 1
Let's assume that the encoder is mounted on the driven draw roller of
a slitter and the circumference of the roller is 753 mm.
We can set a resolution of 7530 PPR (Resolution = 7530) to control
the movement of the roller with a tenth of a millimetre resolution.
In this way we convert a rotary measurement value (for example:
10000 PPR) into a linear measurement value, thus we are able to
control the unwinding of a plastic or paper web from the reel and
activate the blades to cut 1-m long sheets with a tenth of a millimetre
resolution.
Example 2
Let's assume that an axis is guided by a ball screw; a motor fitted
with a reduction gearbox having 1:50 reduction ratio is installed at an
end of the system, while the encoder is installed at the opposite end
of the system.
As we know the reduction ratio of the reduction gearbox, we can set
a suitable resolution in order to control the motion of the motor
precisely and calculate the input speed starting from the known
output speed.
Example 3
Let's assume that the encoder is mounted on the SFI draw wire unit
and the application has a 5500-mm long linear travel.
22
ENC58 PROG
We can set a resolution of 55000 PPR (Resolution = 55000) to
control the movement of the cable and thus of the axis with a tenth of
a millimetre resolution.
In this way we convert a rotary measurement value (55000 PPR) into
a linear measurement value, therefore we are able to control the 5.5m long linear travel with a tenth of a millimetre resolution.
Example 4
Let's assume that the encoder is used to control the movement of a
chain conveyor. The chain conveyor is equipped with multiple
stations and has an overall length of 14.847 m. If we set a resolution
of 14847 PPR (Resolution =14847) we have precise control over the
movement of the chain conveyor and
its positioning at the stations with a millimetre resolution.
Position
It is used to show the current position of the encoder.
The position value is calculated considering the preset and scaling
values that have been entered. Furthermore the counter reads the
rising and falling edges of both channels, so the position value is
shown after the x 4 pulse multiplication (x 4 resolution).
When you start the programming interface, 0 is displayed next to this
item. Press the READ button to read the current position value of the
encoder.
If the Continuous Read option is not active, the position is read at
each press of the READ button.
Otherwise if you wish a continuous reading of the position value, you
must add
a check to the Continuous Read option, then press the READ button;
the button turns red.
To deactivate the continuous reading press the READ button again.
Preset
This encoder provides the zero signal (Index pulse) once per
revolution as relative positioning reference (home position, see the
Figure on page 9).
In this way a unique position can be identified at a well-known point
in the 360° revolution of the encoder shaft. This function allows to set
the point in the revolution at which the 0 pulse will be output.
It is useful, for example, when you want the zero position of the
encoder and the zero mechanical position of the axis to match.
When you want to set the position of the 0 signal in the revolution
you must move the axis to the desired position, then press the
PRESET button while the encoder and the mechanical assembly are
in stop. In the Z Pulse Position field next to the PRESET button the
real physical position.
23
ENC58 PROG
at which the 0 pulse is located in the 360° revolution of the encoder
shaft is displayed.
Default = 0 (min. value = 0; max. value = 262143)
WARNING
Please check the position of the 0 pulse and set it if necessary
whenever you set a new resolution next to the Resolution parameter
or reverse the counting direction.
NOTE
The width of the 0 pulse can be set next to the Z pulse width
parameter. Two options are available: 90° and 180°.
Please note that the 0 pulse having a width of 90 electrical degrees
is synchronised with A and B pulses, while the 0 pulse having a width
of 180 electrical degrees is synchronised with A pulse.
For further information please refer to page 20.
NOTE
It is possible to set the 0 pulse position also by either sending a
signal via PLC or other controller through the dedicated input -see
the section “4.8 Index pulse setting input” on page 9-; or by pressing
the external button located in the rear side of the encoder enclosure see the section “4.11 Index pulse setting external button (Figure 1)”
on page 12.
24
ENC58 PROG
Z pulse width
This parameter allows to set the width of the Index pulse (0 pulse)
expressed in electrical degrees. Two options are available and
selectable in the drop-down box: 90° and 180°. Please note that the
0 pulse having a width of 90 electrical degrees is synchronised with
A and B pulses, while the 0 pulse having a width of
180 electrical degrees is synchronised with A pulse.
See the Figure below.
Default = 90° (min. value = 90°; max. value = 180°)
Voltage output
This parameter allows to set the voltage level of A, B and 0 output
channels. You can choose between 5V and encoder power supply
voltage level. In the drop- down box select the 5V option to have a
voltage level of 5V at output channels; select the 24V option to have
a voltage level at output channels according to the encoder power
supply voltage level.
Default = 5V (min. value = 5V; max. value = 24V)
EXAMPLE
Let's assume that the encoder power supply voltage level is 12V; in
this case you can have the output channels at either 5V voltage level
(5V option) or 12V (24V option).
25
ENC58 PROG
Direction
By default the phase relationship between A and B channels is so
that the rising edge of A channel leads the rising edge of B channel
when the encoder is rotating in a clockwise direction (see the Figure
above in the page).
Thus the counter in the subsequent electronics will get a count up.
This parameter allows to have a count up also when the encoder is
rotating in a counter-clockwise direction (otherwise a count down
when the encoder is rotating in a clockwise direction).
Set Direction = UP to have the increasing count when the shaft is
turning clockwise; set Direction = DOWN to have the increasing
count when the shaft is turning counter-clockwise Clockwise and
counter-clockwise directions are viewed from the shaft side (see the
Figure below).
Default = UP (min. value = DOWN; max. value = UP)
WARNING
In this encoder the counting direction can be set both via hardware
(see the Counting direction input, section “4.9 Counting direction
input” on page 10) and via software by programming the Direction
parameter. If not used, the Counting direction input must be
connected to 0VDC. The Direction parameter implies that the
Counting direction input is set to 0VDC. Otherwise the resulting will
be contrary to what is expected or intended.
The Direction parameter allows the operator two choose between
the options UP and DOWN. When the counting direction is set to UP
- Direction = UP-, if the Counting direction input has LOW logic level
(0VDC) the encoder will provide the increasing count when the shaft
is turning clockwise (and the decreasing count when the shaft is
turning counter-clockwise); on the contrary if the Counting direction
input has HIGH logic level (+VDC) the encoder will provide the
increasing count when the shaft is turning counter-clockwise (and the
decreasing count when the shaft is turning clockwise). When the
option DOWN is set - Direction = DOWN-, if the Counting direction
input has LOW logic level (0VDC) the encoder will provide the
increasing count when the shaft is turning counter-clockwise (and the
decreasing count when the shaft is turning clockwise); on the
contrary if the counting direction input has HIGH logic level (+VDC)
the encoder will provide the increasing count when the shaft is
turning clockwise (and the decreasing count when the shaft is turning
counter-clockwise).
26
ENC58 PROG
For any information on the electrical connection of the Counting
direction input refer to the sections “4- Electrical connection“ on page
7 and “4.9 Counting direction input“ on page 10.
WARNING
After having set the new counting direction it is necessary to set also
the Index pulse.
5.4.1 Loading the encoder configuration from a file
Load config
The Load config button allows to load an encoder configuration you
have previously saved to a file having .cfg or .hex extension. For
example, it can be useful to restore the encoder default parameters
by uploading the ENC58_default.cfg configuration file that can be
found inside the ENC58_Programming interface.zip compressed
folder.
To load an encoder configuration that you have previously saved
press the Load config button (or otherwise as an alternative you can
press the Load config command in the File menu). As soon as you
press the button, the Open dialogue box appears on the screen. You
have to select the folder and then the file where the configuration has
been saved. When you press the OPEN button to confirm, the
dialogue box closes and the Would you like to update also encoder
parameters? message appears after a few seconds. If you choose
YES, the configuration parameters are updated in both the
programming interface and the encoder; otherwise, if you press NO,
the configuration parameters are updated only in the programming
interface, they are not downloaded to the encoder. In the Messages
section below in the page the Beware!!! Displayed parameters could
differ from encoder parameters!! message warns of occurrence and
the Load config button starts blinking red.
5.4.2 Saving the encoder configuration to a file
Save config
The Save config button allows to save the current encoder
configuration -i.e. the values currently set in the programming
interface- to a file having . cfg or
.hex extension. As soon as you press the Save config button (or
otherwise as an alternative you press the Save config command in
the File menu) the Save as dialogue box appears on the screen: you
have to enter the file name (you can also specify the file extension
choosing between .cfg and .hex) and choose the path where the file
has to be located. When you press the SAVE button to confirm, the
dialogue box closes.
27
ENC58 PROG
5.4.3 Saving the parameters on EEPROM
Write EEPROM
The parameters set in the interface and sent to the encoder are not
permanent as they are only stored temporarily in the RAM of the
encoder. For instance, should you disconnect the USB cable and so
cut off the power supply, data that has been set previously would be
lost!
To save the data on the EEPROM permanently, after having entered
the new
values you must press the Write EEPROM button in the bottom right
of the page.
28
ENC58 PROG
5.5 Error messages
(in alphabetical order)
Activation error of sensor data!!!!!
The operator has pressed the READ button but an error has
occurred while processing the information (it is signalled through the
LED lit red in the diagnostic information section of the page).
Please close the programming interface, then turn off and on the
power supply of the encoder (disconnect and connect again the USB
cable), finally restart the programming interface.
Beware!!! Displayed parameters could differ from encoder
parameters!!
The operator has pressed the Load config button (or otherwise as an
alternative the Load config command in the File menu) in order to
upload a previously saved encoder configuration.
After having select and confirmed the .cfg or .hex file to upload, the
Would you like to update also encoder parameters? message
appears on the screen after a few seconds.
If you choose YES, the configuration parameters are updated in
both the programming interface and the encoder; otherwise, if you
press NO, the configuration parameters are updated only in the
programming interface, they are not downloaded to the encoder.
In the Messages section below in the page the Beware!!! Displayed
parameters could differ from encoder parameters!! message warns of
occurrence and the Load config button starts blinking red.
Beware!!! Voltage output will be changed!!! Continue?
The operator is going to change the voltage level at the output
channels by programming the Voltage output parameter.
This message is intended to ask the operator to confirm before
proceeding.
Device not connected!!!!! Click on 'Disconnected' button
If you try to send a command while the encoder is not connected yet,
then the Device not connected!!!!! Click on 'Disconnected' button
warning message will appear on the screen.
Press the DISCONNECTED button to activate the communication
and start programming the encoder.
Encoder disconnected!!! Check encoder connections
This warning message is triggered when the interface establishes a
proper USB connection, but it is not able to communicate with the
encoder.
When this happens, please check either the M23 connector.
29
ENC58 PROG
Error Flags in Register 'Status Register'!!
An error is active in the “Status” register. It is signalled through the
LED lit red in the diagnostic information section of the page.
Error Flags in Register 'µC Error'!!
An error is active in the “µC Error” register. It is signalled through the
LED lit red in the diagnostic information section of the page.
Error Flags in register 'µC Status'!!
An error is active in the “µC Status” register. It is signalled through
the LED lit red in the diagnostic information section of the page.
Notice that the encoder will be preset!!
The operator has set a new resolution value next to the Resolution
parameter. This message is intended to inform the operator that the
system will execute also a new Index setting.
Reading error of parameters from encoder!!! Connect again
(Disconnected button)
This warning message is triggered when the interface establishes a
proper USB
connection, but it is not able to communicate with the encoder. When
this happens, please check either the M23 connector.
The displayed value refers to counting direction with hardware
input set to 0 (or open)
The operator is going to change the counting direction by
programming the
Direction parameter. In this encoder the counting direction can be
set both via hardware (see the Counting direction input, section “4.9
Counting direction input” on page 10) and via software by
programming the Direction parameter (see on page 20).
If not used, the Counting direction input must be connected to
0VDC. The Direction parameter implies that the Counting direction
input is set to 0VDC. Otherwise the resulting will be contrary to what
is expected or intended. The Direction parameter allows the
operator two choose between the options UP and DOWN.
When the counting direction is set to UP - Direction = UP-, if the
Counting direction input has LOW logic level (0VDC) the encoder will
provide the increasing count when the shaft is turning clockwise (and
the decreasing count when the shaft is turning counter-clockwise); on
the contrary if the Counting direction input has HIGH logic level
(+VDC) the encoder will provide the increasing count when the shaft
is turning counter-clockwise (and the decreasing count when the
shaft is turning clockwise). When the option DOWN is set - Direction
= DOWN-, if the Counting direction input as LOW logic level (0VDC)
the encoder will provide the increasing count when the shaft is
turning counter-clockwise (and the decreasing count when the shaft
is turning clockwise); on the contrary if the Counting direction input
30
ENC58 PROG
has HIGH logic level (+VDC) the encoder will provide the increasing
count when the shaft is turning clockwise (and the decreasing count
when the shaft is turning counter-clockwise).
USB to I2C not found: check connections!!!
This warning message is triggered if the encoder is not connected
properly and the software tool is not able to establish a USB
connection. In such occurrence please check that the USB cable is
connected properly to the USB port and the USB port is working
correctly.
Would you like to update also encoder parameters?
The operator has pressed the Load config button (or otherwise as an
alternative the Load config command in the File menu) in order to
upload a previously saved encoder configuration.
After having select and confirmed the .cfg or .hex file to upload, the
Would you like to update also encoder parameters? message
appears on the screen after a few seconds.
If you choose YES, the configuration parameters are updated in both
the programming interface and the encoder; otherwise, if you press
NO, the configuration parameters are updated only in the
programming interface, they are not downloaded to the encoder.
In the Messages section below in the page the Beware!!! Displayed
parameters could differ from encoder parameters!! message warns of
occurrence and the Load config button starts blinking red.
31
ENC58 PROG
6 - Default parameters list
Parameters list
Resolution
Preset
Z pulse width
Voltage output
Direction
32
Default value
1024
0
90°
5V
UP
www.datalogic.com
Was this manual useful for you? yes no
Thank you for your participation!

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

Download PDF

advertising