Jump to content

JotaPey

Members
  • Posts

    11
  • Joined

  • Last visited

Posts posted by JotaPey

  1. Thanks for the UDFB, Flex727.  So I'm struggling to understand how I incorporate this into my logic.  

    I called the function in my main function and entered my UTC in the A field, this worked as I was able to confirm in online mode that the UDFB parsed out the hour, minutes, seconds, days, etc.  I assigned an ASCII tag to the the B Field of the Call Function, but there was no resultant output in that field.  

    I'm wondering if I need to do something with the logic in the last rung (Region2.Rung8) the comments say "Placing the result"  

    Thanks for any help you can provide!

  2.  I need to output a time/date stamp to a DTI in the format dd-mmm-yyyy hh:nn:ss.  I am able to output the time/date stamp using the "Date Time to UTC" function, but this outputs in a numeric format, which I believe is Unix Time.  Is there a way to then convert that format to my desired format?

  3. 6 hours ago, Saragani said:

    I tested it with a struct, and it works.

    Can you try to "Build-All" and then download the project to the PLC? (It should say that the project is identical, if you have not changed any thing).

    If the project was downloaded (meaning, no identical project message), then check if the Reset Numeric now works correctly.

     

     

    Thanks for the reply Saragani, can you explain to me what "Build-All" does?  On my version it has "Rebuild-All", which I assume does the same thing. 

  4. I would like to clear all the data in a certain struct.  I thought I was able to do that using the Reset Numeric function.  I entered the name of the struct in the function box tag and then erased the period.  For some reason, however, the data is not being cleared in the struct.  Am I wrong in how I set this up, or am I overlooking something?  

  5. I am working on a project where I would like the operator  to scan a barcode to input data into several fields.  If I enable the USB for HID Device I can get the barcode to scan into a field, but only when I first touch that field to open the on-screen keyboard (and oddly enough I have to press a key on the keyboard before the scanner will fill in the field).  I am wanting the operator to be able to initiate these inputs without touching the screen first. 

    I have logic written using the COM Rx function, followed by Copy Buffer to Tag.  When online, I can see the scanned data in the buffer field, but no data is filling in the desired field.  I'm not sure if I need to somehow key focus onto the field I want.  Also, after the first scan I would like to be able to automatically focus on the next field where the buffer will be copied to.  

    Any help would be greatly appreciated!

  6. I have a DTI in which I want to search a column for a string with a specific prefix.  The column contains strings of 25 characters each with a unique 3 letter prefix.  How can I perform a search returning a match for a given  prefix?  In other words, I want to return the  string with prefix "ABC".  Thanks in advance!

  7. 13 hours ago, Joe Tauser said:

    Have you tried the String Length function (in the strings menu)?

    image.png.d3da079e685d86633122d9348773c8f1.png

    Joe T.

    Thanks for the reply Joe Tauser, that looks like exactly what I was looking for! (Not sure how I overlooked it...)

    I'm not sure what to put in the B field, if I want to confirm that the Source String is 10 characters, what would I put in the "Length Result" (B field)?

  8. I am working on a project that requires an operator to enter a field (on the HMI Screen) by scanning a bar code.  I want to be able to confirm that the scanned field has a specific number of characters.  

    The field is linked to a tag that is an ASCII string.  It will be an alphanumeric string 25 characters long, and I want to confirm that the scan in fact inputs all 25 characters.  

    Any thoughts on how to do that would be much appreciated!

  9. Upon analyzing my project, several error messages were produced concerning fixed text on my HMI module screens.  The error description is "missing tag action 0".  I assume this is talking about the "Tag: Touch Enable" under attributes in Properties Window.  If I mouse over that element it tells me the Touch property is enabled by default. 

    How do I disable this, so that the text is not touch enabled?

    I looked in a sample project and the attributes of a fixed test element were the same as mine (enabled).  

    Any help would be appreciated!

    2018-11-13 13_48_14-CAT Leak Test Box_3490 - UniLogic.png

×
×
  • Create New...