please have a look here for reading the chunk data from the C5 likewise to the C6:
https://forum.commonvisionblox.com/t/working-with-3d-cameras-of-automation-technology-in-cvb/532/17
If you scroll down on the formum entry on the link, there is an additional entry describing how to read the IO status from the chunk data. This is reading the chunk from the transmitted image frame.
Otherwise it is possible to read the chunk from the nodemap, which is described here:
https://forum.commonvisionblox.com/t/reading-chunkencodervalue-from-at-c5/1398/3