Siemens Local_tsap_id

DLMUK

Member
Join Date
Jun 2013
Location
Southampton
Posts
311
Hi,

On a modbus block for an S7-314 I need to set the parameter local_tsap_id and have the following description in the manual...

This parameter defines the local port number.

local_tsap_id[1] high byte of the local port number in hexadecimal
local_tsap_id[1] low byte of the local port number in hexadecimal
local_tsap_id[3-16] B#16#00

I understand the port number needs to be 2000. What I don't know is what to put in the high byte, low by fields.

I have my low byte as D0 and high byte as 7 in hex. Does this make sense?

my logic is...

low byte = 1101 0000 = D0 in hex
high byte = 0000 0111 = 7 in hex

Thanks
 
Hi,

On a modbus block for an S7-314 I need to set the parameter local_tsap_id and have the following description in the manual...

This parameter defines the local port number.

local_tsap_id[1] high byte of the local port number in hexadecimal
local_tsap_id[1] low byte of the local port number in hexadecimal
local_tsap_id[3-16] B#16#00

I understand the port number needs to be 2000. What I don't know is what to put in the high byte, low by fields.

I have my low byte as D0 and high byte as 7 in hex. Does this make sense?

my logic is...

low byte = 1101 0000 = D0 in hex
high byte = 0000 0111 = 7 in hex

Thanks

What you did sounds right to me, but byte order/endianness issues are sometimes more complicated than they seem like they should be.

To be honest, I find the best way is to guess (like you did) then try it and see if it works. If it doesn't, flip it and see if it works the other way.
 

Similar Topics

Hi I have the attached code and am testing it using PLC SIM. The PLC goes to STOP mode with an "Error when allocating local data", requested...
Replies
6
Views
3,966
I would like to ask a question regarding local variables in S7-200. If I define a Byte in the local variable table of a subroutine and let's say...
Replies
7
Views
7,006
Hello, good morning, I have been having two problems with the Tia Portal software. The first is that I have installed it on my computer and...
Replies
1
Views
38
Hello to all, I'm just starting with using CodeSys. Immediately, I have noticed that Codesys doesn't use data blocks like for example S7 does...
Replies
11
Views
111
Hi, I'm setting up a modbus master on an S7-300. It seems to work in OB1 but not when I use it in OB35. Does anyone have any ideas why? Could...
Replies
10
Views
104
Back
Top Bottom