Caen ELS EnBOX User manual

EnBOX User’s Manual
i
EnBOX
Dual Encoder Readout Box
(with 10/100/1000 Ethernet
connectivity and BEST-ENC
SFP connectivity)
User’s Manual
2.3
BEAMLINE ELECTRONIC INSTRUMENTATION

EnBOX User’s Manual
ii
All Rights Reserved
© CAEN ELS S.r.l.
Rev. 2.0 –November 2018
This product is
&
compliant.
CAEN ELS s.r.l.
SS14 km 163.5
34149 –Basovizza (TS) –Italy
Registered office: via Vetraia 11, 55049 –Viareggio (LU)
Mail: [email protected]
Web: www.caenels.com

EnBOX User’s Manual
iii
Table of Contents
1. INTRODUCTION................................................................................................9
1.1 ENBOX OVERVIEW.........................................................................................9
1.2 ENBOX AT A GLANCE ..................................................................................10
1.3 ENCODER INTERFACE....................................................................................13
1.3.1 RESOLUTE™Interface...........................................................................13
1.3.2 TONiC™Interface...................................................................................14
1.4 ORDERING CODES.........................................................................................15
2. SOFTWARE COMMANDS.............................................................................16
2.1 COMMAND SYNTAX......................................................................................16
2.2 COMMAND TABLE SUMMARY.......................................................................18
2.3 COMMAND DESCRIPTION...............................................................................19
2.3.1 GET Command.........................................................................................19
2.3.2 ENC_SEL Command................................................................................20
2.3.3 TONIC Command ....................................................................................21
2.3.3.1 TONIC:GET? Command.................................................................21
2.3.3.2 TONIC:AUX? Command................................................................21
2.3.3.3 TONIC:AUX_CLEAR Command...................................................22
2.3.3.4 TONIC:SETUP? Command.............................................................22
2.3.3.5 TONIC:ZERO? Command ..............................................................22
2.3.4 STATUS Command ..................................................................................23
2.3.5 TEMP command.......................................................................................23
2.3.6 VER Command.........................................................................................24
2.3.7 HWRESET Command ..............................................................................24
3. ETHERNET COMMUNICATION .................................................................25
3.1 IP ADDRESS ASSIGNMENT ............................................................................25
3.2 CAENELS DEVICE MANAGER .......................................................................26
3.2.1 Searching for connected devices..............................................................26
3.2.2 Device Configuration...............................................................................28
3.2.3 Firmware Upgrade ..................................................................................29
4. I/O CONNECTORS...........................................................................................31
4.1 ABSOLUTE ENCODER INTERFACE..................................................................31
4.2 RELATIVE ENCODER INTERFACE...................................................................32
4.3 POWER CONNECTOR .....................................................................................33
4.4 INTERLOCK AND GENERAL I/O CONNECTOR.................................................33
4.5 ETHERNET AND SFP CONNECTOR.................................................................34
5. TECHNICAL SPECIFICATIONS ..................................................................35
6. MECHANICAL DIMENSIONS.......................................................................36
7. ENBOX POWER SUPPLY...............................................................................37
7.1 THE PS1112S LINEAR POWER SUPPLY .........................................................37
7.2 THE PS1112S AT A GLANCE .........................................................................37
7.3 TECHNICAL DATA.........................................................................................38
7.4 I/O CONNECTORS..........................................................................................39

EnBOX User’s Manual
iv
7.4.1 AC Line Input Connector.........................................................................39
7.4.2 Output ......................................................................................................40
7.4.3 Status LED...............................................................................................41
7.4.4 Fixations ..................................................................................................41
7.5 MOUNTING POSITION ....................................................................................42
7.6 TECHNICAL SPECIFICATIONS.........................................................................44

EnBOX User’s Manual
v
Document Revision
Date
Comment
1.0
April 10th, 2017
First Release
2.0
November 20th, 2018
Document updated with new
features
2.1
October 10th, 2019
Document Updated
2.2
April 22th, 2022
Firmware upgrade for compatibility
with new BEST-ENC features
(BEST-ENC firmware ≥ 1.2.20).
Removed MATH_SEL command.
2.3
November 22nd, 2022
Added UKCA compliance logo

EnBOX User’s Manual
vi
Safety information - Warnings
CAEN ELS will repair or replace any product within the guarantee period if
the Guarantor declares that the product is defective due to workmanship or materials
and has not been caused by mishandling, negligence on behalf of the User, accident or
any abnormal conditions or operations.
Please read carefully the manual before operating any part of the instrument
WARNING
Do NOT open the boxes
CAEN ELS S.r.l. declines all responsibility for damages or injuries caused
by an improper use of the Modules due to negligence on behalf of the User. It is
strongly recommended to read thoroughly this User's Manual before any kind of
operation.
CAEN ELS S.r.l. reserves the right to change partially or entirely the contents of this
Manual at any time and without giving any notice.
Disposal of the Product
The product must never be dumped in the Municipal Waste. Please check your local
regulations for disposal of electronics products.

EnBOX User’s Manual
vii
Read over the instruction manual carefully before using the instrument.
The following precautions should be strictly observed before using the EnBOX
device:
WARNING
•Do not use this product in any manner not
specified by the manufacturer. The protective
features of this product may be impaired if it is
used in a manner not specified in this manual.
•Do not use the device if it is damaged. Before
you use the device, inspect the instrument for
possible cracks or breaks before each use.
•Do not operate the device around explosives gas,
vapor or dust.
•Always use the device with the cables provided.
•Turn off the device before establishing any
connection.
•Do not operate the device with the cover
removed or loosened.
•Do not install substitute parts or perform any
unauthorized modification to the product.
•Return the product to the manufacturer for
service and repair to ensure that safety features
are maintained
CAUTION
•This instrument is designed for indoor use and in
area with low condensation.

EnBOX User’s Manual
viii
The following table shows the general environmental requirements for a correct
operation of the instrument:
Environmental Conditions
Requirements
Operating Temperature
0°C to 40°C
Operating Humidity
30% to 85% RH (non-condensing)
Storage Temperature
-10°C to 60°C
Storage Humidity
5% to 90% RH (non-condensing)

EnBOX User’s Manual Introduction
9
1.Introduction
This chapter describes the general characteristics and main features of the CAEN
ELS EnBOX - Dual Encoder Readout Box.
1.1 EnBOX overview
The CAEN ELS EnBOX is a stand-alone readout device that must be used to
interface the BEST system with RENISHAW TONiC™and RESOLUTE™in-air or
UHV encoders. The EnBOX provides a TCP/IP server to obtain data from encoders,
to configure the device and to check the operational status. The SFP interface on the
back provides a communication link to transmit the measurement data to the CAEN
ELS BEST Central Unit over an optical fiber connection.
The EnBOX provides a BiSS® interface to communicate with RENISHAW
RESOLUTE™encoders and quadrature encoder readout logic to interface with
RENISHAW TONiC™encoders. Please note that any monitoring instrument using
the same two communication protocols can be read by an EnBOX unit. Contact
CAENels or S.RI.Tech for details in case of need to interate devices different from the
RENISHAW encoders mentioned above.
The EnBOX front-end, composed of interface circuitry and power supply
circuitry is galvanically separated from digital and chassis ground.
The EnBOX has two integrated power supply circuits (one power supply is
dedicated to "REL 1" and "ABS 1" connectors and one to "REL 2" and "ABS 2"
connectors). Each power supply circuit can provide up to 3W of power at 5V rail.
This is more than enough to power RENISHAW RESOLUTE™encoders which
require 1.25W and RENISHAW TONiC™encoders which require just 1W of power.
The EnBOX is housed in a light, robust and extremely compact metallic box
that can be placed either close to the encoders or next to the BEST central control
unit.

Introduction EnBOX User’s Manual
10
The EnBOX provides an embeeded TCP/IPv4 server running on standard
10/100/1000 Mbps Ethernet.
1.2 EnBOX at a Glance
The EnBOX unit and its I/O connections can be seen in Figure 1 (front) and in
Figure 2 (rear).
Figure 1: front view of an EnBOX unit
Absolute encoder (RESOLUTE) interface
Encoder selection
and status LEDs
Relative encoder (TONIC) interface

EnBOX User’s Manual Introduction
11
Figure 2: rear view of a EnBOX unit
Two D-Sub DE-9 connectors for the absolute encoders (RESOLUTE) and two
D-Sub DA-15 connectors for relative encoders (TONIC) are placed on the front side.
Two LEDs designated with “R” (relative) and “A” (absolute) show which encoders
are selected in firmware (see “ENC_SEL” command).
A blue “Status LED” is used to signal the correct operation of the device.
During normal operation of the EnBOX unit the “Status LED” is blinking with a
frequency of 0.5Hz –i.e. the LED changes its status every 2 seconds –on the other
hand, if a fault condition arises, the LED blinks with a higher frequency than 2 Hz.
The power connector, power switch, two LEDs, LEMO connectors for I/O
triggers, interlock and general I/O connector, a standard RJ45 Ethernet connector and
an SFP connector are placed on the rear panel of the device.
The blue “CFG” led shows that the unit’s FPGA is correctly configured (in
this case the LED is turned on). The green “DC OK” LED indicates that the internal
sections are correctly powered.
The three LEMO connectors for I/O triggers are also placed on the rear panel.
Two of them act as inputs (annotated as “IN 1” and “IN 2”) and one acts as an output
(annotated as “OUT”). The connectors are reserved for future use.
Ethernet and SFP
communication
interfaces
Power Switch
Power and
Configuration
LEDs
Trigger
connectors
Power
connector
Interlocks and
general
input/output
connector
Reset
button

Introduction EnBOX User’s Manual
12
The “Interlocks and general I/O connector” has the pinout configuration
shown in Figure 3:
Figure 3: Interlock and general I/O connector
Pin #
Function
1-2
Reserved
3-4
Reserved
5-8
General purpose I/O
9-10
External interlock
The external and general purpose I/O pins are not yet used and are reserved for
future use.
On the rear panel of the EnBOX there is a small hole that gives access to a
reset button (“RST”), which can be used to reset the unit.
A RJ45 Ethernet connector (“ETH”), which is used to communicate with the
unit and a Small form-factor pluggable transceiver (“SFP”) which is used to
communicate with the BEST system are placed next to the reset button.
Pin #1
Pin #10

EnBOX User’s Manual Introduction
13
1.3 Encoder Interface
The EnBOX provides two different communication protocols with encoders: a
BiSS® interface to communicate with RENISHAW RESOLUTE™encoders and a
quadrature encoder readout logic to interface with RENISHAW TONiC™encoders.
Users can select one of the two protocols from the software. Data from the
selected interface is then provided to the firmware (e.g. for "GET" command), and
sent over an SFP interface to the BEST Central Unit.
Please note that any monitoring instrument using the same two communication
protocols can be read by an EnBOX unit. Contact CAENels or S.RI.Tech for details in
case of need to interate devices different from the RENISHAW encoders mentioned
above
1.3.1 RESOLUTE™Interface
The BiSS® interface implemented in the EnBOX follows the 32-bit version of
the protocol. The MA clock frequency is set to very conservative 500 kHz, which,
according to "BiSS® C-mode (unidirectional) for RESOLUTE™encoders" can
accomodate up to 20 m long cables. Please contact CAENels or S.RI.Tech in case
longer optical fiber cables are required. Since the communication protocol requires
transmission of 42 bits for each sample (ack, start, position, warn, error, crc) the
maximum data rate is limited to 11 kHz. Therefore, the EnBOX samples the encoder
output at 5 kHz and with the same rate the packets are sent to BEST Central Unit.

Introduction EnBOX User’s Manual
14
1.3.2 TONiC™Interface
The quadrature-encoder logic decodes Gray code received from the encoder and
increases or decreases an accumulator when changes are detected. TONiC™encoders
also provide the reference mark signal; this signal is used to reset the accumulator to
zero and set Z_SEEN register (see “TONIC:ZERO?” command).
To remove possible disturbances on the line the input signals are filtered with
hysteresis-based filter which will reject all pulses shorter than 60ns. This limits the
maximum stepping rate at 16 kHz.
In some configuration, TONiC™encoders also provide alarm signal and end-
switch indicators. EnBOX monitors these inputs and provides both direct output and
latched output (see "TONIC:AUX?" and "TONIC:AUX_CLEAR" commands).
The quadrature-encoder itself does not have any intrinsic data rate; however, to
be consistent with the RESOLUTE™interface data rate, also the TONiC™interface
sends new data out at 5 kHZ.
Example of compatible encoder:
TONIC Ti 0400 E 1 A

EnBOX User’s Manual Introduction
15
1.4 Ordering Codes
The ordering codes for the items included in this manual are the following:
Ordering Code
Description
COMP-BEI0009
EnBOX - Encoder Read BOX for BEST-ENC

Software Commands EnBOX User’s Manual
16
2.Software Commands
This chapter describes the software commands used for configuration of the
EnBOX unit and for data readout from encoders. For more information about the
Ethernet settings see the Ethernet Communication chapter.
2.1 Command Syntax
The command syntax used by the EnBOX protocol is described in the
following sections.
Commands must be sent in ASCII format and are composed by a “command
field”and one, two or none “parameter field”, separated by a colon (‘:’or ‘0x3A’in
hexadecimal notation). The number of “parameter fields”depends on the specific
command. Commands are NOT case sensitive and therefore the command string can
be sent either using uppercase or lowercase characters (conversion to uppercase
characters is performed internally). Each instruction must be terminated with a
‘carriage return\line feed’sequence ‘\r\n’ (or ‘0x0D 0x0A’in hexadecimal notation or
commonly CRLF).
Command Example:
ENC_SEL:ABS\r\n
•“ENC_SEL”is the command field;
•‘:’is the parameter’s separation character;
•‘ABS’is the first parameter field;
•‘\r\n’are the termination sequence of the command.

EnBOX User’s Manual Software Commands
17
Commands are processed one at a time; therefore, user must wait for a
response from the unit before sending the next command. All the responses from the
EnBOX device are in upper case and are terminated with the same ‘carriage
return\line feed’sequence (‘\r\n’) –i.e. CRLF –used in the command.
The reply from the device depends on the given command; for more
information about the single command please refer to the specific command section.
There are two specific replies that are commonly used in many command,
which indicate that the command has been correctly elaborated or not. Those replies
are hereafter presented:
•ACKnowledge (‘ACK’) indicates that the command is valid and it was correctly
elaborated by the device:
ACK\r\n
•“ACK”is the ACKnowledged response to a valid command;
•‘\r\n’ is the termination sequence of the reply.
•Not AcKnowledge (‘NAK’) indicates that the command is either not valid or that
it was not accepted by the devic:
NAK\r\n
•“NAK”is the Not AcKnowledged response to an invalid command;
•‘\r\n’ is the termination sequence of the reply.
The list of commands used by the EnBOX and the corresponding syntax is
hereafter presented as well as a description of each command purpose and any special
requirements related to the specific command. The commands are hereafter described
and are grouped in categories based on their purpose.

Software Commands EnBOX User’s Manual
18
2.2 Command Table Summary
Command
Purposes
Parameters
GET
Read a single measurement
?
TONIC
Read a single measurement from TONiC interface
GET?
Read the value from setup signal from TONiC interface
SETUP?
Read the value of zero-crossing detector from TONiC
interface
ZERO?
Read the values of auxiliary signals (alarms) from TONiC
interface
AUX?
Clear the latches for alarms from TONiC interface
AUX_CLEAR
ENC_SEL
Gets current value of encoder selector
?
Selects absolute encoder interface
ABS
Selects relative encoder interface
REL
HWRESET
Perform a hardware and firmware reset
/
STATUS
Query device status
?
TEMP
Read the devices internal temperature
?
VER
Query the device firmware version
?

EnBOX User’s Manual Software Commands
19
2.3 Command description
2.3.1 GET Command
The purpose of the GET command is to read back a single snapshot of the
values for the active channels. The “G\r\n” command is a useful shortcut fully
equivalent to the “GET:?\r\n” command.
Get will return “GET:” string and two decimal numbers, separated by colon
(“:”) which represent encoder counts. In case of absolute encoders this are values read
from the encoders, in case of relative encoders this are values of accumulators.
The data returned from GET command is dependent on ENC_SEL value.
Examples:
GET example:
GET:?\r\n
GET:10027:20218\r\n
or:
G\r\n
GET:10027:20218\r\n

Software Commands EnBOX User’s Manual
20
2.3.2 ENC_SEL Command
The ENC_SEL command can be used to select between ABSolute encoders
(RESOLUTE™) or RELative encoders (TONiC™). The current value of selector is
indicated by a LED on front-panel and can be also retrieved with “ENC_SEL:?”
Command. The value of selector is stored in non-volatile memory and will be
preserved during power cycles.
To select the absolute encoder, an “ENC_SEL:ABS”command must be sent,
to which EnBOX will return ACK\r\n. To select relative encoder, an
“ENC_SEL:REL”command must be send, to which EnBOX will return “ACK”.
To retrieve the current value of selector, an “ENC_SEL:?”command must be
sent, to which EnBOX will return either “ENC_SEL:REL” if relative encoder or
“ENC_SEL:ABS” if absolute encoder is selected.
For invalid argument (neither ABC nor REL nor ?) the EnBOX will return
“NAK”.
Examples:
Getting the value of selector:
ENC_SEL:?\r\n
ENC_SEL:REL\r\n
Setting the value to absolute encoder:
ENC_SEL:ABS\r\n
(short delay to write to non-volatile memory)
ACK\r\n
Table of contents