(0)| 10/9/2024 12:29 PM | |
|
Joined: 11/21/2020 Last visit: 8/26/2025 Posts: 213 Rating:
|
Yes, I have changed Q addresses of the encoder to 320...323 to be less confused, as you can see in atachment. The problem is that I don't know how to change state of bit 14 of G1_STW. I am even more confused after I read https://support.industry.siemens.com/forum/rs/en/posts/set-a-bit-in-word-operand/158191/?page=0&pageSize=10 post. I suppose that G1_STW, according to my addresses, should be declared as G1_STW.%x14, or, according to Williams M322.6, since G1_STW is the second output word which contains 2 bytes where MSB is bit 15 (2 different types of addressing is in question I suppose, symbolic, and "I forgot its name"). I have tried to set bit 14 in different ways, by using memory coil %Q322.6, or something else with G1_STW.%x14 address, but nothing has happened. In the attached video (15:14 minute) I saw a guy who uses open contact to set bit 14 using %Q322.6 coil (he is setting Kubler's encoder, mine is TR's - I don't see any difference in setting, since it is standard Telegram 81 in question). Is the only way to set bit 14 if it is represented as %Q322.6 coil, I have tried to use G1_STW.%x14 in different ways, but as I suggest now, G1_STW.%x14 can't be used with coils since it is USint data type (I experimented with Word type, unsuccessfully)? |
Last edited by: milos23 at: 10/09/2024 12:30:44Last edited by: milos23 at: 10/09/2024 12:32:45Last edited by: milos23 at: 10/09/2024 12:33:44Last edited by: Moderator_Lan at: 10/09/2024 13:53:28Video embedded/ Link optimized |
|
| 10/9/2024 2:02 PM | |
|
Joined: 11/21/2020 Last visit: 8/26/2025 Posts: 213 Rating:
|
Here is the original, it has only 2 networks: https://www.gtronic.it/test/index.php/encoder-esempi-e-esercizi-testati-dalling-gottardo/ I am using similar TR's encoder, settings for them are the same, I suppose. My goal is to learn how to read and set bits of Profinet IO device. AttachmentTR CMK582M Profinet + 1215C + TP700.zip (303 Downloads) |
| 10/9/2024 2:44 PM | |
|
Joined: 6/20/2017 Last visit: 10/6/2025 Posts: 486 Rating:
|
Following your work, in the 'Main' there are three network with three different examples for control the desired bit. Of curse you must REMOVE the unwanted networks and use only one of them.
AttachmentTR CMK582M Profinet + 1215C + TP700.zip (262 Downloads) |
|
Gustavo Antonio Banchetti Brucatori. |
|
| 10/9/2024 3:44 PM | |
|
Joined: 11/21/2020 Last visit: 8/26/2025 Posts: 213 Rating:
|
Thanks for your help, I leave it for later, it is too complicated for me at this moment. |
Follow us on