How Can I get Task Size?

Hello, I have question.

I Using CPU X200484.
I was asked for a program checksum function from client. And they want me to show it on the mapp view.
When the PLC was booted, i need to add all the software memory values of the ROM area.
I think it’s so hard, so I just want match the size of the task to the variable.
(Configuration View - Cpu.sw - Size (bytes)

Can you recommand libraries or solution?

thank you.
스크린샷 2024-03-26 090025

Hello and welcome,
MO_info (B&R module information) is available for SG4 targets and returns the size of the installed module.

3 Likes

I think it’s so hard, so I just want match the size of the task to the variable.

MO_info also provides the address of the module.
With .address and .size it should be possible to calculate a CRC, SHA , MD5 etc.

1 Like