kamenges
Member
I am designing a system with a ControlLogix 5555 processor that will communicate to five AB1336E drive on ControlNet through a 1203-CN1 CNet to ScanPort adapter. In the CLX program I want to create a user defined data type that represents my data coming back from and going to the drives. My problem is in the status and command bit words. When you define a BOOL in a structure, Logix5000 immediately reserves a DWORD and fills in consecutive BOOLs in that DWORD until the DWORD is full. The 1203-CN1 and the 1336E send back the command and status words as 16-bit words. So trying to embed a bit structure into the drive data structure will shift all the words after the bit words by one word.
Is there a way to force Logix5000 to use a 16-bit word when defining a structure of BOOLs for a case such as mine?
Thanks,
Keith
Is there a way to force Logix5000 to use a 16-bit word when defining a structure of BOOLs for a case such as mine?
Thanks,
Keith