kepserverex introduction

五、 

S7-1200 OPC UA连接方法
http://www.ad.siemens.com.cn/productportal/prods/s7-1200_plc_easy_plus/11-Comm/05-OPC/05-OPC_UA/03-UA_Server_OPCSCOUT.html

 

四、 Occurs some situation

      1、 OPC UA Connect to Kepware ,run some time ,then not receive subscription information

            and kepserverex event window display 2020/9/24 13:20:19 错误 OPC UA Client opczgz.设备 | 在设备上添加项目失败。| 标记地址 = 'ns=2;s=MODICON.PLC4.yiHTYJBQYX',状态说明 = 'The subscription id is not valid.',状态代码 = 0X80280000。

           solution:run initial kepserverex 。 in 2020.09.25  ,and not happen so far.

      2、 OPC UA Connect to Kepware ,run some time ,then not receive subscription information 

            invoke OPC UA has some problems。

三、 Plugin

 

   Data logger: can store data to the database.

                       trigger condition:  only data change. (but first initial data will be lost)

                                                     time during

                                                     status change etc.

   

 

二、 installation introduction

    if you can wan to use some plugin, you must select custom when you install step.  These are no iot gateway 、datalog etc plugin by default.

 

 

一、dynamic  add kepserverex tag group device channel

kepserver supply configuration API  for user manage configuration convenient.

 

reference to official documentary to https://www.kepware.com/en-us/products/kepserverex/features/configuration-api/

 

user can use this guide to setting kepserver https://www.kepware.com/getattachment/f38ad6fe-be2e-40cc-9481-11d9e85c980c/configuration-api-made-easy.pdf

get tag ,if some name is not char ,need to transfer to urlencode 

 get http://192.168.60.83:57412/config/v1/project/channels/%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B%E7%A4%BA%E4%BE%8B/devices/8%20%E4%BD%8D%E8%AE%BE%E5%A4%87/tag_groups/K%20%E5%AF%84%E5%AD%98%E5%99%A8/tags

1  modify device PLC9's name     

      put  http://127.0.0.1:57412/config/v1/project/channels/jnws1/devices/PLC9 

2 add one device

    post   http://127.0.0.1:57412/config/v1/project/channels/jnws1/devices

         post content is     {"common.ALLTYPES_NAME":"PLC19","servermain.DEVICE_MODEL":0,"servermain.DEVICE_ID_STRING": "192.168.16.11","servermain.DEVICE_CHANNEL_ASSIGNMENT":"jnws1","servermain.MULTIPLE_TYPES_DEVICE_DRIVER":"Siemens TCP/IP Ethernet"}

 

3   add tag   

    post     http://127.0.0.1:57412/config/v1/project/channels/jnws6/devices/PLC6/tags

          post content  is      {"common.ALLTYPES_NAME":"Tag1","servermain.TAG_ADDRESS":"DB59.DBW28","servermain.TAG_DATA_TYPE":-1}

 

4  add group 

     post     http://127.0.0.1:57412/config/v1/project/channels/jnws1/devices/PLC10/tag_groups

          post content is     {"common.ALLTYPES_NAME":"group1","common.ALLTYPES_DESCRIPTION": ""}

 

5   delete one tag 

    delete    http://127.0.0.1:57412/config/v1/project/channels/jnws1/devices/PLC19/tags/AQQT01

 

Another need to notice is. In the header of Http request need add authorization  according to usernane of kepserver  setting .

posted on 2020-03-04 16:07  developer1980  阅读(385)  评论(0)    收藏  举报

导航