MrPLC Member
  • Content count

  • Joined

  • Last visited

Community Reputation

2 Neutral

About AngryRobot

  • Rank

Profile Information

  • Country United States
  1. NA screen acknowledge alarms on reset?

    Is it possible to access the alarm code?  I would just create my own display page, but I like being able to display the alarm code.   Edit: I guess I can just add them to a normal alarm viewer.  The layout on the pop-up screen just looks so much better than the alarm viewer objects though.
  2. NA screen acknowledge alarms on reset?

    I can't uncheck Acknowledge when I have the pop-up checked- but I still want to use the pop-up to display my alarm code.
  3. Is it possible to have alarms show as acknowledged and close the pop-up screen when the expression that triggers the alarm is no longer true?  I like resetting the alarm with a PB in the PLC, and its a bit annoying having to also acknowledge it.
  4. Accessing USB from VB on NA screen

    I might be able to do this by saving it to SD card in the PLC... more experimentation is needed.
  5. Does anyone know how you can access the USB drive from a VB script on an NA screen?  I need to run a script to create a CSV file, but I can't figure out how to direct it to the USB location.
  6. NA Broken Line Graph

    I ended up changing to a structure that contains an array for the captures and strings for a date and time stamp.  Then I created an array of these structures.  This lets me easily save the data, and move it into a "display" structure to show on the HMI.   But now I've also found out they want to be able to pull this data from the HMI.  So I've hit a wall again.  I tested with using a data group to log it to a CSV file, but that can only look at one element of the capture array in one element of the structure array at a time.  I don't see any way to have it log the entire structure at once.
  7. Cognex DataMan 262

    I'm not familiar with that Cognex scanner, but the I/O mapping looks pretty much identical to a DM60.  Here is a quick example project showing a structure and the variables to communicate to a DM60.  There is no actual programming in it, just the communication setup; but there really isn't much to programming for these things.  The data from the scanner comes in as a string, and then you turn on the acknowledge bit once you've moved the string into a permanent data area. Dataman Structure.pdf Cognex Example.smc2
  8. NA Broken Line Graph

    I'm not sure doing it by time stamp will work though.  I'm pretty sure that will continue to capture data between different parts as if they were still part of the same data grouping.  So all of the parts would blend together into one overall trend curve; but I need to be able to display the specific curve for each individual part. I think I came up with something that is going to work... but it wont be the most memory friendly solution.  I created a two-dimension array, the first dimension is the 50 parts I need to save data for and the second is a 16 element dimension that saves my capture points.  Then I use a WHILE statement to create a pseudo-stack and shift everything through it; then once its been shifted I move my just captured data into the very first dimension and element of the saved data array.   IF test3 = TRUE THEN     Pointer:=INT#49;         WHILE Pointer <>INT#0 DO         MemCopy(Save_Data[(Pointer-1),0], Save_Data[Pointer, 0], UINT#16);         Pointer:=(Pointer-INT#1);         END_WHILE;     MemCopy(Capture_Data[0], Save_Data[0,0], UINT#16);     test3:=FALSE; END_IF;            
  9. NA Broken Line Graph

    So I was finally able to grab a PLC and HMI off the floor to do some testing with.  It looks like the Broken Line graph will do what I need if I push everything into an array.   But in order to "save" the last 50 good graphs and the last 50 failures I am going to have to create 100 individual arrays to push the data into when it is no longer the "current' data.  That's going to be pretty messy.  Is there a way to create an array of arrays?  So I could just say push Current_Data_Array into Saved_Data[0].
  10. NA Screen Multi-Line Alarm Message

    If you use ALT+ENTER to add a second line to the fault message string then the alarms viewer will show both lines.  It won't auto wrap, but if you know a good breaking point for the message you can force a line break yourself.  I've attached a picture of a basic alarm display showing one of my fault messages that I inserted a line break into, and it displays both lines.
  11. NA Broken Line Graph

    Ok, here is another caveat: I will be evaluating this captured data to determine if the part is good or bad- and the customer wants to save the last 50 good "graphs" and the last 50 bad "graphs".  That is the exact wording used in the customer documentation, they want to "save the graph" so that they can look at them later on the HMI. So not only do I need to do a live graph of the torque curve as  the test is running, I need to log the data so that I can display the curve again at a later date.  I'm not sure how to use the Trend graph for that; because in my limited experience with that it pushed all of the data into one file, so I'm not sure how I would read out different "graphs" based on the user's selection.  
  12. NA Broken Line Graph

    I need to be able to graph an analog input value on the HMI during the course of a part test procedure.  Is the broken line graph the right tool for this?  I don't believe the graph works in the simulator (or does it?) and I don't have the PLC yet to experiment with it all.   Basically, I need to send an update command every 20ms and then graph the analog value at that time.
  13. Sysmac Studio Improvement Request

    Well, spank me and call me a moron.  I did not realize I could create new resource lists.
  14. Sysmac Studio Improvement Request

    I want the ability to create separate groups of strings- kind of like how alarm strings are kept separate from the general strings.  I use labels with dynamic text and the '"string_name" & variable' expression a lot.  I use it to display status messages, model type names, etc.  It would be really handy to be able to create separate groups for each of these string groupings, just to keep everything organized.
  15. Anyone have much experience creating IAGs?

    I think I came up with more crude solution, that I'm not as worried about zapping the HMI performance with. I created a variable in the HMI called CLOCK that maps to the 100ms clock pulse in the PLC.  Then inside of the IAG I set the expression that calls the sub to (Run AND Clock).  So now it only calls the Sub when the page is displayed, and the clock pulses.