linkte pdf in appendices C bölümünde plcsim in nasıl OB40 ile çalıştırılacağı anlatılmıştır.
sorun simulatorun IO configurasyonlarında 315-2dp ile çalışacak şekilde ayarlanmış olmasında.
Testing Your S7 Programs with S7-PLCSIM User Manual
https://www.kontrolkalemi.com/forum/attachments/s7wsmanb-pdf.25642/
Downloading System Data to S7-PLCSIM kısmında şu şekilde anlatılıyor.
"If you want to simulate interrupt OBs in S7-PLCSIM, you must first correctly
download your I/O configuration. If your project matches either of the following
descriptions, certain modifications are required to download your hardware
configuration to S7-PLCSIM:
An S7-300 project with any CPU other than the CPU 315-2 DP
An S7-400 project that uses DP I/O with a CP instead of using a CPU model
that explicitly supports DP I/O
Note
Projects configured for a CPU 315-2 DP, or for an S7-400 CPU that explicitly
supports DP, do not require the modifications that are described in this appendix"
kısaca CPU 315-2 DP kullanın diyor plcsim ile.
ayrıca DI modulun de HW interrupt destekleyen bir modul olmalı.
ve ayrıca modul set edilmeli hangi inputlardan interrupt alınacak ve düşen ya da yükselen kenar da mı tetiklenecek şeklinde
iyi çalışmalar.