-
Create Tag for MODBUS via java
Hi,
I would create tags for “MODBUS” IO server in JAVA via the classes available in com.ewon.ewonitf package. I guess it could be done as following:
Code:
SysControlBlock tagSysControlBlock = new SysControlBlock(SysControlBlock.TAG);
tagSysControlBlock.setItem(TAG_NAME_KEY, tagName);
tagSysControlBlock.setItem(TAG_SERVER_NAME_KEY, ioServerName);
tagSysControlBlock.setItem(TAG_ADDRESS_KEY, ioAddress);
tagSysControlBlock.setItem(TAG_TYPE_KEY, String.valueOf(tagType));tagSysControlBlock.saveBlock(true);
Would it be a viable way to create tags for “MODBUS” IO server programmatically via JAVA from your perspective?
There is also a class SCTagUtils in the
package com.hms_networks.americas.sc.extensions.system.tags, however it
only supports “MEM” IO server and I guess it is not tended to be
extended with some extra functionalities.
Log in to reply.