Help mirroring input bits on the output side in the background?

  • I need to reflect a set of bytes coming from the PLC on the output. So if IN 500 is on, I need to set OT 500 to be high. How do I do this in the background and not using a job?


    I am running a MH50 robot on a DX 200 controller.

  • I figured that much through the manuals, but what do I add to the ladder?


    Find the relay that matches teh input and connect it straight to the relay that matches the output?


    I tried to map input 17 to output 17.


    I added a rung and set the relay on the left to be 00030 and the one on the right to be 10030, but the ladder won't compile.


    I also tried to set the relay on the right to be an OUT.


    How would the program look like?


    STR #00030
    OUT #10030


    I tried doing the above in the mnemonic editing window, and could not get it to compile

  • You can not duplicate outputs in the ladder...
    If an address is located within a GOUT or a BMOV .... you have to "break" it out into individual rungs


    GSTR #2xxxx if you change like this it will mirror 8 bits
    GOUT #3xxxx


    STR #2xxxx This change will mirror a single bit
    OUT #3xxxx
    STR #1xxxx
    OUT #3xxxx
    STR #1xxxx
    OUT #3xxxx
    STR #1xxxx
    OUT #3xxxx
    STR #1xxxx
    OUT #3xxxx
    STR #1xxxx
    OUT #3xxxx
    STR #1xxxx
    OUT #3xxxx
    STR #1xxxx
    OUT #3xxxx


    STR# 70017
    BMOV 2xxxx, 16, 3xxxx mirrors 16 bits

    Oh, well

    Edited once, last by tony gast ().

Advertising from our partners