Your library does not have access to peripheral inputs and outputs (0x80 area, PI and PQ addressing). There is access only to the inputs and outputs of the process image (0x81 and 0x82 areas, I and Q addressing). In some situations, when working with S7-300 and S7-400 PLCs, this is not enough, since the process image can be set to be smaller than the configured peripheral inputs and outputs and, as a result, does not contain all the inputs and outputs values available in the PLC.
At the same time, your library can access the peripherals if you apply the appropriate constant to the input of the data exchange functions. However, the library cannot decode data exchange errors.
Please refine your library so that it can access the peripheral addresses of the PLC correctly.
Your library does not have access to peripheral inputs and outputs (0x80 area, PI and PQ addressing). There is access only to the inputs and outputs of the process image (0x81 and 0x82 areas, I and Q addressing). In some situations, when working with S7-300 and S7-400 PLCs, this is not enough, since the process image can be set to be smaller than the configured peripheral inputs and outputs and, as a result, does not contain all the inputs and outputs values available in the PLC.
At the same time, your library can access the peripherals if you apply the appropriate constant to the input of the data exchange functions. However, the library cannot decode data exchange errors.
Please refine your library so that it can access the peripheral addresses of the PLC correctly.