你可以参考下面的例子:
https://infosys.beckhoff.com/content/1033/tcplclibiofunctions/html/tcplclibiofunctions_fb_novramreadwrite.htm?id=3617623484494394676
编程技巧