Omron CP1H PLC Data Movement Instructions

Sdílet
Vložit
  • čas přidán 14. 08. 2024
  • Every program usually has some kind of data movement. This is the ability to transfer information from one area of the controller to another. The Omron CP1H series of programmable logic controllers provide several different ways to manipulate this information. We will be looking at several different ways in which data movement can happen with some programming examples. Data movement in the Omron CP1H does not care what is in the bits that make up the word. It will just send or receive this information. Remember that it is usually the instruction used, that determines how the information in the memory is determined.
    We will be covering several different data movement instructions. A full explanation can be obtained by using the help menu in the CX-Programmer software or the Programming Manual for the CP1H.
    More information can be obtained at our website. This includes all of the links mentioned in this video.
    accautomation....
    Previously in this Omron CP1H series, we looked at the following:
    System Hardware
    accautomation....
    CX-Programmer
    accautomation....
    Establish Communication
    accautomation....
    Omron CP1H Setting, Forcing and Online Editing
    accautomation....
    Omron CP1H Numbering Systems and Addressing
    accautomation....
    Omron CP1H Timers
    accautomation....
    Omron CP1H Counters
    accautomation....
    00:00 Omron CP1H PLC Data Movement Instructions
    00:51 MOVE: MOV(021)
    02:10 MOVE NOT: MVN(022)
    03:02 DOUBLE MOVE: MOVL(498)
    03:47 DOUBLE MOVE NOT: MVNL(499)
    04:42 MOVE BIT: MOVB(082)
    05:58 MOVE DIGIT: MOVD(083)
    07:11 MULTIPLE BIT TRANSFER: XFRB(062)
    08:10 BLOCK TRANSFER: XFER(070)
    09:17 BLOCK SET: BSET(071)
    10:21 DATA EXCHANGE: XCHG(073)
    11:30 DOUBLE DATA EXCHANGE: XCGL(562)
    12:18 SINGLE WORD DISTRIBUTE: DIST(080)
    13:23 DATA COLLECT: COLL(081)
    14:27 MOVE TO REGISTER: MOVR(560)
    14:55 MOVE TIMER/COUNTER PV TO REGISTER: MOVRW(561)
    There are several reasons why we are using the Omron CP1H Controller. Here are just a few.
    - Standalone PLC with built-in I/O
    - Communication ability - Ethernet Port, RS232, RS485 - support for protocols such as Modbus, Host Link, ASCII (No Protocol)
    - Built-in Analog inputs and outputs
    - 4 axis control of motion
    - 4 high-speed counters
    - powerful instruction set (similar to CS and CJ series)
    - Ability to expand the system with a variety of modules
    The Omron CP1 series of programmable logic controllers consists of three different units. CP1E is the cost-effective unit, CP1L is the high performing controller that can come with embedded Ethernet and the CP1H is the position control and comprehensive programmable logic controller.
    We will be looking a the CP1H for this series, but a majority of the information can be applied to the CP1E and the CP1L controllers as well.
    www.accautomat...

Komentáře • 8

  • @ImranKhan-nw7tb
    @ImranKhan-nw7tb Před 6 lety +1

    I can't understand MOVD(083) and XFRB(062) also others.But 2 instruction more important to understand for me.Plz Discussion
    more easily and deeply.And why we will use this.plz help.

    • @ACCautomation
      @ACCautomation  Před 6 lety +1

      Hi Imran,
      accautomation.ca/omron-cp1h-data-movement
      The MOVD (Move Digit) will move bits in groups of 4. (Digit) The instruction will take a source word and destination word. You then specify in the control word of the instruction the starting digit to look at, the number of digits to move ( 1 to 4) and the starting digit location to move the digits.
      The XFRB (Multiple Bit Transfer) will move bits 1 at a time. The instruction will take a source word and destination word. You then specify in the control word of the instruction the starting bit to look at, the number of bits to move ( 0 to 16 (0-F)) and the starting bit location to move the bits.
      The XFRB instruction can do the same job as the MOVD as long as you select multiples of 4 bits at a time and your starting and ending positions are the same as the digits.
      Regards,
      Garry

  • @philipmclamore
    @philipmclamore Před 4 lety +1

    Indirect addressing/pointers would've been a great addition to this video, I run into them at work all the time and they can really trip someone up if they don't understand whats going on! But an excellent video nonetheless!

    • @ACCautomation
      @ACCautomation  Před 4 lety +1

      Hi philipmclamore,
      Thank you for the comments. Indirect addressing /pointers were covered in the numbering systems and addressing post.
      accautomation.ca/omron-cp1h-numbering-systems-and-addressing/
      Here is the corresponding video:
      czcams.com/video/vhwGoaDC-aE/video.html
      Thanks again,
      Garry

  • @corwinbroekhuizen3619
    @corwinbroekhuizen3619 Před 2 lety +1

    I have run into an issue where I seem to be unable to write into words greater than 41. This issue is occurring with all functions. Any suggestions?

    • @ACCautomation
      @ACCautomation  Před 2 lety +1

      Hi Corwin,
      Are the words already being written?
      You could move your logic for the writing of the words just before the end statement in your ladder code. This will test to see if this is the case.
      Regards,
      Garry

    • @corwinbroekhuizen3619
      @corwinbroekhuizen3619 Před 2 lety +1

      @@ACCautomation it appears to be some issue with the way I am using a custom function block, when I extract the code out of the function into the main ladder it works fine. This solution is acceptable for my purposes so I have run with that.

    • @ACCautomation
      @ACCautomation  Před 2 lety +1

      @@corwinbroekhuizen3619
      I'm glad you got it going.
      Garry