Hi All,
I am new to PLC programming. I have a Siemens S7 Simatic CPU 315-2DP PLC. It is configured to work with a DP slave I/O. The entire configuration is working fine. Now I want to monitor the diagnostic data sent by the DP device. For that when i am calling the function "DP_DIAG" I am getting two compilation errors and a warning. I am doing the programming in STL.
Errors (2):
No PLC type descritpion found for called or addressed block FC 3
Invalid operation for CPLADDR
Warning (1):
No valid offline ASCII type description found for called or addressed block FC 3.
I created a shared DB for storing the diagnostic data. I am calling the function from OB1. The code for calling FC 3 is as follows
NETWORK
TITLE =
CALL "DP_DIAG" ( //FC 3 for DP Diagnostics
CPLADDR := W#16#0,
DTYPE := B#16#2,
STATION := B#16#40,
DIAG := P#DB1.DBx0.0 BYTE 20,
NDR := M 92.0,
ERROR := M 92.1,
STATUS := MW 93,
DIAGLNG := MB 95);
It will be greatful if anyone can tell me where I am going wrong???
regards,
Vinod
I am new to PLC programming. I have a Siemens S7 Simatic CPU 315-2DP PLC. It is configured to work with a DP slave I/O. The entire configuration is working fine. Now I want to monitor the diagnostic data sent by the DP device. For that when i am calling the function "DP_DIAG" I am getting two compilation errors and a warning. I am doing the programming in STL.
Errors (2):
No PLC type descritpion found for called or addressed block FC 3
Invalid operation for CPLADDR
Warning (1):
No valid offline ASCII type description found for called or addressed block FC 3.
I created a shared DB for storing the diagnostic data. I am calling the function from OB1. The code for calling FC 3 is as follows
NETWORK
TITLE =
CALL "DP_DIAG" ( //FC 3 for DP Diagnostics
CPLADDR := W#16#0,
DTYPE := B#16#2,
STATION := B#16#40,
DIAG := P#DB1.DBx0.0 BYTE 20,
NDR := M 92.0,
ERROR := M 92.1,
STATUS := MW 93,
DIAGLNG := MB 95);
It will be greatful if anyone can tell me where I am going wrong???
regards,
Vinod