记kepServer读写西门子PLC

  • 2019 年 10 月 3 日
  • 笔记

???????????????????????????? ????Kepserver ? OPC Quick Client???????????

??

????????????????????,?????????word???bit ?????,?

????????????

?:bit ????????bool?, ?0?1???????

??:byte 8???????  1byte=8bit

?:word ??????????? ?16?  1word=2byte=16bit

??:double word ,????????? ?32? 

??:????????????????,???kepServer??tag?????

??:

 

???????????????????????

???????????,??????????PLC???????????,????????????

 

???????????,?????????????

??DB83????????????? ??16? ????????DB83.DBW10

???Kepserver??tag??????,???

 

????????????????DB83.DBW10?????

????????????????????????????????DBW10

dbx10.7 dbx10.6 dbx10.5 dbx10.4 dbx10.3 dbx10.2 dbx10.1 dbx10.0 ??| ??dbx11.7 dbx11.6 dbx11.5 dbx11.4 dbx11.3 dbx11.2 dbx11.1 dbx11.0

??????DBW10???0,???????dbx10.4??1

???dbw10??  0001 0000 0000 0000

?KepServer??????????????10?? ???

?????  ?????4096???DBW10

??OPC Quick Client ,???tag??

 

????dbx10.4??1?

?????????????”?”????”?”??;

????????????,??????,

?? ??????????34257

 

??????dbx10.2???0??1 ?

???????34257??????

?1000 0101 1101 0001?

????DBW10??????,dbx10.2???1

 

 

????????,?????????!