qing
In what piece of code the mapping location's memory is allocated? For example if I have an input variable x and map it to location %IX0.0, where does the memory allocation happen for x?

Thanks,
Qing Guo
S&C Electric Company
Quote 0 0
thiagoralves
The association between IEC variables and OpenPLC buffers is made by glueVars.cpp (you can find the file here: https://github.com/thiagoralves/OpenPLC_v3/blob/master/webserver/core/glueVars.cpp ). This file is automatically generated for each uploaded program by the Glue Generator (source can be found here: https://github.com/thiagoralves/OpenPLC_v3/blob/master/utils/glue_generator_src/glue_generator.cpp )
Quote 0 0