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,945
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
6,993
Hi everyone, I am an omron plc tec , lately I came across a siemens s7 200 cn plc . Can someone help me regarding the software required and...
Replies
26
Views
443
This is the first time I am working with Simatic Manager Step7 as I started my siemens journey with TIA which is pretty easy and do a lot of stuff...
Replies
3
Views
107
Hi, I have PLC S7-1200 and switch XC-208 and Iam trying to implement this SNMP library: SIOS I am not sure, what I am doing wrong, but there is...
Replies
3
Views
113
Back
Top Bottom