2/8/2019 5:05 PM | |
Joined: 2/8/2018 Last visit: 8/27/2024 Posts: 37 Rating: (0) |
Hi All, I'm facing some problems using a TM PsiInput 2 card (6ES7 551-1AB00-0AB0). I don't want to use technology object, preferring to work with process images available (Control/Feedback interfaces). I'm trying to pass to the counter CH1 a value using the control interface parameters: - Slot 0 value (Byte 0-3) - LD_SLOT_0: combination of the first 4 bits of byte #8, set as 0001 (bit 0 = TRUE) Everytime I try to pass a value in this way, I see that the "LD_ERROR" bit (byte #12, bit 2 of feedback interface) goes to TRUE, to indicate a loading failure procedure. First of all, I'm not sure that can be done. I have this doubt because I tried to use also the technology object and I saw that it doesn't have this kind of entries!!! Is there someone that can help me? Thank you very much. Bye Attachments71500_tm_posinput_2_manual_en-US_en-US.pdf (246 Downloads) |
2/8/2019 5:32 PM | |
Joined: 3/16/2015 Last visit: 10/10/2021 Posts: 1250 Rating: (173) |
Please show us a screen shot of your code. You use bit masking to set the bits on or off and load the entire byte. |
2/8/2019 5:36 PM | |
Joined: 2/8/2018 Last visit: 8/27/2024 Posts: 37 Rating: (0) |
Hi Huggy_d1, here attached a screenshot about the logic I used. Let me know if somethins is wrong. Thanks. Bye |
2/8/2019 5:48 PM | |
Joined: 3/16/2015 Last visit: 10/10/2021 Posts: 1250 Rating: (173) |
You load the values by writing the record to the module not by setting the output. [WRONG] Sorry this will take a bit of time to explain will write more later if you still need help but there's a siemens example (be it in SCL) for TM modules. It's called something like 2 speed positioning using TM modules. Here is the example |
Last edited by: Kal.A at: 2/8/2019 5:49:50 PMLast edited by: Kal.A at: 2/9/2019 3:33:25 AMLast edited by: Jen_Moderator at: 2/11/2019 10:23:37 AMOptimized link. |
|
2/8/2019 6:08 PM | |
Joined: 7/7/2010 Last visit: 11/8/2024 Posts: 15388 Rating: (2443)
|
Section 4.1 of the manual uploaded with the first post states there is direct access to the control (and feedback) interface. Then it shows on page 33 (section 4.4) what bytes within the telegram data mean what. As long as the TM device is connected and configured properly, it should accept the data presented via the control interface to load a preset value into the count value - but only for incremental or pulse encoder configurations. Since this encoder is configured as an absolute encoder, it is not possible to load a preset value. That is why the error is generated when a preset is being loaded. Absolute encoders know where they are at all times and convey that to the PLC. Trying to tell an absolute encoder where it is makes no sense because it already knows. If it is an incremental encoder, the logic used should work.
|
science guy |
|
This contribution was helpful to2 thankful Users |
2/11/2019 8:25 AM | |
Joined: 2/8/2018 Last visit: 8/27/2024 Posts: 37 Rating: (0) |
Hi Kal.A., can you share the example you mentioned? Tks a lot. Bye |
2/11/2019 1:27 PM | |
Joined: 4/28/2015 Last visit: 10/25/2024 Posts: 398 Rating: (57)
|
Hello, you will find the application example here: SIMATIC S7-1500: Rapid Traverse/Creep Speed Positioning (2SpeedPositioning) |
Follow us on