Download Print this page

Command For Digital Input Collection; Command For Digital Output (Several Controls); Command For Digital Output (Single Control) - Wellpro WP9038ADAM User Manual

Hide thumbs

Advertisement

0769
0000
0000
0000
0000
0000
B626
The recieved command means the data of the first analog input is "0769",and it is equal to 1897 in decimal,then substitute into
the fomula: I=(DATA*20)/4095=(1897*20)/4095≈9.26mA.The current in the other channel is 0mA.
5.3 、 C ommand for digital input collection :
Send: 01 02 00 00 00 04 79 C9 ( e xample/hexadecimal )
data
01
02
0000
0004
79C9
Receive: 01 02 01 05 61 8B ( e xample/hexadecimal )
data
01
02
01
05
618B
Converting reading data "05" to 2 hexadecimal results "00000101", last 4 numbers are active. From left to right, it represents
the 4 digital input channel status DI_04~ DI_01. Here it means DI_03 、 D I_01 have input but others no.
5.4 、 C ommand for digital output (several controls) :
Send: 01 0F 00 00 00 04 01 03 7E 97 ( e xample/hexadecimal )
data
01
0F
0000
0004
01
03
7E97
Receive: 01 0F 00 00 00 04 54 08 ( e xample/hexadecimal )
Converting reading data "03" to 2 hexadecimal results "0000 0011", last 4 numbers are active. From left to right, it represents
the 4 digital output channel status DI_04 ~ DI_01. Here it means DO_02 、 D O_01 have output but others no. When module
receives correct command, it will make corresponding actions and send response back to the master. This is successful
communication.
5.5 、 C ommand for digital output (single control) :
Send: 01 05 00 00 FF 00 8C 3A ( e xample/hexadecimal )
data
01
05
0000
FF00
8C3A
Receive: 01 05 00 00 FF 00 8C 3A ( e xample/hexadecimal )
WP9038ADAM User's Manual V1.42
16
read data
2
CRC check code
byte
data description
1
module address
1
function code
2
input address(1x mode)
2
read length of input bit
2
CRC check code
byte
data description
1
module address
1
function code
1
byte numbers
1
read data
2
CRC check code
byte
data description
1
module address
1
function code
2
coil address(0x mode)
2
write coil length
1
write data byte
2
data writing
2
CRC check code
byte
data description
1
module address
1
function code
2
coil address(0x mode)
2
data writing
2
CRC check code
0769-read data from the first analog input
0000-read data from the second analog input
0000-read data from the third analog input
0000-read data from the fourth analog input
0000-read data from the fifth analog input
0000-read data from the sixth analog input
CRC check code for all data
remark
Address range 01-FE
02-read input bit
0000-initial address of input bit
0004-read 4 input bits
CRC check code for all data
remark
Address range 01-FE
02-read input bit
01-read one byte length
05-read input bit status
CRC check code for all data
remark
Address range 01-FE
0F-write multiple coil
0000-initial address of coil
0004-write 4 coils
01-write one byte data
03-write output state of 4 coil
CRC check code for all data
remark
Address range 01-FE
05-write single coil
0000-digital output(DO_01)coil address
0001-digital output(DO_02)coil address
0002-digital output(DO_03)coil address
0003-digital output(DO_04)coil address
FF00-coil open , 0 000-coil close
CRC check code for all data

Advertisement

loading