Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect destination port setting in example task.json #39

Closed
JohanDehn opened this issue Apr 26, 2022 · 4 comments
Closed

Incorrect destination port setting in example task.json #39

JohanDehn opened this issue Apr 26, 2022 · 4 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@JohanDehn
Copy link

Incorrect port setting in example task.json file in the extension details.

"destinationPort": 11160,

should be

"destinationPort": 11169,

{ "label": "BrAsTransfer: ArSim with default install settings", "type": "BrAsTransfer", "pviConnectionSettings": { "deviceInterface": "tcpip", "sourceNode": 42, "destinationAddress": "127.0.0.1", "destinationPort": 11160, "communicationTimeout": 1000, "connectionEstablishedTimeout": 60 },

@Radeonmann Radeonmann added the investigation Investigation of cause in progress label Apr 27, 2022
@Radeonmann
Copy link
Collaborator

Hi Johan

This PVI configuration template is the one for the ArSim connection. If I'm not mistaken, the default ANSL port in ArSim is 11160 and the default port for real PLCs is 11169.

Just to be sure I will check it again and close it / fix it depending on the result.

@JohanDehn
Copy link
Author

JohanDehn commented May 1, 2022

Yes your absolutely right, and I am wrong, were running in simulation of a real PLC.
I have checked verified that the ARSIM port is 11160. I am closing the case.

@Radeonmann Radeonmann reopened this Mar 17, 2023
@Radeonmann
Copy link
Collaborator

Radeonmann commented Mar 17, 2023

I reopened the issue. because it seems the port 11160 in the ArSim is only used for INA.

The template which is generated from the extension does not work.

The extension uses the /PT=<port> parameter for the port in the connection settings.
Automation Studio uses /REPO=11160 ... /PT=11169 for the connection settings with a default ArSim configuration.

image

According to the AS help /REPO only exist for backwards compatibility with INA connections, and if both /PT=<port> and /REPO=<port> are set, /PT will win.
image

Therefore Automation Studio also uses port 11169 for ANSL in ArSim and the template in the extension needs to be adjusted.

Workaround

Until the issue is fixed in the template, you can just manually change the configuration in the tasks.json file:
image

@Radeonmann Radeonmann added bug Something isn't working and removed investigation Investigation of cause in progress labels Mar 17, 2023
@Radeonmann Radeonmann added this to the v0.0.8 milestone Mar 17, 2023
@Radeonmann Radeonmann self-assigned this Mar 17, 2023
@Radeonmann
Copy link
Collaborator

Fixed, will be in next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants