kckku

Test bit instruction

5 posts in this topic

I am getting back to programming the CJ2 PLCs after working on the NJ/NXs for the last little while. I swear there is a test a bit function (TST or TSTB?) function in CX-Programmer where I can check if a bit is on or off in a word.

Am I losing my mind? Or am I thinking or another PLC?

Share this post


Link to post
Share on other sites

How I do this is:

Open Memory from the project tree and double click on the memory area containing the word. Right click on the data area and select Monitor. You can then change how you view the data and one option is binary which will display bits.

Share this post


Link to post
Share on other sites

Alternatively if it is a specific bit you can place a contact in the logic and address the bit IE: D00123.5

Share this post


Link to post
Share on other sites

Yes - there is TST and TSTn (test not).

Share this post


Link to post
Share on other sites
18 hours ago, BobB said:

Yes - there is TST and TSTn (test not).

I found it. You have to look under LD.

I was looking under 'T' for TST. This is why I never found it.

Thanks.

 

2022-08-17_10-30-55.jpg

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