engg.mehranali92@gmail.om

SLC5/04 df1 addressing

13 posts in this topic

 10 06 10 02 00 00 0F 00 41 00 A2 02 07 89 FF A7
 00 00 10 03 3B 74

this is the SLC5/04 protected type logical read.

according to my knowledge,

 02 07 89 FF A7

02=required byte

07=file number

89=integer type

address=FF A7

The confusion is how to call that address in rslogic500/weintek HMI/advancedHMI 
or any other.

is that address is equal to" FF+A7=1A6 hex (422 decimal)"

i write N7:422 but i causes an error

am i taking this address right? 
if not then what would be the right address for this

I'm new in allen bradly, kindly help me out and sorry for my bad english

 

Share this post


Link to post
Share on other sites

The SLC 5-/04 has (2) DH+ ports (3-pin Phoenix and round DIN) and a 9-pin D-sub port (that can be used for DH-485, DF1 or ASCII).

http://www.weintek.com/Download/PLC_Connect_Guide/eng/PLC_connection_guide.pdf

Pages 894-895; it appears the limit is capped at 254 but you wish to use 422.  Try reducing your bit address, or create a new SLC memory register to use.

1 person likes this

Share this post


Link to post
Share on other sites

Thanks for your help.

i'm using 9-pin D-sub port (Df1 protocol)
Actually I have a protected SLC 5/04. I may not be able to change anything inside PLC as it is protected. and want to replace defected HMI to weintek HMI.
Orginal HMI send below packet  to SLC 5/04 to write  (fetch from serial monitoring)

 10 06 10 02 00 00 0F 00 41 00 A2 02 07 89 FF A7 00 00 10 03 3B 74

Q: what address above packet want to read?

 

I designed a numeric  object on easy builder pro (see attachment:  "numeric_in_property.jpeg")

and the packet send from weintek hmi to SLC 5/04 is. (see attachment:  "address_255_packet.jpeg")

  10  06  10  02  00  00  0F  00  03  9D  A2  02  07  89  FF  00  10  03  83  15                                      
 

Observations:
both packets are same except address field 
original HMI address contains: 3 byte addressing field 
weintek HMI address contains: 1 byte addressing field 

Q: how to set three byte addressing field in weintek object attributes?

kindly help me so that I may be able to set proper settings and properties of weintek HMI properties so that required address can be read from plc.

thanks
 

address_255_packet.JPG

hmi selection.JPG

numeric_in_property.JPG

protocol selection.JPG

 

Edited by engg.mehranali92@gmail.om

Share this post


Link to post
Share on other sites

Hello,

>is that address is equal to" FF+A7=1A6 hex (422 decimal)"

No, from the DF1 protocol manual:

Addresses elements 0- 254 only. For higher addresses, setting this byte to FF expands this field to three bytes. Use the second
and third bytes for the expanded element address (low address byte first).

Just because the address (element field) is not greater than 254 does not mean you can not use expanded addressing.

A2  Function Code
2    Byte count to read
7    File number
89 File Type
FF a two byte element field
A7 element  = 167 - low byte
0   element  = 167 - high byte
0  sub element = 0

As to the Weintek question, I would contact Weintek support for assistance.

My2c.

 

 

Share this post


Link to post
Share on other sites

Be aware also that the SLC 5/xx series only supports up to 256 elements (numbered 0-255) per file, so N7:422 is not a valid address, at least within PLC.  It may be that reading that address from outside via DF1 may jump to the next data file, but you're not going to be able to read/write N7:422 inside the ladder code.

Share this post


Link to post
Share on other sites

And to add the Weintek packet is OK.

The packet specifies the three levels of addressing, the file number (7), the element FF (255) and the sub element 0.

1 person likes this

Share this post


Link to post
Share on other sites
17 hours ago, Mark- said:

And to add the Weintek packet is OK.

The packet specifies the three levels of addressing, the file number (7), the element FF (255) and the sub element 0.

this packet specifies "N7:255"
and what if I want to expand this field to three bytes as shown in DF1 protcol manual:

"Addresses elements 0- 254 only. For higher addresses, setting this byte to FF expands this field to three bytes. Use the second
and third bytes for the expanded element address (low address byte first)."

what values should I have to add or replace in "N7:255"

 

or make it simple to understand 
Q: how to set element(150) in Expanded three byte?

Share this post


Link to post
Share on other sites

So its mean below both packets have same address that is 0xA7 (167 dec). The only difference is one is using three bytes to represent address and the other uses only one.

Format1:10 06 10 02 00 00 0F 00 41 00 A2 02 07 89 FF A7 00 00 10 03 3B 74

format2: 10  06  10  02  00  00  0F  00  03  9D  A2  02  07  89  A7  00  10  03  83  15

Allen bradly PLC and hmi is communicating on format 1

but the weintek HMI(that I want to replace with original HMI) is using format 2.
will the plc accept packages from HMI(format 2 packages) 

 

Share this post


Link to post
Share on other sites
2 hours ago, engg.mehranali92@gmail.om said:

will the plc accept packages from HMI(format 2 packages) 

It should.

We have a free DF1 slave simulator. It support the A2 function code. Contact support if it does not work.

 

Share this post


Link to post
Share on other sites
22 hours ago, engg.mehranali92@gmail.om said:


Q: how to set element(150) in Expanded three byte?

Thanks and kindly answer this question also 

Share this post


Link to post
Share on other sites
4 hours ago, engg.mehranali92@gmail.om said:

Thanks and kindly answer this question also 

A2  Function Code
2    Byte count to read
7    File number
89 File Type
FF a two byte element field
96 element  = 150 - low byte
0   element  = 150 - high byte
0  sub element = 0

Share this post


Link to post
Share on other sites
17 hours ago, Mark- said:

A2  Function Code
2    Byte count to read
7    File number
89 File Type
FF a two byte element field
96 element  = 150 - low byte
0   element  = 150 - high byte
0  sub element = 0

should I write this as "N7:150" ? 

Share this post


Link to post
Share on other sites

What?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now