Hi everyone,
Does the library support doing a tag list with Omron PLCs? I have been looking at the list_tags.c program and have not been able to get it to work with Omron PLCs.
I have modified this program to use the following attributes (only changed the cpu to omron-njnx):
if(!program || strlen(program) == 0) {
snprintf(tag_string, TAG_STRING_SIZE-1,"protocol=ab-eip&gateway=%s&path=%s&cpu=omron-njnx&name=@tags", plc_ip, path);
} else {
snprintf(tag_string, TAG_STRING_SIZE-1,"protocol=ab-eip&gateway=%s&path=%s&cpu=omron-njnx&name=%s.@tags", plc_ip, path, program);
}
and then tried running it using:
./list_tags 192.168.1.4 18,192.168.1.4
But I consistently get
Unable to open tag! Return code PLCTAG_ERR_NOT_FOUND
It seems that it does not understand name=@tags
Thank you everyone