Menu

Snap7 S7-1200 GetPlcDateTime();

Dmitry
2022-07-14
2022-07-15
  • Dmitry

    Dmitry - 2022-07-14

    Hello! Need some help, please... I try use function GetPlcDateTime(); It work good on S7-300, S7-400, Sinumerik 840D, but on S7-1200 I get an error: "CLI : invalid CPU answer". Maybe any peculiarities?

     
  • f. b.

    f. b. - 2022-07-14

    Hey Dmitry,

    the message tells you that a client cannot access either due to "protocol not enabled" or DB optimized.

    Are your configs correct?
    http://snap7.sourceforge.net/snap7_client.html#1200_1500

    What I can't interpret if this is even supported on S1200... but I can't test it myself at the moment :(

    http://snap7.sourceforge.net/snap7_client.html#target_compatibility

     
    • Dmitry

      Dmitry - 2022-07-14

      Yes, config is correct: full access enable, PUT/GET enable, optimized block disabled =(

       
  • Davide Nardella

    Davide Nardella - 2022-07-14

    f.b. is right.
    GetPlcDateTime() and other functions are not implemented in S7Protokol of S71200/1500.

     
  • Dmitry

    Dmitry - 2022-07-15

    Thank you, guys.

     

Log in to post a comment.