Posted 29 Nov 2016 Hi I was wondering how it is possible to modify result bit of TPO during instruction input is enabled.in otherhand I can modify it and I think there must be a problem. I'm new in omron and I know a few about using instruction. Warm regards Ryan Share this post Link to post Share on other sites
Posted 30 Nov 2016 If you're using at least CP1L Series PLC or above it, you can make use of the Index Register to shift the Output Bit. If you're using CP1E series, I don't think there's a workaround for this. For example use MOVR Instruction to put bit 0.00 Physical Address into Index Register IR0. Then use MOV to input the bit Shift amount to DR0 Register. The logic is, if DR0 is 0, IR0 will point to 0.00. If DR0 is 1, IR0 will point to 0.01, etc. In the TPO, you put DR0,IR0 (yes, there's a Comma between them) into the Bit part. I'm not really sure whether you should retrigger the TPO or not after changing DR0, but if you need to do so it can easily be done. It should look something like this : Share this post Link to post Share on other sites
Posted 1 Dec 2016 1 hour ago, Jay Anthony said: Sounds complicated... Unfortunately there is no easy way to do indirect addressing for bits, like the one for DM area Share this post Link to post Share on other sites
Posted 1 Dec 2016 Are you sure that is what he is asking?? Share this post Link to post Share on other sites
Posted 2 Dec 2016 Well... now that you said that, I'm not sure anymore Let's just wait 'til he replied Share this post Link to post Share on other sites