yogesh Posted January 30, 2007 Report Posted January 30, 2007 hi, I am using intellution's iFix for HMI. i want to give the animation using the one bit of an integer. then how can i access the bit since all tags have F_CV at the end... Help me out... Regards, yogesh
rpraveenkum Posted January 30, 2007 Report Posted January 30, 2007 i know little bit in ifix but i have no idea whether it has expression function for animation if it is there you can try this by AND function in the expression you can derive the particular bit value to get first bit AND 1 with the integer to get second bit AND 2 with the integer to get third bit AND 4 with the integer to get fourth bit AND 8 with the integer and so on....
Ken Moore Posted January 30, 2007 Report Posted January 30, 2007 If you load the word as an array, you can then use individual bits. I often do this to minimize the license size required. The one word array only counts as one tag, instead of 16.
yogesh Posted January 31, 2007 Author Report Posted January 31, 2007 hi, No its not working..... I have tried both options..... Any other solution..?
andybr Posted January 31, 2007 Report Posted January 31, 2007 Yogesh I am not sure about iFix but in Fix32 I do this as folows:- Read integer into an analogue input block which is scaled 0-65535. Pass the analogue input F_CV to a SIM register using an analogue output block. Use a digital input block to access the required bit in the SIM register. Note. - The analogue input block MUST be scaled 0-65535 for this to work. Andybr
yogesh Posted February 1, 2007 Author Report Posted February 1, 2007 I tell u What i have done....its working.... I have made one Digital Register (DR) with address 401000. Then i have used Datalink to display the value. In this case. F_cv was displaying the 401000.0 bit nad F_01 was displaying the 401000.1 bit and onwards.... But when i have tried to use it in animation then it was not working......Have ever used this method for Animation...? -Yogesh
yogesh Posted February 1, 2007 Author Report Posted February 1, 2007 ya its working...it was my mistake.... Thanx..... -yogesh
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now