Ask Your Question
0

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

asked 2022-06-20 14:00:37 -0500

lalmadani gravatar image

updated 2022-06-20 14:02:16 -0500

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.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2022-08-03 14:21:46 -0500

lalmadani gravatar image

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?

edit flag offensive delete link more

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 gravatar imageperolofl ( 2022-08-05 03:49:24 -0500 )edit
0

answered 2022-06-21 17:37:51 -0500

RJG@PSM gravatar image

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

edit flag offensive delete link more
0

answered 2022-06-21 03:29:01 -0500

perolofl gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower

Stats

Asked: 2022-06-20 14:00:37 -0500

Seen: 739 times

Last updated: Aug 03 '22