Kristian

MrPLC Member
  • Content count

    7
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Kristian

  • Rank
    Newbie

Profile Information

  • Country Malta
  1. CPM2A - Counter RESET

    Hi I am trying to build a sequential program for a cable cutting machine. After calculating the number of revs needed, the output of the encoder goes into a counter which counts the number of pulses, it then allows a clamp and a cutter cylinder to set and also counts the wire quantity. My problem is that the counters are already satisfied once I start the program, and so nothing happens, the process is not triggered. Anyone can help? Thanks, Program is attached CCM.cxp
  2. CPM2A - Problem with BCD math calculations

    Both of you are fast enough for me. I still have problems. The value I input from the HMI MUST BE DECIMAL. Now from 1 to 9 the multiplication works fine, but when the user inputs from 10 on, the multiplicand becomes 16 (10 in hexadecimal). I need to work in decimal values, otherwise my machine won't work. Also worth mentioning that when I tried to mov #3E8 (1000 in hex) into the multiplier, the BCD multiply instruction did not work. What should I do now? Thanks
  3. CPM2A - Problem with BCD math calculations

    Do I really need to use MULL? Because my multiplication answer will never exceed 8 digits. I don't think that CPM2A has MOVL function
  4. CPM2A - Problem with BCD math calculations

    Thanks. The program I am using is NT2S_2.00A. I set the value as type integer, does it have to be set to BCD?
  5. CPM2A - Problem with BCD math calculations

    I am not using 35.00, but IR035. My HMI is an NT2S-SF122B-EV2 CCM.cxp
  6. Hi I am a beginner to Omron PLCs. My application is a cable cutting machine and I am using a CPM2A. I get feedback of the length of wire needed from the HMI and post it into address 35.00 (working byte) I then need to multiply the value inputted by 10000 and then divide it by the roller circumference (also multiplied by 10000) to get the actual number of revolutions needed until I switch off the feed motor. Now when I tried to use BCD multiply the answer is always wrong. All addresses are set as HR00, HR02, HR04, etc. except the Length needed inputted through the HMI. the answers for the first multiplication as shown in the picture are as follows 1 x 100 = 100 2 x 100 = 296 3 x 100 = 402 4 x 100 = 598 5 x 100 = 800 etc. PLEASE HELP! Kris