0

How do I retrieve all bus numbers from a slider diagram?

I have a slider diagram that I want to get a list of the buses from. I know there's EXPORTBUSLOCFILE but that requires the "name of the Bus Location Data File to be written", which means I can't retrieve a list in my python code to use, but I'd have to create the file then open it to get the list of buses.

lalmadani's avatar
1
lalmadani
asked 2022-06-20 14:00:37 -0500, updated 2022-06-20 14:02:16 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

3 Answers

0

I think that's the only way to solve it. It is easy to write the bus location file and read the bus numbers from it.

perolofl's avatar
3.8k
perolofl
answered 2022-06-21 03:29:01 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

so its only possible to do it in the GUI? is there a way to pop into a SLD diagram and record/retrieve the buses using python?

lalmadani's avatar
1
lalmadani
answered 2022-08-03 14:21:46 -0500
edit flag offensive 0 remove flag delete link

Comments

What is the problem with to just write a bus location file and let python read the file and get the bus numbers?

perolofl's avatar perolofl (2022-08-05 03:49:24 -0500) edit
add a comment see more comments
0

you can actually select all buses by CTRL-A, then right click and use create bus subsystem, then used Modify/Create COnfig files, select subsystem only (no mon or con) , give it a name to you new subsystem with all the buses, click OK, and when edit your sub file and you will see all the buses of the slider on the new subsystem with the name you gave it before. Funny, if you ask Siemens they do not do this can be done. so maybe it is a bug, do not report it, it is very useful. R

RJG@PSM's avatar
1
RJG@PSM
answered 2022-06-21 17:37:51 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer