1/7/2022 5:06 PM | |
Posts: 10 Rating:
|
I am trying to do the exact same thing, but I can't get it to work and not sure why or what's not happening or what's happening that won't let it work. I have a comfort panel and just want to log values when I trigger a bit. I've done the following: 1. Set up your data logs in historical data with logging method "trigger event". 2. Still in historical data, set up your logging modes with your acquisition mode "On Demand" 3. Go to the HMI tags and look for the tag you want to use to trigger logging. Click on it and go to properties -> Events. With event "Value change" add the function "startlogging" and point it to the log that you entered in step 1 4. Now add a "logTag" function and select the tag you want to log (should correspond to the log tag in step 2. 5. add the function "stoplogging" and point it to the log that you entered in step 1. But nothing happens. On my trigger tag, I made the events, and then after the stoplogging event I put a reset bit to reset the trigger so the PLC knows it's done, but that bit doesn't get reset, and no data log is created. Any suggestions? Does anyone know how I can troubleshoot this since it just does nothing for me? Also what is the point of having the log setup in multiple locations? so I can make logging tags in the tag editor, and they get transferred to the historical data log portion? Or do i have to enter it there? why is it in multiple spots its very confusing. I would like to simply pick 5 tags that I want logged, and a trigger tag to log it. I want it to log the 5 tags when the trigger tag goes high then reset the trigger tag. Extremely simple in my experience, but this is not simple on Siemens. Any help or resources is appreciated. ------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 01/10/2022 11:04:31New subject after splitting |
|
1/8/2022 9:26 AM | |
Joined: 3/5/2017 Last visit: 4/15/2025 Posts: 780 Rating:
|
Hi, Attached is quick setup of trigger logging. It is not indetail, but point is that you do not usually need to stop logging during operation unless your trigger tag value changes when you do not want to log values. So do not start and stop on every value logging. (I do not know if you do that, just a point) Or you are creating a batch report and need the log file of that cycle. Then you probably would use OpenAllLogs and CloseAllLogs too. EDIT: If you do have a need to start and stop logging. Wait a while or use system events after starting before looging values. AttachmentLoggingPics.pdf (1308 Downloads) |
Last edited by: K_Ohjus at: 01/08/2022 09:37:13- Trying is the first step towards failure. |
|
This contribution was helpful to
2 thankful Users |
Follow us on