libplctag / libplctag.NET

A .NET wrapper for libplctag.
https://libplctag.github.io/
Mozilla Public License 2.0
194 stars 50 forks source link

In the StringPlcMapper, Omron is not present #365

Open zN3utr4l opened 4 months ago

zN3utr4l commented 4 months ago

In the StringPlcMapper, Omron is not present

using System;

namespace libplctag.DataTypes;

public class StringPlcMapper : PlcMapperBase<string>
{
    public override int? ElementSize => base.PlcType switch
    {
        PlcType.ControlLogix => 88,
        PlcType.Plc5 => 84,
        PlcType.Slc500 => 84,
        PlcType.LogixPccc => 84,
        PlcType.Micro800 => 256,
        PlcType.MicroLogix => 84,
        _ => throw new NotImplementedException(),
    };

    public override string Decode(Tag tag, int offset)
    {
        return tag.GetString(offset);
    }

    public override void Encode(Tag tag, int offset, string value)
    {
        tag.SetString(offset, value);
    }
}

I have the same issue as https://github.com/libplctag/libplctag.NET/issues/359

timyhac commented 4 months ago

Thanks - do you know how strings are encoded for your device?

zN3utr4l commented 4 months ago

No, how can I check?

kyle-github commented 4 months ago

Use the core library test tool tag_rw to read a string tag. If I remember correctly, strings on Omron have a counted string with a 2-byte count, no padding. I do not know the maximum length of a string.

zN3utr4l commented 4 months ago

I can read string from .Net wrapper, where can i find the maximum length of it?

In the PLC myString is defined as STRING[Custom Length]

If i run tag_rw:

libplctag-release\src\wrappers\python> .\tag_rw.py -t string -p 'protocol=ab_eip&gateway=192.168.10.1&path=1,0&cpu=Omron&name=myString'
[WinError 193] %1 is not a valid Win32 application
Unable to find library in paths ./windows_x64/plctag.dll

libplctag-release\src\wrappers\python\windows_x64\plctag.dll Exist

[WinError 193] %1 is not a valid Win32 application is thrown when load library (lib = ctypes.cdll.LoadLibrary(library))

kyle-github commented 4 months ago

The command line should look more like this:

tag_rw2 --type=uint8 '--tag=protocol=ab-eip&gateway=127.0.0.1&path=18,127.0.0.1&plc=omron-njnx&name=myString' --debug=4 > log.txt

The tag_rw2 executable can be found in the releases part of the main project. Hmm, I see a problem with the latest release. Somehow I managed to skip the Win32 part. The previous release has it though. Download the binaries for your platform (looks like x86 Win32?). Unzip the release somewhere by itself. You will see the libraries (DLLs) and some executables. The tag_rw2 executable is there.

kyle-github commented 4 months ago

In the log file you will see a lot of output. If it works, you will see, near the bottom of the file, lines that look like:

data[0] = ...
data[1] = ...

The first two bytes are probably the count of the string length. The remaining bytes are the character data.

zN3utr4l commented 4 months ago
Library version 2.5.4.
Processing argument 1 "--type=uint8".
Processing argument 2 "--tag=protocol=ab-eip&gateway=MyIP&path=1,0&plc=omron-njnx&name=MyString".
Processing argument 3 "--debug=4".
data[0]=4 (4)
data[1]=0 (0)
data[2]=84 (54)
data[3]=69 (45)
data[4]=83 (53)
data[5]=84 (54)

Library version 2.5.4.
Processing argument 1 "--type=string".
Setting type to TYPE_STRING.
Processing argument 2 "--tag=protocol=ab-eip&gateway=MyIP&path=1,0&plc=omron-njnx&name=MyString".
Processing argument 3 "--debug=4".
data[0]="TEST"
kyle-github commented 4 months ago

How is "MyIP" working? Do you have DNS set up for the PLC?

It looks like the core library is correctly handling strings in this case. So if there is a problem, it must be somehow in the .Net part?

zN3utr4l commented 4 months ago

MyIp is localhost, i change it in this comment

zN3utr4l commented 4 months ago
Library version 2.5.4.
Processing argument 1 "--type=uint8".
Processing argument 2 "--tag=protocol=ab-eip&gateway=127.0.0.1&path=1,0&plc=omron-njnx&name=MyString".
Processing argument 3 "--debug=4".
data[0]=0 (0)
data[1]=0 (0)

When the string is empty and not initialized/written by the PLC it looks like this

zN3utr4l commented 4 months ago
libplctag_2.5.4_windows_x64\Release> tag_rw2 --type=string  '--tag=protocol=ab-eip&gateway=127.0.0.1&path=1,0&plc=omron-njnx&name=MyString'  --write="test"
Library version 2.5.4.
Processing argument 1 "--type=string".
Setting type to TYPE_STRING.
Processing argument 2 "--tag=protocol=ab-eip&gateway=127.0.0.1&path=1,0&plc=omron-njnx&name=MyString".
Processing argument 3 "--write=test".
Number of write args 1.
data[0]="TT"
Warning: truncating string 0, "test", to fit fixed string capacity!
Error while setting the string 0, error: PLCTAG_ERR_BAD_CONFIG!

This is the same error from .NET (on write)

With Debug:

Library version 2.5.4.
Processing argument 1 "--type=string".
Setting type to TYPE_STRING.
Processing argument 2 "--tag=protocol=ab-eip&gateway=127.0.0.1&path=1,0&plc=omron-njnx&name=MyString".
Processing argument 3 "--debug=4".
Processing argument 4 "--write=test".
Number of write args 1.
2024-03-04 16:22:02.531 thread(1) tag(0) INFO plc_tag_create_ex:833 Starting
2024-03-04 16:22:02.531 thread(1) tag(0) INFO initialize_modules:177 Starting.
2024-03-04 16:22:02.531 thread(1) tag(0) INFO initialize_modules:186 Creating library mutex.
2024-03-04 16:22:02.531 thread(1) tag(0) DETAIL mutex_create:726 Starting.
2024-03-04 16:22:02.531 thread(1) tag(0) DETAIL mutex_create:753 Done.
2024-03-04 16:22:02.531 thread(1) tag(0) INFO initialize_modules:207 Initialized library modules.
2024-03-04 16:22:02.531 thread(1) tag(0) INFO lib_init:135 Setting up global library data.
2024-03-04 16:22:02.537 thread(1) tag(0) INFO lib_init:137 Creating tag hashtable.
2024-03-04 16:22:02.537 thread(1) tag(0) INFO hashtable_create:75 Starting
2024-03-04 16:22:02.537 thread(1) tag(0) INFO hashtable_create:99 Done
2024-03-04 16:22:02.537 thread(1) tag(0) INFO lib_init:143 Creating tag hashtable mutex.
2024-03-04 16:22:02.537 thread(1) tag(0) DETAIL mutex_create:726 Starting.
2024-03-04 16:22:02.537 thread(1) tag(0) DETAIL mutex_create:753 Done.
2024-03-04 16:22:02.537 thread(1) tag(0) INFO lib_init:149 Creating tag condition variable.
2024-03-04 16:22:02.537 thread(1) tag(0) DETAIL cond_create:1087 Starting.
2024-03-04 16:22:02.538 thread(1) tag(0) DETAIL cond_create:1114 Done.
2024-03-04 16:22:02.538 thread(1) tag(0) INFO lib_init:155 Creating tag tickler thread.
2024-03-04 16:22:02.538 thread(1) tag(0) DETAIL thread_create:884 Starting.
2024-03-04 16:22:02.538 thread(1) tag(0) DETAIL thread_create:917 Done.
2024-03-04 16:22:02.538 thread(1) tag(0) INFO lib_init:161 Done.
2024-03-04 16:22:02.539 thread(1) tag(0) INFO initialize_modules:210 Initializing AB module.
2024-03-04 16:22:02.538 thread(2) tag(0) INFO tag_tickler_func:508 Starting.
2024-03-04 16:22:02.539 thread(1) tag(0) INFO ab_init:123 Initializing AB protocol library.
2024-03-04 16:22:02.539 thread(1) tag(0) DETAIL mutex_create:726 Starting.
2024-03-04 16:22:02.539 thread(1) tag(0) DETAIL mutex_create:753 Done.
2024-03-04 16:22:02.539 thread(1) tag(0) INFO ab_init:132 Finished initializing AB protocol library.
2024-03-04 16:22:02.539 thread(1) tag(0) INFO initialize_modules:215 Initializing Modbus module.
2024-03-04 16:22:02.540 thread(1) tag(0) INFO mb_init:2410 Starting.
2024-03-04 16:22:02.540 thread(1) tag(0) DETAIL mb_init:2412 Setting up mutex.
2024-03-04 16:22:02.540 thread(1) tag(0) DETAIL mutex_create:726 Starting.
2024-03-04 16:22:02.540 thread(1) tag(0) DETAIL mutex_create:753 Done.
2024-03-04 16:22:02.540 thread(1) tag(0) INFO mb_init:2421 Done.
2024-03-04 16:22:02.540 thread(1) tag(0) INFO initialize_modules:226 Done initializing library modules.
2024-03-04 16:22:02.540 thread(1) tag(0) INFO initialize_modules:231 Done.
2024-03-04 16:22:02.540 thread(1) tag(0) DETAIL attr_create_from_str:131 Starting.
2024-03-04 16:22:02.540 thread(1) tag(0) DETAIL attr_create_from_str:160 Key-value pair "protocol=ab-eip".
2024-03-04 16:22:02.541 thread(1) tag(0) DETAIL attr_create_from_str:175 Key-value pair before trimming "protocol":"ab-eip".
2024-03-04 16:22:02.541 thread(1) tag(0) DETAIL attr_create_from_str:187 Key-value pair after trimming "protocol":"ab-eip".
2024-03-04 16:22:02.541 thread(1) tag(0) DETAIL attr_create_from_str:160 Key-value pair "gateway=192.168.250.2".
2024-03-04 16:22:02.541 thread(1) tag(0) DETAIL attr_create_from_str:175 Key-value pair before trimming "gateway":"192.168.250.2".
2024-03-04 16:22:02.541 thread(1) tag(0) DETAIL attr_create_from_str:187 Key-value pair after trimming "gateway":"192.168.250.2".
2024-03-04 16:22:02.541 thread(1) tag(0) DETAIL attr_create_from_str:160 Key-value pair "path=1,0".
2024-03-04 16:22:02.541 thread(1) tag(0) DETAIL attr_create_from_str:175 Key-value pair before trimming "path":"1,0".
2024-03-04 16:22:02.541 thread(1) tag(0) DETAIL attr_create_from_str:187 Key-value pair after trimming "path":"1,0".
2024-03-04 16:22:02.541 thread(1) tag(0) DETAIL attr_create_from_str:160 Key-value pair "plc=omron-njnx".
2024-03-04 16:22:02.541 thread(1) tag(0) DETAIL attr_create_from_str:175 Key-value pair before trimming "plc":"omron-njnx".
2024-03-04 16:22:02.541 thread(1) tag(0) DETAIL attr_create_from_str:187 Key-value pair after trimming "plc":"omron-njnx".
2024-03-04 16:22:02.542 thread(1) tag(0) DETAIL attr_create_from_str:160 Key-value pair "name=OpcUaToPlc.OrdineDiProduzione.DescrizioneArticolo".
2024-03-04 16:22:02.542 thread(1) tag(0) DETAIL attr_create_from_str:175 Key-value pair before trimming "name":"OpcUaToPlc.OrdineDiProduzione.DescrizioneArticolo".
2024-03-04 16:22:02.542 thread(1) tag(0) DETAIL attr_create_from_str:187 Key-value pair after trimming "name":"OpcUaToPlc.OrdineDiProduzione.DescrizioneArticolo".
2024-03-04 16:22:02.542 thread(1) tag(0) DETAIL attr_create_from_str:218 Done.
2024-03-04 16:22:02.542 thread(1) tag(0) INFO find_tag_create_func:99 Matched protocol=ab-eip
2024-03-04 16:22:02.542 thread(1) tag(0) INFO ab_tag_create:173 Starting.
2024-03-04 16:22:02.542 thread(1) tag(0) INFO rc_alloc_impl:111 Starting, called from ab_tag_create:180
2024-03-04 16:22:02.542 thread(1) tag(0) INFO rc_alloc_impl:130 Done
2024-03-04 16:22:02.542 thread(1) tag(0) DETAIL rc_alloc_impl:135 Returning memory pointer 0000028A5619A6E0
2024-03-04 16:22:02.542 thread(1) tag(0) DETAIL ab_tag_create:186 tag=0000028A5619A6E0
2024-03-04 16:22:02.542 thread(1) tag(0) INFO plc_tag_generic_init_tag:462 Starting.
2024-03-04 16:22:02.543 thread(1) tag(0) DETAIL mutex_create:726 Starting.
2024-03-04 16:22:02.543 thread(1) tag(0) DETAIL mutex_create:753 Done.
2024-03-04 16:22:02.543 thread(1) tag(0) DETAIL mutex_create:726 Starting.
2024-03-04 16:22:02.543 thread(1) tag(0) DETAIL mutex_create:753 Done.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL cond_create:1087 Starting.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL cond_create:1114 Done.
2024-03-04 16:22:02.544 thread(1) tag(0) INFO plc_tag_generic_init_tag:493 Done.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL get_plc_type:937 Found OMRON NJ/NX Series PLC.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL get_plc_type:937 Found OMRON NJ/NX Series PLC.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL session_find_or_create:235 Starting
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL session_find_or_create:259 Creating new session.
2024-03-04 16:22:02.544 thread(1) tag(0) INFO session_create_unsafe:451 Starting
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL session_create_unsafe:454 Session should use connected messaging.
2024-03-04 16:22:02.544 thread(1) tag(0) INFO rc_alloc_impl:111 Starting, called from session_create_unsafe:459
2024-03-04 16:22:02.544 thread(1) tag(0) INFO rc_alloc_impl:130 Done
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL rc_alloc_impl:135 Returning memory pointer 0000028A5619DFF0
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL cip_encode_path:71 Starting
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL match_numeric_segment:195 Starting at position 0 in string 1,0.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL match_numeric_segment:224 Remaining path ",0".
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL match_numeric_segment:229 Done. Found numeric segment 1.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL cip_encode_path:89 Found numeric segment.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL cip_encode_path:85 Skipping separator character ','.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL match_numeric_segment:195 Starting at position 2 in string 1,0.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL match_numeric_segment:224 Remaining path "".
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL match_numeric_segment:229 Done. Found numeric segment 0.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL cip_encode_path:89 Found numeric segment.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL cip_encode_path:130 PLC needs connection, adding path to the router object.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL cip_encode_path:162 IOI size before 6
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL cip_encode_path:183 Done
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL session_create_unsafe:507 Setting connection_group_id to 0.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL session_create_unsafe:547 Set maximum payload size to 1996 bytes.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL add_session_unsafe:315 Starting
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL add_session_unsafe:325 Done
2024-03-04 16:22:02.544 thread(1) tag(0) INFO session_create_unsafe:564 Done
2024-03-04 16:22:02.544 thread(1) tag(0) INFO session_init:580 Starting.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL mutex_create:726 Starting.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL mutex_create:753 Done.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL cond_create:1087 Starting.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL cond_create:1114 Done.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL thread_create:884 Starting.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL thread_create:917 Done.
2024-03-04 16:22:02.544 thread(1) tag(0) INFO session_init:602 Done.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL session_find_or_create:305 Done
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL ab_tag_create:287 using session=0000028A5619DFF0
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL get_tag_data_type:532 Starting.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL get_tag_data_type:663 Done.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL ab_tag_create:405 Setting up OMRON NJ/NX Series tag.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL ab_tag_create:415 Using default Omron byte order.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL ab_tag_create:421 Setting default Logix vtable.
2024-03-04 16:22:02.544 thread(3) tag(0) INFO session_handler:1014 Starting thread for session 0000028A5619DFF0
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL parse_symbolic_segment:720 Starting with name index=0 and encoded name index=1.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL parse_symbolic_segment:759 Parsed symbolic segment "OpcUaToPlc" in tag name.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL parse_symbolic_segment:720 Starting with name index=11 and encoded name index=13.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL parse_symbolic_segment:759 Parsed symbolic segment "OrdineDiProduzione" in tag name.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL cip_encode_tag_name:622 Found symbolic segment ending at 29
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL parse_symbolic_segment:720 Starting with name index=30 and encoded name index=33.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL parse_symbolic_segment:759 Parsed symbolic segment "DescrizioneArticolo" in tag name.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL cip_encode_tag_name:622 Found symbolic segment ending at 49
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL ab_tag_create:500 Kicking off initial read.
2024-03-04 16:22:02.544 thread(3) tag(0) DETAIL session_handler:1034 in SESSION_OPEN_SOCKET_START state.
2024-03-04 16:22:02.544 thread(3) tag(0) INFO session_open_socket:620 Starting.
2024-03-04 16:22:02.544 thread(1) tag(0) INFO tag_read_start:305 Starting
2024-03-04 16:22:02.544 thread(3) tag(0) DETAIL socket_create:1311 Starting.
2024-03-04 16:22:02.544 thread(1) tag(0) INFO build_read_request_connected:416 Starting.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL session_create_request:2499 Starting.
2024-03-04 16:22:02.544 thread(1) tag(0) INFO rc_alloc_impl:111 Starting, called from session_create_request:2508
2024-03-04 16:22:02.544 thread(1) tag(0) INFO rc_alloc_impl:130 Done
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL rc_alloc_impl:135 Returning memory pointer 0000028A5619F0F0
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL session_create_request:2522 Done.
2024-03-04 16:22:02.544 thread(1) tag(0) INFO session_add_request:942 Starting. sess=0000028A5619DFF0, req=0000028A5619F0F0
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL session_add_request_unsafe:907 Starting.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL session_add_request_unsafe:926 Total requests in the queue: 1
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL session_add_request_unsafe:928 Done.
2024-03-04 16:22:02.544 thread(1) tag(0) INFO session_add_request:950 Done.
2024-03-04 16:22:02.544 thread(1) tag(0) INFO build_read_request_connected:501 Done
2024-03-04 16:22:02.544 thread(1) tag(0) INFO tag_read_start:334 Done.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL ab_tag_create:513 Using vtable 00007FFD2C7A5120.
2024-03-04 16:22:02.544 thread(1) tag(0) INFO ab_tag_create:515 Done.
2024-03-04 16:22:02.544 thread(3) tag(0) DETAIL socket_create:1334 Done.
2024-03-04 16:22:02.544 thread(1) tag(0) INFO set_tag_byte_order:3859 Starting.
2024-03-04 16:22:02.544 thread(1) tag(0) INFO set_tag_byte_order:4160 Done.
2024-03-04 16:22:02.544 thread(3) tag(0) DETAIL session_open_socket:654 Using default port 44818.
2024-03-04 16:22:02.544 thread(3) tag(0) DETAIL socket_connect_tcp_start:1355 Starting.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL add_tag_lookup:4263 Starting.
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL add_tag_lookup:4283 Found unused ID 11
2024-03-04 16:22:02.544 thread(1) tag(0) DETAIL add_tag_lookup:4303 Done.
2024-03-04 16:22:02.544 thread(1) tag(11) INFO plc_tag_create_ex:959 Returning mapped tag ID 11
2024-03-04 16:22:02.544 thread(1) tag(11) DETAIL plc_tag_create_ex:985 Tag status after creation is PLCTAG_STATUS_PENDING.
2024-03-04 16:22:02.544 thread(1) tag(11) DETAIL plc_tag_tickler_wake_impl:215 Starting. Called from plc_tag_create_ex:996.
2024-03-04 16:22:02.544 thread(1) tag(11) DETAIL plc_tag_tickler_wake_impl:228 Done. Called from plc_tag_create_ex:996.
2024-03-04 16:22:02.544 thread(3) tag(0) DETAIL socket_connect_tcp_start:1404 Found numeric IP address: 192.168.250.2
2024-03-04 16:22:02.544 thread(3) tag(0) DETAIL socket_connect_tcp_start:1444 Setting up wake pipe.
2024-03-04 16:22:02.544 thread(3) tag(0) INFO sock_create_event_wakeup_channel:2161 Starting.
2024-03-04 16:22:02.544 thread(2) tag(11) DETAIL tag_tickler_func:545 Tickling tag 11.
2024-03-04 16:22:02.544 thread(2) tag(11) DETAIL plc_tag_generic_tickler:276 Tickling tag 11.
2024-03-04 16:22:02.544 thread(2) tag(11) DETAIL plc_tag_generic_tickler:381 Done.
2024-03-04 16:22:02.544 thread(3) tag(0) INFO sock_create_event_wakeup_channel:2308 Done.
2024-03-04 16:22:02.544 thread(2) tag(0) DETAIL check_read_request_status:1106 Read not ready with status PLCTAG_STATUS_PENDING.
2024-03-04 16:22:02.544 thread(2) tag(0) DETAIL check_read_status_connected:1343 Read request status is not OK.
2024-03-04 16:22:02.544 thread(3) tag(0) DETAIL socket_connect_tcp_start:1475 Socket connection attempt 0 started successfully.
2024-03-04 16:22:02.544 thread(3) tag(0) DETAIL socket_connect_tcp_start:1501 Done.
2024-03-04 16:22:02.544 thread(3) tag(0) INFO session_open_socket:669 Done.
2024-03-04 16:22:02.544 thread(3) tag(0) DETAIL session_handler:1050 Connect started, going to state SESSION_OPEN_SOCKET_WAIT.
2024-03-04 16:22:02.544 thread(3) tag(0) DETAIL session_handler:1062 in SESSION_OPEN_SOCKET_WAIT state.
2024-03-04 16:22:02.544 thread(3) tag(0) DETAIL socket_connect_tcp_check:1518 Starting.
2024-03-04 16:22:02.557 thread(3) tag(0) DETAIL socket_connect_tcp_check:1538 Socket is connected.
2024-03-04 16:22:02.557 thread(3) tag(0) DETAIL socket_connect_tcp_check:1598 Done.
2024-03-04 16:22:02.557 thread(3) tag(0) INFO session_handler:1068 Socket connection succeeded.
2024-03-04 16:22:02.557 thread(3) tag(0) DETAIL session_handler:1089 in SESSION_REGISTER state.
2024-03-04 16:22:02.557 thread(3) tag(0) INFO session_register:682 Starting.
2024-03-04 16:22:02.557 thread(3) tag(0) INFO send_eip_request:1852 Starting.
2024-03-04 16:22:02.558 thread(3) tag(0) INFO send_eip_request:1865 Sending packet of size 28
2024-03-04 16:22:02.558 thread(3) tag(0) INFO send_eip_request:1866  65 00 04 00 00 00 00 00 00 00
2024-03-04 16:22:02.558 thread(3) tag(0) INFO send_eip_request:1866  00 00 00 00 00 00 00 00 00 00
2024-03-04 16:22:02.558 thread(3) tag(0) INFO send_eip_request:1866  00 00 00 00 01 00 00 00
2024-03-04 16:22:02.558 thread(3) tag(0) DETAIL socket_write:1945 Starting.
2024-03-04 16:22:02.558 thread(3) tag(0) DETAIL socket_write:2072 Done: result = 28.
2024-03-04 16:22:02.558 thread(3) tag(0) INFO send_eip_request:1908 Done.
2024-03-04 16:22:02.558 thread(3) tag(0) INFO recv_eip_response:1928 Starting.
2024-03-04 16:22:02.558 thread(3) tag(0) DETAIL socket_read:1807 Starting.
2024-03-04 16:22:02.559 thread(3) tag(0) DETAIL socket_read:1836 Immediate read attempt did not succeed, now wait for select().
2024-03-04 16:22:02.560 thread(3) tag(0) DETAIL socket_read:1864 Socket can read data.
2024-03-04 16:22:02.560 thread(3) tag(0) DETAIL socket_read:1934 Done: result = 24.
2024-03-04 16:22:02.560 thread(3) tag(0) DETAIL socket_read:1807 Starting.
2024-03-04 16:22:02.560 thread(3) tag(0) DETAIL socket_read:1934 Done: result = 4.
2024-03-04 16:22:02.560 thread(3) tag(0) INFO recv_eip_response:1999 request received all needed data (28 bytes of 28).
2024-03-04 16:22:02.560 thread(3) tag(0) INFO recv_eip_response:2001  65 00 04 00 71 01 95 01 00 00
2024-03-04 16:22:02.560 thread(3) tag(0) INFO recv_eip_response:2001  00 00 00 00 00 00 00 00 00 00
2024-03-04 16:22:02.560 thread(3) tag(0) INFO recv_eip_response:2001  00 00 00 00 01 00 00 00
2024-03-04 16:22:02.560 thread(3) tag(0) INFO recv_eip_response:2008 Done.
2024-03-04 16:22:02.560 thread(3) tag(0) INFO session_register:749 Done.
2024-03-04 16:22:02.560 thread(3) tag(0) DETAIL session_handler:1105 in SESSION_SEND_FORWARD_OPEN state.
2024-03-04 16:22:02.560 thread(3) tag(0) INFO send_forward_open_request:2046 Starting
2024-03-04 16:22:02.560 thread(3) tag(0) DETAIL send_forward_open_request:2129 Set maximum payload size guess to 1996 bytes.
2024-03-04 16:22:02.560 thread(3) tag(0) INFO send_extended_forward_open_request:2233 Starting
2024-03-04 16:22:02.560 thread(3) tag(0) INFO send_eip_request:1852 Starting.
2024-03-04 16:22:02.560 thread(3) tag(0) INFO send_eip_request:1865 Sending packet of size 92
2024-03-04 16:22:02.560 thread(3) tag(0) INFO send_eip_request:1866  6f 00 44 00 71 01 95 01 00 00
2024-03-04 16:22:02.560 thread(3) tag(0) INFO send_eip_request:1866  00 00 b1 72 00 00 00 00 00 00
2024-03-04 16:22:02.560 thread(3) tag(0) INFO send_eip_request:1866  00 00 00 00 00 00 00 00 01 00
2024-03-04 16:22:02.560 thread(3) tag(0) INFO send_eip_request:1866  02 00 00 00 00 00 b2 00 34 00
2024-03-04 16:22:02.560 thread(3) tag(0) INFO send_eip_request:1866  5b 02 20 06 24 01 0a 05 00 00
2024-03-04 16:22:02.560 thread(3) tag(0) INFO send_eip_request:1866  00 00 cb 0b 00 00 fb 35 3d f3
2024-03-04 16:22:02.560 thread(3) tag(0) INFO send_eip_request:1866  45 43 50 21 01 00 00 00 40 42
2024-03-04 16:22:02.560 thread(3) tag(0) INFO send_eip_request:1866  0f 00 cc 07 00 42 40 42 0f 00
2024-03-04 16:22:02.560 thread(3) tag(0) INFO send_eip_request:1866  cc 07 00 42 a3 03 01 00 20 02
2024-03-04 16:22:02.560 thread(3) tag(0) INFO send_eip_request:1866  24 01
2024-03-04 16:22:02.560 thread(3) tag(0) DETAIL socket_write:1945 Starting.
2024-03-04 16:22:02.560 thread(3) tag(0) DETAIL socket_write:2072 Done: result = 92.
2024-03-04 16:22:02.560 thread(3) tag(0) INFO send_eip_request:1908 Done.
2024-03-04 16:22:02.560 thread(3) tag(0) INFO send_extended_forward_open_request:2292 Done
2024-03-04 16:22:02.560 thread(3) tag(0) INFO send_forward_open_request:2134 Done
2024-03-04 16:22:02.560 thread(3) tag(0) DETAIL session_handler:1111 Send Forward Open succeeded, going to SESSION_RECEIVE_FORWARD_OPEN state.
2024-03-04 16:22:02.560 thread(3) tag(0) DETAIL session_handler:1118 in SESSION_RECEIVE_FORWARD_OPEN state.
2024-03-04 16:22:02.560 thread(3) tag(0) INFO receive_forward_open_response:2305 Starting
2024-03-04 16:22:02.560 thread(3) tag(0) INFO recv_eip_response:1928 Starting.
2024-03-04 16:22:02.560 thread(3) tag(0) DETAIL socket_read:1807 Starting.
2024-03-04 16:22:02.560 thread(3) tag(0) DETAIL socket_read:1836 Immediate read attempt did not succeed, now wait for select().
2024-03-04 16:22:02.568 thread(3) tag(0) DETAIL socket_read:1864 Socket can read data.
2024-03-04 16:22:02.568 thread(3) tag(0) DETAIL socket_read:1934 Done: result = 24.
2024-03-04 16:22:02.568 thread(3) tag(0) DETAIL socket_read:1807 Starting.
2024-03-04 16:22:02.571 thread(3) tag(0) DETAIL socket_read:1934 Done: result = 46.
2024-03-04 16:22:02.571 thread(3) tag(0) INFO recv_eip_response:1999 request received all needed data (70 bytes of 70).
2024-03-04 16:22:02.572 thread(3) tag(0) INFO recv_eip_response:2001  6f 00 2e 00 71 01 95 01 00 00
2024-03-04 16:22:02.572 thread(3) tag(0) INFO recv_eip_response:2001  00 00 b1 72 00 00 00 00 00 00
2024-03-04 16:22:02.572 thread(3) tag(0) INFO recv_eip_response:2001  00 00 00 00 00 00 00 00 01 00
2024-03-04 16:22:02.573 thread(3) tag(0) INFO recv_eip_response:2001  02 00 00 00 00 00 b2 00 1e 00
2024-03-04 16:22:02.573 thread(3) tag(0) INFO recv_eip_response:2001  db 00 00 00 c2 0d b4 27 cb 0b
2024-03-04 16:22:02.573 thread(3) tag(0) INFO recv_eip_response:2001  00 00 fb 35 3d f3 45 43 50 21
2024-03-04 16:22:02.574 thread(3) tag(0) INFO recv_eip_response:2001  40 42 0f 00 40 42 0f 00 00 00
2024-03-04 16:22:02.574 thread(3) tag(0) INFO recv_eip_response:2008 Done.
2024-03-04 16:22:02.574 thread(3) tag(0) INFO receive_forward_open_response:2367 ForwardOpen succeeded with our connection ID bcb and the PLC connection ID 27b40dc2 with packet size 1996.
2024-03-04 16:22:02.575 thread(3) tag(0) INFO receive_forward_open_response:2372 Done.
2024-03-04 16:22:02.575 thread(3) tag(0) DETAIL session_handler:1137 Send Forward Open succeeded, going to SESSION_IDLE state.
2024-03-04 16:22:02.576 thread(3) tag(0) DETAIL session_handler:1144 in SESSION_IDLE state.
2024-03-04 16:22:02.576 thread(3) tag(0) DETAIL session_handler:1150 There are 1 requests pending before cleanup and sending.
2024-03-04 16:22:02.576 thread(3) tag(0) DETAIL get_payload_size:1655 Starting.
2024-03-04 16:22:02.577 thread(3) tag(0) DETAIL get_payload_size:1669 Done.
2024-03-04 16:22:02.577 thread(3) tag(0) INFO process_requests:1426 1 requests to process.
2024-03-04 16:22:02.577 thread(3) tag(0) INFO pack_requests:1690 Starting.
2024-03-04 16:22:02.578 thread(3) tag(0) INFO pack_requests:1700 Only one request, so done.
2024-03-04 16:22:02.578 thread(3) tag(0) INFO prepare_request:1792 Starting.
2024-03-04 16:22:02.578 thread(3) tag(0) DETAIL prepare_request:1821 cpf_targ_conn_id=27b40dc2
2024-03-04 16:22:02.579 thread(3) tag(0) INFO prepare_request:1829 Preparing connected packet with connection ID bcb and sequence ID 1(1)
2024-03-04 16:22:02.579 thread(3) tag(0) INFO prepare_request:1836 Prepared packet of size 104
2024-03-04 16:22:02.579 thread(3) tag(0) INFO prepare_request:1837  70 00 50 00 71 01 95 01 00 00
2024-03-04 16:22:02.580 thread(3) tag(0) INFO prepare_request:1837  00 00 00 00 00 00 00 00 00 00
2024-03-04 16:22:02.580 thread(3) tag(0) INFO prepare_request:1837  00 00 00 00 00 00 00 00 01 00
2024-03-04 16:22:02.580 thread(3) tag(0) INFO prepare_request:1837  02 00 a1 00 04 00 c2 0d b4 27
2024-03-04 16:22:02.581 thread(3) tag(0) INFO prepare_request:1837  b1 00 3c 00 01 00 4c 1b 91 0a
2024-03-04 16:22:02.581 thread(3) tag(0) INFO prepare_request:1837  4f 70 63 55 61 54 6f 50 6c 63
2024-03-04 16:22:02.582 thread(3) tag(0) INFO prepare_request:1837  91 12 4f 72 64 69 6e 65 44 69
2024-03-04 16:22:02.582 thread(3) tag(0) INFO prepare_request:1837  50 72 6f 64 75 7a 69 6f 6e 65
2024-03-04 16:22:02.582 thread(3) tag(0) INFO prepare_request:1837  91 13 44 65 73 63 72 69 7a 69
2024-03-04 16:22:02.582 thread(3) tag(0) INFO prepare_request:1837  6f 6e 65 41 72 74 69 63 6f 6c
2024-03-04 16:22:02.582 thread(3) tag(0) INFO prepare_request:1837  6f 00 01 00
2024-03-04 16:22:02.582 thread(3) tag(0) INFO prepare_request:1839 Done.
2024-03-04 16:22:02.582 thread(3) tag(0) INFO send_eip_request:1852 Starting.
2024-03-04 16:22:02.582 thread(3) tag(0) INFO send_eip_request:1865 Sending packet of size 104
2024-03-04 16:22:02.582 thread(3) tag(0) INFO send_eip_request:1866  70 00 50 00 71 01 95 01 00 00
2024-03-04 16:22:02.582 thread(3) tag(0) INFO send_eip_request:1866  00 00 00 00 00 00 00 00 00 00
2024-03-04 16:22:02.582 thread(3) tag(0) INFO send_eip_request:1866  00 00 00 00 00 00 00 00 01 00
2024-03-04 16:22:02.582 thread(3) tag(0) INFO send_eip_request:1866  02 00 a1 00 04 00 c2 0d b4 27
2024-03-04 16:22:02.582 thread(3) tag(0) INFO send_eip_request:1866  b1 00 3c 00 01 00 4c 1b 91 0a
2024-03-04 16:22:02.582 thread(3) tag(0) INFO send_eip_request:1866  4f 70 63 55 61 54 6f 50 6c 63
2024-03-04 16:22:02.582 thread(3) tag(0) INFO send_eip_request:1866  91 12 4f 72 64 69 6e 65 44 69
2024-03-04 16:22:02.582 thread(3) tag(0) INFO send_eip_request:1866  50 72 6f 64 75 7a 69 6f 6e 65
2024-03-04 16:22:02.582 thread(3) tag(0) INFO send_eip_request:1866  91 13 44 65 73 63 72 69 7a 69
2024-03-04 16:22:02.582 thread(3) tag(0) INFO send_eip_request:1866  6f 6e 65 41 72 74 69 63 6f 6c
2024-03-04 16:22:02.582 thread(3) tag(0) INFO send_eip_request:1866  6f 00 01 00
2024-03-04 16:22:02.582 thread(3) tag(0) DETAIL socket_write:1945 Starting.
2024-03-04 16:22:02.582 thread(3) tag(0) DETAIL socket_write:2072 Done: result = 104.
2024-03-04 16:22:02.582 thread(3) tag(0) INFO send_eip_request:1908 Done.
2024-03-04 16:22:02.582 thread(3) tag(0) INFO recv_eip_response:1928 Starting.
2024-03-04 16:22:02.586 thread(3) tag(0) DETAIL socket_read:1807 Starting.
2024-03-04 16:22:02.586 thread(3) tag(0) DETAIL socket_read:1836 Immediate read attempt did not succeed, now wait for select().
2024-03-04 16:22:02.590 thread(3) tag(0) DETAIL socket_read:1864 Socket can read data.
2024-03-04 16:22:02.590 thread(3) tag(0) DETAIL socket_read:1934 Done: result = 24.
2024-03-04 16:22:02.590 thread(3) tag(0) DETAIL socket_read:1807 Starting.
2024-03-04 16:22:02.590 thread(3) tag(0) DETAIL socket_read:1934 Done: result = 32.
2024-03-04 16:22:02.590 thread(3) tag(0) INFO recv_eip_response:1999 request received all needed data (56 bytes of 56).
2024-03-04 16:22:02.590 thread(3) tag(0) INFO recv_eip_response:2001  70 00 20 00 71 01 95 01 00 00
2024-03-04 16:22:02.590 thread(3) tag(0) INFO recv_eip_response:2001  00 00 00 00 00 00 00 00 00 00
2024-03-04 16:22:02.590 thread(3) tag(0) INFO recv_eip_response:2001  00 00 00 00 00 00 00 00 00 00
2024-03-04 16:22:02.591 thread(3) tag(0) INFO recv_eip_response:2001  02 00 a1 00 04 00 cb 0b 00 00
2024-03-04 16:22:02.591 thread(3) tag(0) INFO recv_eip_response:2001  b1 00 0c 00 01 00 cc 00 00 00
2024-03-04 16:22:02.591 thread(3) tag(0) INFO recv_eip_response:2001  d0 00 02 00 54 54
2024-03-04 16:22:02.591 thread(3) tag(0) INFO recv_eip_response:2008 Done.
2024-03-04 16:22:02.591 thread(3) tag(0) INFO unpack_response:1534 Starting.
2024-03-04 16:22:02.591 thread(3) tag(0) INFO unpack_response:1543 Got single response packet.  Copying 56 bytes unchanged.
2024-03-04 16:22:02.591 thread(3) tag(0) INFO unpack_response:1632 Unpacked packet:
2024-03-04 16:22:02.591 thread(3) tag(0) INFO unpack_response:1633  70 00 20 00 71 01 95 01 00 00
2024-03-04 16:22:02.591 thread(3) tag(0) INFO unpack_response:1633  00 00 00 00 00 00 00 00 00 00
2024-03-04 16:22:02.591 thread(3) tag(0) INFO unpack_response:1633  00 00 00 00 00 00 00 00 00 00
2024-03-04 16:22:02.591 thread(3) tag(0) INFO unpack_response:1633  02 00 a1 00 04 00 cb 0b 00 00
2024-03-04 16:22:02.592 thread(3) tag(0) INFO unpack_response:1633  b1 00 0c 00 01 00 cc 00 00 00
2024-03-04 16:22:02.592 thread(3) tag(0) INFO unpack_response:1633  d0 00 02 00 54 54
2024-03-04 16:22:02.592 thread(3) tag(0) DETAIL unpack_response:1642 Done.
2024-03-04 16:22:02.592 thread(3) tag(0) DETAIL plc_tag_tickler_wake_impl:215 Starting. Called from process_requests:1514.
2024-03-04 16:22:02.592 thread(3) tag(0) DETAIL plc_tag_tickler_wake_impl:228 Done. Called from process_requests:1514.
2024-03-04 16:22:02.593 thread(2) tag(11) DETAIL tag_tickler_func:545 Tickling tag 11.
2024-03-04 16:22:02.593 thread(2) tag(11) DETAIL plc_tag_generic_tickler:276 Tickling tag 11.
2024-03-04 16:22:02.593 thread(2) tag(11) DETAIL plc_tag_generic_tickler:381 Done.
2024-03-04 16:22:02.593 thread(2) tag(0) DETAIL check_read_status_connected:1408 type byte = 208 (d0)
2024-03-04 16:22:02.593 thread(2) tag(0) DETAIL check_read_status_connected:1459 Increasing tag buffer size to 4 bytes.
2024-03-04 16:22:02.593 thread(2) tag(0) INFO check_read_status_connected:1469 Got 4 bytes of data
2024-03-04 16:22:02.593 thread(2) tag(0) DETAIL rc_dec_impl:242 Calling cleanup functions due to call at check_read_status_connected:1502 for 0000028A5619F0F0.
2024-03-04 16:22:02.593 thread(2) tag(0) INFO refcount_cleanup:256 Starting
2024-03-04 16:22:02.593 thread(2) tag(0) DETAIL request_destroy:2541 Starting.
2024-03-04 16:22:02.593 thread(2) tag(0) DETAIL request_destroy:2550 Done.
2024-03-04 16:22:02.593 thread(2) tag(0) INFO refcount_cleanup:268 Done.
2024-03-04 16:22:02.593 thread(2) tag(0) DETAIL plc_tag_tickler_wake_impl:215 Starting. Called from tag_tickler_func:564.
2024-03-04 16:22:02.593 thread(2) tag(0) DETAIL plc_tag_tickler_wake_impl:228 Done. Called from tag_tickler_func:564.
2024-03-04 16:22:02.593 thread(1) tag(11) INFO plc_tag_create_ex:1054 tag set up elapsed time 49ms
2024-03-04 16:22:02.593 thread(1) tag(11) INFO plc_tag_create_ex:1060 Done.
2024-03-04 16:22:02.593 thread(1) tag(11) INFO plc_tag_read:1540 Starting.
2024-03-04 16:22:02.593 thread(1) tag(11) INFO tag_read_start:305 Starting
2024-03-04 16:22:02.593 thread(1) tag(11) INFO build_read_request_connected:416 Starting.
2024-03-04 16:22:02.593 thread(1) tag(11) DETAIL session_create_request:2499 Starting.
2024-03-04 16:22:02.593 thread(1) tag(11) INFO rc_alloc_impl:111 Starting, called from session_create_request:2508
2024-03-04 16:22:02.593 thread(1) tag(11) INFO rc_alloc_impl:130 Done
2024-03-04 16:22:02.593 thread(1) tag(11) DETAIL rc_alloc_impl:135 Returning memory pointer 0000028A5619F870
2024-03-04 16:22:02.593 thread(1) tag(11) DETAIL session_create_request:2522 Done.
2024-03-04 16:22:02.593 thread(1) tag(11) INFO session_add_request:942 Starting. sess=0000028A5619DFF0, req=0000028A5619F870
2024-03-04 16:22:02.593 thread(1) tag(11) DETAIL session_add_request_unsafe:907 Starting.
2024-03-04 16:22:02.593 thread(1) tag(11) DETAIL session_add_request_unsafe:926 Total requests in the queue: 1
2024-03-04 16:22:02.593 thread(1) tag(11) DETAIL session_add_request_unsafe:928 Done.
2024-03-04 16:22:02.593 thread(2) tag(11) DETAIL tag_tickler_func:545 Tickling tag 11.
2024-03-04 16:22:02.593 thread(1) tag(11) INFO session_add_request:950 Done.
2024-03-04 16:22:02.593 thread(1) tag(11) INFO build_read_request_connected:501 Done
2024-03-04 16:22:02.593 thread(1) tag(11) INFO tag_read_start:334 Done.
2024-03-04 16:22:02.593 thread(3) tag(0) DETAIL session_handler:1144 in SESSION_IDLE state.
2024-03-04 16:22:02.593 thread(2) tag(11) DETAIL tag_tickler_func:598 Skipping tag as it is already locked.
2024-03-04 16:22:02.593 thread(1) tag(11) DETAIL plc_tag_tickler_wake_impl:215 Starting. Called from plc_tag_read:1615.
2024-03-04 16:22:02.593 thread(1) tag(11) DETAIL plc_tag_tickler_wake_impl:228 Done. Called from plc_tag_read:1615.
2024-03-04 16:22:02.593 thread(3) tag(0) DETAIL session_handler:1150 There are 1 requests pending before cleanup and sending.
2024-03-04 16:22:02.593 thread(3) tag(0) DETAIL get_payload_size:1655 Starting.
2024-03-04 16:22:02.593 thread(3) tag(0) DETAIL get_payload_size:1669 Done.
2024-03-04 16:22:02.593 thread(3) tag(0) INFO process_requests:1426 1 requests to process.
2024-03-04 16:22:02.593 thread(3) tag(0) INFO pack_requests:1690 Starting.
2024-03-04 16:22:02.593 thread(3) tag(11) INFO pack_requests:1700 Only one request, so done.
2024-03-04 16:22:02.593 thread(3) tag(0) INFO prepare_request:1792 Starting.
2024-03-04 16:22:02.593 thread(3) tag(0) DETAIL prepare_request:1821 cpf_targ_conn_id=27b40dc2
2024-03-04 16:22:02.593 thread(3) tag(0) INFO prepare_request:1829 Preparing connected packet with connection ID bcb and sequence ID 2(2)
2024-03-04 16:22:02.593 thread(3) tag(0) INFO prepare_request:1836 Prepared packet of size 104
2024-03-04 16:22:02.593 thread(3) tag(0) INFO prepare_request:1837  70 00 50 00 71 01 95 01 00 00
2024-03-04 16:22:02.593 thread(3) tag(0) INFO prepare_request:1837  00 00 00 00 00 00 00 00 00 00
2024-03-04 16:22:02.593 thread(3) tag(0) INFO prepare_request:1837  00 00 00 00 00 00 00 00 01 00
2024-03-04 16:22:02.593 thread(3) tag(0) INFO prepare_request:1837  02 00 a1 00 04 00 c2 0d b4 27
2024-03-04 16:22:02.593 thread(3) tag(0) INFO prepare_request:1837  b1 00 3c 00 02 00 4c 1b 91 0a
2024-03-04 16:22:02.593 thread(3) tag(0) INFO prepare_request:1837  4f 70 63 55 61 54 6f 50 6c 63
2024-03-04 16:22:02.593 thread(3) tag(0) INFO prepare_request:1837  91 12 4f 72 64 69 6e 65 44 69
2024-03-04 16:22:02.593 thread(3) tag(0) INFO prepare_request:1837  50 72 6f 64 75 7a 69 6f 6e 65
2024-03-04 16:22:02.593 thread(3) tag(0) INFO prepare_request:1837  91 13 44 65 73 63 72 69 7a 69
2024-03-04 16:22:02.593 thread(3) tag(0) INFO prepare_request:1837  6f 6e 65 41 72 74 69 63 6f 6c
2024-03-04 16:22:02.593 thread(3) tag(0) INFO prepare_request:1837  6f 00 01 00
2024-03-04 16:22:02.593 thread(3) tag(0) INFO prepare_request:1839 Done.
2024-03-04 16:22:02.593 thread(3) tag(0) INFO send_eip_request:1852 Starting.
2024-03-04 16:22:02.593 thread(3) tag(0) INFO send_eip_request:1865 Sending packet of size 104
2024-03-04 16:22:02.593 thread(3) tag(0) INFO send_eip_request:1866  70 00 50 00 71 01 95 01 00 00
2024-03-04 16:22:02.593 thread(3) tag(0) INFO send_eip_request:1866  00 00 00 00 00 00 00 00 00 00
2024-03-04 16:22:02.593 thread(3) tag(0) INFO send_eip_request:1866  00 00 00 00 00 00 00 00 01 00
2024-03-04 16:22:02.593 thread(3) tag(0) INFO send_eip_request:1866  02 00 a1 00 04 00 c2 0d b4 27
2024-03-04 16:22:02.593 thread(3) tag(0) INFO send_eip_request:1866  b1 00 3c 00 02 00 4c 1b 91 0a
2024-03-04 16:22:02.593 thread(3) tag(0) INFO send_eip_request:1866  4f 70 63 55 61 54 6f 50 6c 63
2024-03-04 16:22:02.593 thread(3) tag(0) INFO send_eip_request:1866  91 12 4f 72 64 69 6e 65 44 69
2024-03-04 16:22:02.593 thread(3) tag(0) INFO send_eip_request:1866  50 72 6f 64 75 7a 69 6f 6e 65
2024-03-04 16:22:02.593 thread(3) tag(0) INFO send_eip_request:1866  91 13 44 65 73 63 72 69 7a 69
2024-03-04 16:22:02.593 thread(3) tag(0) INFO send_eip_request:1866  6f 6e 65 41 72 74 69 63 6f 6c
2024-03-04 16:22:02.593 thread(3) tag(0) INFO send_eip_request:1866  6f 00 01 00
2024-03-04 16:22:02.593 thread(3) tag(0) DETAIL socket_write:1945 Starting.
2024-03-04 16:22:02.593 thread(2) tag(11) DETAIL tag_tickler_func:545 Tickling tag 11.
2024-03-04 16:22:02.593 thread(3) tag(0) DETAIL socket_write:2072 Done: result = 104.
2024-03-04 16:22:02.593 thread(3) tag(0) INFO send_eip_request:1908 Done.
2024-03-04 16:22:02.593 thread(3) tag(0) INFO recv_eip_response:1928 Starting.
2024-03-04 16:22:02.593 thread(3) tag(0) DETAIL socket_read:1807 Starting.
2024-03-04 16:22:02.593 thread(2) tag(11) DETAIL plc_tag_generic_tickler:276 Tickling tag 11.
2024-03-04 16:22:02.593 thread(2) tag(11) DETAIL plc_tag_generic_tickler:381 Done.
2024-03-04 16:22:02.593 thread(2) tag(0) DETAIL check_read_request_status:1106 Read not ready with status PLCTAG_STATUS_PENDING.
2024-03-04 16:22:02.593 thread(2) tag(0) DETAIL check_read_status_connected:1343 Read request status is not OK.
2024-03-04 16:22:02.593 thread(3) tag(0) DETAIL socket_read:1836 Immediate read attempt did not succeed, now wait for select().
2024-03-04 16:22:02.605 thread(3) tag(0) DETAIL socket_read:1864 Socket can read data.
2024-03-04 16:22:02.606 thread(3) tag(0) DETAIL socket_read:1934 Done: result = 24.
2024-03-04 16:22:02.606 thread(3) tag(0) DETAIL socket_read:1807 Starting.
2024-03-04 16:22:02.606 thread(3) tag(0) DETAIL socket_read:1934 Done: result = 32.
2024-03-04 16:22:02.607 thread(3) tag(0) INFO recv_eip_response:1999 request received all needed data (56 bytes of 56).
2024-03-04 16:22:02.607 thread(3) tag(0) INFO recv_eip_response:2001  70 00 20 00 71 01 95 01 00 00
2024-03-04 16:22:02.608 thread(3) tag(0) INFO recv_eip_response:2001  00 00 00 00 00 00 00 00 00 00
2024-03-04 16:22:02.608 thread(3) tag(0) INFO recv_eip_response:2001  00 00 00 00 00 00 00 00 00 00
2024-03-04 16:22:02.608 thread(3) tag(0) INFO recv_eip_response:2001  02 00 a1 00 04 00 cb 0b 00 00
2024-03-04 16:22:02.609 thread(3) tag(0) INFO recv_eip_response:2001  b1 00 0c 00 02 00 cc 00 00 00
2024-03-04 16:22:02.609 thread(3) tag(0) INFO recv_eip_response:2001  d0 00 02 00 54 54
2024-03-04 16:22:02.610 thread(3) tag(0) INFO recv_eip_response:2008 Done.
2024-03-04 16:22:02.610 thread(3) tag(11) INFO unpack_response:1534 Starting.
2024-03-04 16:22:02.610 thread(3) tag(11) INFO unpack_response:1543 Got single response packet.  Copying 56 bytes unchanged.
2024-03-04 16:22:02.611 thread(3) tag(11) INFO unpack_response:1632 Unpacked packet:
2024-03-04 16:22:02.611 thread(3) tag(11) INFO unpack_response:1633  70 00 20 00 71 01 95 01 00 00
2024-03-04 16:22:02.611 thread(3) tag(11) INFO unpack_response:1633  00 00 00 00 00 00 00 00 00 00
2024-03-04 16:22:02.612 thread(3) tag(11) INFO unpack_response:1633  00 00 00 00 00 00 00 00 00 00
2024-03-04 16:22:02.612 thread(3) tag(11) INFO unpack_response:1633  02 00 a1 00 04 00 cb 0b 00 00
2024-03-04 16:22:02.612 thread(3) tag(11) INFO unpack_response:1633  b1 00 0c 00 02 00 cc 00 00 00
2024-03-04 16:22:02.613 thread(3) tag(11) INFO unpack_response:1633  d0 00 02 00 54 54
2024-03-04 16:22:02.613 thread(3) tag(11) DETAIL unpack_response:1642 Done.
2024-03-04 16:22:02.613 thread(3) tag(11) DETAIL plc_tag_tickler_wake_impl:215 Starting. Called from process_requests:1514.
2024-03-04 16:22:02.614 thread(3) tag(11) DETAIL plc_tag_tickler_wake_impl:228 Done. Called from process_requests:1514.
2024-03-04 16:22:02.615 thread(2) tag(11) DETAIL tag_tickler_func:545 Tickling tag 11.
2024-03-04 16:22:02.615 thread(2) tag(11) DETAIL plc_tag_generic_tickler:276 Tickling tag 11.
2024-03-04 16:22:02.615 thread(2) tag(11) DETAIL plc_tag_generic_tickler:381 Done.
2024-03-04 16:22:02.615 thread(2) tag(0) DETAIL check_read_status_connected:1408 type byte = 208 (d0)
2024-03-04 16:22:02.615 thread(2) tag(0) INFO check_read_status_connected:1469 Got 4 bytes of data
2024-03-04 16:22:02.615 thread(2) tag(0) DETAIL rc_dec_impl:242 Calling cleanup functions due to call at check_read_status_connected:1502 for 0000028A5619F870.
2024-03-04 16:22:02.615 thread(2) tag(0) INFO refcount_cleanup:256 Starting
2024-03-04 16:22:02.615 thread(2) tag(0) DETAIL request_destroy:2541 Starting.
2024-03-04 16:22:02.615 thread(2) tag(0) DETAIL request_destroy:2550 Done.
2024-03-04 16:22:02.615 thread(2) tag(0) INFO refcount_cleanup:268 Done.
2024-03-04 16:22:02.615 thread(2) tag(0) DETAIL plc_tag_tickler_wake_impl:215 Starting. Called from tag_tickler_func:564.
2024-03-04 16:22:02.615 thread(2) tag(0) DETAIL plc_tag_tickler_wake_impl:228 Done. Called from tag_tickler_func:564.
2024-03-04 16:22:02.615 thread(1) tag(11) INFO plc_tag_read:1657 elapsed time 22ms
2024-03-04 16:22:02.615 thread(1) tag(11) INFO plc_tag_read:1670 Done
data[0]="TT"
Warning: truncating string 0, "test", to fit fixed string capacity!
2024-03-04 16:22:02.615 thread(1) tag(11) DETAIL plc_tag_set_string:3414 Starting with string te.
2024-03-04 16:22:02.615 thread(1) tag(11) WARN plc_tag_set_string:3460 string_capacity=2, string_last_offset=5, tag_size=4.
2024-03-04 16:22:02.615 thread(1) tag(11) WARN plc_tag_set_string:3472 Bad configuration? String capacity/size is larger than the tag buffer!
2024-03-04 16:22:02.615 thread(1) tag(11) DETAIL plc_tag_set_string:3574 Done with status PLCTAG_ERR_BAD_CONFIG.
Error while setting the string 0, error: PLCTAG_ERR_BAD_CONFIG!
2024-03-04 16:22:02.615 thread(2) tag(11) DETAIL tag_tickler_func:545 Tickling tag 11.
2024-03-04 16:22:02.621 thread(2) tag(11) DETAIL plc_tag_generic_tickler:276 Tickling tag 11.
2024-03-04 16:22:02.621 thread(2) tag(11) DETAIL plc_tag_generic_tickler:381 Done.
2024-03-04 16:22:02.621 thread(1) tag(11) INFO plc_tag_destroy:1474 Starting.
2024-03-04 16:22:02.621 thread(1) tag(11) DETAIL hashtable_remove:232 Starting
2024-03-04 16:22:02.621 thread(1) tag(11) DETAIL hashtable_remove:250 Done
2024-03-04 16:22:02.621 thread(1) tag(11) DETAIL plc_tag_destroy:1491 Aborting any in-flight operations.
2024-03-04 16:22:02.621 thread(1) tag(11) DETAIL ab_tag_abort:732 Starting.
2024-03-04 16:22:02.621 thread(1) tag(11) DETAIL ab_tag_abort:741 Called without a request in flight.
2024-03-04 16:22:02.622 thread(1) tag(11) DETAIL ab_tag_abort:748 Done.
2024-03-04 16:22:02.622 thread(1) tag(11) DETAIL plc_tag_tickler_wake_impl:215 Starting. Called from plc_tag_destroy:1505.
2024-03-04 16:22:02.622 thread(1) tag(11) DETAIL plc_tag_tickler_wake_impl:228 Done. Called from plc_tag_destroy:1505.
2024-03-04 16:22:02.622 thread(1) tag(11) DETAIL rc_dec_impl:242 Calling cleanup functions due to call at plc_tag_destroy:1510 for 0000028A5619A6E0.
2024-03-04 16:22:02.622 thread(1) tag(11) INFO refcount_cleanup:256 Starting
2024-03-04 16:22:02.622 thread(1) tag(11) INFO ab_tag_destroy:800 Starting.
2024-03-04 16:22:02.622 thread(1) tag(11) DETAIL ab_tag_abort:732 Starting.
2024-03-04 16:22:02.622 thread(1) tag(11) DETAIL ab_tag_abort:741 Called without a request in flight.
2024-03-04 16:22:02.622 thread(1) tag(11) DETAIL ab_tag_abort:748 Done.
2024-03-04 16:22:02.623 thread(1) tag(11) DETAIL ab_tag_destroy:815 Getting ready to release tag session 0000028A5619DFF0
2024-03-04 16:22:02.623 thread(1) tag(11) DETAIL ab_tag_destroy:817 Removing tag from session.
2024-03-04 16:22:02.623 thread(1) tag(11) DETAIL rc_dec_impl:242 Calling cleanup functions due to call at ab_tag_destroy:818 for 0000028A5619DFF0.
2024-03-04 16:22:02.623 thread(1) tag(11) INFO refcount_cleanup:256 Starting
2024-03-04 16:22:02.623 thread(1) tag(11) INFO session_destroy:791 Starting.
2024-03-04 16:22:02.623 thread(1) tag(11) DETAIL remove_session:376 Starting.
2024-03-04 16:22:02.623 thread(1) tag(11) DETAIL remove_session_unsafe:352 Starting
2024-03-04 16:22:02.623 thread(1) tag(11) DETAIL remove_session_unsafe:367 Done
2024-03-04 16:22:02.623 thread(1) tag(11) DETAIL remove_session:384 Done.
2024-03-04 16:22:02.624 thread(1) tag(11) INFO session_destroy:802 Session sent 4 packets.
2024-03-04 16:22:02.624 thread(1) tag(11) DETAIL session_destroy:813 Destroying session thread.
2024-03-04 16:22:02.624 thread(3) tag(0) DETAIL session_handler:1301 Critical block.
2024-03-04 16:22:02.624 thread(1) tag(11) INFO perform_forward_close:2019 Starting.
2024-03-04 16:22:02.624 thread(1) tag(11) INFO send_forward_close_req:2384 Starting
2024-03-04 16:22:02.624 thread(1) tag(11) DETAIL send_forward_close_req:2396 Forward Close connection path:
2024-03-04 16:22:02.624 thread(1) tag(11) DETAIL send_forward_close_req:2397  01 00 20 02 24 01
2024-03-04 16:22:02.624 thread(1) tag(11) INFO send_eip_request:1852 Starting.
2024-03-04 16:22:02.624 thread(1) tag(11) INFO send_eip_request:1865 Sending packet of size 64
2024-03-04 16:22:02.624 thread(1) tag(11) INFO send_eip_request:1866  6f 00 28 00 71 01 95 01 00 00
2024-03-04 16:22:02.624 thread(1) tag(11) INFO send_eip_request:1866  00 00 b2 72 00 00 00 00 00 00
2024-03-04 16:22:02.625 thread(1) tag(11) INFO send_eip_request:1866  00 00 00 00 00 00 00 00 01 00
2024-03-04 16:22:02.625 thread(1) tag(11) INFO send_eip_request:1866  02 00 00 00 00 00 b2 00 18 00
2024-03-04 16:22:02.625 thread(1) tag(11) INFO send_eip_request:1866  4e 02 20 06 24 01 0a 05 fb 35
2024-03-04 16:22:02.625 thread(1) tag(11) INFO send_eip_request:1866  3d f3 45 43 50 21 03 00 01 00
2024-03-04 16:22:02.625 thread(1) tag(11) INFO send_eip_request:1866  20 02 24 01
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL socket_write:1945 Starting.
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL socket_write:2072 Done: result = 64.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO send_eip_request:1908 Done.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO send_forward_close_req:2436 Done
2024-03-04 16:22:02.625 thread(1) tag(11) INFO recv_forward_close_resp:2447 Starting
2024-03-04 16:22:02.625 thread(1) tag(11) INFO recv_eip_response:1928 Starting.
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL socket_read:1807 Starting.
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL socket_read:1836 Immediate read attempt did not succeed, now wait for select().
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL socket_read:1864 Socket can read data.
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL socket_read:1934 Done: result = 24.
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL socket_read:1807 Starting.
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL socket_read:1934 Done: result = 30.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO recv_eip_response:1999 request received all needed data (54 bytes of 54).
2024-03-04 16:22:02.625 thread(1) tag(11) INFO recv_eip_response:2001  6f 00 1e 00 71 01 95 01 00 00
2024-03-04 16:22:02.625 thread(1) tag(11) INFO recv_eip_response:2001  00 00 b2 72 00 00 00 00 00 00
2024-03-04 16:22:02.625 thread(1) tag(11) INFO recv_eip_response:2001  00 00 00 00 00 00 00 00 01 00
2024-03-04 16:22:02.625 thread(1) tag(11) INFO recv_eip_response:2001  02 00 00 00 00 00 b2 00 0e 00
2024-03-04 16:22:02.625 thread(1) tag(11) INFO recv_eip_response:2001  ce 00 00 00 fb 35 3d f3 45 43
2024-03-04 16:22:02.625 thread(1) tag(11) INFO recv_eip_response:2001  50 21 00 00
2024-03-04 16:22:02.625 thread(1) tag(11) INFO recv_eip_response:2008 Done.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO recv_forward_close_resp:2476 Connection close succeeded.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO recv_forward_close_resp:2481 Done.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO perform_forward_close:2035 Done.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO session_unregister:759 Starting.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO session_unregister:763 Done.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO session_close_socket:772 Starting.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO socket_close:2083 Starting.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO socket_close:2119 Done.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO socket_destroy:2128 Starting.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO socket_close:2083 Starting.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO socket_close:2119 Done.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO socket_destroy:2145 Done.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO session_close_socket:780 Done.
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL session_destroy:861 Destroying session condition variable.
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL cond_destroy:1242 Starting.
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL cond_destroy:1253 Done.
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL session_destroy:868 Destroying session mutex.
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL mutex_destroy:841 destroying mutex 0000028A5619F060
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL mutex_destroy:854 Done.
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL session_destroy:874 Cleaning up allocated memory for paths and host name.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO session_destroy:890 Done.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO refcount_cleanup:268 Done.
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL mutex_destroy:841 destroying mutex 0000028A5619A718
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL mutex_destroy:854 Done.
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL mutex_destroy:841 destroying mutex 0000028A5619A720
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL mutex_destroy:854 Done.
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL cond_destroy:1242 Starting.
2024-03-04 16:22:02.625 thread(1) tag(11) DETAIL cond_destroy:1253 Done.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO ab_tag_destroy:849 Finished releasing all tag resources.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO ab_tag_destroy:851 done
2024-03-04 16:22:02.625 thread(1) tag(11) INFO refcount_cleanup:268 Done.
2024-03-04 16:22:02.625 thread(1) tag(11) INFO plc_tag_destroy:1512 Done.
2024-03-04 16:22:02.625 thread(1) tag(0) INFO ab_teardown:142 Releasing global AB protocol resources.
2024-03-04 16:22:02.625 thread(1) tag(0) INFO ab_teardown:153 IO thread already stopped.
2024-03-04 16:22:02.625 thread(1) tag(0) INFO ab_teardown:156 Freeing session information.
2024-03-04 16:22:02.625 thread(1) tag(0) DETAIL mutex_destroy:841 destroying mutex 00007FFD2C7A74D0
2024-03-04 16:22:02.625 thread(1) tag(0) DETAIL mutex_destroy:854 Done.
2024-03-04 16:22:02.625 thread(1) tag(0) INFO ab_teardown:162 Done.
2024-03-04 16:22:02.625 thread(1) tag(0) INFO mb_teardown:2391 Starting.
2024-03-04 16:22:02.637 thread(1) tag(0) DETAIL mb_teardown:2395 Destroying Modbus mutex.
2024-03-04 16:22:02.637 thread(1) tag(0) DETAIL mutex_destroy:841 destroying mutex 00007FFD2C7A74E8
2024-03-04 16:22:02.637 thread(1) tag(0) DETAIL mutex_destroy:854 Done.
2024-03-04 16:22:02.637 thread(1) tag(0) INFO mb_teardown:2401 Done.
2024-03-04 16:22:02.637 thread(1) tag(0) INFO lib_teardown:171 Tearing down library.
2024-03-04 16:22:02.637 thread(1) tag(0) INFO lib_teardown:176 Signaling tag tickler condition var.
2024-03-04 16:22:02.637 thread(1) tag(0) INFO lib_teardown:181 Tearing down tag tickler thread.
2024-03-04 16:22:02.637 thread(1) tag(0) INFO lib_teardown:188 Tearing down tag tickler condition var.
2024-03-04 16:22:02.638 thread(1) tag(0) DETAIL cond_destroy:1242 Starting.
2024-03-04 16:22:02.638 thread(1) tag(0) DETAIL cond_destroy:1253 Done.
2024-03-04 16:22:02.638 thread(1) tag(0) INFO lib_teardown:194 Tearing down tag lookup mutex.
2024-03-04 16:22:02.638 thread(1) tag(0) DETAIL mutex_destroy:841 destroying mutex 00007FFD2C7A7498
2024-03-04 16:22:02.638 thread(1) tag(0) DETAIL mutex_destroy:854 Done.
2024-03-04 16:22:02.638 thread(1) tag(0) INFO lib_teardown:200 Destroying tag hashtable.
2024-03-04 16:22:02.639 thread(1) tag(0) INFO hashtable_destroy:260 Starting
2024-03-04 16:22:02.639 thread(1) tag(0) INFO hashtable_destroy:272 Done
2024-03-04 16:22:02.639 thread(1) tag(0) INFO lib_teardown:207 Done.
2024-03-04 16:22:02.639 thread(1) tag(0) DETAIL mutex_destroy:841 destroying mutex 00007FFD2C7A7488
2024-03-04 16:22:02.639 thread(1) tag(0) DETAIL mutex_destroy:854 Done.
2024-03-04 16:22:02.639 thread(1) tag(0) DETAIL plc_tag_unregister_logger:1303 Starting
2024-03-04 16:22:02.639 thread(1) tag(0) DETAIL plc_tag_unregister_logger:1307 Done.
zN3utr4l commented 4 months ago
data[0]="TT"
Warning: truncating string 0, "test", to fit fixed string capacity!
2024-03-04 16:22:02.615 thread(1) tag(11) DETAIL plc_tag_set_string:3414 Starting with string te.
2024-03-04 16:22:02.615 thread(1) tag(11) WARN plc_tag_set_string:3460 string_capacity=2, string_last_offset=5, tag_size=4.
2024-03-04 16:22:02.615 thread(1) tag(11) WARN plc_tag_set_string:3472 Bad configuration? String capacity/size is larger than the tag buffer!
2024-03-04 16:22:02.615 thread(1) tag(11) DETAIL plc_tag_set_string:3574 Done with status PLCTAG_ERR_BAD_CONFIG.
Error while setting the string 0, error: PLCTAG_ERR_BAD_CONFIG!

This is the main error

kyle-github commented 4 months ago

The library does not automatically extend the buffer for strings. It probably should but it is a bit difficult to get this right. The buffer is only 4 bytes. Two of those are for the count word. So there is only sufficient space for two characters. You need to set the tag buffer to a size large enough to hold the string. In this case, that would be 6 bytes. Here is the documentation for the core C API.

kyle-github commented 4 months ago

Also, that error should probably be something about size rather than configuration.

zN3utr4l commented 4 months ago

sorry but I don't understand, is the error an error in the library or in my configuration?

As I told you, the strings were created with [10] or [20], but I noticed that even an unlimited string gives the same problem.

What can I do to resolve

Returning to the ElementSize, they told me that the maximum of a string should be 256.

zN3utr4l commented 4 months ago

@kyle-github, I tried to change the size but without success, look what I did in this comment: https://github.com/libplctag/libplctag.NET/issues/359#issuecomment-1980377953

timyhac commented 3 weeks ago

@zN3utr4l - your diagnosis was correct and a new version of libplctag.NET has been published with a fix.