ABCLX addressing Individual bits in multi-level UDT's

Hi Everyone,

I'm not certain on how i would go about addressing individual bits located inside of a multi-level UDT...

On the controller, there is a UDT called PS with multiple different UDT's contained inside it. For example PS.S3.DI, where PS & S3 are UDT's and DI is a DINT. How would i address an individual BOOL within the DINT? For a PLC address of PS.S3.DI.0 would that be addressed as PS.S3.DI{0}?

How deep can you go with UDT's and addressing elements contained within them?

Thanks in advance.

Parents
  • Hi  ,

    From the ABCLX help, it appears you can access the bits from INT/DINT using /x notation.

    For example, to access the 1st bit from that address you mentioned (PS.S3.DI), the Citect variable tag address would be: PS.S3.DI/0, with data type set to Digital.

    The {} is typically used for array access. Bit picking is done with /

    Hope this is helpful.

    Kind regards

    Olivier

Reply
  • Hi  ,

    From the ABCLX help, it appears you can access the bits from INT/DINT using /x notation.

    For example, to access the 1st bit from that address you mentioned (PS.S3.DI), the Citect variable tag address would be: PS.S3.DI/0, with data type set to Digital.

    The {} is typically used for array access. Bit picking is done with /

    Hope this is helpful.

    Kind regards

    Olivier

Children