PLG

Pointer cx programmer

5 posts in this topic

Hello everyone,

To begin, I'm sorry for language mistake, English is not my mother tongue:-0

1) I have i pretty simple questions (i think). I'm trying to make a "dynamic pointer" in cx programmer. I turn a bit on in a UINT symbol and I use the bit shift left instruction. My problem is, i want to turn an output true when example, the 4th bit is true, but depending on the length of the product, it might be the 5,6,7 etc... I'm new to cx programmer. With sysmac studio, i would have done something like that : if arrayofbool[x]. := true then ; .....

2) Is there a way to clear the bit after the 4th (if 4 is the trigger of my output). I know there is an instruction for that in sysmac.

3) Im using a CJ1M CPU 22 PLC. My project is to optimize the rejected sheet of a "Sheeter", there is a lost of waste $$$$. That said, if my project work well, i will have the "GO" to modify more machine. I would love to use PLC who work on Sysmac instead of cx programmer because I'm way more familiar with this program, but i down want to buy an "overkill" plc. What is the smallest plc I can buy : i only need 2 high speed input, like 4 digital input and 2-3 output.

Thanks a lot !!!!

Share this post


Link to post
Share on other sites

1) Bits are accessible via the Dot ("."). Example address H50 may be any data type but you may access bit 4 in a boolean instruction (LD H50.04).

2) You may SET or RSET any BOOL.

3) NX1P is a small PLC with power supply and built in I/O. It will probably be the perfect fit for your application. The NX1P does not have built in high speed I/O. You will have to add an NX module for high speed.

Edited by IO_Rack
1 person likes this

Share this post


Link to post
Share on other sites

Thanks a lot for your reply !

for question 1) Can i use a symbol (UINT datatype in my case) to adress the bit like : LD H50.MyVariable ?

Share this post


Link to post
Share on other sites

This is exactly what I need, Thank you good sir !

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