BITS N BYTES

MrPLC Member
  • Content count

    911
  • Joined

  • Last visited

Everything posted by BITS N BYTES

  1. Limit

    The LMT instructions uses a group of boolean "condition flags". These change state immediately after the instruction is applied. Read section 1-2-1 in the manual W451-E1-03 for an explanation of how Condition Flags are used.
  2. SCL3(487)

    TRY HERE   http://forums.mrplc.com/index.php?/topic/30950-proble-with-scale-function-in-cp1l/#comment-145675
  3. Using PTO's to control multiple stepper motors?

    Whenever you execute ANY pulse output instruction in the PLC it will always assign two outputs. Either {PULSE + DIRECTION} or {PULSE CW and PULSE CCW] depending on the configuration you use in the output instruction. Even if you are only moving in one direction using just PULSE or PULSE CW the second output is NOT available as a standard output. If your PLC is model CP1L-EM**DT-D then outputs will be Sinking Transistor. If model is CP1L-EM**DT1-D then outputs will be Sourcing Transistor. Since only two pulse train outputs are available on this PLC and you are trying to control 7 axes it will be quite the challenge to manage all of them using relays to switch PTO signals to each drive.   GOOD LUCK.
  4. Using PTO's to control multiple stepper motors?

    There are ONLY two pulse train outputs available on a CP1-EM PLC. Switching PTO output references to different motors with relays would work, , however if you ALSO need PULSE + DIRECTION you will need to switch two signals [PULSE + DIRECTION]. For relays specs I highly recommend you use a bifurcated contact type for to accomodate such low voltage/current signals to each drive. Example here: - http://us.idec.com/Common/Download.aspx?d=310933
  5. Some of the files in the group of backup files from a PLC was mistakenly viewed and set to open with Adobe Acrobat. This has affected ALL CX Programmer backup files across my entire PC [Windows 10 Pro] How does one restore the original files association? In the attached picture the "Backup File List" all files except backup.obj and backup.std show in "Opens with: "Unknown Application" BUT the backup.obj and backup.std shows file type as Adobe and properties "Opens with: Adobe" How do I restore the original "unknown association" so that backups can be used to restore programs to PLC. I have over two hundred programs that are affected. HELP PLEASE   OR Doesn't this issue really matter!! So my PC associates file with ADOBE, BUT in fact when using them to restore program to PLC all works just fine??? Con-Fused!!
  6. Backup files - File Type Association

    DOESN'T WORK, since windows 10 offers no selection to associate these file types.
  7. Backup files - File Type Association

    Thanks IO Rack. My hunch was correct. It is only Windows that uses the file Association. Tested restoring a couple of PLC backup file groups and they worked just fine. Messing around trying to remove associations just isn't worth the time or trouble.
  8. Write Protection

    Is DIPSWITCH 1 ON? Must be OFF to transfer program.
  9. PLC TCP/IP simulator

    CX Programmer can simulate NS Series HMI's  and CJ2M PLC's by clicking on the PT-PLC button. From the currently opened PLC program you point to the NS program *IPP and open it. Both Applications should now be available in simulation mode. In the past I have only used this for Serial communications, but in CX Simulator it would appear that Ethernet Comms is also available.
  10. CP1H with servo motor

    If you measure the PWM output with a meter does it change with the duty ratio? Maybe a wiring issue? Notes from servo motor:- Frequency of PWM: MG995 takes in PWM signal of frequency 50Hz and any higher and lower frequency PWM will lead to error. As shown in figure the every single cycle of PWM needs to be 20ms width for 50Hz frequency. Duty cycle of PWM: The duty cycle of PWM (or ratio of ON time to total cycle time) determines the position of servo axis. If we provide a PWM signal of 0.5ms ON time over 20mS complete cycle, the servo axis will move to 0º. Your settings  for pulse output  0 at  1000 hex Pulse output 0 and Duty factor in increments of 0.1%, Frequency in increments of 0.1 Hz look correct, but maybe the motor will not respond correctly. Try 0000 for the Port specifier and change the duty ratio to &50. IMHO has to be either a wiring issue OR response from the motor.
  11. CP1H with servo motor

    Providing model number does NOT end with an A [CP1H-X40DR-A or CP1HXA40DR-A] the PWM should work. 1. With PWM outputs it is NOT necessary to change any PLC settings. 2. Is the task in which the PWM and INI instructions running? 3. Could be a wiring OR power supply issue from the PLC to the MG995 servo? 4. Post your code.  
  12. Fork terminals for Mitsu PLS's

    Does anybody has a place where to order these narrow sleeve fork terminals? Our distributors have only this car-style (=> large, thick) standard crimp shoes. They are so wide, the lower screw is covered again. You should find what you need here: - http://www.ferrulesdirect.com/electrical/VINYLINSULSPADETERM.htm  
  13. PULS & SPED for Controlling Servo Drive

    do you have any idea where should i check? If you are sure PLC program is configured correctly with PLC and SPED then the problem has to be in the Servo Drive parameters. Can't help you there as I am unfamiliar with the Panasonic servo products.  
  14. PULS & SPED for Controlling Servo Drive

    PLS sets the number of pulses you want to send to the drive. If you want to rotate the motor 1 revolution and the drive and motor is set up correctly so that 2500 pulses = 1 revolution use 2500 in PLS. SPED sets the target frequency [pulse rate] used to output the number of pulses set by the PLS instruction. If you want to rotate the motor at full speed of 2000 rpm then use 83333 for the target frequency in the SPED instruction. Read the relevant section in the manual W451-E1-03, this has examples of how to implement PLS+SPED on page 730.
  15. PULS & SPED for Controlling Servo Drive

    First of all I recommend you use the PLS2[887] instruction. This allows modification of the accel/decel rate, target frequency [max. speed] number of pulses and whether movement is relative or absolute. In your  application a 2000 rpm motor with 2500 pulses/rev would require [2000 x 2500]/60 = 83333 pulses/second to achieve max. speed. You cannot send fractional values for pulse outputs [you mention 1.525]. My 2 cents.  
  16. CP1E PLC AI scaling logic requires

    Use the APR instruction. Program example attached in this post........................ http://forums.mrplc.com/index.php?/topic/30950-proble-with-scale-function-in-cp1l/#comment-145675
  17. stepper motor controle CP1E

    High speed outputs will ONLY work if the model has transistor outputs.
  18. Measuring with Plc

    Added note:- To measure speed I recommend using the PRV2(881) instruction. Just be certain to use high-speed counter 0 for your encoder input as PRV2 only works with this input. Also reference this link. Though for a CJ PLC same principles apply. Very useful! http://forums.mrplc.com/index.php?/files/file/268-cj1m-motion-and-interupts-quickstart/
  19. Lamp Bit and Buzzer

    The CP1L series PLC's do NOT support bit level addressing of D registers. [Only available in CJ2M series] So change the allocation addresses to W memory. Turning on W0.12 in the PLC will turn on the continuous buzzer on the NS15 HMI.
  20. Lamp Bit and Buzzer

    Then you need to change your communications setup in CX-Designer by adding a HOST to the ethernet option and then point the NS memory to the desired location in the PLC.  
  21. Lamp Bit and Buzzer

    In CX-Designer go to PT->System Settings ->Initial. Assign "$SB Allocation Address" to the PLC memory area you wish to use. Then select "System Memory List". In order for communication to work you must enable the check box.  
  22. High speed counter

    There are only two high speed counters available for each MD211 module. Right hand MD211 uses counters 0 and 1, left hand MD211 uses counters 2 and 3. To read the present value for each counter the Port Specifier of the PRV(881) instruction is #0010, #0011, #0012 and #0013 and the Control Data is #0000. You must configure the type of counter in the PLC Setup, then download the setup to the PLC. THEN MOST IMPORTANTLY POWER CYCLE THE PLC FOR THE NEW SETTINGS TO TAKE EFFECT. Attached is link for MD211 module manual. See Section 7 for details on high-speed counters and 2-3-3 for PLC Setup https://assets.omron.eu/downloads/manual/en/v3/w486_cj2m-md21_pulse_i_o_module_users_manual_en.pdf