Industry Online Support
Technical Forum
6/9/2011 8:39 PM | |
Posts: 241 Rating:
|
Dear Bob2246, If you use M bits then Yes. You have assign individual symbolic name to each bits. But if you use Data Block, then you can creat a structure of Bool type Or you can define a array of 16 bit length of type Bool. Hope this can answer your question. YourWord_BitNo ARRAY[0..15] BOOL |
6/9/2011 8:45 PM | |
Posts: 13 Rating:
|
Thanks, PowerTags. No can do with arrays created within data blocks? Sorry for the elementary question, I'm a newbie with a deadline. |
6/9/2011 9:24 PM | |
Posts: 241 Rating:
|
Dear Bob2246, Please see the attachement. Create a Shared DB first ( Use right click>Insert New Object>Data Block), Give a name to the Data Block like BitDB, then create a array like in the attachement. Once done you can see all your symbolic access name by View>Data View.(Declaration view for declaring variables). Then you can access this bits from your FB/FC Program block as you do with M Bits. From LAD, select No/NC contact, Press CTRL+J> then scroll to select you BitDB> & finally select the DB array bits or symply write bit address , symbol automatically will appear in the Program. AttachmentBits Symbol.zip (230 Downloads) |
This contribution was helpful to
1 thankful Users |
Follow us on