3/27/2006 10:56 PM | |
Posts: 43 Rating: (0) |
If you can pack bits in byte -in byte put your bits in position from LSF(example:00000011) in PLC try this script value=GetTagByte("PackedVarieble"); if(value&&1) { return "first variable is 1"; } if(value&&2) { return "second variable is 1" } if(value&&3) { return "both variables are 1" } else { return "both variables are 0" } |
4/28/2006 7:41 AM | |
Posts: 26 Rating: (2) |
hello, if you set the bits correctly in byte that byte become your returned value and Not need any programming for returned value. farhanj with regards |
Follow us on