1: Overview:
Our company's self-developed MGS-2483-H24 is a magnetic guidance sensor (also known as a magnetic navigation sensor) used for magnetic track guided unmanned driving AGV vehicles. The sensor is installed on the unmanned AGV car, with a distance of 5-30mm between the sensor and the guiding magnetic strip. During the operation of the car, if the car deviates from the track, one or more positions of the built-in 24 position switch of the sensor will change. The system will issue various commands based on the combination code of the sensor switch status, so that the car can travel along the track correctly; The 24 bit switches are all output in an NPN collector open circuit manner, and users can use a certain switch to control loads with operating currents less than 30mA as needed.
MGS-2483-H24R is an extended version of our company's directional sensor. It is made of imported high-sensitivity magnetic sensors and large-scale integrated logic processing circuits, which have better sensitivity. As long as the magnetic field at the detection surface of the sensor is higher than 6GS, offset detection can be performed; It adds RS-485, RS232 or USB serial signal transmission on the basis of MGS-H24 (24 bit switch signal parallel output), and can also choose products with all three serial interfaces (select one through jumper). All serial interfaces use imported high-speed optocoupler 6N136 for electrical isolation, and the sensor can communicate with PC or PLC at a high speed.
2: Main parameters of MGS-H24-XX magnetic navigation sensor:
project |
parameter |
Remarks |
Specification |
MGS-H—S-20-C30-N-R |
|
Product Code |
MGS-2483-H24R |
|
Main material |
aluminum alloy |
|
power supply voltage |
9-24VDC |
|
load current |
30mA ( max) |
|
output channel |
Route 24 |
|
output type |
discrete signal |
|
sensing distance |
5-30mm |
|
Measurement offset range |
±210mm |
|
output method |
NPN collector open circuit output |
|
signal amplitude |
VOL≤0.6V |
VCC=12V |
VOH≥11V | ||
Protection type |
Short circuit protection, polarity protection |
|
insulation resistance |
50MΩ (min) |
|
electrical connection |
30PIN Jianniu connector |
The parallel signal output interface complies with MIL-C-83503 standard socket |
8PIN with flange socket |
RS-485 communication interface |
|
DB9 male socket |
RS-232 communication interface |
|
USB-B |
USB to serial port interface |
|
response time |
parallel signal |
1ms MAX |
serial signal |
12ms @ 19200 (related to baud rate) |
|
tensile strength |
5kg |
Between socket and shell |
service life |
3 years |
|
ambient temperature |
0—75℃ |
|
humidity |
90% max |
|
mechanical vibration |
7g |
F=20-400Hz, in each direction |
mechanical shock |
10g/16ms |
1000 times, in each direction |
Protection level |
IP65 |
|
esd protection |
4.5KV |
|
Electric field interference |
200V/m |
|
Installation and Usage |
Adapt to magnetic stripe N-pole |
50 × 1.2, field strength not less than 10Gs at a height of 40mm from the centerline of the magnetic stripe |
Installation direction |
Align the centerline of the sensor with the centerline of the magnetic stripe |
|
Application field |
Automated Guided Vehicle (AGV) |
|
Trackless mobile shelves, logistics picking and other industries |
||
Automatic Handcart AGC |
3: External dimensions

4: Pin attributes
1: 30PIN Jianniu connector
pin number |
attribute |
pin number |
attribute |
pin number |
attribute |
1 |
Switching output1 |
11 |
Switching output11 |
21 |
Switching output21 |
2 |
Switching output2 |
12 |
Switching output12 |
22 |
Switching output22 |
3 |
Switching output3 |
13 |
Switching output13 |
23 |
Switching output23 |
4 |
Switching output4 |
14 |
Switching output14 |
24 |
Switching output24 |
5 |
Switching output5 |
15 |
Switching output15 |
25 |
negative terminal of power supply |
6 |
Switching output6 |
16 |
Switching output16 |
26 |
|
7 |
Switching output7 |
17 |
Switching output17 |
27 |
|
8 |
Switching output8 |
18 |
Switching output18 |
28 |
|
9 |
Switching output9 |
19 |
Switching output19 |
29 |
|
10 |
Switching output10 |
20 |
Switching output20 |
30 |
positive power terminal |
2: 8PIN with flange connector
pin number |
attribute |
pin number |
attribute |
1 (V+) |
positive power terminal |
5 (+5V OUT) |
Sensor+5V output |
2 (V-) |
negative terminal of power supply |
6 (+5V IN) |
External+5V input |
3 (SEL) |
Address Selection |
7 B |
485 B |
4 |
Manufacturer reserves |
8 A |
485 A |
5: Wiring diagram.
1: Parallel signal interface:

2Serial signal interface

Note:
(1) The negative terminal of PIN 2 power supply is short circuited to the output ground of the controller, which means that the sensor and controller must be grounded together.
(2) When the PIN 3 address selection pin is short circuited to ground, the sensor address is forced to be 1 (0X01), the baud rate is 19200 (code 0x03), and when it is open circuited, the address is the address code written by the customer to register 0 using a write operation. The baud rate is the baud rate corresponding to the code written into register 1.
(3) Pin 6 external+5V input is connected to the+5V output of the controller to electrically isolate the sensor from the controller; If the controller cannot provide a+5V power supply, the pin can be short circuited to PIN 5 and the internal+5V power supply of the sensor can be used.
6: RS-485 communication protocol:
(one)Word format:
Baud rate9600、14400、19200、28800、38400、57600.
Word format definition:
Starting position:1
Data bit:8
Checkpoint: None
Stop position:1
The forced address of the sensor is0x01Cannot be modified, the initial address is0x02, saved at the address0The register can be modified by write operations.
Sensors only involve2A function code(0x03Read the sensor output signal;0x06Write the local address or set the baud rate.)
(two)The frame format is as follows:
1:Read sensor output signal
A:Host message
. Byte |
Second byte |
Register starting address |
number of registers |
CRC16verify(8005) |
|||
address code |
function code |
Address high bit |
Low order address |
tall8bit |
low8bit |
low8bit |
tall8 bit |
01 |
03 |
00 |
02 |
00 |
02 |
65 |
CB |
Message meaning: To address:1 The sensor sends a command to transmit the current sensor signal from the register2Start, read continuously2 The value of a register; A total of four bytes of data. The last two bytes are the checksum calculated by the host, and the sensor recalculates the first six bytes received and checks them against the checksum.
B:Sensor return message
. Byte |
Second byte |
sensor signal |
CRC16verify(8005) |
||||
address code |
function code |
tall8bit |
Secondary high8bit |
Next lowest8bit |
low8bit |
low8bit |
tall8 bit |
01 |
03 |
00 |
FF |
FF |
FC |
74 |
4A |
Message meaning: The sensor receives a valid command; Calculate the checksum by combining the local address, function code, and four bytes of data, and attach it to the front6 Send to host after byte: the third byte is empty, and the fourth byte is inside the sensor1-8Position switch status, the fifth byte is inside the sensor9-16Position switch status, the sixth byte is inside the sensor17-24The status of the position switch indicates that the sensor currently only has the th position24Position and rank23Set when a magnetic field is detected0Other positions were set without detecting a magnetic field1.
2:Write the local address: Please provide itPIN3Grounding, to19200The baud rate of the sensor(Address is1)register0Write address code(0x00—0xff)
A:Host message
. Byte |
Second byte |
Write register address |
Write Data |
CRC16verify(8005) |
|||
address code |
function code |
Address high bit |
Low order address |
tall8bit |
low8bit |
low8bit |
tall8 bit |
01 |
06 |
00 |
00 |
00 |
02 |
08 |
0B |
Message meaning: The host needs to modify the sensor address to0x02, and save it to the hold register0In the middle.
B:Sensor return message
. Byte |
Second byte |
Write register address |
Write Data |
CRC16verify(8005) |
|||
address code |
function code |
Address high bit |
Low order address |
tall8bit |
low8bit |
low8bit |
tall8 bit |
01 |
06 |
00 |
00 |
00 |
02 |
08 |
0B |
Message meaning: The sensor has modified the local address to0x02, and save it to the hold register0In the middle. atPIN3Open circuit to ground and reset sensor(power on again)Afterwards, the local address is0x02;
3:Set baud rate: PleasePIN3Grounding, to19200The baud rate of the sensor(Address is1)register1Write baud rate code(0x00—0x06)
A:Host message
. Byte |
Second byte |
Write register address |
Write Data |
CRC16verify(8005) |
|||
address code |
function code |
Address high bit |
Low order address |
tall8bit |
low8bit |
low8bit |
tall8 bit |
01 |
06 |
00 |
01 |
00 |
06 |
58 |
08 |
Message meaning: The host needs to modify the baud rate code of the sensor to0x06, and save it to the hold register1In the middle.
B:Sensor return message
. Byte |
Second byte |
Write register address |
Write Data |
CRC16verify(8005) |
|||
address code |
function code |
Address high bit |
Low order address |
tall8bit |
low8bit |
low8bit |
tall8 bit |
01 |
06 |
00 |
01 |
00 |
06 |
58 |
08 |
Message meaning: The sensor has modified the baud rate code to0x06, and save it to the hold register1In the middle. atPIN3Open circuit to ground and reset sensor(power on again)Afterwards, this machine57600Communicate at a baud rate.
Appendix: Comparison Table of Baud Rate Codes, Corresponding Baud Rates, and Sensor Response Times
code |
0 |
1 |
2 |
3 |
4 |
5 |
Baud rate |
9600 |
14400 |
19200 |
28800 |
38400 |
57600 |
response timems |
20 |
14 |
11 |
8 |
6 |
4 |
7: Precautions for use:
1: Please use a 9-24V DC stabilized power supply to power the sensor, avoiding high-power inductive and capacitive loads such as sensors and motors sharing the power supply
2: Pay attention to the pin properties and avoid misconnecting. It is strictly prohibited to connect the output pin to the positive or negative pole of the power supply.
3: The manufacturer reserves the terminals and strictly prohibits any connection, otherwise it may cause damage to the sensor invalid.
4: When installing the sensor, try to keep it as far away from the motor as possible, leaving at least 80mm gap, to avoid sensor misoperation caused by the magnetic field generated by the motor winding.
5: If you want to use an RS-485 converter, please use an industrial grade active isolation converter and not a commercial grade passive converter.
6: In long-distance signal transmission, in order to avoid signal reflection and echo, it is generally necessary to connect the two terminals of the cable to the terminal
Resistance capacitance absorption. The terminal matching resistance value depends on the impedance characteristics of the cable and is independent of the length of the cable.RS-485Generally adopted
Connect with twisted pair cables (shielded or unshielded), and the terminal resistance is generally between100 to140Between Ω, the typical value is1200;
Capacitors are usually used0.1uF(104)In actual configuration,PLCorPCThe upper computer is connected to one end of the cable
On two terminal nodes, namely Near end and Remote, each connected to a terminal for impedance and capacitance absorption, while the nodes in the middle are
Cannot connect impedance capacitance absorption, otherwise it will cause communication errors.

8: Product code meaning:
MGS |
—□ |
—□ |
|
Magnetic navigation sensor |
H24 |
24 digits (representing the number of sensor points with numbers) |
|
H16 |
16 bits (using numbers to represent the number of sensor points) |
||
empty |
Only parallel output without serial output |
||
R2 |
Parallel output+RS-232 |
||
R4 |
Parallel output+RS-485 |
||
R24 |
Parallel output+RS232+RS485 (two serial interfaces, choose one) |
||
U |
Parallel output+USB |
||
R24U |
Parallel output+RS232+RS485+USB (three serial interfaces, choose one from three) |
9: Ordering information:
serial number |
main model |
型谱 |
Feature Description |
||||
5 |
MGS |
—□ |
—□ |
—□ |
—□ |
—□ |
Indicating a magnetic track navigation sensor |
Magnetic navigation sensor |
H |
Hall rffect |
|||||
R |
Switches (switch type) |
||||||
V |
voltage output |
||||||
I |
current output |
||||||
P |
pulse output |
||||||
S |
switch output |
||||||
—□ |
Response distance (mm), represented by numbers |
||||||
—□ |
Lead out length |
||||||
—□ |
The number of connector pins is represented by a C+number |
||||||
N |
Detecting magnetic pole as N pole |
||||||
S |
Detecting magnetic pole as S pole |
||||||
