Michael Walsh

MrPLC Admin
  • Content count

    1801
  • Joined

  • Last visited

Everything posted by Michael Walsh

  1. Fail to clear memory

    I It did not work for me.  Did you check the "Prohibit from overwriting to a protected program" box when you set the PLC Protection properties?  If that is not checked, it will work, but so will simply downloading over top of the code.  He has overwrite protection enabled, see his picture above in his Saturday 10:46 post.
  2. Fail to clear memory

    From the pictures, he has write protection enabled (Prohibit from overwriting to a protected program option is checked).  Therefore, he is unable to overwrite the program.  The other check box (to which you refer) is to load the program to the memory card from the PLC.  Given these assumptions, the only way around this is to have the password (as far as I know) and he will have to contact Omron to get that done.
  3. Fail to clear memory

    The only way to get past this is to contact Omron.  If you / your company owns the rights to the program inside and you sign some documents stating so, then Omron can get the password for you.
  4. You cannot find it because you put a space in the search.  Try ScaleTrans with no space in between Scale and Trans.  If unsure of the exact name of a file, you could search for just a part of it.  You could have searched for Scale for instance.  One thing is for sure, no functions or function blocks have spaces in the name.
  5. Timer indirect adressing

    Are you asking if you can use a Timer's present value as the set value in a counter (like this:  CNT 20 T10)?  I think pfort answered this one above.  Note that it is the timer present value and not the timer setpoint if you use a timer address in the counter instruction. Or, are you asking if you can use the same address as the set point for a counter and a timer at the same time (like this:  TIMX 5 D0 and CNTX 20 D0)?  In this case, if you had a value of 10 (INT as shown in this example) in D0, then the timer would time for 1.0 s and the counter would count up to 10 before turning on their respective contacts. In either case, the answer is yes, but I am not sure why you would want to use a timer's present value as a counter's setpoint.
  6. You would use the LREAL_TO_INT conversion function.
  7. Ethernet IP

    What was the proper size?  8 & 8?
  8. When you have added the analog module to the project, it will show up in the I/O Map.  In the I/O Map, type in a name in the Variable field (same rules as other variables, no spaced, no odd characters) and it will automatically create a variable of type INT for you in the Global Variables..  Then do your math and put the answer in the variable that you mapped to the output of the analog module.   See below:   Type in the name here: The global will automatically be created as shown below:   Then just put your answer in Analog_Out_Value in your code.  
  9. Ethernet IP

    One other thing that you can do to check the assembly size: Open up Network Configurator for EtherNet/IP.  Connect to your EtherNet/IP network.  Choose the Tools Pulldown menu and choose Setup Parameters.  Enter the IP Address of the Beckhoff as the Target Node Address, choose Get Attribute Single as the service.  Enter 04 for the class and 03 for the attribute.  The instance number is the number of the input or output assembly for which you are trying to get the size.  In the example below, the assembly instance number was 785 decimal, which is 0311 (Hex).  Then press send.  In the result field, you will get the data for that instance returned.  Count the number of characters returned.  Divide the number of characters by 2 and you have the number of bytes for that assembly. Here is the example that I just tested: In the above example, the device is at 192.168.0.92, I am trying to determine the size of assembly 785, so I entered 311 in hex for the instance.  The result returned 72 hex characters which is 36 bytes of data.  For longer strings of data, you can copy it from the Result field, paste it as text into Excel (as text, or leading zeros will be truncated) and use the =len() formula to determine the number of characters.
  10. Ethernet IP

    Next time that you have a question, start a new post....   Try a size of 8 in and 8 out.  It appears from looking at various Beckhoff documents that show examples of determination of the "process image" with similar products that there is a word of Status on the input side and a word of Control on the output size at the beginning of each of the assemblies. If 8 is not the correct size, then you may have to do some more digging, but it sounds like the size that you have specified may not be correct.
  11. CP1L PLC CPU password protected!

    The only way to get the program out of the PLC is to contact Omron.  If they determine that you own the rights to the code inside the PLC, then they may be able to crack the password for you. However, I believe that you can download a new project onto the PLC and the protection will be removed.
  12. OC 222 output module compatibility woth PLC CQM1

    If the part number starts with CQM1H, it is not compatible with the CQM1.  If it starts with CQM1-, it is compatible with the CQM1.  The only modules that I would need to look up for sure using these rules are the CQM1- I/O modules.  I am not 100% sure that all of the CQM1- modules are supported by the CQM1H and would look to verify.
  13. Pasting symbols from Excel

    You can do it, but you have to do as follows: 1) Make sure a symbol is selected like this: 2) You cannot right-click and choose paste, you need to use the CTRL+V shortcut for paste. This works.
  14. G5 Servo Origin Search

    Yes. There are 4 function blocks. From the Omron Function block library (installed with CX-One): To get to this help document, look here: To add the FB to your project, right click on Function blocks and choose insert function block - from file: Then navigate to the folder shown below (it starts you out where the red arrow points): The FBs are then found in that folder.
  15. Move Value to Double Word Memory Area NB Designer

    It really is quite simple on the NB as well. In the example below, I am showing how to increment D5 (as a double integer) by 100 each time that you press it, to a maximum of 500,000. First, add a command button and set the write address information as shown below: Notice that the Word Length is set to 2 in this example. Then on the Command Button Tab, for type, choose Add Value and choose how much to add each time the button is pressed and a maximum value as shown below:
  16. Power consumtion from motor

    You can monitor the drive Input power (d014) or the drive output current (d002) and drive output voltage (d013), but not exactly output power. All of these parameters can be mapped.
  17. Sysmac Studio Improvement Request

    I just tested with Sysmac Studio v1.1.3.30 and as soon as you add a variable in the global variables of the NJ, you can then switch over and see the variable listed under the Variable Mapping option, under the controller in the User Variables section.
  18. Keyence Bar-code Scaner with Omron PLC

    You would use the receive command (RXD). The port has to be set up for RS-232C mode which means that the port is not using any specific protocol, just TXD and RXD commands.
  19. Host link control for Omron CP1E using C code/ Fins commands

    Use C-Mode Host Link commands to do what you want. The port can be set up as Host Link and it will respond to the published c-mode host link commands.
  20. .cin file question.

    It is likely that many of the PLCs have the same routing table. Look the different combinations of network configurations and I am guessing that there will be as many different configurations as there are .cin files. For instance: If there are 5 PLCs that have one Ethernet card and they are all set to unit 2 (arbitrary choice, it could be any unit # as long as they are all the same) then they would all have the exact same routing table (assuming that the Ethernet cards are all on the same network). If another PLC had one Ethernet card and some other network card (Controller Link as an example), then it would have a different .cin file.
  21. How to connect two HMIs to one PLC?

    One other thing to be concerned about: Make sure to set different $SB and $SW (system bits and words) in each screen if they are mapped to the PLC. Otherwise, when you change to a screen on one HMI, the other will change to the same screen. This can be done here: If you have not mapped the $SB and $SW, then this is not an issue.
  22. CJ2M serial communication

    Did you check the dip switches on the CJ2M CPU? Make sure that SW5 is OFF.
  23. Sysmac download

    The part number that you provided is indeed just a license number. The software itself is a rather large file, your Omron representative should be able to get you a DVD. They are used as sales tools. The DVD has a copy of the software on it that will act as a 30 day trial until an appropriate license is entered. Once the license is entered, it is a fully operational software package with the capabilities specified by that license. All of that to say, ask your Omron representative. Edit: the part number in the US (and likely Canada) for the DVD is: SYSMAC-SE200D
  24. How to work with encoder. "Beginner"

    See my underlined responses below.
  25. How to work with encoder. "Beginner"

    The counter will not miss the pulses as the high speed counting is independent of the scan time. However, value in A270 is only checked in the comparison instructions one time each scan, so you are dependent upon the scan with this method. The CTBL instruction, using an interrupt is not dependent upon the scan and will definitely run the interrupt code when it is within the range. 100 rpm = 1.666 revs / s, which is 0.6s /rev. Therefore each degree takes about 1.7ms. If your window is only 1 degree wide, it is highly unlikely that you will check your sensor each time. I will try to test out some code and post a sample for you using an interrupt and the CTBL instruction.