background image

Chengdu Ebyte Electronic Technology Co.,Ltd.

【4AI+2DO】 MA02-XACX0420

User Manual

Copyright ©2012–2021

Chengdu Ebyte Electronic Technology Co.,Ltd.

22

6.2 Software Functions

6.2.1 IO demo interface

Figure 6-2-1 SOFTWARE I/O demonstration interface

1

Equipment window

Display current connected device information (serial number, device model, device address,

firmware version).

Figure 6-2-2 Device window interface

2

Serial port parameters window

Display serial port parameters (port, baud rate, data bit, parity bit, stop bit, etc.) and open the

serial port.

Summary of Contents for M02-XACX0420

Page 1: ... 4AI 2DO MA02 XACX0420 ...

Page 2: ... sampling range 12 4 1 4 Simulation input AI original value engineering quantity value 12 4 1 5 Analog input AI calibration 13 4 2 Switch output DO 13 4 2 1 Switch output DO description 13 4 2 2 Switch output DO mode setting 14 4 3 Device address 14 4 3 1 Device address 14 4 3 2 Hardware Address DIP switch 15 4 3 3 Software address offset address 17 5 Port connection 17 5 1 Cable connections to th...

Page 3: ...Device Status Query 27 6 4 Equipment condition control 29 7 Use Modbus 31 7 1 Register list 31 7 2 AIList of relevant registers 32 7 3 Instruction format part 32 7 3 1 Read DO output coil status 32 7 3 2 Read hold register 33 7 3 3 Write a single hold register 33 7 3 4 Write multiple hold registers 33 7 3 5 Write a single DO coil state 34 7 3 6 Write multiple DO coil states 34 7 3 7 Read input reg...

Page 4: ...ures Supports the Modbus RTU protocol Buy the government to support various configuration software PLC touch screen Log RS232 acquisition and control IO The dc power supply is 8 28V according to the bill A 4 way analog input AI 0 20mA 4 20mA Costing a 2 way switch outputs DO relay Switching output DO supports both level and pulse modes Queue Input data collection port isolation defense Gigabit Eth...

Page 5: ...l port I O networking devices HEREINAFTER referred to as I O devices prepare auxiliary materials such as a computer converter power supply and screwdriver Details are as follows Table 2 1 1 Preparation list Serial number Devices Quantity 1 IO device 1 2 USB to serial converter 1 3 Configuration Tool Software 1 4 computer 1 5 power adapter 12V 1A 1 6 screwdriver word SL 2 1 7 Signal generator or se...

Page 6: ...ology Co Ltd 4AI 2DO MA02 XACX0420 User Manual Copyright 2012 2021 Chengdu Ebyte Electronic Technology Co Ltd 3 Figure 2 2 1 Power supply wiring diagram 2 2 2 Communication cable RS232 Figure 2 2 2 Communication RS232 wiring diagram ...

Page 7: ...l wiring diagram 1 After the device is powered on the POWER indicator is steady on and the POWER supply is normal 2 Analog input AI wiring connect the signal generator to the analog input AI port as shown in the figure 3 Switch output DO wiring connect the load to switch output DO port as shown in the figure Figure 2 2 3 Overall cable connection diagram ...

Page 8: ...s Open the serial port and find the corresponding device port number The default baud rate is 9600 Click Open serial Port Figure 2 3 2 Opening the serial port 2 In the device window click Search Device The log window on the right begins to refresh the search information After the connected device is displayed in the Device column of the device window click The Stop Search menu Select the device an...

Page 9: ...nology Co Ltd 4AI 2DO MA02 XACX0420 User Manual Copyright 2012 2021 Chengdu Ebyte Electronic Technology Co Ltd 6 Figure 2 3 3 Connecting devices 2 3 2 Testing Of Equipment Figure 2 3 4 equipment test Figure 2 3 5 Actual test effect ...

Page 10: ...utput DO RS485 RS232 MA01 AXCX4020 4DI 2DO 4 road 2 road MA02 AXCX4020 4 road 2 road MA01 XACX0420 4AI 2DO 4 road 2 road MA02 XACX0420 4 road 2 road MA01 AACX2220 2DI 2AI 2DO 2 road 2 road 2 road MA02 AACX2220 2 road 2 road 2 road MA01 AXCX4040 4DI 4DO 4 road 4 road MA02 AXCX4040 4 road 4 road MA01 XACX0440 4AI 4DO 4 road 4 road MA02 XACX0440 4 road 4 road MA01 AACX2240 2DI 2AI 4DO 2 road 2 road 4...

Page 11: ...p bit 1 Fixed communication protocol Modbus RTU protocol device address 1 247 Default address 32 Software 1 hardware 31 AI Input AI way 4 road Collection scope 0 20mA 4 20mA resolution ratio 12 位 acquisition accurancy 3 collection frequency 10 Hz Collection features Single ended input input impedance 100Ω DO Output DO 路数 2road DO output type TypeC relay normally open normally closed DO output mode...

Page 12: ...oning hole installation 3 3 Port Instructions Figure 3 3 1 Interface diagram Table 3 3 1 Port function table Serial number pin Instructions Note 1 VCC Power supply RVV 2 0 75 wire is recommended 2 GND grounding 3 A TX RS232 corresponds to TX external connection needs to be crossed RVSP 3 0 5 Wire is recommended 4 B RX RS232 corresponds to RX external connection needs to ...

Page 13: ...alog input channel 1 RVV 2 0 5 wire is recommended 6 AI2 Analog input channel 2 7 AI3 Analog input channel 3 8 AI4 Analog input channel 4 9 DO1 Switch output channel 1 Relays have normally open and normally closed ends 10 DO2 Switch output channel 2 3 4 Size chart Figure 3 4 1 Dimension diagram 3 5 Installation The device is installed with positioning holes ...

Page 14: ...edance 100 ohm Figure 4 1 1 Analog input AI interface 4 1 2 Simulate input AI filtering parameters The filtering parameters of the AI channel can be set The value ranges from 1 to 16 and the default value is 6 Note 1 The filtering parameter of AI channel is the same filtering parameter shared by all AI channels The larger the filter parameter is the stronger the anti interference ability of AI sam...

Page 15: ...egister type is hold register function code 0x06 0x10 When the AI channel sampling range parameter is written if the parameter value is not in the range of 0 to 1 the device automatically writes the parameter value to the nearest value For example if the write sampling range parameter is 2 the device takes 1 as the sampling range parameter and the MDOBUS does not return an error command 4 1 4 Simu...

Page 16: ...int calibration register are 0x0258 0x025C The register type is a hold register and the function codes are 0x06 and 0x10 The calibration method can input a precise current signal for the AI channel and write the value for calibration For example if the AIx channel corresponding to the device is calibrated and the actual input current is 20mA read the original AI value of the AIx channel and write ...

Page 17: ...lse mode After switch output DO is turned on keep the set pulse width time unit ms switch output DO is automatically turned off Pulse width setting range from 50 to 65535 default 50 3 Follow the pattern After the user sets the following mode the input port to follow is set The DO output is consistent with the DI input Note You can set multiple switch output DO terminals to follow one DI input port...

Page 18: ...re address Set offset address by the configuration tool software 1 by default For example If the hardware address is set to 5 and the software address is set to 113 the device address is 118 4 3 2 Hardware Address DIP switch Figure 4 3 2 Hardware address DIP switch Hardware address Dip switch Switches different hardware addresses Binary indicates the 5 bit DIP switch The 5 direction indicates low ...

Page 19: ...receding example If multiple devices need to be connected to a single RS232 only the hardware address can be used A single bus can be connected to a maximum of 32 devices set the hardware address If more than 32 devices need to be connected to an RS232 bus you need to set the software address offset address to connect a bus to a maximum of 247 devices The new IP address takes effect only after a p...

Page 20: ...t according to different scenarios The software address ranges from 1 to 224 device address 1 to 247 The default software address is 1 To change the software address configure the software tool as shown in the figure Figure 4 3 7 Software address offset address 5 Port connection 5 1 Cable connections to the analog input AI port 5 1 1 Wire connection for two wire sensor Figure 5 1 1 Two wire sensor...

Page 21: ...O MA02 XACX0420 User Manual Copyright 2012 2021 Chengdu Ebyte Electronic Technology Co Ltd 18 5 1 2 Three wire sensor connection FIG 5 1 2 Three wire sensor wiring diagram 5 1 3 Four wire sensor connection Figure 5 1 3 Four wire sensor wiring diagram ...

Page 22: ...Output direct control load 1kW internal small power equipment Figure 5 2 1 Output terminal direct control load wiring diagram 5 2 2 Output control contactor contactor controls high power 220V equipment FIG 5 2 2 Output control contactor wiring diagram Note In the figure above the contactor coil voltage is 220V as an example The coil voltage of different contactors may be different ...

Page 23: ...engdu Ebyte Electronic Technology Co Ltd 20 5 2 3 Output control contactor contactor controls high power 380V equipment FIG 5 2 3 Output control contactor wiring diagram Note In the figure above the contactor coil voltage is 220V as an example The coil voltage of different contactors may be different ...

Page 24: ...021 Chengdu Ebyte Electronic Technology Co Ltd 21 6 Is the software 6 1 software installation Configuration tool software is driver free installation double click directly Exe file open use Figure 6 1 1 Software installation file Figure 6 1 2 Successful software installation window is displayed ...

Page 25: ... 2 1 IO demo interface Figure 6 2 1 SOFTWARE I O demonstration interface 1 Equipment window Display current connected device information serial number device model device address firmware version Figure 6 2 2 Device window interface 2 Serial port parameters window Display serial port parameters port baud rate data bit parity bit stop bit etc and open the serial port ...

Page 26: ...23 Figure 6 2 3 Serial port Parameters window 3 Log window Display running log information sending and returning data instructions during device configuration and use Figure 6 2 4 Log window 4 Switch input DI This function is limited to devices that support DI Displays the status of digital input DI ports Figure 6 2 4 Switch input DI screen ...

Page 27: ...re 6 2 5 Switch output DO screen 6 Simulated input AI This function is limited to devices that support AI Display analog input AI port status current quantity of work graphical needle indication Figure 6 2 6 Interface of simulating input AI 7 Refresh the Settings Supports manual and automatic refreshing Automatic refresh status You can customize the refresh period the customized period is a multip...

Page 28: ... 1 Count the demonstration The DI count information is displayed and the Settings are cleared This feature is limited to devices that support DI Figure 6 2 9 Counting demonstration interface 2 DI related Example Set the DI function Set filter parameters 1 16 trigger mode rising edge falling edge level and zero clearing mode automatic manual This feature is limited to devices that support DI ...

Page 29: ...vel mode pulse mode follow mode set the pulse width pulse mode only DO power status on off follow the source follow the set DIx Note You can set multiple switch output DO terminals to follow one DI input port but cannot set one switch output DO terminal to follow multiple DI inputs Follow mode is limited to DEVICES that support DI Figure 6 2 11 DO Related page 6 2 3 Advanced Settings screen Figure...

Page 30: ...re 6 2 13 Device setting interface 2 Device Serial Port Settings The baud rate can be 1200 2400 4800 9600 19200 38400 57600 or 115200 The default baud rate is 115200 Figure 6 2 14 You can set the parity bit none parity and parity By default no parity is available Figure 6 2 16 Checkbit setting interface 6 3 Device Status Query The configuration software supports device status query After the devic...

Page 31: ... 2012 2021 Chengdu Ebyte Electronic Technology Co Ltd 28 them and click Refresh All data The device status is queried 1 IO Demo interface Figure 6 3 1 Device status query IO demo interface 2 Basic Settings screen Figure 6 3 2 Device status query basic Settings 3 Advanced Settings screen ...

Page 32: ... query Advanced Settings interface 6 4 Equipment condition control Equipment state control equipment support Modbus standard command control Also supports configuration software graphical control For example open the DO 1 output port on the control device Method 1 Software graphical operation click the menu button control 图 6 4 1 软件图形化操作 Method 2 Input command control ...

Page 33: ... 2DO MA02 XACX0420 User Manual Copyright 2012 2021 Chengdu Ebyte Electronic Technology Co Ltd 30 Device Address 1 Function Turn on DO 1 output Send 01 05 00 00 FF 00 8C 3A including CRC check bit back 01 05 00 00 FF 00 8C 3A including CRC check bit ...

Page 34: ...0xFFF 50 65535 duration of pulse in ms 0x03 0x06 0x10 41318 0x0526 4 DI Count way R W 0x0000 0x0002 0x0000 indicates rising edge count 0x0001 indicates falling edge count and 0x0002 indicates level count 0x03 0x06 0x10 41304 0x0518 4 DI Zero counting method R W 0x0000 0x0001 0x0000 Automatic clearing mode 0x0001 Manual clearing mode 0x03 0x06 0x10 41311 0x051F 4 Set the zero clearing mode R W 0x00...

Page 35: ...0x06 0x10 40600 0x0258 4 AI Low set value RW 0 4095 0x03 0x06 0x10 41200 0x04B0 1 All AI channel filter parameters RW 1 16 0x03 0x06 0x10 41202 0x04B2 1 All AI channel sampling ranges RW 0x0000 0x0001 0x0000 is 0 20mA 0x0001is 4 20mA 0x03 0x06 0x10 7 3 Instruction format part 7 3 1 Read DO output coil status Use 01Function code to read the status of the output coil for example read the status of t...

Page 36: ... The number of bytes of data Returned data CRC CHECK CODE The above 00 00 indicates that DO1 is the level mode 7 3 3 Write a single hold register Write a single hold register using 06Function code e g set DO1 to pulse mode 用 06Function code 20 06 05 78 00 01 XX XX Modbus address of the device Function code Register address Writes Value CRC CHECK CODE After sending the above command to the device v...

Page 37: ...the four registers are 0x0001 0x0002 0x0003 and 0x0000 respectively 7 3 5 Write a single DO coil state Use the 06 command to write a single command for example set DO1 to pulse mode 20 05 00 00 FF 00 XX XX Modbus address of the device Function code Register address Writes Value 线圈动作 导通 CRC CHECK CODE After sending the above command to the device via RS232 the device will return the following value...

Page 38: ...ting the original values of four AI channels as an example and use 04Function code to read the original values of four AI channels 20 04 00 00 00 04 XX XX Modbus address of the device Read command initial address The number of AI channels is CRC CHECK CODE After sending the above command to the device via RS232 the device will return the following values 20 04 08 00 00 00 00 00 00 00 00 XX XX Modb...

Page 39: ...e final interpretation Revise History version Date of revision revision note revision note 1 0 2021 08 30 Initial version LC 1 1 2022 06 27 Content revision XXN About US sales number 4000 330 990 Company telephone 028 61399028 technical support support cdebyte com Official website www ebyte com Company address Building B5 Mould Industrial Park 199 Xiqu Ave West High tech Zone Chengdu Sichuan Provi...

Reviews: