Sign in to follow this  
Followers 0
Ryan01

Using TPO(685)

6 posts in this topic

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

 

Untitled.jpg

Share this post


Link to post
Share on other sites

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 :

Capture.JPG.69be82b42d8b99aa2cf15511db60

Share this post


Link to post
Share on other sites

Sounds complicated...

Share this post


Link to post
Share on other sites
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

Are you sure that is what he is asking??:shrug:

Share this post


Link to post
Share on other sites

Well... now that you said that, I'm not sure anymore :lookingaround:

Let's just wait 'til he replied

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0