7/6/2023 10:20 PM | |
Posts: 6 Rating:
|
Hello, I am in the process of deactivating SNMP on my old PLCs. I found the following documentation to do this: Deactivating SNMP When I compile the given SCL code in S7 5.5, I get the following error: "L 00033 C00009: String expected, use '...'." Also my second question: the code is making reference to a "WRREC_DB_1". but I was not given any data structure for it. What should be in this data block? The full code I copied and pasted: ------------------------------------------------------ [snip] ---------------------------------------- Thanks everyone AttachmentFiles.zip (451 Downloads) |
Last edited by: Jen_Moderator at: 07/07/2023 10:02:37PDF added from link. Code added as .txt file - All files added as .zip file. |
|
7/7/2023 2:54 AM | |
Joined: 3/5/2017 Last visit: 8/21/2025 Posts: 780 Rating:
|
Code is written for S7-1200/1500 and you can use it in TIA portal. There is no Optimized access in S7 5.5, also I would check library versions. Or you can do this manually. You need startup OB where you call WRREC_DB_1, which is a system block and One block for SNMP variables.
|
- Trying is the first step towards failure. |
|
7/11/2023 9:44 PM | |
Posts: 6 Rating:
|
I am returning for an update. I was indeed able to get this code to run perfect on my TIA projects and the SNMP is now disabled there. However, I am still struggling with the S7-300 PLCS being run on S7 v5.5 projects. I created the blocks manually like you suggested but it is still not working. I am not getting an error, but the status is stuck. It appears to be trying to do something, because this only happens with an ID of 64 (I am assuming the PLCs in S7 v5.5 share 64 as the HWID like in TIA portal). Any other ID and I do get an error and the status word changes to "16#c0809000". One possibility I can think of is that this needs to be done in startup mode (Hence why the manual told me to run it in OB100) but since I am lacking the REPEAT functionality that was written in the SCL code, the block cannot function within the single scan time. Is this possible, or do you have another idea? Thanks! |
Last edited by: AutoGen_8101654 at: 07/11/2023 21:45:38 |
|
7/12/2023 5:03 AM | |
Joined: 3/5/2017 Last visit: 8/21/2025 Posts: 780 Rating:
|
I think you must do it in Startup OB. You can also do loop with LAD. Have you actually checked that SNMP is not disabled? Those outputs are good for one program cycle. Now when you are calling block without condition, you are not able to see if anything happened. It is probably not disabled, but...
|
- Trying is the first step towards failure. |
|
7/12/2023 2:59 PM | |
Posts: 6 Rating:
|
Yeah, I confirmed that the SNMP was not disabled. When I ran it in OB100 without a loop I get a "BUSY" status. So I made a quick jump loop and now I get an ERROR and my status changes to DW#16#C080A300. Unfortunately I am not smart enough to interpret this error.
|
7/12/2023 3:19 PM | |
Joined: 8/14/2021 Last visit: 7/14/2023 Posts: 13 Rating:
|
I also encountered the same question, after reading your answer, I benefited a lo |
kpee going! |
|
Follow us on