Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

AB DF1 Protocol

Status
Not open for further replies.

hidroela

Electrical
Joined
Nov 11, 2004
Messages
1
Location
US
Need help
I trying to read on the binary file B3/10 in a plc5 when I send this command (typed read (read block)) using Checksum=CRC
Command send
|16|2|0|0|15|0|58|0|104|0|0|1|0|15|0|3|10|0|1|0|16|3|137|126

The respond from the plc is

DLE|STX| SRC|DST| CM|STS| TNN | A | B |DLE|ETX |CRC|
|16 | 2 | 0 | 0 | 79 | 0 | 58 | 0 |153|9|3|66|16|16|0 | 16 | 3 |87|88



The first byte of the type/data parameter is the flag byte,

According to my finding 153 the flag byte

153 Dec converter to binary =10011001

1 Id Format Field
001 Id Value Filed
1 Size Format Field
001 Size Value Field
My problem is that I can not figure it out how to read the B part 9|3|66|16|16|0

Any body help my out how to interpreter this enigma
And by the way if any body is interesting in some Visual basic code to read and write to the (for now) PLC5 SCL 500 AB family processor go to Best regard Hidroilio Pérez
 
How you read part B is a function of whether the data is intended to be bit, byte or other type of string value.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top