Posted 7 Aug 2011 (edited) Hi to all, I need to make a CPU diagnostics status block, i believe there is built one that i cant find. the CPU im using is CPU 171 CCC 98030, anyone who knows how it's called help me please. And another issue, how do i set a specific bit in a word, for example bit 7 in 400100 word. Thanks in advance, Best Regards, Greg. Edited 7 Aug 2011 by Greg Share this post Link to post Share on other sites
Posted 7 Aug 2011 What programming software? Concept or ProWORX? I swear there was a BSET instruction to set a bit in a word, but I haven't touched one of these in 8 years. Share this post Link to post Share on other sites
Posted 8 Aug 2011 Hi sorry didn't inform you which software im using. so the software is concept, actually for the bit setting i found the block it's bit_to_word, and does the PLCSTATE block helping me here? Thanks in advance, Best Regards, Greg. Share this post Link to post Share on other sites
Posted 8 Sep 2011 You can also use the block "set_bit" under 984lib. it was better than bit_to_word since you no need to set all the bit at once. Share this post Link to post Share on other sites
Posted 8 Sep 2011 Thanks dude, the project has been delivered few weeks ago and work great. Share this post Link to post Share on other sites