Jump to content

Recommended Posts

Posted
I have attached an image of an address entered to a coil in a CP1L processor. It compiles and does not come up with any errors. I can not find anything in the manual about arrays for ladder or offset addresses for the CP1L. What would this address do? Would it be similar to indirect addressing in an AB?
Posted
Very close. Try the syntax W201.00[W202]. In your watch window (Alt+3) type in your addresses to view the results. I'm not sure why it compiles with the incorrect syntax. In CX Programmer, go to Help > Help Contents then type in "Indirection" to learn more.
Posted
syntax is correct. it offsets bit from w200.00 for a number in w202 e.g. if W202 = 6, the w200.6 would be set ON if conditions on the left TRUE. not sure if it's working on simulation though.
Posted
This is what I was hoping, but after more testing it appears to be just a bug. The value of W202 does not seem to have an effect, the bit referenced seems to be always bit 00. I have tried both on a live plc and in simulation. When the rung evaluates true output 200.00 turns on no matter what Value is in W202
Posted
My apologies, this is correct. When I tested your code yesterday I switched to a CJ2 before correcting the syntax. I never went back to check the CP1L. It does not surprise me as the CJ2 capabilities are much different than the CP or CJ1 series.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...