Hello everyone, this is my first post here. First of all, this is a question about AXC 1050 PLC, I didn’t find a dedicated forum for this controller so I ask here. I have a byte and I know how to access to every bit in the form byte.x0 ,x1, x2, …, x7. I want to know if I can access to the bits with and index, like an array (array[index]) … is this possible? like byte.x[i] or something like that … Thank you.
Hi, welcome to the PLCnext Community. You’re right, there is no equivalent forum for products that are not part of the PLCnext Technology ecosystem (like the AXC 1050). The best way to get support for these products is through the Phoenix Contact office in your country. In this case, I can give you a hint: In PC WORX, try using the BIT_TEST function. You can increment the NO parameter in a loop to read the value of each bit, and use the S_BIT_IN_, R_BIT_IN_ and/or I_BIT_IN_* functions to manipulate the bits. For any further questions on this topic, please get in touch with your local Phoenix Contact office. Enjoy the weekend!
I have a PC WORX project that I have migrated over to PLCnext that used the BIT_TEST function, but in PLCnext I am getting an error (CILG0030 - …2152 does not support the program organization unit ‚BIT_TEST‘). Is there an equivalent function for replacing BIT_TEST? I’m not having luck finding it in the help menu.
The Data Handling section of the PLCnext Engineer help gives a list of bit manipulation functions, e.g. GET_BIT, SET_BIT, INVERT_BIT.
I hope this helps.