
JDx QUICK START GUIDE
15 | P a g e
Q S 8 7 9 8 3 8 , R E V A . 6
3.2.17
R
ELATIVE
Z
ERO
9
The JDx family f sensors offers you the ability to compensate for any installation offsets you may encounter. This alleviates
the majority of tolerance concerns when designing brackets or mounting surfaces for the JDx. When the command is issued
to capture a relative zero, the device will capture its next reading as the new zero point. A non-volatile save (see section
3.2.8) is required for this value to persist following a power cycle or manual reset.
Command Syntax
;<NodeID>,Z,1
CRLF
or
:<NodeID>,Z,1,<CRC16>
CRLF
Response Syntax
Varies per number of axes in your product:
<NodeID>,Z,1,<1
st
axis offset>,…,<CRC16>CRLF
Example Command
;027,Z,1
CRLF
Example Response
027,Z,1,-74.4550,Software zero,4756CRLF
(Single axis inclinometer)
027,Z,1,-74.1570,-7.2397,Software zero,547E (Dual axis inclinometer)
3.3
DATA INTEGRITY, CRC
All responses from the JDx sensor include an ASCII based 16-bit CRC value. The value is provided so that the customer may
choose to validate packet content integrity in any environment. The CRC implementation was borrowed from the CRC
calculation algorithm used by the Modbus protocol
10
. The CRC value is always the last 2 bytes prior to the CR and LF which
represents the last four ASCII characters of the transmitted packet.
3.4
SHARED RS-485 BUS
A helpful resource for RS-485 networks and implementation is authored by Texas Instruments
11
.
9
It is possible for Jewell to pre-load a relative zero into the device, please contact
for details.
10
See
http://modbus.org/docs/PI_MBUS_300.pdf
(page marked “112”). See also https://www.libcrc.org/ specifically
https://www.libcrc.org/crc_modbus/
. The JDx implements revision 69 of the “libcrc.org” code.
11
The RS-485 Design Guide, authored by Texas Instruments,
http://www.ti.com/lit/an/slla272c/slla272c.pdf