0% found this document useful (0 votes)
19 views6 pages

RELE

Uploaded by

jaimesaldias
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views6 pages

RELE

Uploaded by

jaimesaldias
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

Machine Translated by Google

Chengdu Ebyte Electronic Technology Co.,Ltd. ÿ2DI + 2AI + 4DOÿMA01/MA02-AACX2240 User Manual

7.Modbus uses

7.1 Register List

Table 7-1-1 Register List


Number The contents of the The applicable
Register address state The range of data
ber register function code
0x00-0xFF, write changes the
(00000)0x0000 4 Do status R.W. current DO state, and read gets 0x01ÿ0x05ÿ0x0F
the current DO state.
0x00-0xFF, set the power-on
The status of the DO when state of the DO, write, and the next time
(00100)0x0064 4 R.W. 0x01ÿ0x05ÿ0x0F
it is powered on you restart, the state of
the DO is the state of the setting.

R.W. 0x00-0xFF,which represents the 0x02


(10000)0x0000 4 BY ÿ
current level signal for DI.
0x0000-0xFFFF, writes represent to

4 Say count value R.W. the initial value of the 0x03ÿ0x06ÿ0x10


(42527)0x09DF
set count, and read out the value
that has been read out.
0x0000-0x0002, 0x0000 level mode

R.W. (default mode), 0x0001 0x03ÿ0x06ÿ0x10


(41400)0x0578 4 DO mode of operation
press mode, 0x0002 follow mode.

0x32-0xFFF (50-65535),
(41500)0x05DC 4 DO press width R.W. 0x03ÿ0x06ÿ0x10
duration of pulse, in ms.
0x0000-0x0002, 0x0000

4 R.W. represents the rising edge count, 0x03ÿ0x06ÿ0x10


(41318)0x0526 Di counting method
0x0001 the falling edge count, 0x0002
the level count.
0x0000-0x0001, 0x0000
How the DI count value is zeroed
(41304)0x0518 4 R.W. automatic zeroing and manual zeroing 0x03ÿ0x06ÿ0x10
0x0001.
(41311)0x051F 4 Set the zeroing method RW 0x0001-0x00FFÿ 0x03ÿ0x06ÿ0x10
Set the DO to follow the 0x0001-0x0008, 0x0001
(41600)0x0640 4 R.W. 0x03ÿ0x06ÿ0x10
channel represents the first input.
(42000)0x07D0 7 Module model R See model definition table. 0x03

(42012)0x07DC 2 The firmware version R Firmware version number. 0x03

10 The name of the module RW The name is up to 20 bytes long, 0x03ÿ0x06ÿ0x10


(42014)0x07DE
including ""
(42027)0X07E8 1 Module Software Address RW 0x01-0xE0ÿ 0x03ÿ0x06ÿ0x10

Write 5BB5 and the set


Restore the default
(42025)0X07E9 1 R.W. parameters revert to the default 0x03ÿ0x06ÿ0x10
parameters
parameters.

Write 5BB5 and the device


(42026)0x07EA 1 The device restarts R.W. 0x03ÿ0x06ÿ0x10
restarts immediately

The default is 0x0003, or 9600.

0x0000, ie 1200;

0x0001, or 2400;
(42100)0x0834 1 Baud rate code R.W. 0x03ÿ0x06ÿ0x10
0x0002, or 4800;

0x0003, or 9600;

0x0004, ie 19200;

Copyright ©2012–2024, Chengdu Ebyte Electronic Technology Co.,Ltd. 33


Machine Translated by Google

Chengdu Ebyte Electronic Technology Co.,Ltd. ÿ2DI + 2AI + 4DOÿMA01/MA02-AACX2240 User Manual

0x0005, or 38400;

0x0006, or 57600;

0x0007, or 115200;

The default value is 0x0000,

which is not checked.

(42102)0x0836 1 The way to check R.W. 0x0000, ie no checks; 0x03ÿ0x06ÿ0x10

0x0001, ie odd check;

0x0002, ie parity;

7.2 List of AI-related registers

Table 7-2-1 List of AI-related registers


Wildebeest

Register The contents of the The applicable


mb state The range of data
address register function code
er
(30000)0x0000 4 The original value of the AI R 0-4095 (30100)0x0064 0x04

4 AI engineering value R 0-25000 0x04

(40400)0x0190 4 AI High Point Calibration RW 0-4095 0x03ÿ0x06ÿ0x10


value
(40600)0x0258 4 AI Low Calibration Value RW 0-4095 (41200)0x04B0 0x03ÿ0x06ÿ0x10
1 All AI channel filter RW 1-16 0x03ÿ0x06ÿ0x10
parameters
0x0000-0x0001, 0x0000 for
1 All AI channel sampling R.W. 0-20mA and 0x0001 for 0x03ÿ0x06ÿ0x10
(41202)0x04B2
ranges 4-20mA.

7.3 Instruction format (partial)

7.3.1 Read DO output coil status

Use the 01 function code to read the output coil status, for example, read the two output coil states

twenty 01 00 00 00 02 XX XX

Device Modbus The function The number of output


Register start address CRC check code
address code coils read

When the above command is sent to the device via the 485 bus, the device returns the following values:

twenty 01 01 02 XX XX

Device Modbus The function The number of bytes of


The status data returned CRC check code
address code the data

The status data returned above 02 indicates that the output DO2 on .

Copyright ©2012–2024, Chengdu Ebyte Electronic Technology Co.,Ltd. 3. 4


Machine Translated by Google

Chengdu Ebyte Electronic Technology Co.,Ltd. ÿ2DI + 2AI + 4DOÿMA01/MA02-AACX2240 User Manual

7.3.2 Read Hold Register

Use the 03 function code to read one or more register values, for example, read DO1 operating mode.

twenty 03 05 78 00 01 XX XX

Device Modbus The function The register to read


Register start address CRC check code
address code quantity

When the above command is sent to the device via the 485 bus, the device returns the following values:

twenty 03 02 00 00 XX XX

Device Modbus The function The number of bytes of the


The data returned CRC check code
address code data

The above 00 00 indicates that DO1 is level mode.

7.3.3 Write a single hold register

Write a single hold register using the 06 function code, for example, set the operating mode of DO1 to pulse mode

twenty 06 05 78 00 01 XX XX

Device Modbus The function


Register address Write the value CRC check code
address code

When the above command is sent to the device via the 485 bus, the device returns the following values:

twenty 06 05 78 00 01 XX XX

Device Modbus The function


Register address Write the value CRC check code
address code

If the modification is successful, the 0x0578 register data is 0x0001.

7.3.4 Write multiple hold registers

Write multiple hold register commands using 10 function codes, for example, set the do1-DO4 operating mode at the

sametime.20 10 05 78 00 04 08 0001 0002 XX XX

The number
Device Modbus The function Register The number of bytes The data CRC check
address code start address of registers written to written code
the data

When the above command is sent to the device via the 485 bus, the device returns the following values:

Copyright ©2012–2024, Chengdu Ebyte Electronic Technology Co.,Ltd. 35


Machine Translated by Google

Chengdu Ebyte Electronic Technology Co.,Ltd. ÿ2DI + 2AI + 4DOÿMA01/MA02-AACX2240 User Manual

twenty 10 05 78 00 04 XX XX

Device Modbus The function Register CRC check


The number of registers
address code address code

If the modification is successful, the values of thefour consecutive registers with 0x 0578 as the starting address are 0
x0001, 0x0002, 0x0003, 0x0000.

7.3.5 Write a single DO coil status

Use the 05 command to write a single command, for example, to set do1 to pulse mode

twenty 05 00 00 FF 00 XX XX

Device Modbus The function Write the value


Register address CRC check code
address code Coil action: On

When the above command is sent to the device via the 485 bus, the device returns the following values:

twenty 05 00 00 FF 00 XX XX

Device Modbus The function


Register address Write the value CRC check code
address code

DO1 coil on.

7.3.6 Write multiple DO coil states

Use the 0F function code to write a single command, for example, set do1 to pulse mode

twenty 0F 00 00 00 04 01 06 XX XX
Control the
The The number
Device Modbus The starting The number of data for the CRC check
functions of bytes of
address address coils coil code
code the data
(bit operation)

When the above command is sent to the device via the 485 bus, the device returns the following values:

twenty 0F 00 00 OO O4 XX XX

The
Device Modbus CRC check
functions Register address The number of coils
address code
code

DO2, DO3 coil on.

Copyright ©2012–2024, Chengdu Ebyte Electronic Technology Co.,Ltd. 36


Machine Translated by Google

Chengdu Ebyte Electronic Technology Co.,Ltd. ÿ2DI + 2AI + 4DOÿMA01/MA02-AACX2240 User Manual

7. 3. 7 Read the Input Register

For example, the original value of the four AI channels is captured, and the original value of the four AI channels is
read using the 0 4 function code.
twenty 04 00 00 00 04 XX XX

The
Device Modbus The starting
functions The number of AI channels is 4 CRC check code
address address
code

When the above command is sent to the device via the 485 bus, the device returns the following values:

twenty 04 08 00 00 00 00 00 00 00 00 XX XX

The data 4 AI channel raw value data,


The
Device Modbus words Each 2 bytes of data represents an AI
functions CRC check code
address The number channel data, where the original
code
of sections values for each channel are0, 0,0,0

Copyright ©2012–2024, Chengdu Ebyte Electronic Technology Co.,Ltd. 37


Machine Translated by Google

Chengdu Ebyte Electronic Technology Co.,Ltd. ÿ2DI + 2AI + 4DOÿMA01/MA02-AACX2240 User Manual

The final interpretation is owned by Chengdu Ebyte Electronic Technology Co.,Ltd

Revised history

Version The revision date Revised description Maintainer


1.0 2021-08-30 The initial version L.C.

1.1 2022-06-27 Content review XXN


1.1 2024-03-13 Content review L.T.

About us

Technical support: [email protected]


Documents and RF Setting download link: www.ebyte.com
Thank you for using Ebyte products! Please contact us with any questions or suggestions: [email protected]
-------------------------------------------------- --------------------------------------------

Phone: +86 028-61399028


Web: www.ebyte.com
Address: B5 Mold Park, 199# Xiqu Ave, High-tech District, Sichuan, China

Copyright ©2012–2024, Chengdu Ebyte Electronic Technology Co.,Ltd. 38

You might also like