XYS-040442User Manual for Simulated Data Acquisition Module
1 function
XYS-040442It is an intelligent module that integrates switch output, analog output, analog acquisition, and switch input acquisition. The computer sends instructions to the data acquisition module through the serial port to control or read commands. After receiving the commands, the controller executes single relay actions, multiple relay actions, relay fully open, relay switch, switch input status acquisition, analog acquisition, and analog output.
1. Communication isolation, using ultra high speed magnetic coupling chips to meet high baud rate communication requirements;
2. 12Vperhaps24VDC voltage power input, anti reverse protection.
3. Rich status indicator lights, including relay output status indicator lights, switch input status indicator lights, communication indicator lights, and power indicator lights;
4. Having standardRS232/RS485Waiting for the communication port,TCPIP /Bluetooth/wireless/wifi/GPRSOptional.
5. Built in alarm buzzer, which can remotely control alarms or provide on-site prompts, achieving sound and light alarms;
6. supportmodbus RTUProtocol customization or hardware customization, suitable for allPLCConnection of modules;
7. Adopting a guide rail typeABSShell, can be installed inside the cabinet or wall mounted;
II Technical Parameter
1. Working power supply:DC12VperhapsDC24VPower consumption: less than5W;
2. Communication port:RS232/RS485/networkTCPIPBaud rate:4800/9600/19200bps/38400;
3. Communication distance:RS232 15Mi,RS485 1000Meter, Ethernet100M,WiFi/Bluetooth 20Rice;
4. Communication protocol:modbus RTUOr customized agreements with customers;
5. Work environment:-25-65℃, humidity5-95%;
6. relay:4road Load capacity:220V AC 5A; Normally open output;
7. Switch input:4Road, dry node or optocoupler, closing resistance less than100ohm,Open circuit resistance greater than100K;
8. Analog input:4roadAIinput range0-10Vperhaps0-20mA/4-20mAOther customization; resolution12Position;0-4096
9. Analog input assistance:2roadAOOutput range0-10Vperhaps0-20mA/4-20mAOther customization; resolution12Position;0-4096;
10. zero drift:±0.2uA/℃ or zero drift:±0.2uV/℃;;
11. buzzer1One;
12. Rail typeABShousing 145(L)X 90(W)X 40(H)mm(Internal)PCBBoard size:88*120*30mm;)
|
output |
Output range |
Resolution |
accuracy |
describe |
|
electric current |
0.00~20.00mA |
0.05mA |
±0.1mA |
0-4000 20mAMaximum Load500Ω |
|
voltage |
0.00~-10.00V |
0.025V |
±0.1 V |
0-4000maximum output current100mA |
III communication protocol
supportMODBUS-RTUfunction code01、02、04、05、06、0FFunction code. The default communication baud rate is9600Invalid verification8Data bits1A stop position.
|
function code |
purpose |
read/write |
give an example |
notes |
|
01 |
Relay status reading |
read |
TX:01 01 00 00 00 10 3D C6 RX:01 01 02 02 00 B8 9C |
read16Relay status, taken before4position |
|
02 |
Switch input reading |
read |
Tx:01 02 00 00 00 10 79 C6 Rx:01 02 02 08 00 BE 78 |
read16Relay status, taken before4position |
|
04 |
Analog reading, switch quantity |
read |
Tx:01 04 00 00 00 14 F0 05 RX: 01 04 28 03 E8 00 00 00 32 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 99 3D |
read2Simulate input values,4Analog input value, baud rate, address, switch input, switch output |
|
05 |
Relay single control |
write |
close:01 05 00 00 FF 00 8C 3A to break off:01 05 00 00 00 00 CD CA |
The first way to open and close |
|
06 |
analog output |
write |
Tx:01 06 00 00 07 D0 8A 66 Rx:01 86 01 83 A0 |
analog quantity1write1000 |
|
0F |
Multiple controls for relays |
write |
Tx:01 0F 00 00 00 10 02 15 00 EC B0 Rx:01 8F 01 85 F0 |
relay1,3,5 close |
l Write single register--06
for example1Channel of the number device1The analog output of, that is, the write register4x0000The command is as follows:
MODBUSRegister Address Table1
|
Register address |
Number of registers |
Variable |
Register type |
describe |
|
4x 0000 |
1 |
OUT1output |
read/write |
Company:0.01milliampere Company:0.01volt |
|
4x 0001 |
1 |
OUT2output |
read/write |
|
|
4x 0002 |
1 |
IN1Input quantity |
read only |
For example, reading the value is800, Indicates that the read voltage value is8V |
|
4x 0003 |
1 |
IN2Input quantity |
read only |
|
|
4x 0004 |
1 |
IN3Input quantity |
read only |
|
|
4x 0005 |
1 |
IN4Input quantity |
read only |
|
|
4x 0006 |
1 |
reserve |
read only |
|
|
4x 0007 |
1 |
reserve |
read only |
|
|
4x 0008 |
1 |
reserve |
read only |
|
|
4x 0009 |
1 |
reserve |
read only |
|
|
4x 0010 |
1 |
Baud rate |
read/write |
Refer to the code table2 |
|
4x 0011 |
1 |
Address setting |
read/write |
0-250 |
|
4x 0012 |
1 |
Switching input1 |
read only |
|
|
4x 0013 |
1 |
Switching input2 |
read only |
|
|
4x 0014 |
1 |
Switching input3 |
read only |
|
|
4x 0015 |
1 |
Switching input4 |
read only |
|
|
4x 0016 |
1 |
relay status1 |
read/write |
|
|
4x 0017 |
1 |
relay status2 |
read/write |
|
|
4x 0018 |
1 |
relay status3 |
read/write |
|
|
4x 0019 |
1 |
relay status4 |
read/write |
|
|
4x 0020 |
1 |
not have |
|
|
Baud rate code table2
|
numerical value |
1 |
2 |
3 |
4 |
5default |
6 |
7 |
8 |
9 |
|
Baud rate |
300 |
1200 |
2400 |
4800 |
9600 |
19200 |
38400 |
57600 |
115200 |
|
port name |
Connect content |
port name |
Connect content |
|
P+ |
Module power supply positive pole |
AO1 |
Analog Output1 |
|
P- |
Module power supply negative pole Switching input ground |
AO2 |
Analog Output2 |
|
X1 |
Switching input1 |
GND |
Analog input ground |
|
X2 |
Switching input2 |
AIN1 |
analog input1 |
|
X3 |
Switching input3 |
AIN2 |
analog input2 |
|
X4 |
Switching input4 |
AIN3 |
analog input3 |
|
N |
Empty, no connection |
AIN4 |
analog input4 |
|
D- |
RX485negative terminalB- |
N |
Empty, no connection |
|
D+ |
RX485Positive endA+ |
Y1 C1 |
relay1normally open |
|
RXD |
RX232receiving end |
Y2 C2 |
relay2normally open |
|
TXD |
RX232Sender |
Y3 C3 |
relay3normally open |
|
GND |
RX232grounds |
Y4 C4 |
relay4normally open |
Determine whether it is current or voltage input/output before purchasing the module
