M8128 User Manual Overview
M8128 User Manual Overview
This document is the User’s Manual for M8128, the interface box for the
force/torque sensor (loadcell) manufactured by SRI, Sunrise Instruments Co.,
Ltd. It’s strongly recommended that anyone who uses M8128 should read
this document before any operation. SRI reserves all the rights of this
document. Please do not hesitate to contact SRI if there is any question.
Table of Content
1. INTRODUCTION ....................................................................................................................................... 3
2. QUICK START ............................................................................................................................................ 4
2.1 RS232 COMMUNICATION ..................................................................................................................... 4
2.2 ETHERNET COMMUNICATION ............................................................................................................... 5
2.3 CAN BUS COMMUNICATION ................................................................................................................ 6
3. POWER CABLE, CONNECTORS AND LED LIGHTS ......................................................................... 7
3.1 POWER CABLE...................................................................................................................................... 7
3.2 CONNECTOR DEFINITION ...................................................................................................................... 7
3.2.1 19 PIN LEMO CONNECTOR .................................................................................................................. 7
3.2.2 ETHERNET / RS232 / CAN BUS CONNECTOR ....................................................................................... 8
3.3 INDICATED LIGHTS ............................................................................................................................... 8
4. IDAS R&D DEBUGGING SOFTWARE................................................................................................... 8
4.1 SOFTWARE INTERFACE ......................................................................................................................... 9
4.2 SEND COMMANDS ....................................................................................................................................... 9
4.3 GET REAL-TIME DATA .................................................................................................................................. 9
5. COMMANDS ............................................................................................................................................. 10
5.1 COMMANDS TO CONFIGURE RS232/ETHERNET/CAN ........................................................................ 12
5.1.1 UARTCFG / COMMUNICATION PARAMETERS FOR RS232 ................................................................ 12
5.1.2 EIP / ETHERNET IP ADDRESS .............................................................................................................. 13
5.1.3 EMAC / ETHERNET MAC ................................................................................................................. 13
5.1.4 EGW / ETHERNET GATEWAY ADDRESS .............................................................................................. 13
5.1.5 ENM / ETHERNET NETMASK .............................................................................................................. 14
5.1.6 CIDT / ID TYPE FOR BUSCAN ........................................................................................................... 14
5.1.7 CFIDL / ID OF CAN BUS................................................................................................................... 14
5.1.8 CRATE / BAUD RATE OF CAN BUS ................................................................................................... 15
5.1.9 CFI / INTERVAL TIME BETWEEN FRAMES OF CAN BUS....................................................................... 15
5.2 SFWV / SEARCH FIRMWARE VERSION ............................................................................................... 16
5.3 DCPM / READ OR SET DECOUPLED MATRIX ....................................................................................... 16
5.4 DCPCU / CALCULATION UNIT FOR DECOUPLED DATA........................................................................ 16
5.5 CHNAPG / READ THE GAIN FOR EACH CHANNEL .............................................................................. 16
5.6 SMPR / READ OR SET SAMPLING RATE .............................................................................................. 17
5.7 DCKMD / SET DATA-CHECK METHOD ............................................................................................... 17
5.8 SGDM / SET THE FORMAT FOR UPLOADING DATA .............................................................................. 17
5.9 GOD / GET ONE PACKAGE DATA FROM M8128................................................................................... 18
5.10 GSD / GET DATA CONTINUOUSLY ....................................................................................................... 18
6. STEPS TO COMMUNICATE WITH M8128......................................................................................... 19
7. DECOUPLED CALCULATION ............................................................................................................. 20
7.1 MATRIX DECOUPLED LOADCELL ........................................................................................................ 20
7.2 STRUCTURALLY DECOUPLED LOADCELL ............................................................................................ 20
7.3 SENSORS OTHER THAN 6 AXIS LOADCELL........................................................................................... 21
1. Introduction
The interface box M8128 provides bridge excitation, signal conditioning, data
acquisition and digital communication to the user’s controller or PC via RS232,
CAN Bus or Ethernet. The interface box has six analog input channels with
programmable gains to allow for low voltage such as strain gage bridge signal. A
24 bit sigma-delta AD converter (16 bit effective) is used to provide high resolution
(1/5000 to 1/10000 of full scale) digital output. The data rate is up to 2 kHz. A 6
axis loadcell is connected to the interface box via a 19 pin LEMO connector
Specifications:
• Analog
– # of Channels: 6
– Programmable gain
– Automatically adjusting sensor’s zero offset
– Low noise instrumentation amplifiers
• Digital
– RS232 , CAN Bus and Ethernet
– 24 bit sigma-delta ADC (16 bit effective), Sampling rate: 10~2k Hz
– Resolution: 1/5000 to 1/10000 of full scale, when connected to SRI’s sensors
– Programmable system parameters
• Frontal Panel
– Loadcell connector: LEMO FGG.2B.319.CLAD52Z
– Digital: Standard DB-9 connector(includes RS232 , CAN Bus and Ethernet
communication)
– Power supply: 12 to 36V, 200mA. Power cable - Diameter 3.5mm& Length
2m
– Indicated lights: Power & Status
• Software
– iDAS RD:Debugging software to display real-time sampling curve.
– Open communication command
– RS232 and Ethernet TCP routine code: C++ source code
2. Quick Start
(a) Connect the loadcell to M8128 via a LEMO connector;
(b) Communicate to PC via RS232/Ethernet/CAN;
(c) Provide 24V DC power supply (not included) to the interface box M8128.
Step 3:Select Eng in the output Unit box, check CH1~CH6 boxes to represent FX, FY, FZ,
MX, MY, MZ, then click “RealTime” button to start obtaining real-time force
curves.
If the information box doesn’t show initialization information after 1 minute of power-on, please check if: 1)
connection and PortName are correct;2) BaudRate is selected as 115200.
If the real time data of CH1~CH6 are incorrect, please exam the decoupled matrix and the calculation unit, and
refer to Chapters 4.0, 5.3, 5.4 and 7.0 of this Manual.
Step 2:Click “Open Port”, the indicated light will turn red.
Step 3:Select Eng in the output Unit box; check CH1~CH6 boxes to represent FX,FY,
FZ,MX,MY,MZ; then click “RealTime” button to start obtaining real-time
force/torque curves.
If the pop-up window shows “0 iDAS found”, please try 1) click “Discover iDAS” button again;2) click
“ LocalHost”; 3) change the network card and try again.
If the real time data of CH1~CH6 are incorrect, please check the decoupled matrix and the calculation unit, and
refer to Chapters 4.0、5.3、5.4 and 7.0 of this Manual.
Negative excitation(if
17 -E
support)
18 +E Positive excitation
19 GND
DB Connector
Definition Note
Pin #
1 TDP Ethernet
2 RX RS232
3 TX RS232
5 GND Ground
ON Power is on
System is working
ON Flickering
properly
Check the loadcell
ON ON Excitation is abnormal
cable
System works ok. PWR Either ignore or
OFF Flickering
light may get damaged repair PWR light
Excitation is abnormal
Check the loadcell
OFF ON and PWR light may get
cable or contact us
damaged
Command Response
Window
Upload
Channel
Port Setting
Command Input Box
& Note:
With RS232 communication, SampRate is up to 300 Hz for 6-channel data upload and
1 kHz for 1-channel data upload.
If the real-time data shown by iDAS R&D is incorrect, please click Stop and send Commands
DCPM and DCPCU to make sure that current matrix coefficients and calculation unit match the
sensor calibration report. Refer to 5.3, 5.4 and 6.0 of this Manual.
5. Commands
Definition:
Master:The equipment that send commands to M8128, such as PC or the user’s control system. M8128 is
called as Slave Equipment.
& Note:
? Parameter ‘?’ denotes that Master is asking for a response from Slave Equipment.
? M8128 will not respond until the command sent by Master is executed.
? When debugging with iDAS R&D software, the software performs ASCII conversion and put
\r\n at the end of the command automatically.
Example:
Send:AT+SMPF=?\r\n
ASCII: 41 54 2B 53 4D 50 52 3D 3F 0D 0A
Response:ACK+SMPF=100$OK\r\n
ASCII: 41 43 4B 2B 53 4D 50 52 3D 31 30 30 24 4F 4B 0D 0A
Send:AT+GOD\r\n
ASCII: 41 54 2B 47 4F 44 0D 0A
Response:AA 55 00 1B 04 BB A1 8C B8 41 E0 19 30 42 DD 82 B0 40 A2 62 B8 C0 DB 68 75 40 9B EB 16 40 30
Configuration of RS232/CAN/Ethernet
Send:AT+UARTCFG=19200,8,1.00,N\r\n
Response:Messy codes
The baud rate of the master equipment should be changed to the current set value of 19200 in order to communicate correctly.
Send:AT+ EIP=[Link]\r\n
Response:ACK+EIP=[Link]$OK\r\n
Send:AT+EMAC=12-13-14-15-16-17\r\n
Response:ACK+EMAC=12-13-14-15-16-17$OK\r\n
Send:AT+EGW=[Link]\r\n
Response:ACK+EGW=[Link]$OK\r\n
Send:AT+ENM=[Link]\r\n
Response:ACK+ENM=[Link]$OK\r\n
Send:AT+CIDT=EXT\r\n
Response:ACK+CIDT=EXT$OK\r\n
Send:AT+CFIDL=0,125,126,127,128\r\n
Response:ACK+CFIDL=0,125,126,127,128$OK\r\n
Send:AT+CRATE=?\r\n
Response:ACK+CRATE= RP:7,8,20$OK\r\n
Send:AT+CRATE=BR:125000\r\n
Response:ACK+CRATE=BR:125000$OK\r\n
Send:AT+CFI=10\r\n
Response:ACK+CFI=10$OK \r\n
Send:AT+DCPCU=MVPV\r\n
Response:ACK+DCPCU=MVPV$OK\r\n
Variable Type
Parameter Description
(Valid Range)
Float
GV-Chn Gain for Channels 1-6
(-3.4E38~3.4E38)
Example:
Send:AT+CHNAPG=?\r\n
Response:ACK+CHNAPG=123.94;123.92;124.05;124.11;124.03;124.03;124.01;123.85$OK\r\n
Send:AT+SMPR=200\r\n
Response:ACK+SMPR=200$OK\r\n
C: AD Count
Send:AT+SGDM=(A02,A05,A01);E;1;(WMA:1)\r\n
Response:ACK+SGDM=(A02,A05,A01);E;1;(WMA:1)$OK\r\n
& Note:
? 0xAA ,0x55:Frame header of data package.
PackageLength:Unsigned short int,16-bits, highest byte first, The length of data of each channel,
which equals to 2+ChNum*N*DNpCH+1(SUM check) or 2+ ChNum*N*DNpCH+4(CRC32 check)
Where
Example:
Send:AT+DCKMD=SUM\r\n
Response:ACK+DCKMD=SUM$OK\r\n
Send:AT+SGDM=(A01,A02,A03,A04,A05,A06);E;1;(WMA:1)\r\n
Response:ACK+SGDM=(A01,A02,A03,A04,A05,A06);E;1;(WMA:1)$OK\r\n
Send:AT+GOD\r\n
Response:AA 55 00 1B C4 C7 01 6A F4 C0 EF 7D 33 C0 49 62 C9 C0 A2 5C C6 BD A6 19 8F BD AF DA 69
3E 6E
Where
0xAA ,0x55:Frame header
00 1B:PackageLength 2+6*4*1+1=27 bytes;
C4 C7:Package No 50375;
Channel 1 Engineering Unit:01 6A F4 C0, single-precision float(C0F46A01)converted into -7.637940;
Channel 2 Engineering Unit:EF 7D 33 C0, single-precision float(C0337DEF)converted into -2.804561;
Channel 3 Engineering Unit:49 62 C9 C0, single-precision float(C0C96249)converted into -6.293248;
Channel 4 Engineering Unit:A2 5C C6 BD, single-precision float(BDC65CA2)converted into -0.096856;
Channel 5 Engineering Unit:A6 19 8F BD, single-precision float(BD8F19A6)converted into -0.069873;
Channel 6 Engineering Unit:AF DA 69 3E, single-precision float(3E69DAAF)converted into 0.228373
SUM Check: 6E
& Note:
? The parameters set by Command SMPR and SGDM are saved to M8128, and will not be lost
after power off.
? If iDAS R&D software is used, M8128 is required to restart (Power off and Power on) before
debugging your own codes.
? If the real time data of CH1~CH6 is incorrect, please check the decoupled matrix and the
calculation unit, and refer to Section 4.0, 5.3, 5.4 and 7.0 of this Manual
7. Decoupled Calculation
If the M8128 is purchased together with SRI sensor, the decoupled matrix and calculation unit of
SRI sensor have been configured in the M8128. The decoupled matrix and calculation unit can
be updated by Command DCPM and DCPCU when necessary.
Decoupled matrix and calculation unit can be found in the calibration report. Two different
reporting formats will be provided according to the sensor's structure.
The Commands to input the matrix coefficients and to set the calculation unit are as follows:
AT+DCPM=(-0.03220,0.49984,0.00136,-1.01398,-0.01208,0.50908);(0.00046,0.84855,0.015
31,0.02114,-0.03126,-0.86432);(1.19167,0.00028,1.20748,0.00224,1.198078,0.00320);(-0.06
386,-0.00097,0.13028,-0.00009,-0.06523,0.00012);(-0.11090,0.00016,-0.00049,0.00075,0.11
138,-0.00019);(-0.00046,0.08401,-0.00067,0.083040,-0.00089,0.08433)
AT+DCPCU=MV
Sensitivity unit is mV/V/Eu,. The diagonal elements of the matrix are the inverse of the
sensitivities (1/Sensitivity). The calculation unit is mV/V.
1783.9940 0 0 0 0 0
0 1770.5069 0 0 0 0
0 0 14656.3095 0 0 0
0 0 0 288.7169 0 0
0 0 0 0 284.0102 0
0 0 0 0 0 220.3711
The Commands to input the matrix coefficients and to set the calculation unit are as follows:
AT+DCPM=(1783.9940,0,0,0,0,0);(0,1770.5069,0,0,0,0);(0,0,14656.3095,0,0,0);(0,0,0,288
.7169,0,0); (0,0,0,0,284.0102,0); (0,0,0,0,0,220.3711)
AT+DCPCU=MVPV
Sensitivity unit is mV/V/Eu. The diagonal elements of the matrix are the inverse of the
sensitivities (1/Sensitivity).
6910.3725 0 0 0 0 0
0 6921.8523 0 0 0 0
0 0 36755.2468 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
The Commands to input the matrix coefficients and to set the calculation unit are as follows:
AT+DCPM=(6910.3725,0,0,0,0,0);(0,6921.8523,0,0,0,0);(0,0,36755.2468,0,0,0);(0,0,0,0,0,0);(0,0,0,
0,0,0); (0,0,0,0,0,0)
AT+DCPCU=MVPV
Torque loadcell
Sensitivity unit is V/Eu. The first row and the first column equals to 1/sensitivity/1000.
Calculation unit is mV.
The Commands to input the matrix coefficients and to set the calculation unit are as follows:
AT+DCPM=(0.048913,0,0,0,0,0);(0,0,0,0,0,0);(0,0,0,0,0,0);(0,0,0,0,0,0);(0,0,0,0,0,0);(0,0,0,0,
0,0)
AT+DCPCU=MV