Skip to content

Reading big offsets #131

@liulysk

Description

@liulysk

Hello,

is it possible to read addresses that are bigger than 16002? Example: DB1,INT30000. The biggest offset I found for some reason was 16002, anything bigger than that I receive error:

let variables = {
"var0": "DB1,INT16004"
}

I've tried to change Max PDU size, but it didn't help

[42670,1984400] Initiate Called - Connecting to PLC with address and parameters:
[42670,2115700] {
  port: 102,
  host: '192.168.0.63',
  rack: 0,
  slot: 1,
  requestMaxPDU: 8120,
  maxPDU: 8120,
  debug: true
}
[42670,2541400 192.168.0.63 S1] Connection cleanup is happening
[42670,2990400 192.168.0.63 S1] Attempting to connect to host...
[42670,4198600 192.168.0.63 S1] TCP Connection Established to 192.168.0.63 on port 102
[42670,4346100 192.168.0.63 S1] Will attempt ISO-on-TCP connection
[42670,4726100 192.168.0.63 S1] Using rack [0] and slot [1]
[42670,5363300 192.168.0.63 S1] ISO-on-TCP Connection Confirm Packet Received
[42670,6286500 192.168.0.63 S1] Received PDU Response - Proceeding with PDU 960 and 3 max parallel connections.
[42670,6761800] Translation OK
-----------------Init done-------------
[42670,7721800 192.168.0.63 S1] Adding var0
[42670,8631700 192.168.0.63 S1] Invalid Response Code - 5
18 Oct 11:11:52 - [warn] [function:S7 read] SOMETHING WENT WRONG READING VALUES!!!!
[42670,9034200 192.168.0.63 S1] Connection cleanup is happening
{ var0: 'BAD 255' }
[42670,9601900 192.168.0.63 S1] Connection cleanup is happening

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions