Ask our Experts
Didn't find what you are looking for? Ask our experts!
This forum is addressing industrial automation design & engineering, operations, asset performance, cyber security and digital transformation for Plants & Machines.
Search in
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-12-04 12:51 AM . Last Modified: 2023-12-04 12:59 AM
I am trying to automate configurations of TM3 modules in machine expert using python script.
I am able to create a TM3AM6/G and change the I/O mapping but I have not been able to change IO configuration of each input and output.
I can read out the values of IW0 {0, 32, 0, 12000, 0, 0} but I can not modify the values.
for IO in IOModules.get_all_parameters():
if IO.VisibleName=="IW0":
print(IO.Value)
Result: {0, 32, 0, 12000, 0, 0}

Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2023-12-19 12:21 AM
Hi, I have tried to modify it and use the set_parameter method but this results in corrupt module. In my opinion I need to go down one more level to see all the individual sub elements and with a different method change them one by one.
I can see the sub elements in the modules .xml file.

Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.