EasyManua.ls Logo

Wellpro WP8024ADAM - Advanced Commands and Configuration; Digital Output Control and Status; Module Address and Communication Settings

Wellpro WP8024ADAM
6 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
WP8024ADAM Users Manual V1.42
5.4
Command for digital output (single control)
Send: 01 05 00 00 FF 00 8C 3A
example/hexadecimal
data byte data description remark
01 1 module address Address range 01-FE
05 1 function code 05-write single coil
0000
2
coil address(0x mode)
0000-relay(RY1)coil address
0001-relay(RY2)coil address
0002-relay(RY3)coil address
0003-relay(RY4)coil address
FF00 2 data writing
FF00-coil open
0000-coil close
8C3A 2 CRC check code CRC check code for all data
Receive: 01 05 00 00 FF 00 8C 3A
example/hexadecimal
When module receives correct command, it will make corresponding actions and send response back to the master. This is
successful communication.
5.5
Command for state collection of digital output
Send: 01 01 00 00 00 04 3D C9
example/hexadecimal
data byte data description remark
01
1
module address
address range:01-FE
01
1
function code
01-read coil state
0000
2
coil address(0x mode)
0000-initial address of coil
0004
2
read coil length
0004-read 4 coil status
3DC9
2
CRC check code
CRC check code for all data
Receive: 01 01 01 03 11 89
example/hexadecimal
data byte data description remark
01
1
module address
address range:01-FE
01
1
function code
01-read coil state
01
1
byte numbers
01-read one byte data
03
1
read data
03-read coil status
1189
2
CRC check code
CRC check code for all data
Converting reading data “03” to 2 hexadecimal results “00000011”,last 4 numbers are active. From left to right, it represents
the 4 relay output channel status RY4-RY1. Here it means RY2
RY1 have output but others no.
5.6
command for module address setting
Send
00 06 00 64 00 01 08 04
example/hexadecimal
date byte data description remark
00 1 module address 00-group sending
06 1 function code 06-write single register
0064 2 register address (4x mode) 0064-modify module address
0001 2 data writing set new address for module, range 0001-00FE
0804 2 CRC check code CRC check code for all data
Receive
00 06 00 64 00 01 08 04
example/hexadecimal
This command means to send a code to a module, set the module address as 01, this setting could be saved when power off;
default address of module is 01,each module address could be assigned separately when using multiple modules for
network.Attentions is required that only one module could be used in 485 network when using multiple address sending,
otherwise all the modules will share the same address in 485 network. When module receives correct command, it will make
corresponding actions and send response back to the master. This is successful communication.
5.7
Command for communication parameter setting
Send
01 06 00 65 00 02 18 14
example/hexadecimal
data byte data description remark
01 1 module address address range:01-FE
06 1 function code 06-write single register
0065 2 register address (4x mode) 0065-modify communication parameter
0002 2 data writing 0001-set communication parameter 4800,N(no
check) ,8,1
0002-set communication parameter 9600,N(no