Hello All,
First of all I am using an AB Logix 5571 revision 30.
I am trying to use a FBC to tell me which slave is unplugged in order. The original Way that i did this was to move the .LEN from a string to a FBC where I could compare it in 3 arrays(please see the picture below). The problem I am now having is that what I need to compare is 64 bits and not 32 bits like the original program. To do this I had to move it form the .LEN of the string to the actual .DATA this gives me plenty of space but I cannot figure out how to divide it in half (use two FBC commands instead of 1).
Please note image 1 is how I would like to devide the .Data
image 2 is how this was done with the .LEN of a string
image 3 is how I would like to do it now. But it is not working
Thank you
First of all I am using an AB Logix 5571 revision 30.
I am trying to use a FBC to tell me which slave is unplugged in order. The original Way that i did this was to move the .LEN from a string to a FBC where I could compare it in 3 arrays(please see the picture below). The problem I am now having is that what I need to compare is 64 bits and not 32 bits like the original program. To do this I had to move it form the .LEN of the string to the actual .DATA this gives me plenty of space but I cannot figure out how to divide it in half (use two FBC commands instead of 1).
Please note image 1 is how I would like to devide the .Data
image 2 is how this was done with the .LEN of a string
image 3 is how I would like to do it now. But it is not working
Thank you