Michael Walsh

MrPLC Admin
  • Content count

  • Joined

  • Last visited

Everything posted by Michael Walsh

  1. RXDU

    So, changing the number of bytes works, but not the end code?  I would guess that either you don't have the end code specified correctly, or the end code is not actually in the data.
  2. RXDU

    Just to confirm, this is unit 3, right? What do you have for N in the RXDU command? It should be set to n+10 (1585).  If you run the test with an end code set to 0D, and then send 02 0D to the port, you would only have a size of 1 and would only receive a 02 value.  The end code is stripped away.  
  3. I agree, at least the decimal values (alongside the HEX values) of the error codes are now in the help files.... 
  4. It will show the format of whatever you declared the variable to be.  As shown below, I have declared two variables that both point to the same address (D0).  You don't have to point tags to addresses, but it worked well to illustrate this concept:   I then created some ladder that was always off, just to show the variables in the ladder code.  As you can see in the image below, the D0_as_UINT (unsigned integer) shows a value of 10 (UINT), while D0_as_Word shows the hexadecimal equivalent value of 000A.     Side Note:  The values when entering a Constant default to decimal, so if this code were entered:   The Word#10 value would be entered as a decimal number and the hex value would be 000A (as shown).   To enter a hexadecimal value of 10, you would enter your code like this Word#16#10: As you can see in the image above, the value is stored in the memory location as a hex 10, this equates to a decimal 16 (top rung).
  5. How to get error code of Ethercat connection.

    The section that I referenced has status information that can help you to see when you have an EtherCAT Error.  Then you can use the GetECError instruction for details.  
  6. How to get error code of Ethercat connection.

    Check out the EtherCAT manual that is installed with Sysmac Studio:     In particular, look at Section 7 - System-defined Variables.
  7. how to set up timer in st

    You would need to declare another instance of the FB.  You could use the TIMER function however.  Functions do not require instances.  
  8. how to set up timer in st

      Make sure to declare all of the variables that you are using in the structured text block as I have shown above.  I declared I00 as a global since your code did that.  
  9. Difference between RUN and MONITOR modes

    Monitor mode allows for some memory areas to be monitored from outside commands.  Monitor mode allows you to force bits on and off and to set values in memory addresses using CX-Programmer (see my first note).  I will also set the PLCs to power up in monitor as a rule of thumb.  
  10. This will trigger an event with W100 = 25 and display "Event text to be displayed here" in an event display.
  11. Sysmac Studio 1.22

    I experienced this issue today.  I had to use the removal tool and then install from disk.  After installing from disk, I had the same problem.  I ran the autoupdate and updated Sysmac Studio and then it worked properly again.  It all started when I installed and then removed a utility related to Sysmac Studio.  
  12. PC send data to PLC

    Does the Reception bit turn on (A392.06)?  Use differential monitor to check.  Also, do you see a  value in A393? If neither of the above is true, do you have a CR+LF as the terminator in your data?  The program and settings look correct if using CR+LF as the terminator.      
  13. CP-1E Error

    What model do you have?  Some of them are not expandable:
  14. modbus communication for Omron 3G3FV

    @Kavvis:   @Jay Anthony provided the requested document and I fixed both links in the post above, just in case you also want the Excel file.  The links were messed up a while back when the site was updated and have to be repaired one at a time manually.  Please continue to let us know if you spot one that is no longer working.
  15. From PM this morning

    He would do a MOVL from 101 to a+8 (a is defined in the setup of the NCF Module).  In the example below, "a" would be W0 and a+8 would be W8 (if it were the Axis 1).  However, he would likely have to do some scaling of the analog value in between 101 and W8 to change 0 - 4000 (guessing analog resolution) to 0 - 100000 (100.000% or up to 300.000%).

    Look at the front of the module.  If the dials are not set to match the last octet, you will have a flashing ERH light as shown below: if you can ping it and you have a flashing ERH, then the FINS Node number does not match the last octet of the IP Address.
  17. CQM1H-CPU51 Arduino Modbus RTU

    The PLC needs to be in Monitor Mode.  Just put it in Monitor mode and leave it in Monitor mode all the time.
  18. Sysmac Studio won't load

    My v1.24 is working fine.
  19. Servo Motor Connection

    Are you sure that this is the proper part number?  I believe that you are asking how the drive is wired, so could you provide that part number?  Also, I moved this topic to the general category as it is not a Sysmac / Sysmac Studio question.
  20. CJ1M-CPU13-ETN Connection Issue

    The manual that is installed with CX-Protocol describes how to upload the protocols in section 11-1-3.  You can find the manual here:  
  21. CJ1M-CPU13-ETN Connection Issue

    There could be a protocol macro stored on the card.  If so, use CX-Protocol to connect to the card and upload the protocol from the card.
  22. MACRO MOVAPARTS, same ID, different screen

    It should only be on when the bit turns on (unless you have done something with the Flicker settings).  It should not matter though as I am suggesting that you put it off of the screen like this: If you don't like that or for some reason, it still shows in Runtime, then double click on the lamp and choose the Control Flag tab and hide the lamp, like this:
  23. MACRO MOVAPARTS, same ID, different screen

    Put a lamp off to the side (in the grey area, not on the page) on the page where you want to use the MOVEPARTS macro command.  Then assign the bit that causes the refresh in the Display Address field of the lamp.  Then go to the Macro tab and put your code in there.  You can also use the $SB0 system bit that will pulse at a frequency rather than a bit from the PLC to update the position.  I am not sure what frequency and it may be too slow, but worth looking at.
  24. CP1H-EX ?

    @gtsuport:  Any update?
  25. Torque Control

    I am not sure that I completely understand your question, but maybe this will help:  you can only do Torque Control OR Position control.  You cannot turn on Torque control and expect the system to go to a specific position.  If this is what you are trying to do, you will need to uses MC_MoveAbsolute and turn on torque limits in the drive.