Michael Walsh

MrPLC Admin
  • Content count

    1383
  • Joined

  • Last visited

Community Reputation

172 Excellent

About Michael Walsh

  • Rank
    Omron Expert
  • Birthday 07/22/73

Contact Methods

  • Website URL http://

Profile Information

  • Gender Male
  • Location Charlotte, NC
  • Country United States

Recent Profile Visitors

10593 profile views
  1. Configuring HSC in CJ1W - CT021

    n is a variable used in the manual to represent the starting address for the data exchange area for the card in the CIO area.  n = 2000 + 10 x Unit number.  n in your case is then 2240. If you are trying to look at input I0, it would be 2256.00 (2240 + 16, bit0).
  2. High speed counter and Output ON

    Yes.  
  3. High speed counter and Output ON

    You don't specify which PLC you are using, but you can right click on the coil and choose immediate refresh on our newer PLCs.  The coil will then have an exclamation point inside of it to indicate immediate refresh.  Of course you will have to do this in the Online Edit mode or transfer the program to the PLC.  
  4. Display a HEX value as floating

    I missed the fact that the words were swapped.  I did not look at the values close enough.  My point was that there is not a conversion function from HEX to Float per se, you just need to interpret it the right way.  
  5. REPLACEMENT UNIT?

    Here is the MV Limit parameters for the E5CN, just in case:
  6. REPLACEMENT UNIT?

    Is your output scaled from 2-7 or just limited to 2-7?  You could use the MV Low and MV High limits to limit it to 20-70% of output.    I looked at the E5CK and I don't even see a way to scale that from 2-7 V, only limit it from 2-7.  Of course I could be overlooking something.
  7. Can Anyone Identify This Language

    Thank you for following up!
  8. Count Empty Cell in Array

    I wrote a quick Function to do this.  The input to the function is the array of bools.  The output is to UINTs that report the location of the first two bits that are on in the array. In this example, I have bits 8 and 15 on.  After executing the function, it returns an 8 and 15 in the two output variables as shown below: Then you could do a subtract between the two to determine the distance - you could put this inside the function if you so choose and have it return the length.  Hopefully this is what you are trying to do. Here is the code: FindBits.smc2
  9. Display a HEX value as floating

    @alpr_94Deselect the "16" button.  It forces the display to hex. If you specify Real as the display in the watch window and none of the format buttons are selected in the toolbar as shown above, the format selected in the watch window will be the format that is displayed.  
  10. http://davidhealth3.webgarden.cz/

  11. AT Specification for Arrays

    Aha.  yes, using HMIs that use FINS will indeed require using the AT assignment.  Your other assumptions are true in your case.  The memory areas are all 16 bit addresses, so for each  UINT, it uses one of the addresses in the E0 Memory bank.  If you had an array of UDINTs or REAL numbers, each index would use two addresses consecutively. So, Array[0] would be E0_0 and E0_1 and Array[1] would be E0_2 and E0_3.  You are doing things correctly. 
  12. AT Specification for Arrays

    You just need to put a % sign in front of the address.  Why do you need to assign an address to the variable?  This is only necessary if you have a very specific need to do so.  
  13. Fingerprint reader

    The manual for the ETN21 (and socket services) can be found in this thread: http://forums.mrplc.com/index.php?/topic/27405-manual-for-cj2m-socket-services/#comment-130936  
  14. Fingerprint reader

    Here is some code that shows using socket services to communicate between our PLC and one of our RFID readers:   http://forums.mrplc.com/index.php?/files/file/1081-cj2-to-v680s-etn-version-using-socket-service-function-blocks/  
  15. Fingerprint reader

    I will look for some sample code.  Note that the built in ethernet port on a CJ2H does NOT support socket services.  You need to use the CJ1W-ETN21 in order to use socket services.