aassbeer
Jan 24 2007, 02:06 PM
Hi. I have problems creating a list in my list selection. My goal is to have the lines in the list to close a contact in the plc-program when pushed upon. I have never created a list before and the help function does not tell me much. Anybody that can help? Thanks
chainsaw
Jan 25 2007, 07:50 AM
On the properties page for the list selection, go to the selection tab. Tick the 'store the selected line no. in specified address' box and enter a plc word address. You will then have to write some code comparing this value to the required value to turn on your bits (if they are not in the same word) or use the SETB instruction if the bits to turn are consecutive (or just make the bits consecutive and use SETB, much easier!)
Tigamaroo1999
Jan 25 2007, 05:02 PM
Chainsaw's got it for the touchpanel.
I use a CJ1M-CPU22-ETN, and what I do for the ladder is:
I use the = command in the ladder as a latch
Ex:
List item location to be put in D350
PLC Ladder:
| = |------------------------O---
| #1 |
|D350|
I hope that helps with the PLC side.
Tig
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.