Forum Home › Forums › Communicating with Devices › Modbus › Trying to communicate with Chinese 8IN8OUT device
Tagged: Modbus TCP
- This topic has 14 replies, 4 voices, and was last updated 5 years, 4 months ago by DaveRodda.
-
AuthorPosts
-
June 3, 2018 at 9:25 am #3787IvicaDParticipant
I’m trying to communicate with Chinese controller bought from Aliexpress. I managed to read input status, write coils and read coil status from Cas modbus scanner and Modbus Poll but no luck communicating with the Rapid SCADA communicator.
I have followed the Youtube tutorial but still no luck.Here is the answer from the communicator log:
2018-06-03 11:17:27 Communication session with the Device 61 “8IN8OUT Controller”, type: KpModbus, address: 1, call number: 192.168.0.105
Request element group “Inputs”
Send (12): 00 00 00 00 00 06 01 02 00 20 00 08
Receive (7/7): 48 48 43 2D 4E 2D 38
Incorrect MBAP Header data!
Request element group “Inputs”
Send (12): 00 00 00 00 00 06 01 02 00 20 00 08
Receive (7/7): 49 38 4F 00 00 00 00
Incorrect MBAP Header data!
Request element group “Inputs”
Send (12): 00 00 00 00 00 06 01 02 00 20 00 08
Receive (7/7): 00 04 01 02 01 00 00
Incorrect MBAP Header data!The following is the Poll and the answer from CAS mobus scanner:
[11:20:13] <= Response: 01 02 01 00
[11:20:13] => Poll: 01 02 00 20 00 08
[11:20:12] Recv error – Unknown
[11:20:10] <= Response: 38 49 38 4F 00 02 00 00 00 04 01 02 01 00
[11:20:10] => Poll: 01 02 00 20 00 08What am I doing wrong?
June 3, 2018 at 9:30 am #3788IvicaDParticipantThis is what I recieve when I switch to Modbus RTU:
2018-06-03 11:28:10 Communication session with the Device 61 “8IN8OUT Controller”, type: KpModbus, address: 1, call number: 192.168.0.105
Request element group “Inputs”
Send (8): 01 02 00 20 00 08 78 06
Receive (5/5): 48 48 43 2D 4E
Incorrect device address!
Request element group “Inputs”
Send (8): 01 02 00 20 00 08 78 06
Receive (5/5): 2D 38 49 38 4F
Incorrect device address!
Request element group “Inputs”
Send (8): 01 02 00 20 00 08 78 06
Receive (0/5):
Communication error!2018-06-03 11:28:13 Disconnect from 192.168.0.105
2018-06-03 11:28:13 Stop communication line 6 “ModbusPRC”
June 3, 2018 at 10:37 am #3789manjey73ParticipantWhat exactly do you use from the Chinese site ?
On AliExpress was not a description of the registers ?June 3, 2018 at 10:40 am #3790IvicaDParticipantI managed to figure out the registers. Coils are at 16-23 and inputs are at 32-39.
June 3, 2018 at 1:20 pm #3791manjey73ParticipantGive a link to the device you purchased on AliExpress
When connecting via RTU, you are informed that the address does not match
June 3, 2018 at 1:57 pm #3792IvicaDParticipantJune 3, 2018 at 8:05 pm #3793manjey73ParticipantGiven the Ethernet module used, it can be assumed that there is no Modbus TCP but Modbus RTU on top of TCP. It is a relay not come across live.
June 4, 2018 at 10:40 am #3795MikhailModeratorSeems, you do everything right.
Is there any controller manual with request-response examples?June 4, 2018 at 10:41 am #3796MikhailModeratorEven if you poll incorrect registers, the device must answer meaningful error package.
June 5, 2018 at 8:03 am #3800IvicaDParticipantUnfortunately there is not such documentation. It is probably faulty device or not a standard Modbus.
June 5, 2018 at 8:33 am #3801manjey73ParticipantThe description indicates that the relay must be sent ON1 to be switched on. I can assume that this is the name of the button but the screens Chinese characters. Write to the sellers of this Board, or follow the links, maybe they have this program in English. If I’m right, then put this program you can use the tracking programs and see what are the parcels in the Protocol.
The Chinese may be deceiving, saying that there Modbus TCP. I was afraid to buy a Board without a description in my time. I chose the one where the list of registers for management was given.
- This reply was modified 5 years, 9 months ago by manjey73.
June 5, 2018 at 8:51 am #3803manjey73ParticipantCheck if this Board has a WEB interface ?
June 5, 2018 at 8:53 am #3804IvicaDParticipantThat is a good idea! I tried it on port 80, but I plan to scan the ports.
June 5, 2018 at 9:47 am #3805manjey73ParticipantThe link at the bottom has links to but in Chinese. There will be question marks instead of characters
November 9, 2018 at 1:50 pm #4569DaveRoddaParticipant8 way 10A relay controller, with normally open and normally closed output. 8 way switch input. Can be used for intelligent home control, can be used for the two development of mobile phone or computer remote control electric lights, motors, and other electrical equipment. Can also be used for the detection of power outages in the room, can be connected to the human body infrared sensor, can be connected to the button switch, can be connected with smoke alarm output. Provide C++ source code. Reliable network connection, network disconnection can automatically reconnect.
-
AuthorPosts
- You must be logged in to reply to this topic.